Files
tautkan-kanban/server/node_modules/.prisma/client/index.d.ts
T
Power BI Dev 88c7c653c2 first init
2026-08-17 10:52:09 +07:00

7860 lines
272 KiB
TypeScript

/**
* Client
**/
import * as runtime from '@prisma/client/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 Board
*
*/
export type Board = $Result.DefaultSelection<Prisma.$BoardPayload>
/**
* Model Column
*
*/
export type Column = $Result.DefaultSelection<Prisma.$ColumnPayload>
/**
* Model Ticket
*
*/
export type Ticket = $Result.DefaultSelection<Prisma.$TicketPayload>
/**
* Model ActivityLog
*
*/
export type ActivityLog = $Result.DefaultSelection<Prisma.$ActivityLogPayload>
/**
* Enums
*/
export namespace $Enums {
export const Priority: {
LOW: 'LOW',
MEDIUM: 'MEDIUM',
HIGH: 'HIGH',
URGENT: 'URGENT'
};
export type Priority = (typeof Priority)[keyof typeof Priority]
}
export type Priority = $Enums.Priority
export const Priority: typeof $Enums.Priority
/**
* ## Prisma Client ʲˢ
*
* Type-safe database client for TypeScript & Node.js
* @example
* ```
* const prisma = new PrismaClient()
* // Fetch zero or more Boards
* const boards = await prisma.board.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 Boards
* const boards = await prisma.board.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.board`: Exposes CRUD operations for the **Board** model.
* Example usage:
* ```ts
* // Fetch zero or more Boards
* const boards = await prisma.board.findMany()
* ```
*/
get board(): Prisma.BoardDelegate<ExtArgs>;
/**
* `prisma.column`: Exposes CRUD operations for the **Column** model.
* Example usage:
* ```ts
* // Fetch zero or more Columns
* const columns = await prisma.column.findMany()
* ```
*/
get column(): Prisma.ColumnDelegate<ExtArgs>;
/**
* `prisma.ticket`: Exposes CRUD operations for the **Ticket** model.
* Example usage:
* ```ts
* // Fetch zero or more Tickets
* const tickets = await prisma.ticket.findMany()
* ```
*/
get ticket(): Prisma.TicketDelegate<ExtArgs>;
/**
* `prisma.activityLog`: Exposes CRUD operations for the **ActivityLog** model.
* Example usage:
* ```ts
* // Fetch zero or more ActivityLogs
* const activityLogs = await prisma.activityLog.findMany()
* ```
*/
get activityLog(): Prisma.ActivityLogDelegate<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: {
Board: 'Board',
Column: 'Column',
Ticket: 'Ticket',
ActivityLog: 'ActivityLog'
};
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: "board" | "column" | "ticket" | "activityLog"
txIsolationLevel: Prisma.TransactionIsolationLevel
}
model: {
Board: {
payload: Prisma.$BoardPayload<ExtArgs>
fields: Prisma.BoardFieldRefs
operations: {
findUnique: {
args: Prisma.BoardFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$BoardPayload> | null
}
findUniqueOrThrow: {
args: Prisma.BoardFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$BoardPayload>
}
findFirst: {
args: Prisma.BoardFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$BoardPayload> | null
}
findFirstOrThrow: {
args: Prisma.BoardFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$BoardPayload>
}
findMany: {
args: Prisma.BoardFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$BoardPayload>[]
}
create: {
args: Prisma.BoardCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$BoardPayload>
}
createMany: {
args: Prisma.BoardCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.BoardCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$BoardPayload>[]
}
delete: {
args: Prisma.BoardDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$BoardPayload>
}
update: {
args: Prisma.BoardUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$BoardPayload>
}
deleteMany: {
args: Prisma.BoardDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.BoardUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.BoardUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$BoardPayload>
}
aggregate: {
args: Prisma.BoardAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateBoard>
}
groupBy: {
args: Prisma.BoardGroupByArgs<ExtArgs>
result: $Utils.Optional<BoardGroupByOutputType>[]
}
count: {
args: Prisma.BoardCountArgs<ExtArgs>
result: $Utils.Optional<BoardCountAggregateOutputType> | number
}
}
}
Column: {
payload: Prisma.$ColumnPayload<ExtArgs>
fields: Prisma.ColumnFieldRefs
operations: {
findUnique: {
args: Prisma.ColumnFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ColumnPayload> | null
}
findUniqueOrThrow: {
args: Prisma.ColumnFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ColumnPayload>
}
findFirst: {
args: Prisma.ColumnFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ColumnPayload> | null
}
findFirstOrThrow: {
args: Prisma.ColumnFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ColumnPayload>
}
findMany: {
args: Prisma.ColumnFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ColumnPayload>[]
}
create: {
args: Prisma.ColumnCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ColumnPayload>
}
createMany: {
args: Prisma.ColumnCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.ColumnCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ColumnPayload>[]
}
delete: {
args: Prisma.ColumnDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ColumnPayload>
}
update: {
args: Prisma.ColumnUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ColumnPayload>
}
deleteMany: {
args: Prisma.ColumnDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.ColumnUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.ColumnUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ColumnPayload>
}
aggregate: {
args: Prisma.ColumnAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateColumn>
}
groupBy: {
args: Prisma.ColumnGroupByArgs<ExtArgs>
result: $Utils.Optional<ColumnGroupByOutputType>[]
}
count: {
args: Prisma.ColumnCountArgs<ExtArgs>
result: $Utils.Optional<ColumnCountAggregateOutputType> | number
}
}
}
Ticket: {
payload: Prisma.$TicketPayload<ExtArgs>
fields: Prisma.TicketFieldRefs
operations: {
findUnique: {
args: Prisma.TicketFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$TicketPayload> | null
}
findUniqueOrThrow: {
args: Prisma.TicketFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$TicketPayload>
}
findFirst: {
args: Prisma.TicketFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$TicketPayload> | null
}
findFirstOrThrow: {
args: Prisma.TicketFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$TicketPayload>
}
findMany: {
args: Prisma.TicketFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$TicketPayload>[]
}
create: {
args: Prisma.TicketCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$TicketPayload>
}
createMany: {
args: Prisma.TicketCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.TicketCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$TicketPayload>[]
}
delete: {
args: Prisma.TicketDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$TicketPayload>
}
update: {
args: Prisma.TicketUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$TicketPayload>
}
deleteMany: {
args: Prisma.TicketDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.TicketUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.TicketUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$TicketPayload>
}
aggregate: {
args: Prisma.TicketAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateTicket>
}
groupBy: {
args: Prisma.TicketGroupByArgs<ExtArgs>
result: $Utils.Optional<TicketGroupByOutputType>[]
}
count: {
args: Prisma.TicketCountArgs<ExtArgs>
result: $Utils.Optional<TicketCountAggregateOutputType> | number
}
}
}
ActivityLog: {
payload: Prisma.$ActivityLogPayload<ExtArgs>
fields: Prisma.ActivityLogFieldRefs
operations: {
findUnique: {
args: Prisma.ActivityLogFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ActivityLogPayload> | null
}
findUniqueOrThrow: {
args: Prisma.ActivityLogFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ActivityLogPayload>
}
findFirst: {
args: Prisma.ActivityLogFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ActivityLogPayload> | null
}
findFirstOrThrow: {
args: Prisma.ActivityLogFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ActivityLogPayload>
}
findMany: {
args: Prisma.ActivityLogFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ActivityLogPayload>[]
}
create: {
args: Prisma.ActivityLogCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ActivityLogPayload>
}
createMany: {
args: Prisma.ActivityLogCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.ActivityLogCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ActivityLogPayload>[]
}
delete: {
args: Prisma.ActivityLogDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ActivityLogPayload>
}
update: {
args: Prisma.ActivityLogUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ActivityLogPayload>
}
deleteMany: {
args: Prisma.ActivityLogDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.ActivityLogUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.ActivityLogUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ActivityLogPayload>
}
aggregate: {
args: Prisma.ActivityLogAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateActivityLog>
}
groupBy: {
args: Prisma.ActivityLogGroupByArgs<ExtArgs>
result: $Utils.Optional<ActivityLogGroupByOutputType>[]
}
count: {
args: Prisma.ActivityLogCountArgs<ExtArgs>
result: $Utils.Optional<ActivityLogCountAggregateOutputType> | 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 BoardCountOutputType
*/
export type BoardCountOutputType = {
columns: number
activityLogs: number
}
export type BoardCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
columns?: boolean | BoardCountOutputTypeCountColumnsArgs
activityLogs?: boolean | BoardCountOutputTypeCountActivityLogsArgs
}
// Custom InputTypes
/**
* BoardCountOutputType without action
*/
export type BoardCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the BoardCountOutputType
*/
select?: BoardCountOutputTypeSelect<ExtArgs> | null
}
/**
* BoardCountOutputType without action
*/
export type BoardCountOutputTypeCountColumnsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: ColumnWhereInput
}
/**
* BoardCountOutputType without action
*/
export type BoardCountOutputTypeCountActivityLogsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: ActivityLogWhereInput
}
/**
* Count Type ColumnCountOutputType
*/
export type ColumnCountOutputType = {
tickets: number
}
export type ColumnCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
tickets?: boolean | ColumnCountOutputTypeCountTicketsArgs
}
// Custom InputTypes
/**
* ColumnCountOutputType without action
*/
export type ColumnCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ColumnCountOutputType
*/
select?: ColumnCountOutputTypeSelect<ExtArgs> | null
}
/**
* ColumnCountOutputType without action
*/
export type ColumnCountOutputTypeCountTicketsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: TicketWhereInput
}
/**
* Count Type TicketCountOutputType
*/
export type TicketCountOutputType = {
activityLogs: number
}
export type TicketCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
activityLogs?: boolean | TicketCountOutputTypeCountActivityLogsArgs
}
// Custom InputTypes
/**
* TicketCountOutputType without action
*/
export type TicketCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TicketCountOutputType
*/
select?: TicketCountOutputTypeSelect<ExtArgs> | null
}
/**
* TicketCountOutputType without action
*/
export type TicketCountOutputTypeCountActivityLogsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: ActivityLogWhereInput
}
/**
* Models
*/
/**
* Model Board
*/
export type AggregateBoard = {
_count: BoardCountAggregateOutputType | null
_min: BoardMinAggregateOutputType | null
_max: BoardMaxAggregateOutputType | null
}
export type BoardMinAggregateOutputType = {
id: string | null
title: string | null
adminKeyHash: string | null
memberKeyHash: string | null
autoMoveStale: boolean | null
createdAt: Date | null
updatedAt: Date | null
}
export type BoardMaxAggregateOutputType = {
id: string | null
title: string | null
adminKeyHash: string | null
memberKeyHash: string | null
autoMoveStale: boolean | null
createdAt: Date | null
updatedAt: Date | null
}
export type BoardCountAggregateOutputType = {
id: number
title: number
adminKeyHash: number
memberKeyHash: number
autoMoveStale: number
createdAt: number
updatedAt: number
_all: number
}
export type BoardMinAggregateInputType = {
id?: true
title?: true
adminKeyHash?: true
memberKeyHash?: true
autoMoveStale?: true
createdAt?: true
updatedAt?: true
}
export type BoardMaxAggregateInputType = {
id?: true
title?: true
adminKeyHash?: true
memberKeyHash?: true
autoMoveStale?: true
createdAt?: true
updatedAt?: true
}
export type BoardCountAggregateInputType = {
id?: true
title?: true
adminKeyHash?: true
memberKeyHash?: true
autoMoveStale?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type BoardAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Board to aggregate.
*/
where?: BoardWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Boards to fetch.
*/
orderBy?: BoardOrderByWithRelationInput | BoardOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: BoardWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Boards from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Boards.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned Boards
**/
_count?: true | BoardCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: BoardMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: BoardMaxAggregateInputType
}
export type GetBoardAggregateType<T extends BoardAggregateArgs> = {
[P in keyof T & keyof AggregateBoard]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateBoard[P]>
: GetScalarType<T[P], AggregateBoard[P]>
}
export type BoardGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: BoardWhereInput
orderBy?: BoardOrderByWithAggregationInput | BoardOrderByWithAggregationInput[]
by: BoardScalarFieldEnum[] | BoardScalarFieldEnum
having?: BoardScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: BoardCountAggregateInputType | true
_min?: BoardMinAggregateInputType
_max?: BoardMaxAggregateInputType
}
export type BoardGroupByOutputType = {
id: string
title: string
adminKeyHash: string
memberKeyHash: string
autoMoveStale: boolean
createdAt: Date
updatedAt: Date
_count: BoardCountAggregateOutputType | null
_min: BoardMinAggregateOutputType | null
_max: BoardMaxAggregateOutputType | null
}
type GetBoardGroupByPayload<T extends BoardGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<BoardGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof BoardGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], BoardGroupByOutputType[P]>
: GetScalarType<T[P], BoardGroupByOutputType[P]>
}
>
>
export type BoardSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
title?: boolean
adminKeyHash?: boolean
memberKeyHash?: boolean
autoMoveStale?: boolean
createdAt?: boolean
updatedAt?: boolean
columns?: boolean | Board$columnsArgs<ExtArgs>
activityLogs?: boolean | Board$activityLogsArgs<ExtArgs>
_count?: boolean | BoardCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["board"]>
export type BoardSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
title?: boolean
adminKeyHash?: boolean
memberKeyHash?: boolean
autoMoveStale?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["board"]>
export type BoardSelectScalar = {
id?: boolean
title?: boolean
adminKeyHash?: boolean
memberKeyHash?: boolean
autoMoveStale?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type BoardInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
columns?: boolean | Board$columnsArgs<ExtArgs>
activityLogs?: boolean | Board$activityLogsArgs<ExtArgs>
_count?: boolean | BoardCountOutputTypeDefaultArgs<ExtArgs>
}
export type BoardIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {}
export type $BoardPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "Board"
objects: {
columns: Prisma.$ColumnPayload<ExtArgs>[]
activityLogs: Prisma.$ActivityLogPayload<ExtArgs>[]
}
scalars: $Extensions.GetPayloadResult<{
id: string
title: string
adminKeyHash: string
memberKeyHash: string
autoMoveStale: boolean
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["board"]>
composites: {}
}
type BoardGetPayload<S extends boolean | null | undefined | BoardDefaultArgs> = $Result.GetResult<Prisma.$BoardPayload, S>
type BoardCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<BoardFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: BoardCountAggregateInputType | true
}
export interface BoardDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Board'], meta: { name: 'Board' } }
/**
* Find zero or one Board that matches the filter.
* @param {BoardFindUniqueArgs} args - Arguments to find a Board
* @example
* // Get one Board
* const board = await prisma.board.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends BoardFindUniqueArgs>(args: SelectSubset<T, BoardFindUniqueArgs<ExtArgs>>): Prisma__BoardClient<$Result.GetResult<Prisma.$BoardPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one Board that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {BoardFindUniqueOrThrowArgs} args - Arguments to find a Board
* @example
* // Get one Board
* const board = await prisma.board.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends BoardFindUniqueOrThrowArgs>(args: SelectSubset<T, BoardFindUniqueOrThrowArgs<ExtArgs>>): Prisma__BoardClient<$Result.GetResult<Prisma.$BoardPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first Board 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 {BoardFindFirstArgs} args - Arguments to find a Board
* @example
* // Get one Board
* const board = await prisma.board.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends BoardFindFirstArgs>(args?: SelectSubset<T, BoardFindFirstArgs<ExtArgs>>): Prisma__BoardClient<$Result.GetResult<Prisma.$BoardPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first Board 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 {BoardFindFirstOrThrowArgs} args - Arguments to find a Board
* @example
* // Get one Board
* const board = await prisma.board.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends BoardFindFirstOrThrowArgs>(args?: SelectSubset<T, BoardFindFirstOrThrowArgs<ExtArgs>>): Prisma__BoardClient<$Result.GetResult<Prisma.$BoardPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more Boards 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 {BoardFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Boards
* const boards = await prisma.board.findMany()
*
* // Get first 10 Boards
* const boards = await prisma.board.findMany({ take: 10 })
*
* // Only select the `id`
* const boardWithIdOnly = await prisma.board.findMany({ select: { id: true } })
*
*/
findMany<T extends BoardFindManyArgs>(args?: SelectSubset<T, BoardFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$BoardPayload<ExtArgs>, T, "findMany">>
/**
* Create a Board.
* @param {BoardCreateArgs} args - Arguments to create a Board.
* @example
* // Create one Board
* const Board = await prisma.board.create({
* data: {
* // ... data to create a Board
* }
* })
*
*/
create<T extends BoardCreateArgs>(args: SelectSubset<T, BoardCreateArgs<ExtArgs>>): Prisma__BoardClient<$Result.GetResult<Prisma.$BoardPayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many Boards.
* @param {BoardCreateManyArgs} args - Arguments to create many Boards.
* @example
* // Create many Boards
* const board = await prisma.board.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends BoardCreateManyArgs>(args?: SelectSubset<T, BoardCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many Boards and returns the data saved in the database.
* @param {BoardCreateManyAndReturnArgs} args - Arguments to create many Boards.
* @example
* // Create many Boards
* const board = await prisma.board.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Boards and only return the `id`
* const boardWithIdOnly = await prisma.board.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends BoardCreateManyAndReturnArgs>(args?: SelectSubset<T, BoardCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$BoardPayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a Board.
* @param {BoardDeleteArgs} args - Arguments to delete one Board.
* @example
* // Delete one Board
* const Board = await prisma.board.delete({
* where: {
* // ... filter to delete one Board
* }
* })
*
*/
delete<T extends BoardDeleteArgs>(args: SelectSubset<T, BoardDeleteArgs<ExtArgs>>): Prisma__BoardClient<$Result.GetResult<Prisma.$BoardPayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one Board.
* @param {BoardUpdateArgs} args - Arguments to update one Board.
* @example
* // Update one Board
* const board = await prisma.board.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends BoardUpdateArgs>(args: SelectSubset<T, BoardUpdateArgs<ExtArgs>>): Prisma__BoardClient<$Result.GetResult<Prisma.$BoardPayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more Boards.
* @param {BoardDeleteManyArgs} args - Arguments to filter Boards to delete.
* @example
* // Delete a few Boards
* const { count } = await prisma.board.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends BoardDeleteManyArgs>(args?: SelectSubset<T, BoardDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Boards.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {BoardUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Boards
* const board = await prisma.board.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends BoardUpdateManyArgs>(args: SelectSubset<T, BoardUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one Board.
* @param {BoardUpsertArgs} args - Arguments to update or create a Board.
* @example
* // Update or create a Board
* const board = await prisma.board.upsert({
* create: {
* // ... data to create a Board
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Board we want to update
* }
* })
*/
upsert<T extends BoardUpsertArgs>(args: SelectSubset<T, BoardUpsertArgs<ExtArgs>>): Prisma__BoardClient<$Result.GetResult<Prisma.$BoardPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of Boards.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {BoardCountArgs} args - Arguments to filter Boards to count.
* @example
* // Count the number of Boards
* const count = await prisma.board.count({
* where: {
* // ... the filter for the Boards we want to count
* }
* })
**/
count<T extends BoardCountArgs>(
args?: Subset<T, BoardCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], BoardCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Board.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {BoardAggregateArgs} 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 BoardAggregateArgs>(args: Subset<T, BoardAggregateArgs>): Prisma.PrismaPromise<GetBoardAggregateType<T>>
/**
* Group by Board.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {BoardGroupByArgs} 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 BoardGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: BoardGroupByArgs['orderBy'] }
: { orderBy?: BoardGroupByArgs['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, BoardGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetBoardGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the Board model
*/
readonly fields: BoardFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for Board.
* 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__BoardClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
columns<T extends Board$columnsArgs<ExtArgs> = {}>(args?: Subset<T, Board$columnsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ColumnPayload<ExtArgs>, T, "findMany"> | Null>
activityLogs<T extends Board$activityLogsArgs<ExtArgs> = {}>(args?: Subset<T, Board$activityLogsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ActivityLogPayload<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 Board model
*/
interface BoardFieldRefs {
readonly id: FieldRef<"Board", 'String'>
readonly title: FieldRef<"Board", 'String'>
readonly adminKeyHash: FieldRef<"Board", 'String'>
readonly memberKeyHash: FieldRef<"Board", 'String'>
readonly autoMoveStale: FieldRef<"Board", 'Boolean'>
readonly createdAt: FieldRef<"Board", 'DateTime'>
readonly updatedAt: FieldRef<"Board", 'DateTime'>
}
// Custom InputTypes
/**
* Board findUnique
*/
export type BoardFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Board
*/
select?: BoardSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: BoardInclude<ExtArgs> | null
/**
* Filter, which Board to fetch.
*/
where: BoardWhereUniqueInput
}
/**
* Board findUniqueOrThrow
*/
export type BoardFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Board
*/
select?: BoardSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: BoardInclude<ExtArgs> | null
/**
* Filter, which Board to fetch.
*/
where: BoardWhereUniqueInput
}
/**
* Board findFirst
*/
export type BoardFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Board
*/
select?: BoardSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: BoardInclude<ExtArgs> | null
/**
* Filter, which Board to fetch.
*/
where?: BoardWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Boards to fetch.
*/
orderBy?: BoardOrderByWithRelationInput | BoardOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Boards.
*/
cursor?: BoardWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Boards from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Boards.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Boards.
*/
distinct?: BoardScalarFieldEnum | BoardScalarFieldEnum[]
}
/**
* Board findFirstOrThrow
*/
export type BoardFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Board
*/
select?: BoardSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: BoardInclude<ExtArgs> | null
/**
* Filter, which Board to fetch.
*/
where?: BoardWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Boards to fetch.
*/
orderBy?: BoardOrderByWithRelationInput | BoardOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Boards.
*/
cursor?: BoardWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Boards from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Boards.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Boards.
*/
distinct?: BoardScalarFieldEnum | BoardScalarFieldEnum[]
}
/**
* Board findMany
*/
export type BoardFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Board
*/
select?: BoardSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: BoardInclude<ExtArgs> | null
/**
* Filter, which Boards to fetch.
*/
where?: BoardWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Boards to fetch.
*/
orderBy?: BoardOrderByWithRelationInput | BoardOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing Boards.
*/
cursor?: BoardWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Boards from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Boards.
*/
skip?: number
distinct?: BoardScalarFieldEnum | BoardScalarFieldEnum[]
}
/**
* Board create
*/
export type BoardCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Board
*/
select?: BoardSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: BoardInclude<ExtArgs> | null
/**
* The data needed to create a Board.
*/
data: XOR<BoardCreateInput, BoardUncheckedCreateInput>
}
/**
* Board createMany
*/
export type BoardCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many Boards.
*/
data: BoardCreateManyInput | BoardCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Board createManyAndReturn
*/
export type BoardCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Board
*/
select?: BoardSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many Boards.
*/
data: BoardCreateManyInput | BoardCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Board update
*/
export type BoardUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Board
*/
select?: BoardSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: BoardInclude<ExtArgs> | null
/**
* The data needed to update a Board.
*/
data: XOR<BoardUpdateInput, BoardUncheckedUpdateInput>
/**
* Choose, which Board to update.
*/
where: BoardWhereUniqueInput
}
/**
* Board updateMany
*/
export type BoardUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update Boards.
*/
data: XOR<BoardUpdateManyMutationInput, BoardUncheckedUpdateManyInput>
/**
* Filter which Boards to update
*/
where?: BoardWhereInput
}
/**
* Board upsert
*/
export type BoardUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Board
*/
select?: BoardSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: BoardInclude<ExtArgs> | null
/**
* The filter to search for the Board to update in case it exists.
*/
where: BoardWhereUniqueInput
/**
* In case the Board found by the `where` argument doesn't exist, create a new Board with this data.
*/
create: XOR<BoardCreateInput, BoardUncheckedCreateInput>
/**
* In case the Board was found with the provided `where` argument, update it with this data.
*/
update: XOR<BoardUpdateInput, BoardUncheckedUpdateInput>
}
/**
* Board delete
*/
export type BoardDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Board
*/
select?: BoardSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: BoardInclude<ExtArgs> | null
/**
* Filter which Board to delete.
*/
where: BoardWhereUniqueInput
}
/**
* Board deleteMany
*/
export type BoardDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Boards to delete
*/
where?: BoardWhereInput
}
/**
* Board.columns
*/
export type Board$columnsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Column
*/
select?: ColumnSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: ColumnInclude<ExtArgs> | null
where?: ColumnWhereInput
orderBy?: ColumnOrderByWithRelationInput | ColumnOrderByWithRelationInput[]
cursor?: ColumnWhereUniqueInput
take?: number
skip?: number
distinct?: ColumnScalarFieldEnum | ColumnScalarFieldEnum[]
}
/**
* Board.activityLogs
*/
export type Board$activityLogsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ActivityLog
*/
select?: ActivityLogSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: ActivityLogInclude<ExtArgs> | null
where?: ActivityLogWhereInput
orderBy?: ActivityLogOrderByWithRelationInput | ActivityLogOrderByWithRelationInput[]
cursor?: ActivityLogWhereUniqueInput
take?: number
skip?: number
distinct?: ActivityLogScalarFieldEnum | ActivityLogScalarFieldEnum[]
}
/**
* Board without action
*/
export type BoardDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Board
*/
select?: BoardSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: BoardInclude<ExtArgs> | null
}
/**
* Model Column
*/
export type AggregateColumn = {
_count: ColumnCountAggregateOutputType | null
_avg: ColumnAvgAggregateOutputType | null
_sum: ColumnSumAggregateOutputType | null
_min: ColumnMinAggregateOutputType | null
_max: ColumnMaxAggregateOutputType | null
}
export type ColumnAvgAggregateOutputType = {
order: number | null
maxWipLimit: number | null
autoStaleHours: number | null
}
export type ColumnSumAggregateOutputType = {
order: number | null
maxWipLimit: number | null
autoStaleHours: number | null
}
export type ColumnMinAggregateOutputType = {
id: string | null
boardId: string | null
title: string | null
order: number | null
maxWipLimit: number | null
autoStaleHours: number | null
createdAt: Date | null
updatedAt: Date | null
}
export type ColumnMaxAggregateOutputType = {
id: string | null
boardId: string | null
title: string | null
order: number | null
maxWipLimit: number | null
autoStaleHours: number | null
createdAt: Date | null
updatedAt: Date | null
}
export type ColumnCountAggregateOutputType = {
id: number
boardId: number
title: number
order: number
maxWipLimit: number
autoStaleHours: number
createdAt: number
updatedAt: number
_all: number
}
export type ColumnAvgAggregateInputType = {
order?: true
maxWipLimit?: true
autoStaleHours?: true
}
export type ColumnSumAggregateInputType = {
order?: true
maxWipLimit?: true
autoStaleHours?: true
}
export type ColumnMinAggregateInputType = {
id?: true
boardId?: true
title?: true
order?: true
maxWipLimit?: true
autoStaleHours?: true
createdAt?: true
updatedAt?: true
}
export type ColumnMaxAggregateInputType = {
id?: true
boardId?: true
title?: true
order?: true
maxWipLimit?: true
autoStaleHours?: true
createdAt?: true
updatedAt?: true
}
export type ColumnCountAggregateInputType = {
id?: true
boardId?: true
title?: true
order?: true
maxWipLimit?: true
autoStaleHours?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type ColumnAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Column to aggregate.
*/
where?: ColumnWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Columns to fetch.
*/
orderBy?: ColumnOrderByWithRelationInput | ColumnOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: ColumnWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Columns from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Columns.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned Columns
**/
_count?: true | ColumnCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: ColumnAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: ColumnSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: ColumnMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: ColumnMaxAggregateInputType
}
export type GetColumnAggregateType<T extends ColumnAggregateArgs> = {
[P in keyof T & keyof AggregateColumn]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateColumn[P]>
: GetScalarType<T[P], AggregateColumn[P]>
}
export type ColumnGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: ColumnWhereInput
orderBy?: ColumnOrderByWithAggregationInput | ColumnOrderByWithAggregationInput[]
by: ColumnScalarFieldEnum[] | ColumnScalarFieldEnum
having?: ColumnScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: ColumnCountAggregateInputType | true
_avg?: ColumnAvgAggregateInputType
_sum?: ColumnSumAggregateInputType
_min?: ColumnMinAggregateInputType
_max?: ColumnMaxAggregateInputType
}
export type ColumnGroupByOutputType = {
id: string
boardId: string
title: string
order: number
maxWipLimit: number
autoStaleHours: number
createdAt: Date
updatedAt: Date
_count: ColumnCountAggregateOutputType | null
_avg: ColumnAvgAggregateOutputType | null
_sum: ColumnSumAggregateOutputType | null
_min: ColumnMinAggregateOutputType | null
_max: ColumnMaxAggregateOutputType | null
}
type GetColumnGroupByPayload<T extends ColumnGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<ColumnGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof ColumnGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], ColumnGroupByOutputType[P]>
: GetScalarType<T[P], ColumnGroupByOutputType[P]>
}
>
>
export type ColumnSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
boardId?: boolean
title?: boolean
order?: boolean
maxWipLimit?: boolean
autoStaleHours?: boolean
createdAt?: boolean
updatedAt?: boolean
board?: boolean | BoardDefaultArgs<ExtArgs>
tickets?: boolean | Column$ticketsArgs<ExtArgs>
_count?: boolean | ColumnCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["column"]>
export type ColumnSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
boardId?: boolean
title?: boolean
order?: boolean
maxWipLimit?: boolean
autoStaleHours?: boolean
createdAt?: boolean
updatedAt?: boolean
board?: boolean | BoardDefaultArgs<ExtArgs>
}, ExtArgs["result"]["column"]>
export type ColumnSelectScalar = {
id?: boolean
boardId?: boolean
title?: boolean
order?: boolean
maxWipLimit?: boolean
autoStaleHours?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type ColumnInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
board?: boolean | BoardDefaultArgs<ExtArgs>
tickets?: boolean | Column$ticketsArgs<ExtArgs>
_count?: boolean | ColumnCountOutputTypeDefaultArgs<ExtArgs>
}
export type ColumnIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
board?: boolean | BoardDefaultArgs<ExtArgs>
}
export type $ColumnPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "Column"
objects: {
board: Prisma.$BoardPayload<ExtArgs>
tickets: Prisma.$TicketPayload<ExtArgs>[]
}
scalars: $Extensions.GetPayloadResult<{
id: string
boardId: string
title: string
order: number
maxWipLimit: number
autoStaleHours: number
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["column"]>
composites: {}
}
type ColumnGetPayload<S extends boolean | null | undefined | ColumnDefaultArgs> = $Result.GetResult<Prisma.$ColumnPayload, S>
type ColumnCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<ColumnFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: ColumnCountAggregateInputType | true
}
export interface ColumnDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Column'], meta: { name: 'Column' } }
/**
* Find zero or one Column that matches the filter.
* @param {ColumnFindUniqueArgs} args - Arguments to find a Column
* @example
* // Get one Column
* const column = await prisma.column.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends ColumnFindUniqueArgs>(args: SelectSubset<T, ColumnFindUniqueArgs<ExtArgs>>): Prisma__ColumnClient<$Result.GetResult<Prisma.$ColumnPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one Column that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {ColumnFindUniqueOrThrowArgs} args - Arguments to find a Column
* @example
* // Get one Column
* const column = await prisma.column.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends ColumnFindUniqueOrThrowArgs>(args: SelectSubset<T, ColumnFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ColumnClient<$Result.GetResult<Prisma.$ColumnPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first Column 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 {ColumnFindFirstArgs} args - Arguments to find a Column
* @example
* // Get one Column
* const column = await prisma.column.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends ColumnFindFirstArgs>(args?: SelectSubset<T, ColumnFindFirstArgs<ExtArgs>>): Prisma__ColumnClient<$Result.GetResult<Prisma.$ColumnPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first Column 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 {ColumnFindFirstOrThrowArgs} args - Arguments to find a Column
* @example
* // Get one Column
* const column = await prisma.column.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends ColumnFindFirstOrThrowArgs>(args?: SelectSubset<T, ColumnFindFirstOrThrowArgs<ExtArgs>>): Prisma__ColumnClient<$Result.GetResult<Prisma.$ColumnPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more Columns 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 {ColumnFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Columns
* const columns = await prisma.column.findMany()
*
* // Get first 10 Columns
* const columns = await prisma.column.findMany({ take: 10 })
*
* // Only select the `id`
* const columnWithIdOnly = await prisma.column.findMany({ select: { id: true } })
*
*/
findMany<T extends ColumnFindManyArgs>(args?: SelectSubset<T, ColumnFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ColumnPayload<ExtArgs>, T, "findMany">>
/**
* Create a Column.
* @param {ColumnCreateArgs} args - Arguments to create a Column.
* @example
* // Create one Column
* const Column = await prisma.column.create({
* data: {
* // ... data to create a Column
* }
* })
*
*/
create<T extends ColumnCreateArgs>(args: SelectSubset<T, ColumnCreateArgs<ExtArgs>>): Prisma__ColumnClient<$Result.GetResult<Prisma.$ColumnPayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many Columns.
* @param {ColumnCreateManyArgs} args - Arguments to create many Columns.
* @example
* // Create many Columns
* const column = await prisma.column.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends ColumnCreateManyArgs>(args?: SelectSubset<T, ColumnCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many Columns and returns the data saved in the database.
* @param {ColumnCreateManyAndReturnArgs} args - Arguments to create many Columns.
* @example
* // Create many Columns
* const column = await prisma.column.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Columns and only return the `id`
* const columnWithIdOnly = await prisma.column.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends ColumnCreateManyAndReturnArgs>(args?: SelectSubset<T, ColumnCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ColumnPayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a Column.
* @param {ColumnDeleteArgs} args - Arguments to delete one Column.
* @example
* // Delete one Column
* const Column = await prisma.column.delete({
* where: {
* // ... filter to delete one Column
* }
* })
*
*/
delete<T extends ColumnDeleteArgs>(args: SelectSubset<T, ColumnDeleteArgs<ExtArgs>>): Prisma__ColumnClient<$Result.GetResult<Prisma.$ColumnPayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one Column.
* @param {ColumnUpdateArgs} args - Arguments to update one Column.
* @example
* // Update one Column
* const column = await prisma.column.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends ColumnUpdateArgs>(args: SelectSubset<T, ColumnUpdateArgs<ExtArgs>>): Prisma__ColumnClient<$Result.GetResult<Prisma.$ColumnPayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more Columns.
* @param {ColumnDeleteManyArgs} args - Arguments to filter Columns to delete.
* @example
* // Delete a few Columns
* const { count } = await prisma.column.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends ColumnDeleteManyArgs>(args?: SelectSubset<T, ColumnDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Columns.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ColumnUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Columns
* const column = await prisma.column.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends ColumnUpdateManyArgs>(args: SelectSubset<T, ColumnUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one Column.
* @param {ColumnUpsertArgs} args - Arguments to update or create a Column.
* @example
* // Update or create a Column
* const column = await prisma.column.upsert({
* create: {
* // ... data to create a Column
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Column we want to update
* }
* })
*/
upsert<T extends ColumnUpsertArgs>(args: SelectSubset<T, ColumnUpsertArgs<ExtArgs>>): Prisma__ColumnClient<$Result.GetResult<Prisma.$ColumnPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of Columns.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ColumnCountArgs} args - Arguments to filter Columns to count.
* @example
* // Count the number of Columns
* const count = await prisma.column.count({
* where: {
* // ... the filter for the Columns we want to count
* }
* })
**/
count<T extends ColumnCountArgs>(
args?: Subset<T, ColumnCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], ColumnCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Column.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ColumnAggregateArgs} 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 ColumnAggregateArgs>(args: Subset<T, ColumnAggregateArgs>): Prisma.PrismaPromise<GetColumnAggregateType<T>>
/**
* Group by Column.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ColumnGroupByArgs} 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 ColumnGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: ColumnGroupByArgs['orderBy'] }
: { orderBy?: ColumnGroupByArgs['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, ColumnGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetColumnGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the Column model
*/
readonly fields: ColumnFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for Column.
* 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__ColumnClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
board<T extends BoardDefaultArgs<ExtArgs> = {}>(args?: Subset<T, BoardDefaultArgs<ExtArgs>>): Prisma__BoardClient<$Result.GetResult<Prisma.$BoardPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
tickets<T extends Column$ticketsArgs<ExtArgs> = {}>(args?: Subset<T, Column$ticketsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$TicketPayload<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 Column model
*/
interface ColumnFieldRefs {
readonly id: FieldRef<"Column", 'String'>
readonly boardId: FieldRef<"Column", 'String'>
readonly title: FieldRef<"Column", 'String'>
readonly order: FieldRef<"Column", 'Int'>
readonly maxWipLimit: FieldRef<"Column", 'Int'>
readonly autoStaleHours: FieldRef<"Column", 'Int'>
readonly createdAt: FieldRef<"Column", 'DateTime'>
readonly updatedAt: FieldRef<"Column", 'DateTime'>
}
// Custom InputTypes
/**
* Column findUnique
*/
export type ColumnFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Column
*/
select?: ColumnSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: ColumnInclude<ExtArgs> | null
/**
* Filter, which Column to fetch.
*/
where: ColumnWhereUniqueInput
}
/**
* Column findUniqueOrThrow
*/
export type ColumnFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Column
*/
select?: ColumnSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: ColumnInclude<ExtArgs> | null
/**
* Filter, which Column to fetch.
*/
where: ColumnWhereUniqueInput
}
/**
* Column findFirst
*/
export type ColumnFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Column
*/
select?: ColumnSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: ColumnInclude<ExtArgs> | null
/**
* Filter, which Column to fetch.
*/
where?: ColumnWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Columns to fetch.
*/
orderBy?: ColumnOrderByWithRelationInput | ColumnOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Columns.
*/
cursor?: ColumnWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Columns from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Columns.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Columns.
*/
distinct?: ColumnScalarFieldEnum | ColumnScalarFieldEnum[]
}
/**
* Column findFirstOrThrow
*/
export type ColumnFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Column
*/
select?: ColumnSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: ColumnInclude<ExtArgs> | null
/**
* Filter, which Column to fetch.
*/
where?: ColumnWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Columns to fetch.
*/
orderBy?: ColumnOrderByWithRelationInput | ColumnOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Columns.
*/
cursor?: ColumnWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Columns from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Columns.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Columns.
*/
distinct?: ColumnScalarFieldEnum | ColumnScalarFieldEnum[]
}
/**
* Column findMany
*/
export type ColumnFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Column
*/
select?: ColumnSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: ColumnInclude<ExtArgs> | null
/**
* Filter, which Columns to fetch.
*/
where?: ColumnWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Columns to fetch.
*/
orderBy?: ColumnOrderByWithRelationInput | ColumnOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing Columns.
*/
cursor?: ColumnWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Columns from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Columns.
*/
skip?: number
distinct?: ColumnScalarFieldEnum | ColumnScalarFieldEnum[]
}
/**
* Column create
*/
export type ColumnCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Column
*/
select?: ColumnSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: ColumnInclude<ExtArgs> | null
/**
* The data needed to create a Column.
*/
data: XOR<ColumnCreateInput, ColumnUncheckedCreateInput>
}
/**
* Column createMany
*/
export type ColumnCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many Columns.
*/
data: ColumnCreateManyInput | ColumnCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Column createManyAndReturn
*/
export type ColumnCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Column
*/
select?: ColumnSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many Columns.
*/
data: ColumnCreateManyInput | ColumnCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: ColumnIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* Column update
*/
export type ColumnUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Column
*/
select?: ColumnSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: ColumnInclude<ExtArgs> | null
/**
* The data needed to update a Column.
*/
data: XOR<ColumnUpdateInput, ColumnUncheckedUpdateInput>
/**
* Choose, which Column to update.
*/
where: ColumnWhereUniqueInput
}
/**
* Column updateMany
*/
export type ColumnUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update Columns.
*/
data: XOR<ColumnUpdateManyMutationInput, ColumnUncheckedUpdateManyInput>
/**
* Filter which Columns to update
*/
where?: ColumnWhereInput
}
/**
* Column upsert
*/
export type ColumnUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Column
*/
select?: ColumnSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: ColumnInclude<ExtArgs> | null
/**
* The filter to search for the Column to update in case it exists.
*/
where: ColumnWhereUniqueInput
/**
* In case the Column found by the `where` argument doesn't exist, create a new Column with this data.
*/
create: XOR<ColumnCreateInput, ColumnUncheckedCreateInput>
/**
* In case the Column was found with the provided `where` argument, update it with this data.
*/
update: XOR<ColumnUpdateInput, ColumnUncheckedUpdateInput>
}
/**
* Column delete
*/
export type ColumnDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Column
*/
select?: ColumnSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: ColumnInclude<ExtArgs> | null
/**
* Filter which Column to delete.
*/
where: ColumnWhereUniqueInput
}
/**
* Column deleteMany
*/
export type ColumnDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Columns to delete
*/
where?: ColumnWhereInput
}
/**
* Column.tickets
*/
export type Column$ticketsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Ticket
*/
select?: TicketSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: TicketInclude<ExtArgs> | null
where?: TicketWhereInput
orderBy?: TicketOrderByWithRelationInput | TicketOrderByWithRelationInput[]
cursor?: TicketWhereUniqueInput
take?: number
skip?: number
distinct?: TicketScalarFieldEnum | TicketScalarFieldEnum[]
}
/**
* Column without action
*/
export type ColumnDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Column
*/
select?: ColumnSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: ColumnInclude<ExtArgs> | null
}
/**
* Model Ticket
*/
export type AggregateTicket = {
_count: TicketCountAggregateOutputType | null
_avg: TicketAvgAggregateOutputType | null
_sum: TicketSumAggregateOutputType | null
_min: TicketMinAggregateOutputType | null
_max: TicketMaxAggregateOutputType | null
}
export type TicketAvgAggregateOutputType = {
order: number | null
}
export type TicketSumAggregateOutputType = {
order: number | null
}
export type TicketMinAggregateOutputType = {
id: string | null
columnId: string | null
title: string | null
description: string | null
order: number | null
priority: $Enums.Priority | null
tags: string | null
subtasks: string | null
dueDate: string | null
isBlocked: boolean | null
blockedReason: string | null
assignee: string | null
movedAt: Date | null
createdAt: Date | null
updatedAt: Date | null
}
export type TicketMaxAggregateOutputType = {
id: string | null
columnId: string | null
title: string | null
description: string | null
order: number | null
priority: $Enums.Priority | null
tags: string | null
subtasks: string | null
dueDate: string | null
isBlocked: boolean | null
blockedReason: string | null
assignee: string | null
movedAt: Date | null
createdAt: Date | null
updatedAt: Date | null
}
export type TicketCountAggregateOutputType = {
id: number
columnId: number
title: number
description: number
order: number
priority: number
tags: number
subtasks: number
dueDate: number
isBlocked: number
blockedReason: number
assignee: number
movedAt: number
createdAt: number
updatedAt: number
_all: number
}
export type TicketAvgAggregateInputType = {
order?: true
}
export type TicketSumAggregateInputType = {
order?: true
}
export type TicketMinAggregateInputType = {
id?: true
columnId?: true
title?: true
description?: true
order?: true
priority?: true
tags?: true
subtasks?: true
dueDate?: true
isBlocked?: true
blockedReason?: true
assignee?: true
movedAt?: true
createdAt?: true
updatedAt?: true
}
export type TicketMaxAggregateInputType = {
id?: true
columnId?: true
title?: true
description?: true
order?: true
priority?: true
tags?: true
subtasks?: true
dueDate?: true
isBlocked?: true
blockedReason?: true
assignee?: true
movedAt?: true
createdAt?: true
updatedAt?: true
}
export type TicketCountAggregateInputType = {
id?: true
columnId?: true
title?: true
description?: true
order?: true
priority?: true
tags?: true
subtasks?: true
dueDate?: true
isBlocked?: true
blockedReason?: true
assignee?: true
movedAt?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type TicketAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Ticket to aggregate.
*/
where?: TicketWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Tickets to fetch.
*/
orderBy?: TicketOrderByWithRelationInput | TicketOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: TicketWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Tickets from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Tickets.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned Tickets
**/
_count?: true | TicketCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: TicketAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: TicketSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: TicketMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: TicketMaxAggregateInputType
}
export type GetTicketAggregateType<T extends TicketAggregateArgs> = {
[P in keyof T & keyof AggregateTicket]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateTicket[P]>
: GetScalarType<T[P], AggregateTicket[P]>
}
export type TicketGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: TicketWhereInput
orderBy?: TicketOrderByWithAggregationInput | TicketOrderByWithAggregationInput[]
by: TicketScalarFieldEnum[] | TicketScalarFieldEnum
having?: TicketScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: TicketCountAggregateInputType | true
_avg?: TicketAvgAggregateInputType
_sum?: TicketSumAggregateInputType
_min?: TicketMinAggregateInputType
_max?: TicketMaxAggregateInputType
}
export type TicketGroupByOutputType = {
id: string
columnId: string
title: string
description: string
order: number
priority: $Enums.Priority
tags: string
subtasks: string
dueDate: string | null
isBlocked: boolean
blockedReason: string | null
assignee: string | null
movedAt: Date
createdAt: Date
updatedAt: Date
_count: TicketCountAggregateOutputType | null
_avg: TicketAvgAggregateOutputType | null
_sum: TicketSumAggregateOutputType | null
_min: TicketMinAggregateOutputType | null
_max: TicketMaxAggregateOutputType | null
}
type GetTicketGroupByPayload<T extends TicketGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<TicketGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof TicketGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], TicketGroupByOutputType[P]>
: GetScalarType<T[P], TicketGroupByOutputType[P]>
}
>
>
export type TicketSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
columnId?: boolean
title?: boolean
description?: boolean
order?: boolean
priority?: boolean
tags?: boolean
subtasks?: boolean
dueDate?: boolean
isBlocked?: boolean
blockedReason?: boolean
assignee?: boolean
movedAt?: boolean
createdAt?: boolean
updatedAt?: boolean
column?: boolean | ColumnDefaultArgs<ExtArgs>
activityLogs?: boolean | Ticket$activityLogsArgs<ExtArgs>
_count?: boolean | TicketCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["ticket"]>
export type TicketSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
columnId?: boolean
title?: boolean
description?: boolean
order?: boolean
priority?: boolean
tags?: boolean
subtasks?: boolean
dueDate?: boolean
isBlocked?: boolean
blockedReason?: boolean
assignee?: boolean
movedAt?: boolean
createdAt?: boolean
updatedAt?: boolean
column?: boolean | ColumnDefaultArgs<ExtArgs>
}, ExtArgs["result"]["ticket"]>
export type TicketSelectScalar = {
id?: boolean
columnId?: boolean
title?: boolean
description?: boolean
order?: boolean
priority?: boolean
tags?: boolean
subtasks?: boolean
dueDate?: boolean
isBlocked?: boolean
blockedReason?: boolean
assignee?: boolean
movedAt?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type TicketInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
column?: boolean | ColumnDefaultArgs<ExtArgs>
activityLogs?: boolean | Ticket$activityLogsArgs<ExtArgs>
_count?: boolean | TicketCountOutputTypeDefaultArgs<ExtArgs>
}
export type TicketIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
column?: boolean | ColumnDefaultArgs<ExtArgs>
}
export type $TicketPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "Ticket"
objects: {
column: Prisma.$ColumnPayload<ExtArgs>
activityLogs: Prisma.$ActivityLogPayload<ExtArgs>[]
}
scalars: $Extensions.GetPayloadResult<{
id: string
columnId: string
title: string
description: string
order: number
priority: $Enums.Priority
tags: string
subtasks: string
dueDate: string | null
isBlocked: boolean
blockedReason: string | null
assignee: string | null
movedAt: Date
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["ticket"]>
composites: {}
}
type TicketGetPayload<S extends boolean | null | undefined | TicketDefaultArgs> = $Result.GetResult<Prisma.$TicketPayload, S>
type TicketCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<TicketFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: TicketCountAggregateInputType | true
}
export interface TicketDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Ticket'], meta: { name: 'Ticket' } }
/**
* Find zero or one Ticket that matches the filter.
* @param {TicketFindUniqueArgs} args - Arguments to find a Ticket
* @example
* // Get one Ticket
* const ticket = await prisma.ticket.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends TicketFindUniqueArgs>(args: SelectSubset<T, TicketFindUniqueArgs<ExtArgs>>): Prisma__TicketClient<$Result.GetResult<Prisma.$TicketPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one Ticket that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {TicketFindUniqueOrThrowArgs} args - Arguments to find a Ticket
* @example
* // Get one Ticket
* const ticket = await prisma.ticket.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends TicketFindUniqueOrThrowArgs>(args: SelectSubset<T, TicketFindUniqueOrThrowArgs<ExtArgs>>): Prisma__TicketClient<$Result.GetResult<Prisma.$TicketPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first Ticket 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 {TicketFindFirstArgs} args - Arguments to find a Ticket
* @example
* // Get one Ticket
* const ticket = await prisma.ticket.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends TicketFindFirstArgs>(args?: SelectSubset<T, TicketFindFirstArgs<ExtArgs>>): Prisma__TicketClient<$Result.GetResult<Prisma.$TicketPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first Ticket 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 {TicketFindFirstOrThrowArgs} args - Arguments to find a Ticket
* @example
* // Get one Ticket
* const ticket = await prisma.ticket.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends TicketFindFirstOrThrowArgs>(args?: SelectSubset<T, TicketFindFirstOrThrowArgs<ExtArgs>>): Prisma__TicketClient<$Result.GetResult<Prisma.$TicketPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more Tickets 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 {TicketFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Tickets
* const tickets = await prisma.ticket.findMany()
*
* // Get first 10 Tickets
* const tickets = await prisma.ticket.findMany({ take: 10 })
*
* // Only select the `id`
* const ticketWithIdOnly = await prisma.ticket.findMany({ select: { id: true } })
*
*/
findMany<T extends TicketFindManyArgs>(args?: SelectSubset<T, TicketFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$TicketPayload<ExtArgs>, T, "findMany">>
/**
* Create a Ticket.
* @param {TicketCreateArgs} args - Arguments to create a Ticket.
* @example
* // Create one Ticket
* const Ticket = await prisma.ticket.create({
* data: {
* // ... data to create a Ticket
* }
* })
*
*/
create<T extends TicketCreateArgs>(args: SelectSubset<T, TicketCreateArgs<ExtArgs>>): Prisma__TicketClient<$Result.GetResult<Prisma.$TicketPayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many Tickets.
* @param {TicketCreateManyArgs} args - Arguments to create many Tickets.
* @example
* // Create many Tickets
* const ticket = await prisma.ticket.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends TicketCreateManyArgs>(args?: SelectSubset<T, TicketCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many Tickets and returns the data saved in the database.
* @param {TicketCreateManyAndReturnArgs} args - Arguments to create many Tickets.
* @example
* // Create many Tickets
* const ticket = await prisma.ticket.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Tickets and only return the `id`
* const ticketWithIdOnly = await prisma.ticket.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends TicketCreateManyAndReturnArgs>(args?: SelectSubset<T, TicketCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$TicketPayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a Ticket.
* @param {TicketDeleteArgs} args - Arguments to delete one Ticket.
* @example
* // Delete one Ticket
* const Ticket = await prisma.ticket.delete({
* where: {
* // ... filter to delete one Ticket
* }
* })
*
*/
delete<T extends TicketDeleteArgs>(args: SelectSubset<T, TicketDeleteArgs<ExtArgs>>): Prisma__TicketClient<$Result.GetResult<Prisma.$TicketPayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one Ticket.
* @param {TicketUpdateArgs} args - Arguments to update one Ticket.
* @example
* // Update one Ticket
* const ticket = await prisma.ticket.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends TicketUpdateArgs>(args: SelectSubset<T, TicketUpdateArgs<ExtArgs>>): Prisma__TicketClient<$Result.GetResult<Prisma.$TicketPayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more Tickets.
* @param {TicketDeleteManyArgs} args - Arguments to filter Tickets to delete.
* @example
* // Delete a few Tickets
* const { count } = await prisma.ticket.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends TicketDeleteManyArgs>(args?: SelectSubset<T, TicketDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Tickets.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {TicketUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Tickets
* const ticket = await prisma.ticket.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends TicketUpdateManyArgs>(args: SelectSubset<T, TicketUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one Ticket.
* @param {TicketUpsertArgs} args - Arguments to update or create a Ticket.
* @example
* // Update or create a Ticket
* const ticket = await prisma.ticket.upsert({
* create: {
* // ... data to create a Ticket
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Ticket we want to update
* }
* })
*/
upsert<T extends TicketUpsertArgs>(args: SelectSubset<T, TicketUpsertArgs<ExtArgs>>): Prisma__TicketClient<$Result.GetResult<Prisma.$TicketPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of Tickets.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {TicketCountArgs} args - Arguments to filter Tickets to count.
* @example
* // Count the number of Tickets
* const count = await prisma.ticket.count({
* where: {
* // ... the filter for the Tickets we want to count
* }
* })
**/
count<T extends TicketCountArgs>(
args?: Subset<T, TicketCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], TicketCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Ticket.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {TicketAggregateArgs} 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 TicketAggregateArgs>(args: Subset<T, TicketAggregateArgs>): Prisma.PrismaPromise<GetTicketAggregateType<T>>
/**
* Group by Ticket.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {TicketGroupByArgs} 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 TicketGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: TicketGroupByArgs['orderBy'] }
: { orderBy?: TicketGroupByArgs['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, TicketGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTicketGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the Ticket model
*/
readonly fields: TicketFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for Ticket.
* 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__TicketClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
column<T extends ColumnDefaultArgs<ExtArgs> = {}>(args?: Subset<T, ColumnDefaultArgs<ExtArgs>>): Prisma__ColumnClient<$Result.GetResult<Prisma.$ColumnPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
activityLogs<T extends Ticket$activityLogsArgs<ExtArgs> = {}>(args?: Subset<T, Ticket$activityLogsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ActivityLogPayload<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 Ticket model
*/
interface TicketFieldRefs {
readonly id: FieldRef<"Ticket", 'String'>
readonly columnId: FieldRef<"Ticket", 'String'>
readonly title: FieldRef<"Ticket", 'String'>
readonly description: FieldRef<"Ticket", 'String'>
readonly order: FieldRef<"Ticket", 'Int'>
readonly priority: FieldRef<"Ticket", 'Priority'>
readonly tags: FieldRef<"Ticket", 'String'>
readonly subtasks: FieldRef<"Ticket", 'String'>
readonly dueDate: FieldRef<"Ticket", 'String'>
readonly isBlocked: FieldRef<"Ticket", 'Boolean'>
readonly blockedReason: FieldRef<"Ticket", 'String'>
readonly assignee: FieldRef<"Ticket", 'String'>
readonly movedAt: FieldRef<"Ticket", 'DateTime'>
readonly createdAt: FieldRef<"Ticket", 'DateTime'>
readonly updatedAt: FieldRef<"Ticket", 'DateTime'>
}
// Custom InputTypes
/**
* Ticket findUnique
*/
export type TicketFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Ticket
*/
select?: TicketSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: TicketInclude<ExtArgs> | null
/**
* Filter, which Ticket to fetch.
*/
where: TicketWhereUniqueInput
}
/**
* Ticket findUniqueOrThrow
*/
export type TicketFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Ticket
*/
select?: TicketSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: TicketInclude<ExtArgs> | null
/**
* Filter, which Ticket to fetch.
*/
where: TicketWhereUniqueInput
}
/**
* Ticket findFirst
*/
export type TicketFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Ticket
*/
select?: TicketSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: TicketInclude<ExtArgs> | null
/**
* Filter, which Ticket to fetch.
*/
where?: TicketWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Tickets to fetch.
*/
orderBy?: TicketOrderByWithRelationInput | TicketOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Tickets.
*/
cursor?: TicketWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Tickets from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Tickets.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Tickets.
*/
distinct?: TicketScalarFieldEnum | TicketScalarFieldEnum[]
}
/**
* Ticket findFirstOrThrow
*/
export type TicketFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Ticket
*/
select?: TicketSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: TicketInclude<ExtArgs> | null
/**
* Filter, which Ticket to fetch.
*/
where?: TicketWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Tickets to fetch.
*/
orderBy?: TicketOrderByWithRelationInput | TicketOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Tickets.
*/
cursor?: TicketWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Tickets from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Tickets.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Tickets.
*/
distinct?: TicketScalarFieldEnum | TicketScalarFieldEnum[]
}
/**
* Ticket findMany
*/
export type TicketFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Ticket
*/
select?: TicketSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: TicketInclude<ExtArgs> | null
/**
* Filter, which Tickets to fetch.
*/
where?: TicketWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Tickets to fetch.
*/
orderBy?: TicketOrderByWithRelationInput | TicketOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing Tickets.
*/
cursor?: TicketWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Tickets from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Tickets.
*/
skip?: number
distinct?: TicketScalarFieldEnum | TicketScalarFieldEnum[]
}
/**
* Ticket create
*/
export type TicketCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Ticket
*/
select?: TicketSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: TicketInclude<ExtArgs> | null
/**
* The data needed to create a Ticket.
*/
data: XOR<TicketCreateInput, TicketUncheckedCreateInput>
}
/**
* Ticket createMany
*/
export type TicketCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many Tickets.
*/
data: TicketCreateManyInput | TicketCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Ticket createManyAndReturn
*/
export type TicketCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Ticket
*/
select?: TicketSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many Tickets.
*/
data: TicketCreateManyInput | TicketCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: TicketIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* Ticket update
*/
export type TicketUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Ticket
*/
select?: TicketSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: TicketInclude<ExtArgs> | null
/**
* The data needed to update a Ticket.
*/
data: XOR<TicketUpdateInput, TicketUncheckedUpdateInput>
/**
* Choose, which Ticket to update.
*/
where: TicketWhereUniqueInput
}
/**
* Ticket updateMany
*/
export type TicketUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update Tickets.
*/
data: XOR<TicketUpdateManyMutationInput, TicketUncheckedUpdateManyInput>
/**
* Filter which Tickets to update
*/
where?: TicketWhereInput
}
/**
* Ticket upsert
*/
export type TicketUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Ticket
*/
select?: TicketSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: TicketInclude<ExtArgs> | null
/**
* The filter to search for the Ticket to update in case it exists.
*/
where: TicketWhereUniqueInput
/**
* In case the Ticket found by the `where` argument doesn't exist, create a new Ticket with this data.
*/
create: XOR<TicketCreateInput, TicketUncheckedCreateInput>
/**
* In case the Ticket was found with the provided `where` argument, update it with this data.
*/
update: XOR<TicketUpdateInput, TicketUncheckedUpdateInput>
}
/**
* Ticket delete
*/
export type TicketDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Ticket
*/
select?: TicketSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: TicketInclude<ExtArgs> | null
/**
* Filter which Ticket to delete.
*/
where: TicketWhereUniqueInput
}
/**
* Ticket deleteMany
*/
export type TicketDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Tickets to delete
*/
where?: TicketWhereInput
}
/**
* Ticket.activityLogs
*/
export type Ticket$activityLogsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ActivityLog
*/
select?: ActivityLogSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: ActivityLogInclude<ExtArgs> | null
where?: ActivityLogWhereInput
orderBy?: ActivityLogOrderByWithRelationInput | ActivityLogOrderByWithRelationInput[]
cursor?: ActivityLogWhereUniqueInput
take?: number
skip?: number
distinct?: ActivityLogScalarFieldEnum | ActivityLogScalarFieldEnum[]
}
/**
* Ticket without action
*/
export type TicketDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Ticket
*/
select?: TicketSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: TicketInclude<ExtArgs> | null
}
/**
* Model ActivityLog
*/
export type AggregateActivityLog = {
_count: ActivityLogCountAggregateOutputType | null
_min: ActivityLogMinAggregateOutputType | null
_max: ActivityLogMaxAggregateOutputType | null
}
export type ActivityLogMinAggregateOutputType = {
id: string | null
boardId: string | null
ticketId: string | null
ticketTitle: string | null
action: string | null
fromColumnTitle: string | null
toColumnTitle: string | null
userName: string | null
details: string | null
createdAt: Date | null
}
export type ActivityLogMaxAggregateOutputType = {
id: string | null
boardId: string | null
ticketId: string | null
ticketTitle: string | null
action: string | null
fromColumnTitle: string | null
toColumnTitle: string | null
userName: string | null
details: string | null
createdAt: Date | null
}
export type ActivityLogCountAggregateOutputType = {
id: number
boardId: number
ticketId: number
ticketTitle: number
action: number
fromColumnTitle: number
toColumnTitle: number
userName: number
details: number
createdAt: number
_all: number
}
export type ActivityLogMinAggregateInputType = {
id?: true
boardId?: true
ticketId?: true
ticketTitle?: true
action?: true
fromColumnTitle?: true
toColumnTitle?: true
userName?: true
details?: true
createdAt?: true
}
export type ActivityLogMaxAggregateInputType = {
id?: true
boardId?: true
ticketId?: true
ticketTitle?: true
action?: true
fromColumnTitle?: true
toColumnTitle?: true
userName?: true
details?: true
createdAt?: true
}
export type ActivityLogCountAggregateInputType = {
id?: true
boardId?: true
ticketId?: true
ticketTitle?: true
action?: true
fromColumnTitle?: true
toColumnTitle?: true
userName?: true
details?: true
createdAt?: true
_all?: true
}
export type ActivityLogAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which ActivityLog to aggregate.
*/
where?: ActivityLogWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of ActivityLogs to fetch.
*/
orderBy?: ActivityLogOrderByWithRelationInput | ActivityLogOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: ActivityLogWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` ActivityLogs from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` ActivityLogs.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned ActivityLogs
**/
_count?: true | ActivityLogCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: ActivityLogMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: ActivityLogMaxAggregateInputType
}
export type GetActivityLogAggregateType<T extends ActivityLogAggregateArgs> = {
[P in keyof T & keyof AggregateActivityLog]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateActivityLog[P]>
: GetScalarType<T[P], AggregateActivityLog[P]>
}
export type ActivityLogGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: ActivityLogWhereInput
orderBy?: ActivityLogOrderByWithAggregationInput | ActivityLogOrderByWithAggregationInput[]
by: ActivityLogScalarFieldEnum[] | ActivityLogScalarFieldEnum
having?: ActivityLogScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: ActivityLogCountAggregateInputType | true
_min?: ActivityLogMinAggregateInputType
_max?: ActivityLogMaxAggregateInputType
}
export type ActivityLogGroupByOutputType = {
id: string
boardId: string
ticketId: string | null
ticketTitle: string
action: string
fromColumnTitle: string | null
toColumnTitle: string | null
userName: string
details: string | null
createdAt: Date
_count: ActivityLogCountAggregateOutputType | null
_min: ActivityLogMinAggregateOutputType | null
_max: ActivityLogMaxAggregateOutputType | null
}
type GetActivityLogGroupByPayload<T extends ActivityLogGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<ActivityLogGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof ActivityLogGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], ActivityLogGroupByOutputType[P]>
: GetScalarType<T[P], ActivityLogGroupByOutputType[P]>
}
>
>
export type ActivityLogSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
boardId?: boolean
ticketId?: boolean
ticketTitle?: boolean
action?: boolean
fromColumnTitle?: boolean
toColumnTitle?: boolean
userName?: boolean
details?: boolean
createdAt?: boolean
board?: boolean | BoardDefaultArgs<ExtArgs>
ticket?: boolean | ActivityLog$ticketArgs<ExtArgs>
}, ExtArgs["result"]["activityLog"]>
export type ActivityLogSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
boardId?: boolean
ticketId?: boolean
ticketTitle?: boolean
action?: boolean
fromColumnTitle?: boolean
toColumnTitle?: boolean
userName?: boolean
details?: boolean
createdAt?: boolean
board?: boolean | BoardDefaultArgs<ExtArgs>
ticket?: boolean | ActivityLog$ticketArgs<ExtArgs>
}, ExtArgs["result"]["activityLog"]>
export type ActivityLogSelectScalar = {
id?: boolean
boardId?: boolean
ticketId?: boolean
ticketTitle?: boolean
action?: boolean
fromColumnTitle?: boolean
toColumnTitle?: boolean
userName?: boolean
details?: boolean
createdAt?: boolean
}
export type ActivityLogInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
board?: boolean | BoardDefaultArgs<ExtArgs>
ticket?: boolean | ActivityLog$ticketArgs<ExtArgs>
}
export type ActivityLogIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
board?: boolean | BoardDefaultArgs<ExtArgs>
ticket?: boolean | ActivityLog$ticketArgs<ExtArgs>
}
export type $ActivityLogPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "ActivityLog"
objects: {
board: Prisma.$BoardPayload<ExtArgs>
ticket: Prisma.$TicketPayload<ExtArgs> | null
}
scalars: $Extensions.GetPayloadResult<{
id: string
boardId: string
ticketId: string | null
ticketTitle: string
action: string
fromColumnTitle: string | null
toColumnTitle: string | null
userName: string
details: string | null
createdAt: Date
}, ExtArgs["result"]["activityLog"]>
composites: {}
}
type ActivityLogGetPayload<S extends boolean | null | undefined | ActivityLogDefaultArgs> = $Result.GetResult<Prisma.$ActivityLogPayload, S>
type ActivityLogCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<ActivityLogFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: ActivityLogCountAggregateInputType | true
}
export interface ActivityLogDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ActivityLog'], meta: { name: 'ActivityLog' } }
/**
* Find zero or one ActivityLog that matches the filter.
* @param {ActivityLogFindUniqueArgs} args - Arguments to find a ActivityLog
* @example
* // Get one ActivityLog
* const activityLog = await prisma.activityLog.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends ActivityLogFindUniqueArgs>(args: SelectSubset<T, ActivityLogFindUniqueArgs<ExtArgs>>): Prisma__ActivityLogClient<$Result.GetResult<Prisma.$ActivityLogPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one ActivityLog that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {ActivityLogFindUniqueOrThrowArgs} args - Arguments to find a ActivityLog
* @example
* // Get one ActivityLog
* const activityLog = await prisma.activityLog.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends ActivityLogFindUniqueOrThrowArgs>(args: SelectSubset<T, ActivityLogFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ActivityLogClient<$Result.GetResult<Prisma.$ActivityLogPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first ActivityLog 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 {ActivityLogFindFirstArgs} args - Arguments to find a ActivityLog
* @example
* // Get one ActivityLog
* const activityLog = await prisma.activityLog.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends ActivityLogFindFirstArgs>(args?: SelectSubset<T, ActivityLogFindFirstArgs<ExtArgs>>): Prisma__ActivityLogClient<$Result.GetResult<Prisma.$ActivityLogPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first ActivityLog 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 {ActivityLogFindFirstOrThrowArgs} args - Arguments to find a ActivityLog
* @example
* // Get one ActivityLog
* const activityLog = await prisma.activityLog.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends ActivityLogFindFirstOrThrowArgs>(args?: SelectSubset<T, ActivityLogFindFirstOrThrowArgs<ExtArgs>>): Prisma__ActivityLogClient<$Result.GetResult<Prisma.$ActivityLogPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more ActivityLogs 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 {ActivityLogFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all ActivityLogs
* const activityLogs = await prisma.activityLog.findMany()
*
* // Get first 10 ActivityLogs
* const activityLogs = await prisma.activityLog.findMany({ take: 10 })
*
* // Only select the `id`
* const activityLogWithIdOnly = await prisma.activityLog.findMany({ select: { id: true } })
*
*/
findMany<T extends ActivityLogFindManyArgs>(args?: SelectSubset<T, ActivityLogFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ActivityLogPayload<ExtArgs>, T, "findMany">>
/**
* Create a ActivityLog.
* @param {ActivityLogCreateArgs} args - Arguments to create a ActivityLog.
* @example
* // Create one ActivityLog
* const ActivityLog = await prisma.activityLog.create({
* data: {
* // ... data to create a ActivityLog
* }
* })
*
*/
create<T extends ActivityLogCreateArgs>(args: SelectSubset<T, ActivityLogCreateArgs<ExtArgs>>): Prisma__ActivityLogClient<$Result.GetResult<Prisma.$ActivityLogPayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many ActivityLogs.
* @param {ActivityLogCreateManyArgs} args - Arguments to create many ActivityLogs.
* @example
* // Create many ActivityLogs
* const activityLog = await prisma.activityLog.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends ActivityLogCreateManyArgs>(args?: SelectSubset<T, ActivityLogCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many ActivityLogs and returns the data saved in the database.
* @param {ActivityLogCreateManyAndReturnArgs} args - Arguments to create many ActivityLogs.
* @example
* // Create many ActivityLogs
* const activityLog = await prisma.activityLog.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many ActivityLogs and only return the `id`
* const activityLogWithIdOnly = await prisma.activityLog.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends ActivityLogCreateManyAndReturnArgs>(args?: SelectSubset<T, ActivityLogCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ActivityLogPayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a ActivityLog.
* @param {ActivityLogDeleteArgs} args - Arguments to delete one ActivityLog.
* @example
* // Delete one ActivityLog
* const ActivityLog = await prisma.activityLog.delete({
* where: {
* // ... filter to delete one ActivityLog
* }
* })
*
*/
delete<T extends ActivityLogDeleteArgs>(args: SelectSubset<T, ActivityLogDeleteArgs<ExtArgs>>): Prisma__ActivityLogClient<$Result.GetResult<Prisma.$ActivityLogPayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one ActivityLog.
* @param {ActivityLogUpdateArgs} args - Arguments to update one ActivityLog.
* @example
* // Update one ActivityLog
* const activityLog = await prisma.activityLog.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends ActivityLogUpdateArgs>(args: SelectSubset<T, ActivityLogUpdateArgs<ExtArgs>>): Prisma__ActivityLogClient<$Result.GetResult<Prisma.$ActivityLogPayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more ActivityLogs.
* @param {ActivityLogDeleteManyArgs} args - Arguments to filter ActivityLogs to delete.
* @example
* // Delete a few ActivityLogs
* const { count } = await prisma.activityLog.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends ActivityLogDeleteManyArgs>(args?: SelectSubset<T, ActivityLogDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more ActivityLogs.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ActivityLogUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many ActivityLogs
* const activityLog = await prisma.activityLog.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends ActivityLogUpdateManyArgs>(args: SelectSubset<T, ActivityLogUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one ActivityLog.
* @param {ActivityLogUpsertArgs} args - Arguments to update or create a ActivityLog.
* @example
* // Update or create a ActivityLog
* const activityLog = await prisma.activityLog.upsert({
* create: {
* // ... data to create a ActivityLog
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the ActivityLog we want to update
* }
* })
*/
upsert<T extends ActivityLogUpsertArgs>(args: SelectSubset<T, ActivityLogUpsertArgs<ExtArgs>>): Prisma__ActivityLogClient<$Result.GetResult<Prisma.$ActivityLogPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of ActivityLogs.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ActivityLogCountArgs} args - Arguments to filter ActivityLogs to count.
* @example
* // Count the number of ActivityLogs
* const count = await prisma.activityLog.count({
* where: {
* // ... the filter for the ActivityLogs we want to count
* }
* })
**/
count<T extends ActivityLogCountArgs>(
args?: Subset<T, ActivityLogCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], ActivityLogCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a ActivityLog.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ActivityLogAggregateArgs} 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 ActivityLogAggregateArgs>(args: Subset<T, ActivityLogAggregateArgs>): Prisma.PrismaPromise<GetActivityLogAggregateType<T>>
/**
* Group by ActivityLog.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ActivityLogGroupByArgs} 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 ActivityLogGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: ActivityLogGroupByArgs['orderBy'] }
: { orderBy?: ActivityLogGroupByArgs['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, ActivityLogGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetActivityLogGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the ActivityLog model
*/
readonly fields: ActivityLogFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for ActivityLog.
* 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__ActivityLogClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
board<T extends BoardDefaultArgs<ExtArgs> = {}>(args?: Subset<T, BoardDefaultArgs<ExtArgs>>): Prisma__BoardClient<$Result.GetResult<Prisma.$BoardPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
ticket<T extends ActivityLog$ticketArgs<ExtArgs> = {}>(args?: Subset<T, ActivityLog$ticketArgs<ExtArgs>>): Prisma__TicketClient<$Result.GetResult<Prisma.$TicketPayload<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 ActivityLog model
*/
interface ActivityLogFieldRefs {
readonly id: FieldRef<"ActivityLog", 'String'>
readonly boardId: FieldRef<"ActivityLog", 'String'>
readonly ticketId: FieldRef<"ActivityLog", 'String'>
readonly ticketTitle: FieldRef<"ActivityLog", 'String'>
readonly action: FieldRef<"ActivityLog", 'String'>
readonly fromColumnTitle: FieldRef<"ActivityLog", 'String'>
readonly toColumnTitle: FieldRef<"ActivityLog", 'String'>
readonly userName: FieldRef<"ActivityLog", 'String'>
readonly details: FieldRef<"ActivityLog", 'String'>
readonly createdAt: FieldRef<"ActivityLog", 'DateTime'>
}
// Custom InputTypes
/**
* ActivityLog findUnique
*/
export type ActivityLogFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ActivityLog
*/
select?: ActivityLogSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: ActivityLogInclude<ExtArgs> | null
/**
* Filter, which ActivityLog to fetch.
*/
where: ActivityLogWhereUniqueInput
}
/**
* ActivityLog findUniqueOrThrow
*/
export type ActivityLogFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ActivityLog
*/
select?: ActivityLogSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: ActivityLogInclude<ExtArgs> | null
/**
* Filter, which ActivityLog to fetch.
*/
where: ActivityLogWhereUniqueInput
}
/**
* ActivityLog findFirst
*/
export type ActivityLogFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ActivityLog
*/
select?: ActivityLogSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: ActivityLogInclude<ExtArgs> | null
/**
* Filter, which ActivityLog to fetch.
*/
where?: ActivityLogWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of ActivityLogs to fetch.
*/
orderBy?: ActivityLogOrderByWithRelationInput | ActivityLogOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for ActivityLogs.
*/
cursor?: ActivityLogWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` ActivityLogs from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` ActivityLogs.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of ActivityLogs.
*/
distinct?: ActivityLogScalarFieldEnum | ActivityLogScalarFieldEnum[]
}
/**
* ActivityLog findFirstOrThrow
*/
export type ActivityLogFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ActivityLog
*/
select?: ActivityLogSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: ActivityLogInclude<ExtArgs> | null
/**
* Filter, which ActivityLog to fetch.
*/
where?: ActivityLogWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of ActivityLogs to fetch.
*/
orderBy?: ActivityLogOrderByWithRelationInput | ActivityLogOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for ActivityLogs.
*/
cursor?: ActivityLogWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` ActivityLogs from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` ActivityLogs.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of ActivityLogs.
*/
distinct?: ActivityLogScalarFieldEnum | ActivityLogScalarFieldEnum[]
}
/**
* ActivityLog findMany
*/
export type ActivityLogFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ActivityLog
*/
select?: ActivityLogSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: ActivityLogInclude<ExtArgs> | null
/**
* Filter, which ActivityLogs to fetch.
*/
where?: ActivityLogWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of ActivityLogs to fetch.
*/
orderBy?: ActivityLogOrderByWithRelationInput | ActivityLogOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing ActivityLogs.
*/
cursor?: ActivityLogWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` ActivityLogs from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` ActivityLogs.
*/
skip?: number
distinct?: ActivityLogScalarFieldEnum | ActivityLogScalarFieldEnum[]
}
/**
* ActivityLog create
*/
export type ActivityLogCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ActivityLog
*/
select?: ActivityLogSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: ActivityLogInclude<ExtArgs> | null
/**
* The data needed to create a ActivityLog.
*/
data: XOR<ActivityLogCreateInput, ActivityLogUncheckedCreateInput>
}
/**
* ActivityLog createMany
*/
export type ActivityLogCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many ActivityLogs.
*/
data: ActivityLogCreateManyInput | ActivityLogCreateManyInput[]
skipDuplicates?: boolean
}
/**
* ActivityLog createManyAndReturn
*/
export type ActivityLogCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ActivityLog
*/
select?: ActivityLogSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many ActivityLogs.
*/
data: ActivityLogCreateManyInput | ActivityLogCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: ActivityLogIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* ActivityLog update
*/
export type ActivityLogUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ActivityLog
*/
select?: ActivityLogSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: ActivityLogInclude<ExtArgs> | null
/**
* The data needed to update a ActivityLog.
*/
data: XOR<ActivityLogUpdateInput, ActivityLogUncheckedUpdateInput>
/**
* Choose, which ActivityLog to update.
*/
where: ActivityLogWhereUniqueInput
}
/**
* ActivityLog updateMany
*/
export type ActivityLogUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update ActivityLogs.
*/
data: XOR<ActivityLogUpdateManyMutationInput, ActivityLogUncheckedUpdateManyInput>
/**
* Filter which ActivityLogs to update
*/
where?: ActivityLogWhereInput
}
/**
* ActivityLog upsert
*/
export type ActivityLogUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ActivityLog
*/
select?: ActivityLogSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: ActivityLogInclude<ExtArgs> | null
/**
* The filter to search for the ActivityLog to update in case it exists.
*/
where: ActivityLogWhereUniqueInput
/**
* In case the ActivityLog found by the `where` argument doesn't exist, create a new ActivityLog with this data.
*/
create: XOR<ActivityLogCreateInput, ActivityLogUncheckedCreateInput>
/**
* In case the ActivityLog was found with the provided `where` argument, update it with this data.
*/
update: XOR<ActivityLogUpdateInput, ActivityLogUncheckedUpdateInput>
}
/**
* ActivityLog delete
*/
export type ActivityLogDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ActivityLog
*/
select?: ActivityLogSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: ActivityLogInclude<ExtArgs> | null
/**
* Filter which ActivityLog to delete.
*/
where: ActivityLogWhereUniqueInput
}
/**
* ActivityLog deleteMany
*/
export type ActivityLogDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which ActivityLogs to delete
*/
where?: ActivityLogWhereInput
}
/**
* ActivityLog.ticket
*/
export type ActivityLog$ticketArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Ticket
*/
select?: TicketSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: TicketInclude<ExtArgs> | null
where?: TicketWhereInput
}
/**
* ActivityLog without action
*/
export type ActivityLogDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ActivityLog
*/
select?: ActivityLogSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: ActivityLogInclude<ExtArgs> | null
}
/**
* Enums
*/
export const TransactionIsolationLevel: {
ReadUncommitted: 'ReadUncommitted',
ReadCommitted: 'ReadCommitted',
RepeatableRead: 'RepeatableRead',
Serializable: 'Serializable'
};
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
export const BoardScalarFieldEnum: {
id: 'id',
title: 'title',
adminKeyHash: 'adminKeyHash',
memberKeyHash: 'memberKeyHash',
autoMoveStale: 'autoMoveStale',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
export type BoardScalarFieldEnum = (typeof BoardScalarFieldEnum)[keyof typeof BoardScalarFieldEnum]
export const ColumnScalarFieldEnum: {
id: 'id',
boardId: 'boardId',
title: 'title',
order: 'order',
maxWipLimit: 'maxWipLimit',
autoStaleHours: 'autoStaleHours',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
export type ColumnScalarFieldEnum = (typeof ColumnScalarFieldEnum)[keyof typeof ColumnScalarFieldEnum]
export const TicketScalarFieldEnum: {
id: 'id',
columnId: 'columnId',
title: 'title',
description: 'description',
order: 'order',
priority: 'priority',
tags: 'tags',
subtasks: 'subtasks',
dueDate: 'dueDate',
isBlocked: 'isBlocked',
blockedReason: 'blockedReason',
assignee: 'assignee',
movedAt: 'movedAt',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
export type TicketScalarFieldEnum = (typeof TicketScalarFieldEnum)[keyof typeof TicketScalarFieldEnum]
export const ActivityLogScalarFieldEnum: {
id: 'id',
boardId: 'boardId',
ticketId: 'ticketId',
ticketTitle: 'ticketTitle',
action: 'action',
fromColumnTitle: 'fromColumnTitle',
toColumnTitle: 'toColumnTitle',
userName: 'userName',
details: 'details',
createdAt: 'createdAt'
};
export type ActivityLogScalarFieldEnum = (typeof ActivityLogScalarFieldEnum)[keyof typeof ActivityLogScalarFieldEnum]
export const SortOrder: {
asc: 'asc',
desc: 'desc'
};
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
export const QueryMode: {
default: 'default',
insensitive: 'insensitive'
};
export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
export const NullsOrder: {
first: 'first',
last: 'last'
};
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
/**
* Field references
*/
/**
* Reference to a field of type 'String'
*/
export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'>
/**
* Reference to a field of type 'String[]'
*/
export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String[]'>
/**
* Reference to a field of type '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 'DateTime[]'
*/
export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime[]'>
/**
* Reference to a field of type 'Int'
*/
export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>
/**
* Reference to a field of type 'Int[]'
*/
export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'>
/**
* Reference to a field of type 'Priority'
*/
export type EnumPriorityFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Priority'>
/**
* Reference to a field of type 'Priority[]'
*/
export type ListEnumPriorityFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Priority[]'>
/**
* Reference to a field of type 'Float'
*/
export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'>
/**
* Reference to a field of type 'Float[]'
*/
export type ListFloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float[]'>
/**
* Deep Input Types
*/
export type BoardWhereInput = {
AND?: BoardWhereInput | BoardWhereInput[]
OR?: BoardWhereInput[]
NOT?: BoardWhereInput | BoardWhereInput[]
id?: StringFilter<"Board"> | string
title?: StringFilter<"Board"> | string
adminKeyHash?: StringFilter<"Board"> | string
memberKeyHash?: StringFilter<"Board"> | string
autoMoveStale?: BoolFilter<"Board"> | boolean
createdAt?: DateTimeFilter<"Board"> | Date | string
updatedAt?: DateTimeFilter<"Board"> | Date | string
columns?: ColumnListRelationFilter
activityLogs?: ActivityLogListRelationFilter
}
export type BoardOrderByWithRelationInput = {
id?: SortOrder
title?: SortOrder
adminKeyHash?: SortOrder
memberKeyHash?: SortOrder
autoMoveStale?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
columns?: ColumnOrderByRelationAggregateInput
activityLogs?: ActivityLogOrderByRelationAggregateInput
}
export type BoardWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: BoardWhereInput | BoardWhereInput[]
OR?: BoardWhereInput[]
NOT?: BoardWhereInput | BoardWhereInput[]
title?: StringFilter<"Board"> | string
adminKeyHash?: StringFilter<"Board"> | string
memberKeyHash?: StringFilter<"Board"> | string
autoMoveStale?: BoolFilter<"Board"> | boolean
createdAt?: DateTimeFilter<"Board"> | Date | string
updatedAt?: DateTimeFilter<"Board"> | Date | string
columns?: ColumnListRelationFilter
activityLogs?: ActivityLogListRelationFilter
}, "id">
export type BoardOrderByWithAggregationInput = {
id?: SortOrder
title?: SortOrder
adminKeyHash?: SortOrder
memberKeyHash?: SortOrder
autoMoveStale?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
_count?: BoardCountOrderByAggregateInput
_max?: BoardMaxOrderByAggregateInput
_min?: BoardMinOrderByAggregateInput
}
export type BoardScalarWhereWithAggregatesInput = {
AND?: BoardScalarWhereWithAggregatesInput | BoardScalarWhereWithAggregatesInput[]
OR?: BoardScalarWhereWithAggregatesInput[]
NOT?: BoardScalarWhereWithAggregatesInput | BoardScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"Board"> | string
title?: StringWithAggregatesFilter<"Board"> | string
adminKeyHash?: StringWithAggregatesFilter<"Board"> | string
memberKeyHash?: StringWithAggregatesFilter<"Board"> | string
autoMoveStale?: BoolWithAggregatesFilter<"Board"> | boolean
createdAt?: DateTimeWithAggregatesFilter<"Board"> | Date | string
updatedAt?: DateTimeWithAggregatesFilter<"Board"> | Date | string
}
export type ColumnWhereInput = {
AND?: ColumnWhereInput | ColumnWhereInput[]
OR?: ColumnWhereInput[]
NOT?: ColumnWhereInput | ColumnWhereInput[]
id?: StringFilter<"Column"> | string
boardId?: StringFilter<"Column"> | string
title?: StringFilter<"Column"> | string
order?: IntFilter<"Column"> | number
maxWipLimit?: IntFilter<"Column"> | number
autoStaleHours?: IntFilter<"Column"> | number
createdAt?: DateTimeFilter<"Column"> | Date | string
updatedAt?: DateTimeFilter<"Column"> | Date | string
board?: XOR<BoardRelationFilter, BoardWhereInput>
tickets?: TicketListRelationFilter
}
export type ColumnOrderByWithRelationInput = {
id?: SortOrder
boardId?: SortOrder
title?: SortOrder
order?: SortOrder
maxWipLimit?: SortOrder
autoStaleHours?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
board?: BoardOrderByWithRelationInput
tickets?: TicketOrderByRelationAggregateInput
}
export type ColumnWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: ColumnWhereInput | ColumnWhereInput[]
OR?: ColumnWhereInput[]
NOT?: ColumnWhereInput | ColumnWhereInput[]
boardId?: StringFilter<"Column"> | string
title?: StringFilter<"Column"> | string
order?: IntFilter<"Column"> | number
maxWipLimit?: IntFilter<"Column"> | number
autoStaleHours?: IntFilter<"Column"> | number
createdAt?: DateTimeFilter<"Column"> | Date | string
updatedAt?: DateTimeFilter<"Column"> | Date | string
board?: XOR<BoardRelationFilter, BoardWhereInput>
tickets?: TicketListRelationFilter
}, "id">
export type ColumnOrderByWithAggregationInput = {
id?: SortOrder
boardId?: SortOrder
title?: SortOrder
order?: SortOrder
maxWipLimit?: SortOrder
autoStaleHours?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
_count?: ColumnCountOrderByAggregateInput
_avg?: ColumnAvgOrderByAggregateInput
_max?: ColumnMaxOrderByAggregateInput
_min?: ColumnMinOrderByAggregateInput
_sum?: ColumnSumOrderByAggregateInput
}
export type ColumnScalarWhereWithAggregatesInput = {
AND?: ColumnScalarWhereWithAggregatesInput | ColumnScalarWhereWithAggregatesInput[]
OR?: ColumnScalarWhereWithAggregatesInput[]
NOT?: ColumnScalarWhereWithAggregatesInput | ColumnScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"Column"> | string
boardId?: StringWithAggregatesFilter<"Column"> | string
title?: StringWithAggregatesFilter<"Column"> | string
order?: IntWithAggregatesFilter<"Column"> | number
maxWipLimit?: IntWithAggregatesFilter<"Column"> | number
autoStaleHours?: IntWithAggregatesFilter<"Column"> | number
createdAt?: DateTimeWithAggregatesFilter<"Column"> | Date | string
updatedAt?: DateTimeWithAggregatesFilter<"Column"> | Date | string
}
export type TicketWhereInput = {
AND?: TicketWhereInput | TicketWhereInput[]
OR?: TicketWhereInput[]
NOT?: TicketWhereInput | TicketWhereInput[]
id?: StringFilter<"Ticket"> | string
columnId?: StringFilter<"Ticket"> | string
title?: StringFilter<"Ticket"> | string
description?: StringFilter<"Ticket"> | string
order?: IntFilter<"Ticket"> | number
priority?: EnumPriorityFilter<"Ticket"> | $Enums.Priority
tags?: StringFilter<"Ticket"> | string
subtasks?: StringFilter<"Ticket"> | string
dueDate?: StringNullableFilter<"Ticket"> | string | null
isBlocked?: BoolFilter<"Ticket"> | boolean
blockedReason?: StringNullableFilter<"Ticket"> | string | null
assignee?: StringNullableFilter<"Ticket"> | string | null
movedAt?: DateTimeFilter<"Ticket"> | Date | string
createdAt?: DateTimeFilter<"Ticket"> | Date | string
updatedAt?: DateTimeFilter<"Ticket"> | Date | string
column?: XOR<ColumnRelationFilter, ColumnWhereInput>
activityLogs?: ActivityLogListRelationFilter
}
export type TicketOrderByWithRelationInput = {
id?: SortOrder
columnId?: SortOrder
title?: SortOrder
description?: SortOrder
order?: SortOrder
priority?: SortOrder
tags?: SortOrder
subtasks?: SortOrder
dueDate?: SortOrderInput | SortOrder
isBlocked?: SortOrder
blockedReason?: SortOrderInput | SortOrder
assignee?: SortOrderInput | SortOrder
movedAt?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
column?: ColumnOrderByWithRelationInput
activityLogs?: ActivityLogOrderByRelationAggregateInput
}
export type TicketWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: TicketWhereInput | TicketWhereInput[]
OR?: TicketWhereInput[]
NOT?: TicketWhereInput | TicketWhereInput[]
columnId?: StringFilter<"Ticket"> | string
title?: StringFilter<"Ticket"> | string
description?: StringFilter<"Ticket"> | string
order?: IntFilter<"Ticket"> | number
priority?: EnumPriorityFilter<"Ticket"> | $Enums.Priority
tags?: StringFilter<"Ticket"> | string
subtasks?: StringFilter<"Ticket"> | string
dueDate?: StringNullableFilter<"Ticket"> | string | null
isBlocked?: BoolFilter<"Ticket"> | boolean
blockedReason?: StringNullableFilter<"Ticket"> | string | null
assignee?: StringNullableFilter<"Ticket"> | string | null
movedAt?: DateTimeFilter<"Ticket"> | Date | string
createdAt?: DateTimeFilter<"Ticket"> | Date | string
updatedAt?: DateTimeFilter<"Ticket"> | Date | string
column?: XOR<ColumnRelationFilter, ColumnWhereInput>
activityLogs?: ActivityLogListRelationFilter
}, "id">
export type TicketOrderByWithAggregationInput = {
id?: SortOrder
columnId?: SortOrder
title?: SortOrder
description?: SortOrder
order?: SortOrder
priority?: SortOrder
tags?: SortOrder
subtasks?: SortOrder
dueDate?: SortOrderInput | SortOrder
isBlocked?: SortOrder
blockedReason?: SortOrderInput | SortOrder
assignee?: SortOrderInput | SortOrder
movedAt?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
_count?: TicketCountOrderByAggregateInput
_avg?: TicketAvgOrderByAggregateInput
_max?: TicketMaxOrderByAggregateInput
_min?: TicketMinOrderByAggregateInput
_sum?: TicketSumOrderByAggregateInput
}
export type TicketScalarWhereWithAggregatesInput = {
AND?: TicketScalarWhereWithAggregatesInput | TicketScalarWhereWithAggregatesInput[]
OR?: TicketScalarWhereWithAggregatesInput[]
NOT?: TicketScalarWhereWithAggregatesInput | TicketScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"Ticket"> | string
columnId?: StringWithAggregatesFilter<"Ticket"> | string
title?: StringWithAggregatesFilter<"Ticket"> | string
description?: StringWithAggregatesFilter<"Ticket"> | string
order?: IntWithAggregatesFilter<"Ticket"> | number
priority?: EnumPriorityWithAggregatesFilter<"Ticket"> | $Enums.Priority
tags?: StringWithAggregatesFilter<"Ticket"> | string
subtasks?: StringWithAggregatesFilter<"Ticket"> | string
dueDate?: StringNullableWithAggregatesFilter<"Ticket"> | string | null
isBlocked?: BoolWithAggregatesFilter<"Ticket"> | boolean
blockedReason?: StringNullableWithAggregatesFilter<"Ticket"> | string | null
assignee?: StringNullableWithAggregatesFilter<"Ticket"> | string | null
movedAt?: DateTimeWithAggregatesFilter<"Ticket"> | Date | string
createdAt?: DateTimeWithAggregatesFilter<"Ticket"> | Date | string
updatedAt?: DateTimeWithAggregatesFilter<"Ticket"> | Date | string
}
export type ActivityLogWhereInput = {
AND?: ActivityLogWhereInput | ActivityLogWhereInput[]
OR?: ActivityLogWhereInput[]
NOT?: ActivityLogWhereInput | ActivityLogWhereInput[]
id?: StringFilter<"ActivityLog"> | string
boardId?: StringFilter<"ActivityLog"> | string
ticketId?: StringNullableFilter<"ActivityLog"> | string | null
ticketTitle?: StringFilter<"ActivityLog"> | string
action?: StringFilter<"ActivityLog"> | string
fromColumnTitle?: StringNullableFilter<"ActivityLog"> | string | null
toColumnTitle?: StringNullableFilter<"ActivityLog"> | string | null
userName?: StringFilter<"ActivityLog"> | string
details?: StringNullableFilter<"ActivityLog"> | string | null
createdAt?: DateTimeFilter<"ActivityLog"> | Date | string
board?: XOR<BoardRelationFilter, BoardWhereInput>
ticket?: XOR<TicketNullableRelationFilter, TicketWhereInput> | null
}
export type ActivityLogOrderByWithRelationInput = {
id?: SortOrder
boardId?: SortOrder
ticketId?: SortOrderInput | SortOrder
ticketTitle?: SortOrder
action?: SortOrder
fromColumnTitle?: SortOrderInput | SortOrder
toColumnTitle?: SortOrderInput | SortOrder
userName?: SortOrder
details?: SortOrderInput | SortOrder
createdAt?: SortOrder
board?: BoardOrderByWithRelationInput
ticket?: TicketOrderByWithRelationInput
}
export type ActivityLogWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: ActivityLogWhereInput | ActivityLogWhereInput[]
OR?: ActivityLogWhereInput[]
NOT?: ActivityLogWhereInput | ActivityLogWhereInput[]
boardId?: StringFilter<"ActivityLog"> | string
ticketId?: StringNullableFilter<"ActivityLog"> | string | null
ticketTitle?: StringFilter<"ActivityLog"> | string
action?: StringFilter<"ActivityLog"> | string
fromColumnTitle?: StringNullableFilter<"ActivityLog"> | string | null
toColumnTitle?: StringNullableFilter<"ActivityLog"> | string | null
userName?: StringFilter<"ActivityLog"> | string
details?: StringNullableFilter<"ActivityLog"> | string | null
createdAt?: DateTimeFilter<"ActivityLog"> | Date | string
board?: XOR<BoardRelationFilter, BoardWhereInput>
ticket?: XOR<TicketNullableRelationFilter, TicketWhereInput> | null
}, "id">
export type ActivityLogOrderByWithAggregationInput = {
id?: SortOrder
boardId?: SortOrder
ticketId?: SortOrderInput | SortOrder
ticketTitle?: SortOrder
action?: SortOrder
fromColumnTitle?: SortOrderInput | SortOrder
toColumnTitle?: SortOrderInput | SortOrder
userName?: SortOrder
details?: SortOrderInput | SortOrder
createdAt?: SortOrder
_count?: ActivityLogCountOrderByAggregateInput
_max?: ActivityLogMaxOrderByAggregateInput
_min?: ActivityLogMinOrderByAggregateInput
}
export type ActivityLogScalarWhereWithAggregatesInput = {
AND?: ActivityLogScalarWhereWithAggregatesInput | ActivityLogScalarWhereWithAggregatesInput[]
OR?: ActivityLogScalarWhereWithAggregatesInput[]
NOT?: ActivityLogScalarWhereWithAggregatesInput | ActivityLogScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"ActivityLog"> | string
boardId?: StringWithAggregatesFilter<"ActivityLog"> | string
ticketId?: StringNullableWithAggregatesFilter<"ActivityLog"> | string | null
ticketTitle?: StringWithAggregatesFilter<"ActivityLog"> | string
action?: StringWithAggregatesFilter<"ActivityLog"> | string
fromColumnTitle?: StringNullableWithAggregatesFilter<"ActivityLog"> | string | null
toColumnTitle?: StringNullableWithAggregatesFilter<"ActivityLog"> | string | null
userName?: StringWithAggregatesFilter<"ActivityLog"> | string
details?: StringNullableWithAggregatesFilter<"ActivityLog"> | string | null
createdAt?: DateTimeWithAggregatesFilter<"ActivityLog"> | Date | string
}
export type BoardCreateInput = {
id?: string
title?: string
adminKeyHash: string
memberKeyHash: string
autoMoveStale?: boolean
createdAt?: Date | string
updatedAt?: Date | string
columns?: ColumnCreateNestedManyWithoutBoardInput
activityLogs?: ActivityLogCreateNestedManyWithoutBoardInput
}
export type BoardUncheckedCreateInput = {
id?: string
title?: string
adminKeyHash: string
memberKeyHash: string
autoMoveStale?: boolean
createdAt?: Date | string
updatedAt?: Date | string
columns?: ColumnUncheckedCreateNestedManyWithoutBoardInput
activityLogs?: ActivityLogUncheckedCreateNestedManyWithoutBoardInput
}
export type BoardUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
adminKeyHash?: StringFieldUpdateOperationsInput | string
memberKeyHash?: StringFieldUpdateOperationsInput | string
autoMoveStale?: BoolFieldUpdateOperationsInput | boolean
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
columns?: ColumnUpdateManyWithoutBoardNestedInput
activityLogs?: ActivityLogUpdateManyWithoutBoardNestedInput
}
export type BoardUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
adminKeyHash?: StringFieldUpdateOperationsInput | string
memberKeyHash?: StringFieldUpdateOperationsInput | string
autoMoveStale?: BoolFieldUpdateOperationsInput | boolean
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
columns?: ColumnUncheckedUpdateManyWithoutBoardNestedInput
activityLogs?: ActivityLogUncheckedUpdateManyWithoutBoardNestedInput
}
export type BoardCreateManyInput = {
id?: string
title?: string
adminKeyHash: string
memberKeyHash: string
autoMoveStale?: boolean
createdAt?: Date | string
updatedAt?: Date | string
}
export type BoardUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
adminKeyHash?: StringFieldUpdateOperationsInput | string
memberKeyHash?: StringFieldUpdateOperationsInput | string
autoMoveStale?: BoolFieldUpdateOperationsInput | boolean
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type BoardUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
adminKeyHash?: StringFieldUpdateOperationsInput | string
memberKeyHash?: StringFieldUpdateOperationsInput | string
autoMoveStale?: BoolFieldUpdateOperationsInput | boolean
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type ColumnCreateInput = {
id?: string
title: string
order?: number
maxWipLimit?: number
autoStaleHours?: number
createdAt?: Date | string
updatedAt?: Date | string
board: BoardCreateNestedOneWithoutColumnsInput
tickets?: TicketCreateNestedManyWithoutColumnInput
}
export type ColumnUncheckedCreateInput = {
id?: string
boardId: string
title: string
order?: number
maxWipLimit?: number
autoStaleHours?: number
createdAt?: Date | string
updatedAt?: Date | string
tickets?: TicketUncheckedCreateNestedManyWithoutColumnInput
}
export type ColumnUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
order?: IntFieldUpdateOperationsInput | number
maxWipLimit?: IntFieldUpdateOperationsInput | number
autoStaleHours?: IntFieldUpdateOperationsInput | number
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
board?: BoardUpdateOneRequiredWithoutColumnsNestedInput
tickets?: TicketUpdateManyWithoutColumnNestedInput
}
export type ColumnUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
boardId?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
order?: IntFieldUpdateOperationsInput | number
maxWipLimit?: IntFieldUpdateOperationsInput | number
autoStaleHours?: IntFieldUpdateOperationsInput | number
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
tickets?: TicketUncheckedUpdateManyWithoutColumnNestedInput
}
export type ColumnCreateManyInput = {
id?: string
boardId: string
title: string
order?: number
maxWipLimit?: number
autoStaleHours?: number
createdAt?: Date | string
updatedAt?: Date | string
}
export type ColumnUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
order?: IntFieldUpdateOperationsInput | number
maxWipLimit?: IntFieldUpdateOperationsInput | number
autoStaleHours?: IntFieldUpdateOperationsInput | number
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type ColumnUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
boardId?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
order?: IntFieldUpdateOperationsInput | number
maxWipLimit?: IntFieldUpdateOperationsInput | number
autoStaleHours?: IntFieldUpdateOperationsInput | number
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type TicketCreateInput = {
id?: string
title: string
description?: string
order?: number
priority?: $Enums.Priority
tags?: string
subtasks?: string
dueDate?: string | null
isBlocked?: boolean
blockedReason?: string | null
assignee?: string | null
movedAt?: Date | string
createdAt?: Date | string
updatedAt?: Date | string
column: ColumnCreateNestedOneWithoutTicketsInput
activityLogs?: ActivityLogCreateNestedManyWithoutTicketInput
}
export type TicketUncheckedCreateInput = {
id?: string
columnId: string
title: string
description?: string
order?: number
priority?: $Enums.Priority
tags?: string
subtasks?: string
dueDate?: string | null
isBlocked?: boolean
blockedReason?: string | null
assignee?: string | null
movedAt?: Date | string
createdAt?: Date | string
updatedAt?: Date | string
activityLogs?: ActivityLogUncheckedCreateNestedManyWithoutTicketInput
}
export type TicketUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
description?: StringFieldUpdateOperationsInput | string
order?: IntFieldUpdateOperationsInput | number
priority?: EnumPriorityFieldUpdateOperationsInput | $Enums.Priority
tags?: StringFieldUpdateOperationsInput | string
subtasks?: StringFieldUpdateOperationsInput | string
dueDate?: NullableStringFieldUpdateOperationsInput | string | null
isBlocked?: BoolFieldUpdateOperationsInput | boolean
blockedReason?: NullableStringFieldUpdateOperationsInput | string | null
assignee?: NullableStringFieldUpdateOperationsInput | string | null
movedAt?: DateTimeFieldUpdateOperationsInput | Date | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
column?: ColumnUpdateOneRequiredWithoutTicketsNestedInput
activityLogs?: ActivityLogUpdateManyWithoutTicketNestedInput
}
export type TicketUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
columnId?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
description?: StringFieldUpdateOperationsInput | string
order?: IntFieldUpdateOperationsInput | number
priority?: EnumPriorityFieldUpdateOperationsInput | $Enums.Priority
tags?: StringFieldUpdateOperationsInput | string
subtasks?: StringFieldUpdateOperationsInput | string
dueDate?: NullableStringFieldUpdateOperationsInput | string | null
isBlocked?: BoolFieldUpdateOperationsInput | boolean
blockedReason?: NullableStringFieldUpdateOperationsInput | string | null
assignee?: NullableStringFieldUpdateOperationsInput | string | null
movedAt?: DateTimeFieldUpdateOperationsInput | Date | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
activityLogs?: ActivityLogUncheckedUpdateManyWithoutTicketNestedInput
}
export type TicketCreateManyInput = {
id?: string
columnId: string
title: string
description?: string
order?: number
priority?: $Enums.Priority
tags?: string
subtasks?: string
dueDate?: string | null
isBlocked?: boolean
blockedReason?: string | null
assignee?: string | null
movedAt?: Date | string
createdAt?: Date | string
updatedAt?: Date | string
}
export type TicketUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
description?: StringFieldUpdateOperationsInput | string
order?: IntFieldUpdateOperationsInput | number
priority?: EnumPriorityFieldUpdateOperationsInput | $Enums.Priority
tags?: StringFieldUpdateOperationsInput | string
subtasks?: StringFieldUpdateOperationsInput | string
dueDate?: NullableStringFieldUpdateOperationsInput | string | null
isBlocked?: BoolFieldUpdateOperationsInput | boolean
blockedReason?: NullableStringFieldUpdateOperationsInput | string | null
assignee?: NullableStringFieldUpdateOperationsInput | string | null
movedAt?: DateTimeFieldUpdateOperationsInput | Date | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type TicketUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
columnId?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
description?: StringFieldUpdateOperationsInput | string
order?: IntFieldUpdateOperationsInput | number
priority?: EnumPriorityFieldUpdateOperationsInput | $Enums.Priority
tags?: StringFieldUpdateOperationsInput | string
subtasks?: StringFieldUpdateOperationsInput | string
dueDate?: NullableStringFieldUpdateOperationsInput | string | null
isBlocked?: BoolFieldUpdateOperationsInput | boolean
blockedReason?: NullableStringFieldUpdateOperationsInput | string | null
assignee?: NullableStringFieldUpdateOperationsInput | string | null
movedAt?: DateTimeFieldUpdateOperationsInput | Date | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type ActivityLogCreateInput = {
id?: string
ticketTitle?: string
action?: string
fromColumnTitle?: string | null
toColumnTitle?: string | null
userName?: string
details?: string | null
createdAt?: Date | string
board: BoardCreateNestedOneWithoutActivityLogsInput
ticket?: TicketCreateNestedOneWithoutActivityLogsInput
}
export type ActivityLogUncheckedCreateInput = {
id?: string
boardId: string
ticketId?: string | null
ticketTitle?: string
action?: string
fromColumnTitle?: string | null
toColumnTitle?: string | null
userName?: string
details?: string | null
createdAt?: Date | string
}
export type ActivityLogUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
ticketTitle?: StringFieldUpdateOperationsInput | string
action?: StringFieldUpdateOperationsInput | string
fromColumnTitle?: NullableStringFieldUpdateOperationsInput | string | null
toColumnTitle?: NullableStringFieldUpdateOperationsInput | string | null
userName?: StringFieldUpdateOperationsInput | string
details?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
board?: BoardUpdateOneRequiredWithoutActivityLogsNestedInput
ticket?: TicketUpdateOneWithoutActivityLogsNestedInput
}
export type ActivityLogUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
boardId?: StringFieldUpdateOperationsInput | string
ticketId?: NullableStringFieldUpdateOperationsInput | string | null
ticketTitle?: StringFieldUpdateOperationsInput | string
action?: StringFieldUpdateOperationsInput | string
fromColumnTitle?: NullableStringFieldUpdateOperationsInput | string | null
toColumnTitle?: NullableStringFieldUpdateOperationsInput | string | null
userName?: StringFieldUpdateOperationsInput | string
details?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type ActivityLogCreateManyInput = {
id?: string
boardId: string
ticketId?: string | null
ticketTitle?: string
action?: string
fromColumnTitle?: string | null
toColumnTitle?: string | null
userName?: string
details?: string | null
createdAt?: Date | string
}
export type ActivityLogUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
ticketTitle?: StringFieldUpdateOperationsInput | string
action?: StringFieldUpdateOperationsInput | string
fromColumnTitle?: NullableStringFieldUpdateOperationsInput | string | null
toColumnTitle?: NullableStringFieldUpdateOperationsInput | string | null
userName?: StringFieldUpdateOperationsInput | string
details?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type ActivityLogUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
boardId?: StringFieldUpdateOperationsInput | string
ticketId?: NullableStringFieldUpdateOperationsInput | string | null
ticketTitle?: StringFieldUpdateOperationsInput | string
action?: StringFieldUpdateOperationsInput | string
fromColumnTitle?: NullableStringFieldUpdateOperationsInput | string | null
toColumnTitle?: NullableStringFieldUpdateOperationsInput | string | null
userName?: StringFieldUpdateOperationsInput | string
details?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type StringFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel>
in?: string[] | ListStringFieldRefInput<$PrismaModel>
notIn?: string[] | ListStringFieldRefInput<$PrismaModel>
lt?: string | StringFieldRefInput<$PrismaModel>
lte?: string | StringFieldRefInput<$PrismaModel>
gt?: string | StringFieldRefInput<$PrismaModel>
gte?: string | StringFieldRefInput<$PrismaModel>
contains?: string | StringFieldRefInput<$PrismaModel>
startsWith?: string | StringFieldRefInput<$PrismaModel>
endsWith?: string | StringFieldRefInput<$PrismaModel>
mode?: QueryMode
not?: NestedStringFilter<$PrismaModel> | string
}
export type BoolFilter<$PrismaModel = never> = {
equals?: boolean | BooleanFieldRefInput<$PrismaModel>
not?: NestedBoolFilter<$PrismaModel> | boolean
}
export type DateTimeFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
not?: NestedDateTimeFilter<$PrismaModel> | Date | string
}
export type ColumnListRelationFilter = {
every?: ColumnWhereInput
some?: ColumnWhereInput
none?: ColumnWhereInput
}
export type ActivityLogListRelationFilter = {
every?: ActivityLogWhereInput
some?: ActivityLogWhereInput
none?: ActivityLogWhereInput
}
export type ColumnOrderByRelationAggregateInput = {
_count?: SortOrder
}
export type ActivityLogOrderByRelationAggregateInput = {
_count?: SortOrder
}
export type BoardCountOrderByAggregateInput = {
id?: SortOrder
title?: SortOrder
adminKeyHash?: SortOrder
memberKeyHash?: SortOrder
autoMoveStale?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type BoardMaxOrderByAggregateInput = {
id?: SortOrder
title?: SortOrder
adminKeyHash?: SortOrder
memberKeyHash?: SortOrder
autoMoveStale?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type BoardMinOrderByAggregateInput = {
id?: SortOrder
title?: SortOrder
adminKeyHash?: SortOrder
memberKeyHash?: SortOrder
autoMoveStale?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type StringWithAggregatesFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel>
in?: string[] | ListStringFieldRefInput<$PrismaModel>
notIn?: string[] | ListStringFieldRefInput<$PrismaModel>
lt?: string | StringFieldRefInput<$PrismaModel>
lte?: string | StringFieldRefInput<$PrismaModel>
gt?: string | StringFieldRefInput<$PrismaModel>
gte?: string | StringFieldRefInput<$PrismaModel>
contains?: string | StringFieldRefInput<$PrismaModel>
startsWith?: string | StringFieldRefInput<$PrismaModel>
endsWith?: string | StringFieldRefInput<$PrismaModel>
mode?: QueryMode
not?: NestedStringWithAggregatesFilter<$PrismaModel> | string
_count?: NestedIntFilter<$PrismaModel>
_min?: NestedStringFilter<$PrismaModel>
_max?: NestedStringFilter<$PrismaModel>
}
export type BoolWithAggregatesFilter<$PrismaModel = never> = {
equals?: boolean | BooleanFieldRefInput<$PrismaModel>
not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
_count?: NestedIntFilter<$PrismaModel>
_min?: NestedBoolFilter<$PrismaModel>
_max?: NestedBoolFilter<$PrismaModel>
}
export type DateTimeWithAggregatesFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
_count?: NestedIntFilter<$PrismaModel>
_min?: NestedDateTimeFilter<$PrismaModel>
_max?: NestedDateTimeFilter<$PrismaModel>
}
export type IntFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel>
in?: number[] | ListIntFieldRefInput<$PrismaModel>
notIn?: number[] | ListIntFieldRefInput<$PrismaModel>
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntFilter<$PrismaModel> | number
}
export type BoardRelationFilter = {
is?: BoardWhereInput
isNot?: BoardWhereInput
}
export type TicketListRelationFilter = {
every?: TicketWhereInput
some?: TicketWhereInput
none?: TicketWhereInput
}
export type TicketOrderByRelationAggregateInput = {
_count?: SortOrder
}
export type ColumnCountOrderByAggregateInput = {
id?: SortOrder
boardId?: SortOrder
title?: SortOrder
order?: SortOrder
maxWipLimit?: SortOrder
autoStaleHours?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type ColumnAvgOrderByAggregateInput = {
order?: SortOrder
maxWipLimit?: SortOrder
autoStaleHours?: SortOrder
}
export type ColumnMaxOrderByAggregateInput = {
id?: SortOrder
boardId?: SortOrder
title?: SortOrder
order?: SortOrder
maxWipLimit?: SortOrder
autoStaleHours?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type ColumnMinOrderByAggregateInput = {
id?: SortOrder
boardId?: SortOrder
title?: SortOrder
order?: SortOrder
maxWipLimit?: SortOrder
autoStaleHours?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type ColumnSumOrderByAggregateInput = {
order?: SortOrder
maxWipLimit?: SortOrder
autoStaleHours?: SortOrder
}
export type IntWithAggregatesFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel>
in?: number[] | ListIntFieldRefInput<$PrismaModel>
notIn?: number[] | ListIntFieldRefInput<$PrismaModel>
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntWithAggregatesFilter<$PrismaModel> | number
_count?: NestedIntFilter<$PrismaModel>
_avg?: NestedFloatFilter<$PrismaModel>
_sum?: NestedIntFilter<$PrismaModel>
_min?: NestedIntFilter<$PrismaModel>
_max?: NestedIntFilter<$PrismaModel>
}
export type EnumPriorityFilter<$PrismaModel = never> = {
equals?: $Enums.Priority | EnumPriorityFieldRefInput<$PrismaModel>
in?: $Enums.Priority[] | ListEnumPriorityFieldRefInput<$PrismaModel>
notIn?: $Enums.Priority[] | ListEnumPriorityFieldRefInput<$PrismaModel>
not?: NestedEnumPriorityFilter<$PrismaModel> | $Enums.Priority
}
export type StringNullableFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel> | null
in?: string[] | ListStringFieldRefInput<$PrismaModel> | null
notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null
lt?: string | StringFieldRefInput<$PrismaModel>
lte?: string | StringFieldRefInput<$PrismaModel>
gt?: string | StringFieldRefInput<$PrismaModel>
gte?: string | StringFieldRefInput<$PrismaModel>
contains?: string | StringFieldRefInput<$PrismaModel>
startsWith?: string | StringFieldRefInput<$PrismaModel>
endsWith?: string | StringFieldRefInput<$PrismaModel>
mode?: QueryMode
not?: NestedStringNullableFilter<$PrismaModel> | string | null
}
export type ColumnRelationFilter = {
is?: ColumnWhereInput
isNot?: ColumnWhereInput
}
export type SortOrderInput = {
sort: SortOrder
nulls?: NullsOrder
}
export type TicketCountOrderByAggregateInput = {
id?: SortOrder
columnId?: SortOrder
title?: SortOrder
description?: SortOrder
order?: SortOrder
priority?: SortOrder
tags?: SortOrder
subtasks?: SortOrder
dueDate?: SortOrder
isBlocked?: SortOrder
blockedReason?: SortOrder
assignee?: SortOrder
movedAt?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type TicketAvgOrderByAggregateInput = {
order?: SortOrder
}
export type TicketMaxOrderByAggregateInput = {
id?: SortOrder
columnId?: SortOrder
title?: SortOrder
description?: SortOrder
order?: SortOrder
priority?: SortOrder
tags?: SortOrder
subtasks?: SortOrder
dueDate?: SortOrder
isBlocked?: SortOrder
blockedReason?: SortOrder
assignee?: SortOrder
movedAt?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type TicketMinOrderByAggregateInput = {
id?: SortOrder
columnId?: SortOrder
title?: SortOrder
description?: SortOrder
order?: SortOrder
priority?: SortOrder
tags?: SortOrder
subtasks?: SortOrder
dueDate?: SortOrder
isBlocked?: SortOrder
blockedReason?: SortOrder
assignee?: SortOrder
movedAt?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type TicketSumOrderByAggregateInput = {
order?: SortOrder
}
export type EnumPriorityWithAggregatesFilter<$PrismaModel = never> = {
equals?: $Enums.Priority | EnumPriorityFieldRefInput<$PrismaModel>
in?: $Enums.Priority[] | ListEnumPriorityFieldRefInput<$PrismaModel>
notIn?: $Enums.Priority[] | ListEnumPriorityFieldRefInput<$PrismaModel>
not?: NestedEnumPriorityWithAggregatesFilter<$PrismaModel> | $Enums.Priority
_count?: NestedIntFilter<$PrismaModel>
_min?: NestedEnumPriorityFilter<$PrismaModel>
_max?: NestedEnumPriorityFilter<$PrismaModel>
}
export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel> | null
in?: string[] | ListStringFieldRefInput<$PrismaModel> | null
notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null
lt?: string | StringFieldRefInput<$PrismaModel>
lte?: string | StringFieldRefInput<$PrismaModel>
gt?: string | StringFieldRefInput<$PrismaModel>
gte?: string | StringFieldRefInput<$PrismaModel>
contains?: string | StringFieldRefInput<$PrismaModel>
startsWith?: string | StringFieldRefInput<$PrismaModel>
endsWith?: string | StringFieldRefInput<$PrismaModel>
mode?: QueryMode
not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
_count?: NestedIntNullableFilter<$PrismaModel>
_min?: NestedStringNullableFilter<$PrismaModel>
_max?: NestedStringNullableFilter<$PrismaModel>
}
export type TicketNullableRelationFilter = {
is?: TicketWhereInput | null
isNot?: TicketWhereInput | null
}
export type ActivityLogCountOrderByAggregateInput = {
id?: SortOrder
boardId?: SortOrder
ticketId?: SortOrder
ticketTitle?: SortOrder
action?: SortOrder
fromColumnTitle?: SortOrder
toColumnTitle?: SortOrder
userName?: SortOrder
details?: SortOrder
createdAt?: SortOrder
}
export type ActivityLogMaxOrderByAggregateInput = {
id?: SortOrder
boardId?: SortOrder
ticketId?: SortOrder
ticketTitle?: SortOrder
action?: SortOrder
fromColumnTitle?: SortOrder
toColumnTitle?: SortOrder
userName?: SortOrder
details?: SortOrder
createdAt?: SortOrder
}
export type ActivityLogMinOrderByAggregateInput = {
id?: SortOrder
boardId?: SortOrder
ticketId?: SortOrder
ticketTitle?: SortOrder
action?: SortOrder
fromColumnTitle?: SortOrder
toColumnTitle?: SortOrder
userName?: SortOrder
details?: SortOrder
createdAt?: SortOrder
}
export type ColumnCreateNestedManyWithoutBoardInput = {
create?: XOR<ColumnCreateWithoutBoardInput, ColumnUncheckedCreateWithoutBoardInput> | ColumnCreateWithoutBoardInput[] | ColumnUncheckedCreateWithoutBoardInput[]
connectOrCreate?: ColumnCreateOrConnectWithoutBoardInput | ColumnCreateOrConnectWithoutBoardInput[]
createMany?: ColumnCreateManyBoardInputEnvelope
connect?: ColumnWhereUniqueInput | ColumnWhereUniqueInput[]
}
export type ActivityLogCreateNestedManyWithoutBoardInput = {
create?: XOR<ActivityLogCreateWithoutBoardInput, ActivityLogUncheckedCreateWithoutBoardInput> | ActivityLogCreateWithoutBoardInput[] | ActivityLogUncheckedCreateWithoutBoardInput[]
connectOrCreate?: ActivityLogCreateOrConnectWithoutBoardInput | ActivityLogCreateOrConnectWithoutBoardInput[]
createMany?: ActivityLogCreateManyBoardInputEnvelope
connect?: ActivityLogWhereUniqueInput | ActivityLogWhereUniqueInput[]
}
export type ColumnUncheckedCreateNestedManyWithoutBoardInput = {
create?: XOR<ColumnCreateWithoutBoardInput, ColumnUncheckedCreateWithoutBoardInput> | ColumnCreateWithoutBoardInput[] | ColumnUncheckedCreateWithoutBoardInput[]
connectOrCreate?: ColumnCreateOrConnectWithoutBoardInput | ColumnCreateOrConnectWithoutBoardInput[]
createMany?: ColumnCreateManyBoardInputEnvelope
connect?: ColumnWhereUniqueInput | ColumnWhereUniqueInput[]
}
export type ActivityLogUncheckedCreateNestedManyWithoutBoardInput = {
create?: XOR<ActivityLogCreateWithoutBoardInput, ActivityLogUncheckedCreateWithoutBoardInput> | ActivityLogCreateWithoutBoardInput[] | ActivityLogUncheckedCreateWithoutBoardInput[]
connectOrCreate?: ActivityLogCreateOrConnectWithoutBoardInput | ActivityLogCreateOrConnectWithoutBoardInput[]
createMany?: ActivityLogCreateManyBoardInputEnvelope
connect?: ActivityLogWhereUniqueInput | ActivityLogWhereUniqueInput[]
}
export type StringFieldUpdateOperationsInput = {
set?: string
}
export type BoolFieldUpdateOperationsInput = {
set?: boolean
}
export type DateTimeFieldUpdateOperationsInput = {
set?: Date | string
}
export type ColumnUpdateManyWithoutBoardNestedInput = {
create?: XOR<ColumnCreateWithoutBoardInput, ColumnUncheckedCreateWithoutBoardInput> | ColumnCreateWithoutBoardInput[] | ColumnUncheckedCreateWithoutBoardInput[]
connectOrCreate?: ColumnCreateOrConnectWithoutBoardInput | ColumnCreateOrConnectWithoutBoardInput[]
upsert?: ColumnUpsertWithWhereUniqueWithoutBoardInput | ColumnUpsertWithWhereUniqueWithoutBoardInput[]
createMany?: ColumnCreateManyBoardInputEnvelope
set?: ColumnWhereUniqueInput | ColumnWhereUniqueInput[]
disconnect?: ColumnWhereUniqueInput | ColumnWhereUniqueInput[]
delete?: ColumnWhereUniqueInput | ColumnWhereUniqueInput[]
connect?: ColumnWhereUniqueInput | ColumnWhereUniqueInput[]
update?: ColumnUpdateWithWhereUniqueWithoutBoardInput | ColumnUpdateWithWhereUniqueWithoutBoardInput[]
updateMany?: ColumnUpdateManyWithWhereWithoutBoardInput | ColumnUpdateManyWithWhereWithoutBoardInput[]
deleteMany?: ColumnScalarWhereInput | ColumnScalarWhereInput[]
}
export type ActivityLogUpdateManyWithoutBoardNestedInput = {
create?: XOR<ActivityLogCreateWithoutBoardInput, ActivityLogUncheckedCreateWithoutBoardInput> | ActivityLogCreateWithoutBoardInput[] | ActivityLogUncheckedCreateWithoutBoardInput[]
connectOrCreate?: ActivityLogCreateOrConnectWithoutBoardInput | ActivityLogCreateOrConnectWithoutBoardInput[]
upsert?: ActivityLogUpsertWithWhereUniqueWithoutBoardInput | ActivityLogUpsertWithWhereUniqueWithoutBoardInput[]
createMany?: ActivityLogCreateManyBoardInputEnvelope
set?: ActivityLogWhereUniqueInput | ActivityLogWhereUniqueInput[]
disconnect?: ActivityLogWhereUniqueInput | ActivityLogWhereUniqueInput[]
delete?: ActivityLogWhereUniqueInput | ActivityLogWhereUniqueInput[]
connect?: ActivityLogWhereUniqueInput | ActivityLogWhereUniqueInput[]
update?: ActivityLogUpdateWithWhereUniqueWithoutBoardInput | ActivityLogUpdateWithWhereUniqueWithoutBoardInput[]
updateMany?: ActivityLogUpdateManyWithWhereWithoutBoardInput | ActivityLogUpdateManyWithWhereWithoutBoardInput[]
deleteMany?: ActivityLogScalarWhereInput | ActivityLogScalarWhereInput[]
}
export type ColumnUncheckedUpdateManyWithoutBoardNestedInput = {
create?: XOR<ColumnCreateWithoutBoardInput, ColumnUncheckedCreateWithoutBoardInput> | ColumnCreateWithoutBoardInput[] | ColumnUncheckedCreateWithoutBoardInput[]
connectOrCreate?: ColumnCreateOrConnectWithoutBoardInput | ColumnCreateOrConnectWithoutBoardInput[]
upsert?: ColumnUpsertWithWhereUniqueWithoutBoardInput | ColumnUpsertWithWhereUniqueWithoutBoardInput[]
createMany?: ColumnCreateManyBoardInputEnvelope
set?: ColumnWhereUniqueInput | ColumnWhereUniqueInput[]
disconnect?: ColumnWhereUniqueInput | ColumnWhereUniqueInput[]
delete?: ColumnWhereUniqueInput | ColumnWhereUniqueInput[]
connect?: ColumnWhereUniqueInput | ColumnWhereUniqueInput[]
update?: ColumnUpdateWithWhereUniqueWithoutBoardInput | ColumnUpdateWithWhereUniqueWithoutBoardInput[]
updateMany?: ColumnUpdateManyWithWhereWithoutBoardInput | ColumnUpdateManyWithWhereWithoutBoardInput[]
deleteMany?: ColumnScalarWhereInput | ColumnScalarWhereInput[]
}
export type ActivityLogUncheckedUpdateManyWithoutBoardNestedInput = {
create?: XOR<ActivityLogCreateWithoutBoardInput, ActivityLogUncheckedCreateWithoutBoardInput> | ActivityLogCreateWithoutBoardInput[] | ActivityLogUncheckedCreateWithoutBoardInput[]
connectOrCreate?: ActivityLogCreateOrConnectWithoutBoardInput | ActivityLogCreateOrConnectWithoutBoardInput[]
upsert?: ActivityLogUpsertWithWhereUniqueWithoutBoardInput | ActivityLogUpsertWithWhereUniqueWithoutBoardInput[]
createMany?: ActivityLogCreateManyBoardInputEnvelope
set?: ActivityLogWhereUniqueInput | ActivityLogWhereUniqueInput[]
disconnect?: ActivityLogWhereUniqueInput | ActivityLogWhereUniqueInput[]
delete?: ActivityLogWhereUniqueInput | ActivityLogWhereUniqueInput[]
connect?: ActivityLogWhereUniqueInput | ActivityLogWhereUniqueInput[]
update?: ActivityLogUpdateWithWhereUniqueWithoutBoardInput | ActivityLogUpdateWithWhereUniqueWithoutBoardInput[]
updateMany?: ActivityLogUpdateManyWithWhereWithoutBoardInput | ActivityLogUpdateManyWithWhereWithoutBoardInput[]
deleteMany?: ActivityLogScalarWhereInput | ActivityLogScalarWhereInput[]
}
export type BoardCreateNestedOneWithoutColumnsInput = {
create?: XOR<BoardCreateWithoutColumnsInput, BoardUncheckedCreateWithoutColumnsInput>
connectOrCreate?: BoardCreateOrConnectWithoutColumnsInput
connect?: BoardWhereUniqueInput
}
export type TicketCreateNestedManyWithoutColumnInput = {
create?: XOR<TicketCreateWithoutColumnInput, TicketUncheckedCreateWithoutColumnInput> | TicketCreateWithoutColumnInput[] | TicketUncheckedCreateWithoutColumnInput[]
connectOrCreate?: TicketCreateOrConnectWithoutColumnInput | TicketCreateOrConnectWithoutColumnInput[]
createMany?: TicketCreateManyColumnInputEnvelope
connect?: TicketWhereUniqueInput | TicketWhereUniqueInput[]
}
export type TicketUncheckedCreateNestedManyWithoutColumnInput = {
create?: XOR<TicketCreateWithoutColumnInput, TicketUncheckedCreateWithoutColumnInput> | TicketCreateWithoutColumnInput[] | TicketUncheckedCreateWithoutColumnInput[]
connectOrCreate?: TicketCreateOrConnectWithoutColumnInput | TicketCreateOrConnectWithoutColumnInput[]
createMany?: TicketCreateManyColumnInputEnvelope
connect?: TicketWhereUniqueInput | TicketWhereUniqueInput[]
}
export type IntFieldUpdateOperationsInput = {
set?: number
increment?: number
decrement?: number
multiply?: number
divide?: number
}
export type BoardUpdateOneRequiredWithoutColumnsNestedInput = {
create?: XOR<BoardCreateWithoutColumnsInput, BoardUncheckedCreateWithoutColumnsInput>
connectOrCreate?: BoardCreateOrConnectWithoutColumnsInput
upsert?: BoardUpsertWithoutColumnsInput
connect?: BoardWhereUniqueInput
update?: XOR<XOR<BoardUpdateToOneWithWhereWithoutColumnsInput, BoardUpdateWithoutColumnsInput>, BoardUncheckedUpdateWithoutColumnsInput>
}
export type TicketUpdateManyWithoutColumnNestedInput = {
create?: XOR<TicketCreateWithoutColumnInput, TicketUncheckedCreateWithoutColumnInput> | TicketCreateWithoutColumnInput[] | TicketUncheckedCreateWithoutColumnInput[]
connectOrCreate?: TicketCreateOrConnectWithoutColumnInput | TicketCreateOrConnectWithoutColumnInput[]
upsert?: TicketUpsertWithWhereUniqueWithoutColumnInput | TicketUpsertWithWhereUniqueWithoutColumnInput[]
createMany?: TicketCreateManyColumnInputEnvelope
set?: TicketWhereUniqueInput | TicketWhereUniqueInput[]
disconnect?: TicketWhereUniqueInput | TicketWhereUniqueInput[]
delete?: TicketWhereUniqueInput | TicketWhereUniqueInput[]
connect?: TicketWhereUniqueInput | TicketWhereUniqueInput[]
update?: TicketUpdateWithWhereUniqueWithoutColumnInput | TicketUpdateWithWhereUniqueWithoutColumnInput[]
updateMany?: TicketUpdateManyWithWhereWithoutColumnInput | TicketUpdateManyWithWhereWithoutColumnInput[]
deleteMany?: TicketScalarWhereInput | TicketScalarWhereInput[]
}
export type TicketUncheckedUpdateManyWithoutColumnNestedInput = {
create?: XOR<TicketCreateWithoutColumnInput, TicketUncheckedCreateWithoutColumnInput> | TicketCreateWithoutColumnInput[] | TicketUncheckedCreateWithoutColumnInput[]
connectOrCreate?: TicketCreateOrConnectWithoutColumnInput | TicketCreateOrConnectWithoutColumnInput[]
upsert?: TicketUpsertWithWhereUniqueWithoutColumnInput | TicketUpsertWithWhereUniqueWithoutColumnInput[]
createMany?: TicketCreateManyColumnInputEnvelope
set?: TicketWhereUniqueInput | TicketWhereUniqueInput[]
disconnect?: TicketWhereUniqueInput | TicketWhereUniqueInput[]
delete?: TicketWhereUniqueInput | TicketWhereUniqueInput[]
connect?: TicketWhereUniqueInput | TicketWhereUniqueInput[]
update?: TicketUpdateWithWhereUniqueWithoutColumnInput | TicketUpdateWithWhereUniqueWithoutColumnInput[]
updateMany?: TicketUpdateManyWithWhereWithoutColumnInput | TicketUpdateManyWithWhereWithoutColumnInput[]
deleteMany?: TicketScalarWhereInput | TicketScalarWhereInput[]
}
export type ColumnCreateNestedOneWithoutTicketsInput = {
create?: XOR<ColumnCreateWithoutTicketsInput, ColumnUncheckedCreateWithoutTicketsInput>
connectOrCreate?: ColumnCreateOrConnectWithoutTicketsInput
connect?: ColumnWhereUniqueInput
}
export type ActivityLogCreateNestedManyWithoutTicketInput = {
create?: XOR<ActivityLogCreateWithoutTicketInput, ActivityLogUncheckedCreateWithoutTicketInput> | ActivityLogCreateWithoutTicketInput[] | ActivityLogUncheckedCreateWithoutTicketInput[]
connectOrCreate?: ActivityLogCreateOrConnectWithoutTicketInput | ActivityLogCreateOrConnectWithoutTicketInput[]
createMany?: ActivityLogCreateManyTicketInputEnvelope
connect?: ActivityLogWhereUniqueInput | ActivityLogWhereUniqueInput[]
}
export type ActivityLogUncheckedCreateNestedManyWithoutTicketInput = {
create?: XOR<ActivityLogCreateWithoutTicketInput, ActivityLogUncheckedCreateWithoutTicketInput> | ActivityLogCreateWithoutTicketInput[] | ActivityLogUncheckedCreateWithoutTicketInput[]
connectOrCreate?: ActivityLogCreateOrConnectWithoutTicketInput | ActivityLogCreateOrConnectWithoutTicketInput[]
createMany?: ActivityLogCreateManyTicketInputEnvelope
connect?: ActivityLogWhereUniqueInput | ActivityLogWhereUniqueInput[]
}
export type EnumPriorityFieldUpdateOperationsInput = {
set?: $Enums.Priority
}
export type NullableStringFieldUpdateOperationsInput = {
set?: string | null
}
export type ColumnUpdateOneRequiredWithoutTicketsNestedInput = {
create?: XOR<ColumnCreateWithoutTicketsInput, ColumnUncheckedCreateWithoutTicketsInput>
connectOrCreate?: ColumnCreateOrConnectWithoutTicketsInput
upsert?: ColumnUpsertWithoutTicketsInput
connect?: ColumnWhereUniqueInput
update?: XOR<XOR<ColumnUpdateToOneWithWhereWithoutTicketsInput, ColumnUpdateWithoutTicketsInput>, ColumnUncheckedUpdateWithoutTicketsInput>
}
export type ActivityLogUpdateManyWithoutTicketNestedInput = {
create?: XOR<ActivityLogCreateWithoutTicketInput, ActivityLogUncheckedCreateWithoutTicketInput> | ActivityLogCreateWithoutTicketInput[] | ActivityLogUncheckedCreateWithoutTicketInput[]
connectOrCreate?: ActivityLogCreateOrConnectWithoutTicketInput | ActivityLogCreateOrConnectWithoutTicketInput[]
upsert?: ActivityLogUpsertWithWhereUniqueWithoutTicketInput | ActivityLogUpsertWithWhereUniqueWithoutTicketInput[]
createMany?: ActivityLogCreateManyTicketInputEnvelope
set?: ActivityLogWhereUniqueInput | ActivityLogWhereUniqueInput[]
disconnect?: ActivityLogWhereUniqueInput | ActivityLogWhereUniqueInput[]
delete?: ActivityLogWhereUniqueInput | ActivityLogWhereUniqueInput[]
connect?: ActivityLogWhereUniqueInput | ActivityLogWhereUniqueInput[]
update?: ActivityLogUpdateWithWhereUniqueWithoutTicketInput | ActivityLogUpdateWithWhereUniqueWithoutTicketInput[]
updateMany?: ActivityLogUpdateManyWithWhereWithoutTicketInput | ActivityLogUpdateManyWithWhereWithoutTicketInput[]
deleteMany?: ActivityLogScalarWhereInput | ActivityLogScalarWhereInput[]
}
export type ActivityLogUncheckedUpdateManyWithoutTicketNestedInput = {
create?: XOR<ActivityLogCreateWithoutTicketInput, ActivityLogUncheckedCreateWithoutTicketInput> | ActivityLogCreateWithoutTicketInput[] | ActivityLogUncheckedCreateWithoutTicketInput[]
connectOrCreate?: ActivityLogCreateOrConnectWithoutTicketInput | ActivityLogCreateOrConnectWithoutTicketInput[]
upsert?: ActivityLogUpsertWithWhereUniqueWithoutTicketInput | ActivityLogUpsertWithWhereUniqueWithoutTicketInput[]
createMany?: ActivityLogCreateManyTicketInputEnvelope
set?: ActivityLogWhereUniqueInput | ActivityLogWhereUniqueInput[]
disconnect?: ActivityLogWhereUniqueInput | ActivityLogWhereUniqueInput[]
delete?: ActivityLogWhereUniqueInput | ActivityLogWhereUniqueInput[]
connect?: ActivityLogWhereUniqueInput | ActivityLogWhereUniqueInput[]
update?: ActivityLogUpdateWithWhereUniqueWithoutTicketInput | ActivityLogUpdateWithWhereUniqueWithoutTicketInput[]
updateMany?: ActivityLogUpdateManyWithWhereWithoutTicketInput | ActivityLogUpdateManyWithWhereWithoutTicketInput[]
deleteMany?: ActivityLogScalarWhereInput | ActivityLogScalarWhereInput[]
}
export type BoardCreateNestedOneWithoutActivityLogsInput = {
create?: XOR<BoardCreateWithoutActivityLogsInput, BoardUncheckedCreateWithoutActivityLogsInput>
connectOrCreate?: BoardCreateOrConnectWithoutActivityLogsInput
connect?: BoardWhereUniqueInput
}
export type TicketCreateNestedOneWithoutActivityLogsInput = {
create?: XOR<TicketCreateWithoutActivityLogsInput, TicketUncheckedCreateWithoutActivityLogsInput>
connectOrCreate?: TicketCreateOrConnectWithoutActivityLogsInput
connect?: TicketWhereUniqueInput
}
export type BoardUpdateOneRequiredWithoutActivityLogsNestedInput = {
create?: XOR<BoardCreateWithoutActivityLogsInput, BoardUncheckedCreateWithoutActivityLogsInput>
connectOrCreate?: BoardCreateOrConnectWithoutActivityLogsInput
upsert?: BoardUpsertWithoutActivityLogsInput
connect?: BoardWhereUniqueInput
update?: XOR<XOR<BoardUpdateToOneWithWhereWithoutActivityLogsInput, BoardUpdateWithoutActivityLogsInput>, BoardUncheckedUpdateWithoutActivityLogsInput>
}
export type TicketUpdateOneWithoutActivityLogsNestedInput = {
create?: XOR<TicketCreateWithoutActivityLogsInput, TicketUncheckedCreateWithoutActivityLogsInput>
connectOrCreate?: TicketCreateOrConnectWithoutActivityLogsInput
upsert?: TicketUpsertWithoutActivityLogsInput
disconnect?: TicketWhereInput | boolean
delete?: TicketWhereInput | boolean
connect?: TicketWhereUniqueInput
update?: XOR<XOR<TicketUpdateToOneWithWhereWithoutActivityLogsInput, TicketUpdateWithoutActivityLogsInput>, TicketUncheckedUpdateWithoutActivityLogsInput>
}
export type NestedStringFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel>
in?: string[] | ListStringFieldRefInput<$PrismaModel>
notIn?: string[] | ListStringFieldRefInput<$PrismaModel>
lt?: string | StringFieldRefInput<$PrismaModel>
lte?: string | StringFieldRefInput<$PrismaModel>
gt?: string | StringFieldRefInput<$PrismaModel>
gte?: string | StringFieldRefInput<$PrismaModel>
contains?: string | StringFieldRefInput<$PrismaModel>
startsWith?: string | StringFieldRefInput<$PrismaModel>
endsWith?: string | StringFieldRefInput<$PrismaModel>
not?: NestedStringFilter<$PrismaModel> | string
}
export type NestedBoolFilter<$PrismaModel = never> = {
equals?: boolean | BooleanFieldRefInput<$PrismaModel>
not?: NestedBoolFilter<$PrismaModel> | boolean
}
export type NestedDateTimeFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
not?: NestedDateTimeFilter<$PrismaModel> | Date | string
}
export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel>
in?: string[] | ListStringFieldRefInput<$PrismaModel>
notIn?: string[] | ListStringFieldRefInput<$PrismaModel>
lt?: string | StringFieldRefInput<$PrismaModel>
lte?: string | StringFieldRefInput<$PrismaModel>
gt?: string | StringFieldRefInput<$PrismaModel>
gte?: string | StringFieldRefInput<$PrismaModel>
contains?: string | StringFieldRefInput<$PrismaModel>
startsWith?: string | StringFieldRefInput<$PrismaModel>
endsWith?: string | StringFieldRefInput<$PrismaModel>
not?: NestedStringWithAggregatesFilter<$PrismaModel> | string
_count?: NestedIntFilter<$PrismaModel>
_min?: NestedStringFilter<$PrismaModel>
_max?: NestedStringFilter<$PrismaModel>
}
export type NestedIntFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel>
in?: number[] | ListIntFieldRefInput<$PrismaModel>
notIn?: number[] | ListIntFieldRefInput<$PrismaModel>
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntFilter<$PrismaModel> | number
}
export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = {
equals?: boolean | BooleanFieldRefInput<$PrismaModel>
not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
_count?: NestedIntFilter<$PrismaModel>
_min?: NestedBoolFilter<$PrismaModel>
_max?: NestedBoolFilter<$PrismaModel>
}
export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
_count?: NestedIntFilter<$PrismaModel>
_min?: NestedDateTimeFilter<$PrismaModel>
_max?: NestedDateTimeFilter<$PrismaModel>
}
export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel>
in?: number[] | ListIntFieldRefInput<$PrismaModel>
notIn?: number[] | ListIntFieldRefInput<$PrismaModel>
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntWithAggregatesFilter<$PrismaModel> | number
_count?: NestedIntFilter<$PrismaModel>
_avg?: NestedFloatFilter<$PrismaModel>
_sum?: NestedIntFilter<$PrismaModel>
_min?: NestedIntFilter<$PrismaModel>
_max?: NestedIntFilter<$PrismaModel>
}
export type NestedFloatFilter<$PrismaModel = never> = {
equals?: number | FloatFieldRefInput<$PrismaModel>
in?: number[] | ListFloatFieldRefInput<$PrismaModel>
notIn?: number[] | ListFloatFieldRefInput<$PrismaModel>
lt?: number | FloatFieldRefInput<$PrismaModel>
lte?: number | FloatFieldRefInput<$PrismaModel>
gt?: number | FloatFieldRefInput<$PrismaModel>
gte?: number | FloatFieldRefInput<$PrismaModel>
not?: NestedFloatFilter<$PrismaModel> | number
}
export type NestedEnumPriorityFilter<$PrismaModel = never> = {
equals?: $Enums.Priority | EnumPriorityFieldRefInput<$PrismaModel>
in?: $Enums.Priority[] | ListEnumPriorityFieldRefInput<$PrismaModel>
notIn?: $Enums.Priority[] | ListEnumPriorityFieldRefInput<$PrismaModel>
not?: NestedEnumPriorityFilter<$PrismaModel> | $Enums.Priority
}
export type NestedStringNullableFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel> | null
in?: string[] | ListStringFieldRefInput<$PrismaModel> | null
notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null
lt?: string | StringFieldRefInput<$PrismaModel>
lte?: string | StringFieldRefInput<$PrismaModel>
gt?: string | StringFieldRefInput<$PrismaModel>
gte?: string | StringFieldRefInput<$PrismaModel>
contains?: string | StringFieldRefInput<$PrismaModel>
startsWith?: string | StringFieldRefInput<$PrismaModel>
endsWith?: string | StringFieldRefInput<$PrismaModel>
not?: NestedStringNullableFilter<$PrismaModel> | string | null
}
export type NestedEnumPriorityWithAggregatesFilter<$PrismaModel = never> = {
equals?: $Enums.Priority | EnumPriorityFieldRefInput<$PrismaModel>
in?: $Enums.Priority[] | ListEnumPriorityFieldRefInput<$PrismaModel>
notIn?: $Enums.Priority[] | ListEnumPriorityFieldRefInput<$PrismaModel>
not?: NestedEnumPriorityWithAggregatesFilter<$PrismaModel> | $Enums.Priority
_count?: NestedIntFilter<$PrismaModel>
_min?: NestedEnumPriorityFilter<$PrismaModel>
_max?: NestedEnumPriorityFilter<$PrismaModel>
}
export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel> | null
in?: string[] | ListStringFieldRefInput<$PrismaModel> | null
notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null
lt?: string | StringFieldRefInput<$PrismaModel>
lte?: string | StringFieldRefInput<$PrismaModel>
gt?: string | StringFieldRefInput<$PrismaModel>
gte?: string | StringFieldRefInput<$PrismaModel>
contains?: string | StringFieldRefInput<$PrismaModel>
startsWith?: string | StringFieldRefInput<$PrismaModel>
endsWith?: string | StringFieldRefInput<$PrismaModel>
not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
_count?: NestedIntNullableFilter<$PrismaModel>
_min?: NestedStringNullableFilter<$PrismaModel>
_max?: NestedStringNullableFilter<$PrismaModel>
}
export type NestedIntNullableFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel> | null
in?: number[] | ListIntFieldRefInput<$PrismaModel> | null
notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntNullableFilter<$PrismaModel> | number | null
}
export type ColumnCreateWithoutBoardInput = {
id?: string
title: string
order?: number
maxWipLimit?: number
autoStaleHours?: number
createdAt?: Date | string
updatedAt?: Date | string
tickets?: TicketCreateNestedManyWithoutColumnInput
}
export type ColumnUncheckedCreateWithoutBoardInput = {
id?: string
title: string
order?: number
maxWipLimit?: number
autoStaleHours?: number
createdAt?: Date | string
updatedAt?: Date | string
tickets?: TicketUncheckedCreateNestedManyWithoutColumnInput
}
export type ColumnCreateOrConnectWithoutBoardInput = {
where: ColumnWhereUniqueInput
create: XOR<ColumnCreateWithoutBoardInput, ColumnUncheckedCreateWithoutBoardInput>
}
export type ColumnCreateManyBoardInputEnvelope = {
data: ColumnCreateManyBoardInput | ColumnCreateManyBoardInput[]
skipDuplicates?: boolean
}
export type ActivityLogCreateWithoutBoardInput = {
id?: string
ticketTitle?: string
action?: string
fromColumnTitle?: string | null
toColumnTitle?: string | null
userName?: string
details?: string | null
createdAt?: Date | string
ticket?: TicketCreateNestedOneWithoutActivityLogsInput
}
export type ActivityLogUncheckedCreateWithoutBoardInput = {
id?: string
ticketId?: string | null
ticketTitle?: string
action?: string
fromColumnTitle?: string | null
toColumnTitle?: string | null
userName?: string
details?: string | null
createdAt?: Date | string
}
export type ActivityLogCreateOrConnectWithoutBoardInput = {
where: ActivityLogWhereUniqueInput
create: XOR<ActivityLogCreateWithoutBoardInput, ActivityLogUncheckedCreateWithoutBoardInput>
}
export type ActivityLogCreateManyBoardInputEnvelope = {
data: ActivityLogCreateManyBoardInput | ActivityLogCreateManyBoardInput[]
skipDuplicates?: boolean
}
export type ColumnUpsertWithWhereUniqueWithoutBoardInput = {
where: ColumnWhereUniqueInput
update: XOR<ColumnUpdateWithoutBoardInput, ColumnUncheckedUpdateWithoutBoardInput>
create: XOR<ColumnCreateWithoutBoardInput, ColumnUncheckedCreateWithoutBoardInput>
}
export type ColumnUpdateWithWhereUniqueWithoutBoardInput = {
where: ColumnWhereUniqueInput
data: XOR<ColumnUpdateWithoutBoardInput, ColumnUncheckedUpdateWithoutBoardInput>
}
export type ColumnUpdateManyWithWhereWithoutBoardInput = {
where: ColumnScalarWhereInput
data: XOR<ColumnUpdateManyMutationInput, ColumnUncheckedUpdateManyWithoutBoardInput>
}
export type ColumnScalarWhereInput = {
AND?: ColumnScalarWhereInput | ColumnScalarWhereInput[]
OR?: ColumnScalarWhereInput[]
NOT?: ColumnScalarWhereInput | ColumnScalarWhereInput[]
id?: StringFilter<"Column"> | string
boardId?: StringFilter<"Column"> | string
title?: StringFilter<"Column"> | string
order?: IntFilter<"Column"> | number
maxWipLimit?: IntFilter<"Column"> | number
autoStaleHours?: IntFilter<"Column"> | number
createdAt?: DateTimeFilter<"Column"> | Date | string
updatedAt?: DateTimeFilter<"Column"> | Date | string
}
export type ActivityLogUpsertWithWhereUniqueWithoutBoardInput = {
where: ActivityLogWhereUniqueInput
update: XOR<ActivityLogUpdateWithoutBoardInput, ActivityLogUncheckedUpdateWithoutBoardInput>
create: XOR<ActivityLogCreateWithoutBoardInput, ActivityLogUncheckedCreateWithoutBoardInput>
}
export type ActivityLogUpdateWithWhereUniqueWithoutBoardInput = {
where: ActivityLogWhereUniqueInput
data: XOR<ActivityLogUpdateWithoutBoardInput, ActivityLogUncheckedUpdateWithoutBoardInput>
}
export type ActivityLogUpdateManyWithWhereWithoutBoardInput = {
where: ActivityLogScalarWhereInput
data: XOR<ActivityLogUpdateManyMutationInput, ActivityLogUncheckedUpdateManyWithoutBoardInput>
}
export type ActivityLogScalarWhereInput = {
AND?: ActivityLogScalarWhereInput | ActivityLogScalarWhereInput[]
OR?: ActivityLogScalarWhereInput[]
NOT?: ActivityLogScalarWhereInput | ActivityLogScalarWhereInput[]
id?: StringFilter<"ActivityLog"> | string
boardId?: StringFilter<"ActivityLog"> | string
ticketId?: StringNullableFilter<"ActivityLog"> | string | null
ticketTitle?: StringFilter<"ActivityLog"> | string
action?: StringFilter<"ActivityLog"> | string
fromColumnTitle?: StringNullableFilter<"ActivityLog"> | string | null
toColumnTitle?: StringNullableFilter<"ActivityLog"> | string | null
userName?: StringFilter<"ActivityLog"> | string
details?: StringNullableFilter<"ActivityLog"> | string | null
createdAt?: DateTimeFilter<"ActivityLog"> | Date | string
}
export type BoardCreateWithoutColumnsInput = {
id?: string
title?: string
adminKeyHash: string
memberKeyHash: string
autoMoveStale?: boolean
createdAt?: Date | string
updatedAt?: Date | string
activityLogs?: ActivityLogCreateNestedManyWithoutBoardInput
}
export type BoardUncheckedCreateWithoutColumnsInput = {
id?: string
title?: string
adminKeyHash: string
memberKeyHash: string
autoMoveStale?: boolean
createdAt?: Date | string
updatedAt?: Date | string
activityLogs?: ActivityLogUncheckedCreateNestedManyWithoutBoardInput
}
export type BoardCreateOrConnectWithoutColumnsInput = {
where: BoardWhereUniqueInput
create: XOR<BoardCreateWithoutColumnsInput, BoardUncheckedCreateWithoutColumnsInput>
}
export type TicketCreateWithoutColumnInput = {
id?: string
title: string
description?: string
order?: number
priority?: $Enums.Priority
tags?: string
subtasks?: string
dueDate?: string | null
isBlocked?: boolean
blockedReason?: string | null
assignee?: string | null
movedAt?: Date | string
createdAt?: Date | string
updatedAt?: Date | string
activityLogs?: ActivityLogCreateNestedManyWithoutTicketInput
}
export type TicketUncheckedCreateWithoutColumnInput = {
id?: string
title: string
description?: string
order?: number
priority?: $Enums.Priority
tags?: string
subtasks?: string
dueDate?: string | null
isBlocked?: boolean
blockedReason?: string | null
assignee?: string | null
movedAt?: Date | string
createdAt?: Date | string
updatedAt?: Date | string
activityLogs?: ActivityLogUncheckedCreateNestedManyWithoutTicketInput
}
export type TicketCreateOrConnectWithoutColumnInput = {
where: TicketWhereUniqueInput
create: XOR<TicketCreateWithoutColumnInput, TicketUncheckedCreateWithoutColumnInput>
}
export type TicketCreateManyColumnInputEnvelope = {
data: TicketCreateManyColumnInput | TicketCreateManyColumnInput[]
skipDuplicates?: boolean
}
export type BoardUpsertWithoutColumnsInput = {
update: XOR<BoardUpdateWithoutColumnsInput, BoardUncheckedUpdateWithoutColumnsInput>
create: XOR<BoardCreateWithoutColumnsInput, BoardUncheckedCreateWithoutColumnsInput>
where?: BoardWhereInput
}
export type BoardUpdateToOneWithWhereWithoutColumnsInput = {
where?: BoardWhereInput
data: XOR<BoardUpdateWithoutColumnsInput, BoardUncheckedUpdateWithoutColumnsInput>
}
export type BoardUpdateWithoutColumnsInput = {
id?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
adminKeyHash?: StringFieldUpdateOperationsInput | string
memberKeyHash?: StringFieldUpdateOperationsInput | string
autoMoveStale?: BoolFieldUpdateOperationsInput | boolean
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
activityLogs?: ActivityLogUpdateManyWithoutBoardNestedInput
}
export type BoardUncheckedUpdateWithoutColumnsInput = {
id?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
adminKeyHash?: StringFieldUpdateOperationsInput | string
memberKeyHash?: StringFieldUpdateOperationsInput | string
autoMoveStale?: BoolFieldUpdateOperationsInput | boolean
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
activityLogs?: ActivityLogUncheckedUpdateManyWithoutBoardNestedInput
}
export type TicketUpsertWithWhereUniqueWithoutColumnInput = {
where: TicketWhereUniqueInput
update: XOR<TicketUpdateWithoutColumnInput, TicketUncheckedUpdateWithoutColumnInput>
create: XOR<TicketCreateWithoutColumnInput, TicketUncheckedCreateWithoutColumnInput>
}
export type TicketUpdateWithWhereUniqueWithoutColumnInput = {
where: TicketWhereUniqueInput
data: XOR<TicketUpdateWithoutColumnInput, TicketUncheckedUpdateWithoutColumnInput>
}
export type TicketUpdateManyWithWhereWithoutColumnInput = {
where: TicketScalarWhereInput
data: XOR<TicketUpdateManyMutationInput, TicketUncheckedUpdateManyWithoutColumnInput>
}
export type TicketScalarWhereInput = {
AND?: TicketScalarWhereInput | TicketScalarWhereInput[]
OR?: TicketScalarWhereInput[]
NOT?: TicketScalarWhereInput | TicketScalarWhereInput[]
id?: StringFilter<"Ticket"> | string
columnId?: StringFilter<"Ticket"> | string
title?: StringFilter<"Ticket"> | string
description?: StringFilter<"Ticket"> | string
order?: IntFilter<"Ticket"> | number
priority?: EnumPriorityFilter<"Ticket"> | $Enums.Priority
tags?: StringFilter<"Ticket"> | string
subtasks?: StringFilter<"Ticket"> | string
dueDate?: StringNullableFilter<"Ticket"> | string | null
isBlocked?: BoolFilter<"Ticket"> | boolean
blockedReason?: StringNullableFilter<"Ticket"> | string | null
assignee?: StringNullableFilter<"Ticket"> | string | null
movedAt?: DateTimeFilter<"Ticket"> | Date | string
createdAt?: DateTimeFilter<"Ticket"> | Date | string
updatedAt?: DateTimeFilter<"Ticket"> | Date | string
}
export type ColumnCreateWithoutTicketsInput = {
id?: string
title: string
order?: number
maxWipLimit?: number
autoStaleHours?: number
createdAt?: Date | string
updatedAt?: Date | string
board: BoardCreateNestedOneWithoutColumnsInput
}
export type ColumnUncheckedCreateWithoutTicketsInput = {
id?: string
boardId: string
title: string
order?: number
maxWipLimit?: number
autoStaleHours?: number
createdAt?: Date | string
updatedAt?: Date | string
}
export type ColumnCreateOrConnectWithoutTicketsInput = {
where: ColumnWhereUniqueInput
create: XOR<ColumnCreateWithoutTicketsInput, ColumnUncheckedCreateWithoutTicketsInput>
}
export type ActivityLogCreateWithoutTicketInput = {
id?: string
ticketTitle?: string
action?: string
fromColumnTitle?: string | null
toColumnTitle?: string | null
userName?: string
details?: string | null
createdAt?: Date | string
board: BoardCreateNestedOneWithoutActivityLogsInput
}
export type ActivityLogUncheckedCreateWithoutTicketInput = {
id?: string
boardId: string
ticketTitle?: string
action?: string
fromColumnTitle?: string | null
toColumnTitle?: string | null
userName?: string
details?: string | null
createdAt?: Date | string
}
export type ActivityLogCreateOrConnectWithoutTicketInput = {
where: ActivityLogWhereUniqueInput
create: XOR<ActivityLogCreateWithoutTicketInput, ActivityLogUncheckedCreateWithoutTicketInput>
}
export type ActivityLogCreateManyTicketInputEnvelope = {
data: ActivityLogCreateManyTicketInput | ActivityLogCreateManyTicketInput[]
skipDuplicates?: boolean
}
export type ColumnUpsertWithoutTicketsInput = {
update: XOR<ColumnUpdateWithoutTicketsInput, ColumnUncheckedUpdateWithoutTicketsInput>
create: XOR<ColumnCreateWithoutTicketsInput, ColumnUncheckedCreateWithoutTicketsInput>
where?: ColumnWhereInput
}
export type ColumnUpdateToOneWithWhereWithoutTicketsInput = {
where?: ColumnWhereInput
data: XOR<ColumnUpdateWithoutTicketsInput, ColumnUncheckedUpdateWithoutTicketsInput>
}
export type ColumnUpdateWithoutTicketsInput = {
id?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
order?: IntFieldUpdateOperationsInput | number
maxWipLimit?: IntFieldUpdateOperationsInput | number
autoStaleHours?: IntFieldUpdateOperationsInput | number
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
board?: BoardUpdateOneRequiredWithoutColumnsNestedInput
}
export type ColumnUncheckedUpdateWithoutTicketsInput = {
id?: StringFieldUpdateOperationsInput | string
boardId?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
order?: IntFieldUpdateOperationsInput | number
maxWipLimit?: IntFieldUpdateOperationsInput | number
autoStaleHours?: IntFieldUpdateOperationsInput | number
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type ActivityLogUpsertWithWhereUniqueWithoutTicketInput = {
where: ActivityLogWhereUniqueInput
update: XOR<ActivityLogUpdateWithoutTicketInput, ActivityLogUncheckedUpdateWithoutTicketInput>
create: XOR<ActivityLogCreateWithoutTicketInput, ActivityLogUncheckedCreateWithoutTicketInput>
}
export type ActivityLogUpdateWithWhereUniqueWithoutTicketInput = {
where: ActivityLogWhereUniqueInput
data: XOR<ActivityLogUpdateWithoutTicketInput, ActivityLogUncheckedUpdateWithoutTicketInput>
}
export type ActivityLogUpdateManyWithWhereWithoutTicketInput = {
where: ActivityLogScalarWhereInput
data: XOR<ActivityLogUpdateManyMutationInput, ActivityLogUncheckedUpdateManyWithoutTicketInput>
}
export type BoardCreateWithoutActivityLogsInput = {
id?: string
title?: string
adminKeyHash: string
memberKeyHash: string
autoMoveStale?: boolean
createdAt?: Date | string
updatedAt?: Date | string
columns?: ColumnCreateNestedManyWithoutBoardInput
}
export type BoardUncheckedCreateWithoutActivityLogsInput = {
id?: string
title?: string
adminKeyHash: string
memberKeyHash: string
autoMoveStale?: boolean
createdAt?: Date | string
updatedAt?: Date | string
columns?: ColumnUncheckedCreateNestedManyWithoutBoardInput
}
export type BoardCreateOrConnectWithoutActivityLogsInput = {
where: BoardWhereUniqueInput
create: XOR<BoardCreateWithoutActivityLogsInput, BoardUncheckedCreateWithoutActivityLogsInput>
}
export type TicketCreateWithoutActivityLogsInput = {
id?: string
title: string
description?: string
order?: number
priority?: $Enums.Priority
tags?: string
subtasks?: string
dueDate?: string | null
isBlocked?: boolean
blockedReason?: string | null
assignee?: string | null
movedAt?: Date | string
createdAt?: Date | string
updatedAt?: Date | string
column: ColumnCreateNestedOneWithoutTicketsInput
}
export type TicketUncheckedCreateWithoutActivityLogsInput = {
id?: string
columnId: string
title: string
description?: string
order?: number
priority?: $Enums.Priority
tags?: string
subtasks?: string
dueDate?: string | null
isBlocked?: boolean
blockedReason?: string | null
assignee?: string | null
movedAt?: Date | string
createdAt?: Date | string
updatedAt?: Date | string
}
export type TicketCreateOrConnectWithoutActivityLogsInput = {
where: TicketWhereUniqueInput
create: XOR<TicketCreateWithoutActivityLogsInput, TicketUncheckedCreateWithoutActivityLogsInput>
}
export type BoardUpsertWithoutActivityLogsInput = {
update: XOR<BoardUpdateWithoutActivityLogsInput, BoardUncheckedUpdateWithoutActivityLogsInput>
create: XOR<BoardCreateWithoutActivityLogsInput, BoardUncheckedCreateWithoutActivityLogsInput>
where?: BoardWhereInput
}
export type BoardUpdateToOneWithWhereWithoutActivityLogsInput = {
where?: BoardWhereInput
data: XOR<BoardUpdateWithoutActivityLogsInput, BoardUncheckedUpdateWithoutActivityLogsInput>
}
export type BoardUpdateWithoutActivityLogsInput = {
id?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
adminKeyHash?: StringFieldUpdateOperationsInput | string
memberKeyHash?: StringFieldUpdateOperationsInput | string
autoMoveStale?: BoolFieldUpdateOperationsInput | boolean
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
columns?: ColumnUpdateManyWithoutBoardNestedInput
}
export type BoardUncheckedUpdateWithoutActivityLogsInput = {
id?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
adminKeyHash?: StringFieldUpdateOperationsInput | string
memberKeyHash?: StringFieldUpdateOperationsInput | string
autoMoveStale?: BoolFieldUpdateOperationsInput | boolean
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
columns?: ColumnUncheckedUpdateManyWithoutBoardNestedInput
}
export type TicketUpsertWithoutActivityLogsInput = {
update: XOR<TicketUpdateWithoutActivityLogsInput, TicketUncheckedUpdateWithoutActivityLogsInput>
create: XOR<TicketCreateWithoutActivityLogsInput, TicketUncheckedCreateWithoutActivityLogsInput>
where?: TicketWhereInput
}
export type TicketUpdateToOneWithWhereWithoutActivityLogsInput = {
where?: TicketWhereInput
data: XOR<TicketUpdateWithoutActivityLogsInput, TicketUncheckedUpdateWithoutActivityLogsInput>
}
export type TicketUpdateWithoutActivityLogsInput = {
id?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
description?: StringFieldUpdateOperationsInput | string
order?: IntFieldUpdateOperationsInput | number
priority?: EnumPriorityFieldUpdateOperationsInput | $Enums.Priority
tags?: StringFieldUpdateOperationsInput | string
subtasks?: StringFieldUpdateOperationsInput | string
dueDate?: NullableStringFieldUpdateOperationsInput | string | null
isBlocked?: BoolFieldUpdateOperationsInput | boolean
blockedReason?: NullableStringFieldUpdateOperationsInput | string | null
assignee?: NullableStringFieldUpdateOperationsInput | string | null
movedAt?: DateTimeFieldUpdateOperationsInput | Date | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
column?: ColumnUpdateOneRequiredWithoutTicketsNestedInput
}
export type TicketUncheckedUpdateWithoutActivityLogsInput = {
id?: StringFieldUpdateOperationsInput | string
columnId?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
description?: StringFieldUpdateOperationsInput | string
order?: IntFieldUpdateOperationsInput | number
priority?: EnumPriorityFieldUpdateOperationsInput | $Enums.Priority
tags?: StringFieldUpdateOperationsInput | string
subtasks?: StringFieldUpdateOperationsInput | string
dueDate?: NullableStringFieldUpdateOperationsInput | string | null
isBlocked?: BoolFieldUpdateOperationsInput | boolean
blockedReason?: NullableStringFieldUpdateOperationsInput | string | null
assignee?: NullableStringFieldUpdateOperationsInput | string | null
movedAt?: DateTimeFieldUpdateOperationsInput | Date | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type ColumnCreateManyBoardInput = {
id?: string
title: string
order?: number
maxWipLimit?: number
autoStaleHours?: number
createdAt?: Date | string
updatedAt?: Date | string
}
export type ActivityLogCreateManyBoardInput = {
id?: string
ticketId?: string | null
ticketTitle?: string
action?: string
fromColumnTitle?: string | null
toColumnTitle?: string | null
userName?: string
details?: string | null
createdAt?: Date | string
}
export type ColumnUpdateWithoutBoardInput = {
id?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
order?: IntFieldUpdateOperationsInput | number
maxWipLimit?: IntFieldUpdateOperationsInput | number
autoStaleHours?: IntFieldUpdateOperationsInput | number
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
tickets?: TicketUpdateManyWithoutColumnNestedInput
}
export type ColumnUncheckedUpdateWithoutBoardInput = {
id?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
order?: IntFieldUpdateOperationsInput | number
maxWipLimit?: IntFieldUpdateOperationsInput | number
autoStaleHours?: IntFieldUpdateOperationsInput | number
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
tickets?: TicketUncheckedUpdateManyWithoutColumnNestedInput
}
export type ColumnUncheckedUpdateManyWithoutBoardInput = {
id?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
order?: IntFieldUpdateOperationsInput | number
maxWipLimit?: IntFieldUpdateOperationsInput | number
autoStaleHours?: IntFieldUpdateOperationsInput | number
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type ActivityLogUpdateWithoutBoardInput = {
id?: StringFieldUpdateOperationsInput | string
ticketTitle?: StringFieldUpdateOperationsInput | string
action?: StringFieldUpdateOperationsInput | string
fromColumnTitle?: NullableStringFieldUpdateOperationsInput | string | null
toColumnTitle?: NullableStringFieldUpdateOperationsInput | string | null
userName?: StringFieldUpdateOperationsInput | string
details?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
ticket?: TicketUpdateOneWithoutActivityLogsNestedInput
}
export type ActivityLogUncheckedUpdateWithoutBoardInput = {
id?: StringFieldUpdateOperationsInput | string
ticketId?: NullableStringFieldUpdateOperationsInput | string | null
ticketTitle?: StringFieldUpdateOperationsInput | string
action?: StringFieldUpdateOperationsInput | string
fromColumnTitle?: NullableStringFieldUpdateOperationsInput | string | null
toColumnTitle?: NullableStringFieldUpdateOperationsInput | string | null
userName?: StringFieldUpdateOperationsInput | string
details?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type ActivityLogUncheckedUpdateManyWithoutBoardInput = {
id?: StringFieldUpdateOperationsInput | string
ticketId?: NullableStringFieldUpdateOperationsInput | string | null
ticketTitle?: StringFieldUpdateOperationsInput | string
action?: StringFieldUpdateOperationsInput | string
fromColumnTitle?: NullableStringFieldUpdateOperationsInput | string | null
toColumnTitle?: NullableStringFieldUpdateOperationsInput | string | null
userName?: StringFieldUpdateOperationsInput | string
details?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type TicketCreateManyColumnInput = {
id?: string
title: string
description?: string
order?: number
priority?: $Enums.Priority
tags?: string
subtasks?: string
dueDate?: string | null
isBlocked?: boolean
blockedReason?: string | null
assignee?: string | null
movedAt?: Date | string
createdAt?: Date | string
updatedAt?: Date | string
}
export type TicketUpdateWithoutColumnInput = {
id?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
description?: StringFieldUpdateOperationsInput | string
order?: IntFieldUpdateOperationsInput | number
priority?: EnumPriorityFieldUpdateOperationsInput | $Enums.Priority
tags?: StringFieldUpdateOperationsInput | string
subtasks?: StringFieldUpdateOperationsInput | string
dueDate?: NullableStringFieldUpdateOperationsInput | string | null
isBlocked?: BoolFieldUpdateOperationsInput | boolean
blockedReason?: NullableStringFieldUpdateOperationsInput | string | null
assignee?: NullableStringFieldUpdateOperationsInput | string | null
movedAt?: DateTimeFieldUpdateOperationsInput | Date | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
activityLogs?: ActivityLogUpdateManyWithoutTicketNestedInput
}
export type TicketUncheckedUpdateWithoutColumnInput = {
id?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
description?: StringFieldUpdateOperationsInput | string
order?: IntFieldUpdateOperationsInput | number
priority?: EnumPriorityFieldUpdateOperationsInput | $Enums.Priority
tags?: StringFieldUpdateOperationsInput | string
subtasks?: StringFieldUpdateOperationsInput | string
dueDate?: NullableStringFieldUpdateOperationsInput | string | null
isBlocked?: BoolFieldUpdateOperationsInput | boolean
blockedReason?: NullableStringFieldUpdateOperationsInput | string | null
assignee?: NullableStringFieldUpdateOperationsInput | string | null
movedAt?: DateTimeFieldUpdateOperationsInput | Date | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
activityLogs?: ActivityLogUncheckedUpdateManyWithoutTicketNestedInput
}
export type TicketUncheckedUpdateManyWithoutColumnInput = {
id?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
description?: StringFieldUpdateOperationsInput | string
order?: IntFieldUpdateOperationsInput | number
priority?: EnumPriorityFieldUpdateOperationsInput | $Enums.Priority
tags?: StringFieldUpdateOperationsInput | string
subtasks?: StringFieldUpdateOperationsInput | string
dueDate?: NullableStringFieldUpdateOperationsInput | string | null
isBlocked?: BoolFieldUpdateOperationsInput | boolean
blockedReason?: NullableStringFieldUpdateOperationsInput | string | null
assignee?: NullableStringFieldUpdateOperationsInput | string | null
movedAt?: DateTimeFieldUpdateOperationsInput | Date | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type ActivityLogCreateManyTicketInput = {
id?: string
boardId: string
ticketTitle?: string
action?: string
fromColumnTitle?: string | null
toColumnTitle?: string | null
userName?: string
details?: string | null
createdAt?: Date | string
}
export type ActivityLogUpdateWithoutTicketInput = {
id?: StringFieldUpdateOperationsInput | string
ticketTitle?: StringFieldUpdateOperationsInput | string
action?: StringFieldUpdateOperationsInput | string
fromColumnTitle?: NullableStringFieldUpdateOperationsInput | string | null
toColumnTitle?: NullableStringFieldUpdateOperationsInput | string | null
userName?: StringFieldUpdateOperationsInput | string
details?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
board?: BoardUpdateOneRequiredWithoutActivityLogsNestedInput
}
export type ActivityLogUncheckedUpdateWithoutTicketInput = {
id?: StringFieldUpdateOperationsInput | string
boardId?: StringFieldUpdateOperationsInput | string
ticketTitle?: StringFieldUpdateOperationsInput | string
action?: StringFieldUpdateOperationsInput | string
fromColumnTitle?: NullableStringFieldUpdateOperationsInput | string | null
toColumnTitle?: NullableStringFieldUpdateOperationsInput | string | null
userName?: StringFieldUpdateOperationsInput | string
details?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type ActivityLogUncheckedUpdateManyWithoutTicketInput = {
id?: StringFieldUpdateOperationsInput | string
boardId?: StringFieldUpdateOperationsInput | string
ticketTitle?: StringFieldUpdateOperationsInput | string
action?: StringFieldUpdateOperationsInput | string
fromColumnTitle?: NullableStringFieldUpdateOperationsInput | string | null
toColumnTitle?: NullableStringFieldUpdateOperationsInput | string | null
userName?: StringFieldUpdateOperationsInput | string
details?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
/**
* Aliases for legacy arg types
*/
/**
* @deprecated Use BoardCountOutputTypeDefaultArgs instead
*/
export type BoardCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = BoardCountOutputTypeDefaultArgs<ExtArgs>
/**
* @deprecated Use ColumnCountOutputTypeDefaultArgs instead
*/
export type ColumnCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = ColumnCountOutputTypeDefaultArgs<ExtArgs>
/**
* @deprecated Use TicketCountOutputTypeDefaultArgs instead
*/
export type TicketCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = TicketCountOutputTypeDefaultArgs<ExtArgs>
/**
* @deprecated Use BoardDefaultArgs instead
*/
export type BoardArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = BoardDefaultArgs<ExtArgs>
/**
* @deprecated Use ColumnDefaultArgs instead
*/
export type ColumnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = ColumnDefaultArgs<ExtArgs>
/**
* @deprecated Use TicketDefaultArgs instead
*/
export type TicketArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = TicketDefaultArgs<ExtArgs>
/**
* @deprecated Use ActivityLogDefaultArgs instead
*/
export type ActivityLogArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = ActivityLogDefaultArgs<ExtArgs>
/**
* Batch Payload for updateMany & deleteMany & createMany
*/
export type BatchPayload = {
count: number
}
/**
* DMMF
*/
export const dmmf: runtime.BaseDMMF
}