
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * WARNING: This is an internal file that is subject to change!
 *
 * 🛑 Under no circumstances should you import this file directly! 🛑
 *
 * All exports from this file are wrapped under a `Prisma` namespace object in the browser.ts file.
 * While this enables partial backward compatibility, it is not part of the stable public API.
 *
 * If you are looking for your Models, Enums, and Input Types, please import them from the respective
 * model files in the `model` directory!
 */

import * as runtime from "@prisma/client/runtime/index-browser"

export type * from '../models'
export type * from './prismaNamespace'

export const Decimal = runtime.Decimal


export const NullTypes = {
  DbNull: runtime.objectEnumValues.classes.DbNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.DbNull),
  JsonNull: runtime.objectEnumValues.classes.JsonNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.JsonNull),
  AnyNull: runtime.objectEnumValues.classes.AnyNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.AnyNull),
}
/**
 * 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 = runtime.objectEnumValues.instances.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 = runtime.objectEnumValues.instances.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 = runtime.objectEnumValues.instances.AnyNull


export const ModelName = {
  Department: 'Department',
  User: 'User',
  Task: 'Task',
  TaskDepartment: 'TaskDepartment',
  TaskMember: 'TaskMember',
  Attachment: 'Attachment',
  Comment: 'Comment',
  TaskStatusHistory: 'TaskStatusHistory',
  MonitorPlan: 'MonitorPlan',
  MonitorItem: 'MonitorItem',
  MonitorItemUser: 'MonitorItemUser',
  MonitorRule: 'MonitorRule',
  MonitorInstance: 'MonitorInstance',
  MonitorNotifyLog: 'MonitorNotifyLog',
  MonitorOperateLog: 'MonitorOperateLog'
} as const

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

/*
 * Enums
 */

export const TransactionIsolationLevel = runtime.makeStrictEnum({
  ReadUncommitted: 'ReadUncommitted',
  ReadCommitted: 'ReadCommitted',
  RepeatableRead: 'RepeatableRead',
  Serializable: 'Serializable'
} as const)

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


export const DepartmentScalarFieldEnum = {
  id: 'id',
  name: 'name',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

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


export const UserScalarFieldEnum = {
  id: 'id',
  name: 'name',
  badgeNo: 'badgeNo',
  passwordHash: 'passwordHash',
  isInitialPassword: 'isInitialPassword',
  role: 'role',
  departmentId: 'departmentId',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

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


export const TaskScalarFieldEnum = {
  id: 'id',
  title: 'title',
  description: 'description',
  status: 'status',
  dueDate: 'dueDate',
  creatorId: 'creatorId',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

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


export const TaskDepartmentScalarFieldEnum = {
  taskId: 'taskId',
  departmentId: 'departmentId'
} as const

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


export const TaskMemberScalarFieldEnum = {
  id: 'id',
  taskId: 'taskId',
  userId: 'userId',
  status: 'status',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

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


export const AttachmentScalarFieldEnum = {
  id: 'id',
  taskId: 'taskId',
  uploaderId: 'uploaderId',
  filename: 'filename',
  objectKey: 'objectKey',
  createdAt: 'createdAt'
} as const

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


export const CommentScalarFieldEnum = {
  id: 'id',
  taskId: 'taskId',
  authorId: 'authorId',
  content: 'content',
  createdAt: 'createdAt'
} as const

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


export const TaskStatusHistoryScalarFieldEnum = {
  id: 'id',
  taskId: 'taskId',
  operatorId: 'operatorId',
  fromStatus: 'fromStatus',
  toStatus: 'toStatus',
  operation: 'operation',
  remark: 'remark',
  createdAt: 'createdAt'
} as const

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


export const MonitorPlanScalarFieldEnum = {
  id: 'id',
  planCode: 'planCode',
  planName: 'planName',
  planType: 'planType',
  sourceTaskId: 'sourceTaskId',
  ownerDeptId: 'ownerDeptId',
  ownerDeptName: 'ownerDeptName',
  startDate: 'startDate',
  endDate: 'endDate',
  status: 'status',
  remark: 'remark',
  createdBy: 'createdBy',
  createdAt: 'createdAt',
  updatedBy: 'updatedBy',
  updatedAt: 'updatedAt',
  deletedFlag: 'deletedFlag'
} as const

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


export const MonitorItemScalarFieldEnum = {
  id: 'id',
  planId: 'planId',
  itemCode: 'itemCode',
  itemName: 'itemName',
  itemCategory: 'itemCategory',
  status: 'status',
  cycleType: 'cycleType',
  cycleConf: 'cycleConf',
  dueTime: 'dueTime',
  completeMode: 'completeMode',
  needAttachment: 'needAttachment',
  needRemark: 'needRemark',
  sortNo: 'sortNo',
  isEnabled: 'isEnabled',
  remark: 'remark',
  createdBy: 'createdBy',
  createdAt: 'createdAt',
  updatedBy: 'updatedBy',
  updatedAt: 'updatedAt'
} as const

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


export const MonitorItemUserScalarFieldEnum = {
  id: 'id',
  itemId: 'itemId',
  userId: 'userId',
  userName: 'userName',
  deptId: 'deptId',
  deptName: 'deptName',
  mobile: 'mobile',
  roleType: 'roleType',
  isPrimary: 'isPrimary',
  isEnabled: 'isEnabled',
  createdAt: 'createdAt'
} as const

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


export const MonitorRuleScalarFieldEnum = {
  id: 'id',
  itemId: 'itemId',
  ruleName: 'ruleName',
  triggerType: 'triggerType',
  offsetDays: 'offsetDays',
  offsetHours: 'offsetHours',
  repeatType: 'repeatType',
  repeatInterval: 'repeatInterval',
  remindTime: 'remindTime',
  maxTimes: 'maxTimes',
  channelSms: 'channelSms',
  channelSystem: 'channelSystem',
  stopWhenDone: 'stopWhenDone',
  contentTpl: 'contentTpl',
  isEnabled: 'isEnabled',
  createdBy: 'createdBy',
  createdAt: 'createdAt',
  updatedBy: 'updatedBy',
  updatedAt: 'updatedAt'
} as const

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


export const MonitorInstanceScalarFieldEnum = {
  id: 'id',
  planId: 'planId',
  itemId: 'itemId',
  instanceCode: 'instanceCode',
  periodKey: 'periodKey',
  periodLabel: 'periodLabel',
  periodStart: 'periodStart',
  periodEnd: 'periodEnd',
  dueAt: 'dueAt',
  status: 'status',
  completedBy: 'completedBy',
  completedByName: 'completedByName',
  completedAt: 'completedAt',
  completeRemark: 'completeRemark',
  attachmentJson: 'attachmentJson',
  remindCount: 'remindCount',
  firstRemindAt: 'firstRemindAt',
  lastRemindAt: 'lastRemindAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

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


export const MonitorNotifyLogScalarFieldEnum = {
  id: 'id',
  instanceId: 'instanceId',
  ruleId: 'ruleId',
  triggerKey: 'triggerKey',
  receiverUserId: 'receiverUserId',
  receiverName: 'receiverName',
  receiverMobile: 'receiverMobile',
  channel: 'channel',
  title: 'title',
  content: 'content',
  bizDedupeKey: 'bizDedupeKey',
  sendStatus: 'sendStatus',
  sendTime: 'sendTime',
  failReason: 'failReason',
  oracleEid: 'oracleEid',
  oraclePushTime: 'oraclePushTime',
  retryCount: 'retryCount',
  createdAt: 'createdAt'
} as const

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


export const MonitorOperateLogScalarFieldEnum = {
  id: 'id',
  planId: 'planId',
  itemId: 'itemId',
  instanceId: 'instanceId',
  actionType: 'actionType',
  operatorId: 'operatorId',
  operatorName: 'operatorName',
  operatorDeptId: 'operatorDeptId',
  operatorIp: 'operatorIp',
  detailJson: 'detailJson',
  createdAt: 'createdAt'
} as const

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


export const SortOrder = {
  asc: 'asc',
  desc: 'desc'
} as const

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


export const NullableJsonNullValueInput = {
  DbNull: DbNull,
  JsonNull: JsonNull
} as const

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


export const QueryMode = {
  default: 'default',
  insensitive: 'insensitive'
} as const

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


export const NullsOrder = {
  first: 'first',
  last: 'last'
} as const

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


export const JsonNullValueFilter = {
  DbNull: DbNull,
  JsonNull: JsonNull,
  AnyNull: AnyNull
} as const

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

