NeahNew/node_modules/.prisma/client/index.d.ts
2025-05-22 20:59:31 +02:00

17724 lines
649 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 User
*
*/
export type User = $Result.DefaultSelection<Prisma.$UserPayload>
/**
* Model Calendar
*
*/
export type Calendar = $Result.DefaultSelection<Prisma.$CalendarPayload>
/**
* Model Event
*
*/
export type Event = $Result.DefaultSelection<Prisma.$EventPayload>
/**
* Model MailCredentials
*
*/
export type MailCredentials = $Result.DefaultSelection<Prisma.$MailCredentialsPayload>
/**
* Model WebDAVCredentials
*
*/
export type WebDAVCredentials = $Result.DefaultSelection<Prisma.$WebDAVCredentialsPayload>
/**
* Model Announcement
*
*/
export type Announcement = $Result.DefaultSelection<Prisma.$AnnouncementPayload>
/**
* Model Mission
*
*/
export type Mission = $Result.DefaultSelection<Prisma.$MissionPayload>
/**
* Model Attachment
*
*/
export type Attachment = $Result.DefaultSelection<Prisma.$AttachmentPayload>
/**
* Model MissionUser
*
*/
export type MissionUser = $Result.DefaultSelection<Prisma.$MissionUserPayload>
/**
* ## Prisma Client ʲˢ
*
* Type-safe database client for TypeScript & Node.js
* @example
* ```
* const prisma = new PrismaClient()
* // Fetch zero or more Users
* const users = await prisma.user.findMany()
* ```
*
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
*/
export class PrismaClient<
ClientOptions extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions,
U = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array<Prisma.LogLevel | Prisma.LogDefinition> ? Prisma.GetEvents<ClientOptions['log']> : never : never,
ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs
> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['other'] }
/**
* ## Prisma Client ʲˢ
*
* Type-safe database client for TypeScript & Node.js
* @example
* ```
* const prisma = new PrismaClient()
* // Fetch zero or more Users
* const users = await prisma.user.findMany()
* ```
*
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
*/
constructor(optionsArg ?: Prisma.Subset<ClientOptions, Prisma.PrismaClientOptions>);
$on<V extends U>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): void;
/**
* Connect with the database
*/
$connect(): $Utils.JsPromise<void>;
/**
* Disconnect from the database
*/
$disconnect(): $Utils.JsPromise<void>;
/**
* Add a middleware
* @deprecated since 4.16.0. For new code, prefer client extensions instead.
* @see https://pris.ly/d/extensions
*/
$use(cb: Prisma.Middleware): void
/**
* Executes a prepared raw query and returns the number of affected rows.
* @example
* ```
* const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`
* ```
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
*/
$executeRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>;
/**
* Executes a raw query and returns the number of affected rows.
* Susceptible to SQL injections, see documentation.
* @example
* ```
* const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com')
* ```
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
*/
$executeRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;
/**
* Performs a prepared raw query and returns the `SELECT` data.
* @example
* ```
* const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`
* ```
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
*/
$queryRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>;
/**
* Performs a raw query and returns the `SELECT` data.
* Susceptible to SQL injections, see documentation.
* @example
* ```
* const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com')
* ```
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
*/
$queryRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;
/**
* Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole.
* @example
* ```
* const [george, bob, alice] = await prisma.$transaction([
* prisma.user.create({ data: { name: 'George' } }),
* prisma.user.create({ data: { name: 'Bob' } }),
* prisma.user.create({ data: { name: 'Alice' } }),
* ])
* ```
*
* Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions).
*/
$transaction<P extends Prisma.PrismaPromise<any>[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise<runtime.Types.Utils.UnwrapTuple<P>>
$transaction<R>(fn: (prisma: Omit<PrismaClient, runtime.ITXClientDenyList>) => $Utils.JsPromise<R>, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise<R>
$extends: $Extensions.ExtendsHook<"extends", Prisma.TypeMapCb, ExtArgs, $Utils.Call<Prisma.TypeMapCb, {
extArgs: ExtArgs
}>, ClientOptions>
/**
* `prisma.user`: Exposes CRUD operations for the **User** model.
* Example usage:
* ```ts
* // Fetch zero or more Users
* const users = await prisma.user.findMany()
* ```
*/
get user(): Prisma.UserDelegate<ExtArgs, ClientOptions>;
/**
* `prisma.calendar`: Exposes CRUD operations for the **Calendar** model.
* Example usage:
* ```ts
* // Fetch zero or more Calendars
* const calendars = await prisma.calendar.findMany()
* ```
*/
get calendar(): Prisma.CalendarDelegate<ExtArgs, ClientOptions>;
/**
* `prisma.event`: Exposes CRUD operations for the **Event** model.
* Example usage:
* ```ts
* // Fetch zero or more Events
* const events = await prisma.event.findMany()
* ```
*/
get event(): Prisma.EventDelegate<ExtArgs, ClientOptions>;
/**
* `prisma.mailCredentials`: Exposes CRUD operations for the **MailCredentials** model.
* Example usage:
* ```ts
* // Fetch zero or more MailCredentials
* const mailCredentials = await prisma.mailCredentials.findMany()
* ```
*/
get mailCredentials(): Prisma.MailCredentialsDelegate<ExtArgs, ClientOptions>;
/**
* `prisma.webDAVCredentials`: Exposes CRUD operations for the **WebDAVCredentials** model.
* Example usage:
* ```ts
* // Fetch zero or more WebDAVCredentials
* const webDAVCredentials = await prisma.webDAVCredentials.findMany()
* ```
*/
get webDAVCredentials(): Prisma.WebDAVCredentialsDelegate<ExtArgs, ClientOptions>;
/**
* `prisma.announcement`: Exposes CRUD operations for the **Announcement** model.
* Example usage:
* ```ts
* // Fetch zero or more Announcements
* const announcements = await prisma.announcement.findMany()
* ```
*/
get announcement(): Prisma.AnnouncementDelegate<ExtArgs, ClientOptions>;
/**
* `prisma.mission`: Exposes CRUD operations for the **Mission** model.
* Example usage:
* ```ts
* // Fetch zero or more Missions
* const missions = await prisma.mission.findMany()
* ```
*/
get mission(): Prisma.MissionDelegate<ExtArgs, ClientOptions>;
/**
* `prisma.attachment`: Exposes CRUD operations for the **Attachment** model.
* Example usage:
* ```ts
* // Fetch zero or more Attachments
* const attachments = await prisma.attachment.findMany()
* ```
*/
get attachment(): Prisma.AttachmentDelegate<ExtArgs, ClientOptions>;
/**
* `prisma.missionUser`: Exposes CRUD operations for the **MissionUser** model.
* Example usage:
* ```ts
* // Fetch zero or more MissionUsers
* const missionUsers = await prisma.missionUser.findMany()
* ```
*/
get missionUser(): Prisma.MissionUserDelegate<ExtArgs, ClientOptions>;
}
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
/**
* 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: 6.4.1
* Query Engine version: a9055b89e58b4b5bfb59600785423b1db3d0e75d
*/
export type PrismaVersion = {
client: string
}
export const prismaVersion: PrismaVersion
/**
* Utility Types
*/
export import JsonObject = runtime.JsonObject
export import JsonArray = runtime.JsonArray
export import JsonValue = runtime.JsonValue
export import InputJsonObject = runtime.InputJsonObject
export import InputJsonArray = runtime.InputJsonArray
export import InputJsonValue = runtime.InputJsonValue
/**
* Types of the values used to represent different kinds of `null` values when working with JSON fields.
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
namespace NullTypes {
/**
* Type of `Prisma.DbNull`.
*
* You cannot use other instances of this class. Please use the `Prisma.DbNull` value.
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
class DbNull {
private DbNull: never
private constructor()
}
/**
* Type of `Prisma.JsonNull`.
*
* You cannot use other instances of this class. Please use the `Prisma.JsonNull` value.
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
class JsonNull {
private JsonNull: never
private constructor()
}
/**
* Type of `Prisma.AnyNull`.
*
* You cannot use other instances of this class. Please use the `Prisma.AnyNull` value.
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
class AnyNull {
private AnyNull: never
private constructor()
}
}
/**
* Helper for filtering JSON entries that have `null` on the database (empty on the db)
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
export const DbNull: NullTypes.DbNull
/**
* Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
export const JsonNull: NullTypes.JsonNull
/**
* Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
export const AnyNull: NullTypes.AnyNull
type SelectAndInclude = {
select: any
include: any
}
type SelectAndOmit = {
select: any
omit: any
}
/**
* Get the type of the value, that the Promise holds.
*/
export type PromiseType<T extends PromiseLike<any>> = T extends PromiseLike<infer U> ? U : T;
/**
* Get the return type of a function which returns a Promise.
*/
export type PromiseReturnType<T extends (...args: any) => $Utils.JsPromise<any>> = PromiseType<ReturnType<T>>
/**
* From T, pick a set of properties whose keys are in the union K
*/
type Prisma__Pick<T, K extends keyof T> = {
[P in K]: T[P];
};
export type Enumerable<T> = T | Array<T>;
export type RequiredKeys<T> = {
[K in keyof T]-?: {} extends Prisma__Pick<T, K> ? never : K
}[keyof T]
export type TruthyKeys<T> = keyof {
[K in keyof T as T[K] extends false | undefined | null ? never : K]: K
}
export type TrueKeys<T> = TruthyKeys<Prisma__Pick<T, RequiredKeys<T>>>
/**
* Subset
* @desc From `T` pick properties that exist in `U`. Simple version of Intersection
*/
export type Subset<T, U> = {
[key in keyof T]: key extends keyof U ? T[key] : never;
};
/**
* SelectSubset
* @desc From `T` pick properties that exist in `U`. Simple version of Intersection.
* Additionally, it validates, if both select and include are present. If the case, it errors.
*/
export type SelectSubset<T, U> = {
[key in keyof T]: key extends keyof U ? T[key] : never
} &
(T extends SelectAndInclude
? 'Please either choose `select` or `include`.'
: T extends SelectAndOmit
? 'Please either choose `select` or `omit`.'
: {})
/**
* Subset + Intersection
* @desc From `T` pick properties that exist in `U` and intersect `K`
*/
export type SubsetIntersection<T, U, K> = {
[key in keyof T]: key extends keyof U ? T[key] : never
} &
K
type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never };
/**
* XOR is needed to have a real mutually exclusive union type
* https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types
*/
type XOR<T, U> =
T extends object ?
U extends object ?
(Without<T, U> & U) | (Without<U, T> & T)
: U : T
/**
* Is T a Record?
*/
type IsObject<T extends any> = T extends Array<any>
? False
: T extends Date
? False
: T extends Uint8Array
? False
: T extends BigInt
? False
: T extends object
? True
: False
/**
* If it's T[], return T
*/
export type UnEnumerate<T extends unknown> = T extends Array<infer U> ? U : T
/**
* From ts-toolbelt
*/
type __Either<O extends object, K extends Key> = Omit<O, K> &
{
// Merge all but K
[P in K]: Prisma__Pick<O, P & keyof O> // With K possibilities
}[K]
type EitherStrict<O extends object, K extends Key> = Strict<__Either<O, K>>
type EitherLoose<O extends object, K extends Key> = ComputeRaw<__Either<O, K>>
type _Either<
O extends object,
K extends Key,
strict extends Boolean
> = {
1: EitherStrict<O, K>
0: EitherLoose<O, K>
}[strict]
type Either<
O extends object,
K extends Key,
strict extends Boolean = 1
> = O extends unknown ? _Either<O, K, strict> : never
export type Union = any
type PatchUndefined<O extends object, O1 extends object> = {
[K in keyof O]: O[K] extends undefined ? At<O1, K> : O[K]
} & {}
/** Helper Types for "Merge" **/
export type IntersectOf<U extends Union> = (
U extends unknown ? (k: U) => void : never
) extends (k: infer I) => void
? I
: never
export type Overwrite<O extends object, O1 extends object> = {
[K in keyof O]: K extends keyof O1 ? O1[K] : O[K];
} & {};
type _Merge<U extends object> = IntersectOf<Overwrite<U, {
[K in keyof U]-?: At<U, K>;
}>>;
type Key = string | number | symbol;
type AtBasic<O extends object, K extends Key> = K extends keyof O ? O[K] : never;
type AtStrict<O extends object, K extends Key> = O[K & keyof O];
type AtLoose<O extends object, K extends Key> = O extends unknown ? AtStrict<O, K> : never;
export type At<O extends object, K extends Key, strict extends Boolean = 1> = {
1: AtStrict<O, K>;
0: AtLoose<O, K>;
}[strict];
export type ComputeRaw<A extends any> = A extends Function ? A : {
[K in keyof A]: A[K];
} & {};
export type OptionalFlat<O> = {
[K in keyof O]?: O[K];
} & {};
type _Record<K extends keyof any, T> = {
[P in K]: T;
};
// cause typescript not to expand types and preserve names
type NoExpand<T> = T extends unknown ? T : never;
// this type assumes the passed object is entirely optional
type AtLeast<O extends object, K extends string> = NoExpand<
O extends unknown
? | (K extends keyof O ? { [P in K]: O[P] } & O : O)
| {[P in keyof O as P extends K ? K : never]-?: O[P]} & O
: never>;
type _Strict<U, _U = U> = U extends unknown ? U & OptionalFlat<_Record<Exclude<Keys<_U>, keyof U>, never>> : never;
export type Strict<U extends object> = ComputeRaw<_Strict<U>>;
/** End Helper Types for "Merge" **/
export type Merge<U extends object> = ComputeRaw<_Merge<Strict<U>>>;
/**
A [[Boolean]]
*/
export type Boolean = True | False
// /**
// 1
// */
export type True = 1
/**
0
*/
export type False = 0
export type Not<B extends Boolean> = {
0: 1
1: 0
}[B]
export type Extends<A1 extends any, A2 extends any> = [A1] extends [never]
? 0 // anything `never` is false
: A1 extends A2
? 1
: 0
export type Has<U extends Union, U1 extends Union> = Not<
Extends<Exclude<U1, U>, U1>
>
export type Or<B1 extends Boolean, B2 extends Boolean> = {
0: {
0: 0
1: 1
}
1: {
0: 1
1: 1
}
}[B1][B2]
export type Keys<U extends Union> = U extends unknown ? keyof U : never
type Cast<A, B> = A extends B ? A : B;
export const type: unique symbol;
/**
* Used by group by
*/
export type GetScalarType<T, O> = O extends object ? {
[P in keyof T]: P extends keyof O
? O[P]
: never
} : never
type FieldPaths<
T,
U = Omit<T, '_avg' | '_sum' | '_count' | '_min' | '_max'>
> = IsObject<T> extends True ? U : T
type GetHavingFields<T> = {
[K in keyof T]: Or<
Or<Extends<'OR', K>, Extends<'AND', K>>,
Extends<'NOT', K>
> extends True
? // infer is only needed to not hit TS limit
// based on the brilliant idea of Pierre-Antoine Mills
// https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437
T[K] extends infer TK
? GetHavingFields<UnEnumerate<TK> extends object ? Merge<UnEnumerate<TK>> : never>
: never
: {} extends FieldPaths<T[K]>
? never
: K
}[keyof T]
/**
* Convert tuple to union
*/
type _TupleToUnion<T> = T extends (infer E)[] ? E : never
type TupleToUnion<K extends readonly any[]> = _TupleToUnion<K>
type MaybeTupleToUnion<T> = T extends any[] ? TupleToUnion<T> : T
/**
* Like `Pick`, but additionally can also accept an array of keys
*/
type PickEnumerable<T, K extends Enumerable<keyof T> | keyof T> = Prisma__Pick<T, MaybeTupleToUnion<K>>
/**
* Exclude all keys with underscores
*/
type ExcludeUnderscoreKeys<T extends string> = T extends `_${string}` ? never : T
export type FieldRef<Model, FieldType> = runtime.FieldRef<Model, FieldType>
type FieldRefInputType<Model, FieldType> = Model extends never ? never : FieldRef<Model, FieldType>
export const ModelName: {
User: 'User',
Calendar: 'Calendar',
Event: 'Event',
MailCredentials: 'MailCredentials',
WebDAVCredentials: 'WebDAVCredentials',
Announcement: 'Announcement',
Mission: 'Mission',
Attachment: 'Attachment',
MissionUser: 'MissionUser'
};
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
export type Datasources = {
db?: Datasource
}
interface TypeMapCb extends $Utils.Fn<{extArgs: $Extensions.InternalArgs, clientOptions: PrismaClientOptions }, $Utils.Record<string, any>> {
returns: Prisma.TypeMap<this['params']['extArgs'], this['params']['clientOptions']>
}
export type TypeMap<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, ClientOptions = {}> = {
meta: {
modelProps: "user" | "calendar" | "event" | "mailCredentials" | "webDAVCredentials" | "announcement" | "mission" | "attachment" | "missionUser"
txIsolationLevel: Prisma.TransactionIsolationLevel
}
model: {
User: {
payload: Prisma.$UserPayload<ExtArgs>
fields: Prisma.UserFieldRefs
operations: {
findUnique: {
args: Prisma.UserFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserPayload> | null
}
findUniqueOrThrow: {
args: Prisma.UserFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserPayload>
}
findFirst: {
args: Prisma.UserFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserPayload> | null
}
findFirstOrThrow: {
args: Prisma.UserFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserPayload>
}
findMany: {
args: Prisma.UserFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserPayload>[]
}
create: {
args: Prisma.UserCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserPayload>
}
createMany: {
args: Prisma.UserCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.UserCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserPayload>[]
}
delete: {
args: Prisma.UserDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserPayload>
}
update: {
args: Prisma.UserUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserPayload>
}
deleteMany: {
args: Prisma.UserDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.UserUpdateManyArgs<ExtArgs>
result: BatchPayload
}
updateManyAndReturn: {
args: Prisma.UserUpdateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserPayload>[]
}
upsert: {
args: Prisma.UserUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserPayload>
}
aggregate: {
args: Prisma.UserAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateUser>
}
groupBy: {
args: Prisma.UserGroupByArgs<ExtArgs>
result: $Utils.Optional<UserGroupByOutputType>[]
}
count: {
args: Prisma.UserCountArgs<ExtArgs>
result: $Utils.Optional<UserCountAggregateOutputType> | number
}
}
}
Calendar: {
payload: Prisma.$CalendarPayload<ExtArgs>
fields: Prisma.CalendarFieldRefs
operations: {
findUnique: {
args: Prisma.CalendarFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$CalendarPayload> | null
}
findUniqueOrThrow: {
args: Prisma.CalendarFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$CalendarPayload>
}
findFirst: {
args: Prisma.CalendarFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$CalendarPayload> | null
}
findFirstOrThrow: {
args: Prisma.CalendarFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$CalendarPayload>
}
findMany: {
args: Prisma.CalendarFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$CalendarPayload>[]
}
create: {
args: Prisma.CalendarCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$CalendarPayload>
}
createMany: {
args: Prisma.CalendarCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.CalendarCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$CalendarPayload>[]
}
delete: {
args: Prisma.CalendarDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$CalendarPayload>
}
update: {
args: Prisma.CalendarUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$CalendarPayload>
}
deleteMany: {
args: Prisma.CalendarDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.CalendarUpdateManyArgs<ExtArgs>
result: BatchPayload
}
updateManyAndReturn: {
args: Prisma.CalendarUpdateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$CalendarPayload>[]
}
upsert: {
args: Prisma.CalendarUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$CalendarPayload>
}
aggregate: {
args: Prisma.CalendarAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateCalendar>
}
groupBy: {
args: Prisma.CalendarGroupByArgs<ExtArgs>
result: $Utils.Optional<CalendarGroupByOutputType>[]
}
count: {
args: Prisma.CalendarCountArgs<ExtArgs>
result: $Utils.Optional<CalendarCountAggregateOutputType> | number
}
}
}
Event: {
payload: Prisma.$EventPayload<ExtArgs>
fields: Prisma.EventFieldRefs
operations: {
findUnique: {
args: Prisma.EventFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventPayload> | null
}
findUniqueOrThrow: {
args: Prisma.EventFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventPayload>
}
findFirst: {
args: Prisma.EventFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventPayload> | null
}
findFirstOrThrow: {
args: Prisma.EventFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventPayload>
}
findMany: {
args: Prisma.EventFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventPayload>[]
}
create: {
args: Prisma.EventCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventPayload>
}
createMany: {
args: Prisma.EventCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.EventCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventPayload>[]
}
delete: {
args: Prisma.EventDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventPayload>
}
update: {
args: Prisma.EventUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventPayload>
}
deleteMany: {
args: Prisma.EventDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.EventUpdateManyArgs<ExtArgs>
result: BatchPayload
}
updateManyAndReturn: {
args: Prisma.EventUpdateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventPayload>[]
}
upsert: {
args: Prisma.EventUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventPayload>
}
aggregate: {
args: Prisma.EventAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateEvent>
}
groupBy: {
args: Prisma.EventGroupByArgs<ExtArgs>
result: $Utils.Optional<EventGroupByOutputType>[]
}
count: {
args: Prisma.EventCountArgs<ExtArgs>
result: $Utils.Optional<EventCountAggregateOutputType> | number
}
}
}
MailCredentials: {
payload: Prisma.$MailCredentialsPayload<ExtArgs>
fields: Prisma.MailCredentialsFieldRefs
operations: {
findUnique: {
args: Prisma.MailCredentialsFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$MailCredentialsPayload> | null
}
findUniqueOrThrow: {
args: Prisma.MailCredentialsFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$MailCredentialsPayload>
}
findFirst: {
args: Prisma.MailCredentialsFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$MailCredentialsPayload> | null
}
findFirstOrThrow: {
args: Prisma.MailCredentialsFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$MailCredentialsPayload>
}
findMany: {
args: Prisma.MailCredentialsFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$MailCredentialsPayload>[]
}
create: {
args: Prisma.MailCredentialsCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$MailCredentialsPayload>
}
createMany: {
args: Prisma.MailCredentialsCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.MailCredentialsCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$MailCredentialsPayload>[]
}
delete: {
args: Prisma.MailCredentialsDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$MailCredentialsPayload>
}
update: {
args: Prisma.MailCredentialsUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$MailCredentialsPayload>
}
deleteMany: {
args: Prisma.MailCredentialsDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.MailCredentialsUpdateManyArgs<ExtArgs>
result: BatchPayload
}
updateManyAndReturn: {
args: Prisma.MailCredentialsUpdateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$MailCredentialsPayload>[]
}
upsert: {
args: Prisma.MailCredentialsUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$MailCredentialsPayload>
}
aggregate: {
args: Prisma.MailCredentialsAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateMailCredentials>
}
groupBy: {
args: Prisma.MailCredentialsGroupByArgs<ExtArgs>
result: $Utils.Optional<MailCredentialsGroupByOutputType>[]
}
count: {
args: Prisma.MailCredentialsCountArgs<ExtArgs>
result: $Utils.Optional<MailCredentialsCountAggregateOutputType> | number
}
}
}
WebDAVCredentials: {
payload: Prisma.$WebDAVCredentialsPayload<ExtArgs>
fields: Prisma.WebDAVCredentialsFieldRefs
operations: {
findUnique: {
args: Prisma.WebDAVCredentialsFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WebDAVCredentialsPayload> | null
}
findUniqueOrThrow: {
args: Prisma.WebDAVCredentialsFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WebDAVCredentialsPayload>
}
findFirst: {
args: Prisma.WebDAVCredentialsFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WebDAVCredentialsPayload> | null
}
findFirstOrThrow: {
args: Prisma.WebDAVCredentialsFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WebDAVCredentialsPayload>
}
findMany: {
args: Prisma.WebDAVCredentialsFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WebDAVCredentialsPayload>[]
}
create: {
args: Prisma.WebDAVCredentialsCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WebDAVCredentialsPayload>
}
createMany: {
args: Prisma.WebDAVCredentialsCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.WebDAVCredentialsCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WebDAVCredentialsPayload>[]
}
delete: {
args: Prisma.WebDAVCredentialsDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WebDAVCredentialsPayload>
}
update: {
args: Prisma.WebDAVCredentialsUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WebDAVCredentialsPayload>
}
deleteMany: {
args: Prisma.WebDAVCredentialsDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.WebDAVCredentialsUpdateManyArgs<ExtArgs>
result: BatchPayload
}
updateManyAndReturn: {
args: Prisma.WebDAVCredentialsUpdateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WebDAVCredentialsPayload>[]
}
upsert: {
args: Prisma.WebDAVCredentialsUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WebDAVCredentialsPayload>
}
aggregate: {
args: Prisma.WebDAVCredentialsAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateWebDAVCredentials>
}
groupBy: {
args: Prisma.WebDAVCredentialsGroupByArgs<ExtArgs>
result: $Utils.Optional<WebDAVCredentialsGroupByOutputType>[]
}
count: {
args: Prisma.WebDAVCredentialsCountArgs<ExtArgs>
result: $Utils.Optional<WebDAVCredentialsCountAggregateOutputType> | number
}
}
}
Announcement: {
payload: Prisma.$AnnouncementPayload<ExtArgs>
fields: Prisma.AnnouncementFieldRefs
operations: {
findUnique: {
args: Prisma.AnnouncementFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AnnouncementPayload> | null
}
findUniqueOrThrow: {
args: Prisma.AnnouncementFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AnnouncementPayload>
}
findFirst: {
args: Prisma.AnnouncementFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AnnouncementPayload> | null
}
findFirstOrThrow: {
args: Prisma.AnnouncementFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AnnouncementPayload>
}
findMany: {
args: Prisma.AnnouncementFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AnnouncementPayload>[]
}
create: {
args: Prisma.AnnouncementCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AnnouncementPayload>
}
createMany: {
args: Prisma.AnnouncementCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.AnnouncementCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AnnouncementPayload>[]
}
delete: {
args: Prisma.AnnouncementDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AnnouncementPayload>
}
update: {
args: Prisma.AnnouncementUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AnnouncementPayload>
}
deleteMany: {
args: Prisma.AnnouncementDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.AnnouncementUpdateManyArgs<ExtArgs>
result: BatchPayload
}
updateManyAndReturn: {
args: Prisma.AnnouncementUpdateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AnnouncementPayload>[]
}
upsert: {
args: Prisma.AnnouncementUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AnnouncementPayload>
}
aggregate: {
args: Prisma.AnnouncementAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateAnnouncement>
}
groupBy: {
args: Prisma.AnnouncementGroupByArgs<ExtArgs>
result: $Utils.Optional<AnnouncementGroupByOutputType>[]
}
count: {
args: Prisma.AnnouncementCountArgs<ExtArgs>
result: $Utils.Optional<AnnouncementCountAggregateOutputType> | number
}
}
}
Mission: {
payload: Prisma.$MissionPayload<ExtArgs>
fields: Prisma.MissionFieldRefs
operations: {
findUnique: {
args: Prisma.MissionFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$MissionPayload> | null
}
findUniqueOrThrow: {
args: Prisma.MissionFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$MissionPayload>
}
findFirst: {
args: Prisma.MissionFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$MissionPayload> | null
}
findFirstOrThrow: {
args: Prisma.MissionFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$MissionPayload>
}
findMany: {
args: Prisma.MissionFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$MissionPayload>[]
}
create: {
args: Prisma.MissionCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$MissionPayload>
}
createMany: {
args: Prisma.MissionCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.MissionCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$MissionPayload>[]
}
delete: {
args: Prisma.MissionDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$MissionPayload>
}
update: {
args: Prisma.MissionUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$MissionPayload>
}
deleteMany: {
args: Prisma.MissionDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.MissionUpdateManyArgs<ExtArgs>
result: BatchPayload
}
updateManyAndReturn: {
args: Prisma.MissionUpdateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$MissionPayload>[]
}
upsert: {
args: Prisma.MissionUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$MissionPayload>
}
aggregate: {
args: Prisma.MissionAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateMission>
}
groupBy: {
args: Prisma.MissionGroupByArgs<ExtArgs>
result: $Utils.Optional<MissionGroupByOutputType>[]
}
count: {
args: Prisma.MissionCountArgs<ExtArgs>
result: $Utils.Optional<MissionCountAggregateOutputType> | number
}
}
}
Attachment: {
payload: Prisma.$AttachmentPayload<ExtArgs>
fields: Prisma.AttachmentFieldRefs
operations: {
findUnique: {
args: Prisma.AttachmentFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AttachmentPayload> | null
}
findUniqueOrThrow: {
args: Prisma.AttachmentFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AttachmentPayload>
}
findFirst: {
args: Prisma.AttachmentFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AttachmentPayload> | null
}
findFirstOrThrow: {
args: Prisma.AttachmentFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AttachmentPayload>
}
findMany: {
args: Prisma.AttachmentFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AttachmentPayload>[]
}
create: {
args: Prisma.AttachmentCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AttachmentPayload>
}
createMany: {
args: Prisma.AttachmentCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.AttachmentCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AttachmentPayload>[]
}
delete: {
args: Prisma.AttachmentDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AttachmentPayload>
}
update: {
args: Prisma.AttachmentUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AttachmentPayload>
}
deleteMany: {
args: Prisma.AttachmentDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.AttachmentUpdateManyArgs<ExtArgs>
result: BatchPayload
}
updateManyAndReturn: {
args: Prisma.AttachmentUpdateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AttachmentPayload>[]
}
upsert: {
args: Prisma.AttachmentUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AttachmentPayload>
}
aggregate: {
args: Prisma.AttachmentAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateAttachment>
}
groupBy: {
args: Prisma.AttachmentGroupByArgs<ExtArgs>
result: $Utils.Optional<AttachmentGroupByOutputType>[]
}
count: {
args: Prisma.AttachmentCountArgs<ExtArgs>
result: $Utils.Optional<AttachmentCountAggregateOutputType> | number
}
}
}
MissionUser: {
payload: Prisma.$MissionUserPayload<ExtArgs>
fields: Prisma.MissionUserFieldRefs
operations: {
findUnique: {
args: Prisma.MissionUserFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$MissionUserPayload> | null
}
findUniqueOrThrow: {
args: Prisma.MissionUserFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$MissionUserPayload>
}
findFirst: {
args: Prisma.MissionUserFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$MissionUserPayload> | null
}
findFirstOrThrow: {
args: Prisma.MissionUserFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$MissionUserPayload>
}
findMany: {
args: Prisma.MissionUserFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$MissionUserPayload>[]
}
create: {
args: Prisma.MissionUserCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$MissionUserPayload>
}
createMany: {
args: Prisma.MissionUserCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.MissionUserCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$MissionUserPayload>[]
}
delete: {
args: Prisma.MissionUserDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$MissionUserPayload>
}
update: {
args: Prisma.MissionUserUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$MissionUserPayload>
}
deleteMany: {
args: Prisma.MissionUserDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.MissionUserUpdateManyArgs<ExtArgs>
result: BatchPayload
}
updateManyAndReturn: {
args: Prisma.MissionUserUpdateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$MissionUserPayload>[]
}
upsert: {
args: Prisma.MissionUserUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$MissionUserPayload>
}
aggregate: {
args: Prisma.MissionUserAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateMissionUser>
}
groupBy: {
args: Prisma.MissionUserGroupByArgs<ExtArgs>
result: $Utils.Optional<MissionUserGroupByOutputType>[]
}
count: {
args: Prisma.MissionUserCountArgs<ExtArgs>
result: $Utils.Optional<MissionUserCountAggregateOutputType> | 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
}
/**
* Global configuration for omitting model fields by default.
*
* @example
* ```
* const prisma = new PrismaClient({
* omit: {
* user: {
* password: true
* }
* }
* })
* ```
*/
omit?: Prisma.GlobalOmitConfig
}
export type GlobalOmitConfig = {
user?: UserOmit
calendar?: CalendarOmit
event?: EventOmit
mailCredentials?: MailCredentialsOmit
webDAVCredentials?: WebDAVCredentialsOmit
announcement?: AnnouncementOmit
mission?: MissionOmit
attachment?: AttachmentOmit
missionUser?: MissionUserOmit
}
/* 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'
| 'updateManyAndReturn'
| 'upsert'
| 'delete'
| 'deleteMany'
| 'executeRaw'
| 'queryRaw'
| 'aggregate'
| 'count'
| 'runCommandRaw'
| 'findRaw'
| 'groupBy'
/**
* These options are being passed into the middleware as "params"
*/
export type MiddlewareParams = {
model?: ModelName
action: PrismaAction
args: any
dataPath: string[]
runInTransaction: boolean
}
/**
* The `T` type makes sure, that the `return proceed` is not forgotten in the middleware implementation
*/
export type Middleware<T = any> = (
params: MiddlewareParams,
next: (params: MiddlewareParams) => $Utils.JsPromise<T>,
) => $Utils.JsPromise<T>
// tested in getLogLevel.test.ts
export function getLogLevel(log: Array<LogLevel | LogDefinition>): LogLevel | undefined;
/**
* `PrismaClient` proxy available in interactive transactions.
*/
export type TransactionClient = Omit<Prisma.DefaultPrismaClient, runtime.ITXClientDenyList>
export type Datasource = {
url?: string
}
/**
* Count Types
*/
/**
* Count Type UserCountOutputType
*/
export type UserCountOutputType = {
calendars: number
events: number
mailCredentials: number
announcements: number
missions: number
missionUsers: number
uploadedAttachments: number
}
export type UserCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
calendars?: boolean | UserCountOutputTypeCountCalendarsArgs
events?: boolean | UserCountOutputTypeCountEventsArgs
mailCredentials?: boolean | UserCountOutputTypeCountMailCredentialsArgs
announcements?: boolean | UserCountOutputTypeCountAnnouncementsArgs
missions?: boolean | UserCountOutputTypeCountMissionsArgs
missionUsers?: boolean | UserCountOutputTypeCountMissionUsersArgs
uploadedAttachments?: boolean | UserCountOutputTypeCountUploadedAttachmentsArgs
}
// Custom InputTypes
/**
* UserCountOutputType without action
*/
export type UserCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserCountOutputType
*/
select?: UserCountOutputTypeSelect<ExtArgs> | null
}
/**
* UserCountOutputType without action
*/
export type UserCountOutputTypeCountCalendarsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: CalendarWhereInput
}
/**
* UserCountOutputType without action
*/
export type UserCountOutputTypeCountEventsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: EventWhereInput
}
/**
* UserCountOutputType without action
*/
export type UserCountOutputTypeCountMailCredentialsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: MailCredentialsWhereInput
}
/**
* UserCountOutputType without action
*/
export type UserCountOutputTypeCountAnnouncementsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: AnnouncementWhereInput
}
/**
* UserCountOutputType without action
*/
export type UserCountOutputTypeCountMissionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: MissionWhereInput
}
/**
* UserCountOutputType without action
*/
export type UserCountOutputTypeCountMissionUsersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: MissionUserWhereInput
}
/**
* UserCountOutputType without action
*/
export type UserCountOutputTypeCountUploadedAttachmentsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: AttachmentWhereInput
}
/**
* Count Type CalendarCountOutputType
*/
export type CalendarCountOutputType = {
events: number
}
export type CalendarCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
events?: boolean | CalendarCountOutputTypeCountEventsArgs
}
// Custom InputTypes
/**
* CalendarCountOutputType without action
*/
export type CalendarCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CalendarCountOutputType
*/
select?: CalendarCountOutputTypeSelect<ExtArgs> | null
}
/**
* CalendarCountOutputType without action
*/
export type CalendarCountOutputTypeCountEventsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: EventWhereInput
}
/**
* Count Type MissionCountOutputType
*/
export type MissionCountOutputType = {
attachments: number
missionUsers: number
}
export type MissionCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
attachments?: boolean | MissionCountOutputTypeCountAttachmentsArgs
missionUsers?: boolean | MissionCountOutputTypeCountMissionUsersArgs
}
// Custom InputTypes
/**
* MissionCountOutputType without action
*/
export type MissionCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MissionCountOutputType
*/
select?: MissionCountOutputTypeSelect<ExtArgs> | null
}
/**
* MissionCountOutputType without action
*/
export type MissionCountOutputTypeCountAttachmentsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: AttachmentWhereInput
}
/**
* MissionCountOutputType without action
*/
export type MissionCountOutputTypeCountMissionUsersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: MissionUserWhereInput
}
/**
* Models
*/
/**
* Model User
*/
export type AggregateUser = {
_count: UserCountAggregateOutputType | null
_min: UserMinAggregateOutputType | null
_max: UserMaxAggregateOutputType | null
}
export type UserMinAggregateOutputType = {
id: string | null
email: string | null
password: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type UserMaxAggregateOutputType = {
id: string | null
email: string | null
password: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type UserCountAggregateOutputType = {
id: number
email: number
password: number
createdAt: number
updatedAt: number
_all: number
}
export type UserMinAggregateInputType = {
id?: true
email?: true
password?: true
createdAt?: true
updatedAt?: true
}
export type UserMaxAggregateInputType = {
id?: true
email?: true
password?: true
createdAt?: true
updatedAt?: true
}
export type UserCountAggregateInputType = {
id?: true
email?: true
password?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type UserAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which User to aggregate.
*/
where?: UserWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Users to fetch.
*/
orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: UserWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Users from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Users.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned Users
**/
_count?: true | UserCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: UserMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: UserMaxAggregateInputType
}
export type GetUserAggregateType<T extends UserAggregateArgs> = {
[P in keyof T & keyof AggregateUser]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateUser[P]>
: GetScalarType<T[P], AggregateUser[P]>
}
export type UserGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: UserWhereInput
orderBy?: UserOrderByWithAggregationInput | UserOrderByWithAggregationInput[]
by: UserScalarFieldEnum[] | UserScalarFieldEnum
having?: UserScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: UserCountAggregateInputType | true
_min?: UserMinAggregateInputType
_max?: UserMaxAggregateInputType
}
export type UserGroupByOutputType = {
id: string
email: string
password: string
createdAt: Date
updatedAt: Date
_count: UserCountAggregateOutputType | null
_min: UserMinAggregateOutputType | null
_max: UserMaxAggregateOutputType | null
}
type GetUserGroupByPayload<T extends UserGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<UserGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], UserGroupByOutputType[P]>
: GetScalarType<T[P], UserGroupByOutputType[P]>
}
>
>
export type UserSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
email?: boolean
password?: boolean
createdAt?: boolean
updatedAt?: boolean
calendars?: boolean | User$calendarsArgs<ExtArgs>
events?: boolean | User$eventsArgs<ExtArgs>
mailCredentials?: boolean | User$mailCredentialsArgs<ExtArgs>
webdavCredentials?: boolean | User$webdavCredentialsArgs<ExtArgs>
announcements?: boolean | User$announcementsArgs<ExtArgs>
missions?: boolean | User$missionsArgs<ExtArgs>
missionUsers?: boolean | User$missionUsersArgs<ExtArgs>
uploadedAttachments?: boolean | User$uploadedAttachmentsArgs<ExtArgs>
_count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["user"]>
export type UserSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
email?: boolean
password?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["user"]>
export type UserSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
email?: boolean
password?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["user"]>
export type UserSelectScalar = {
id?: boolean
email?: boolean
password?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type UserOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "email" | "password" | "createdAt" | "updatedAt", ExtArgs["result"]["user"]>
export type UserInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
calendars?: boolean | User$calendarsArgs<ExtArgs>
events?: boolean | User$eventsArgs<ExtArgs>
mailCredentials?: boolean | User$mailCredentialsArgs<ExtArgs>
webdavCredentials?: boolean | User$webdavCredentialsArgs<ExtArgs>
announcements?: boolean | User$announcementsArgs<ExtArgs>
missions?: boolean | User$missionsArgs<ExtArgs>
missionUsers?: boolean | User$missionUsersArgs<ExtArgs>
uploadedAttachments?: boolean | User$uploadedAttachmentsArgs<ExtArgs>
_count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
}
export type UserIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {}
export type UserIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {}
export type $UserPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "User"
objects: {
calendars: Prisma.$CalendarPayload<ExtArgs>[]
events: Prisma.$EventPayload<ExtArgs>[]
mailCredentials: Prisma.$MailCredentialsPayload<ExtArgs>[]
webdavCredentials: Prisma.$WebDAVCredentialsPayload<ExtArgs> | null
announcements: Prisma.$AnnouncementPayload<ExtArgs>[]
missions: Prisma.$MissionPayload<ExtArgs>[]
missionUsers: Prisma.$MissionUserPayload<ExtArgs>[]
uploadedAttachments: Prisma.$AttachmentPayload<ExtArgs>[]
}
scalars: $Extensions.GetPayloadResult<{
id: string
email: string
password: string
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["user"]>
composites: {}
}
type UserGetPayload<S extends boolean | null | undefined | UserDefaultArgs> = $Result.GetResult<Prisma.$UserPayload, S>
type UserCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<UserFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: UserCountAggregateInputType | true
}
export interface UserDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, ClientOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['User'], meta: { name: 'User' } }
/**
* Find zero or one User that matches the filter.
* @param {UserFindUniqueArgs} args - Arguments to find a User
* @example
* // Get one User
* const user = await prisma.user.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends UserFindUniqueArgs>(args: SelectSubset<T, UserFindUniqueArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUnique", ClientOptions> | null, null, ExtArgs, ClientOptions>
/**
* Find one User that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {UserFindUniqueOrThrowArgs} args - Arguments to find a User
* @example
* // Get one User
* const user = await prisma.user.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends UserFindUniqueOrThrowArgs>(args: SelectSubset<T, UserFindUniqueOrThrowArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Find the first User that matches the filter.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserFindFirstArgs} args - Arguments to find a User
* @example
* // Get one User
* const user = await prisma.user.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends UserFindFirstArgs>(args?: SelectSubset<T, UserFindFirstArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirst", ClientOptions> | null, null, ExtArgs, ClientOptions>
/**
* Find the first User that matches the filter or
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserFindFirstOrThrowArgs} args - Arguments to find a User
* @example
* // Get one User
* const user = await prisma.user.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends UserFindFirstOrThrowArgs>(args?: SelectSubset<T, UserFindFirstOrThrowArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirstOrThrow", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Find zero or more Users that matches the filter.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Users
* const users = await prisma.user.findMany()
*
* // Get first 10 Users
* const users = await prisma.user.findMany({ take: 10 })
*
* // Only select the `id`
* const userWithIdOnly = await prisma.user.findMany({ select: { id: true } })
*
*/
findMany<T extends UserFindManyArgs>(args?: SelectSubset<T, UserFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findMany", ClientOptions>>
/**
* Create a User.
* @param {UserCreateArgs} args - Arguments to create a User.
* @example
* // Create one User
* const User = await prisma.user.create({
* data: {
* // ... data to create a User
* }
* })
*
*/
create<T extends UserCreateArgs>(args: SelectSubset<T, UserCreateArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "create", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Create many Users.
* @param {UserCreateManyArgs} args - Arguments to create many Users.
* @example
* // Create many Users
* const user = await prisma.user.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends UserCreateManyArgs>(args?: SelectSubset<T, UserCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many Users and returns the data saved in the database.
* @param {UserCreateManyAndReturnArgs} args - Arguments to create many Users.
* @example
* // Create many Users
* const user = await prisma.user.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Users and only return the `id`
* const userWithIdOnly = await prisma.user.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends UserCreateManyAndReturnArgs>(args?: SelectSubset<T, UserCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "createManyAndReturn", ClientOptions>>
/**
* Delete a User.
* @param {UserDeleteArgs} args - Arguments to delete one User.
* @example
* // Delete one User
* const User = await prisma.user.delete({
* where: {
* // ... filter to delete one User
* }
* })
*
*/
delete<T extends UserDeleteArgs>(args: SelectSubset<T, UserDeleteArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "delete", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Update one User.
* @param {UserUpdateArgs} args - Arguments to update one User.
* @example
* // Update one User
* const user = await prisma.user.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends UserUpdateArgs>(args: SelectSubset<T, UserUpdateArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "update", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Delete zero or more Users.
* @param {UserDeleteManyArgs} args - Arguments to filter Users to delete.
* @example
* // Delete a few Users
* const { count } = await prisma.user.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends UserDeleteManyArgs>(args?: SelectSubset<T, UserDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Users.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Users
* const user = await prisma.user.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends UserUpdateManyArgs>(args: SelectSubset<T, UserUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Users and returns the data updated in the database.
* @param {UserUpdateManyAndReturnArgs} args - Arguments to update many Users.
* @example
* // Update many Users
* const user = await prisma.user.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more Users and only return the `id`
* const userWithIdOnly = await prisma.user.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends UserUpdateManyAndReturnArgs>(args: SelectSubset<T, UserUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "updateManyAndReturn", ClientOptions>>
/**
* Create or update one User.
* @param {UserUpsertArgs} args - Arguments to update or create a User.
* @example
* // Update or create a User
* const user = await prisma.user.upsert({
* create: {
* // ... data to create a User
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the User we want to update
* }
* })
*/
upsert<T extends UserUpsertArgs>(args: SelectSubset<T, UserUpsertArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "upsert", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Count the number of Users.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserCountArgs} args - Arguments to filter Users to count.
* @example
* // Count the number of Users
* const count = await prisma.user.count({
* where: {
* // ... the filter for the Users we want to count
* }
* })
**/
count<T extends UserCountArgs>(
args?: Subset<T, UserCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], UserCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a User.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
* @example
* // Ordered by age ascending
* // Where email contains prisma.io
* // Limited to the 10 users
* const aggregations = await prisma.user.aggregate({
* _avg: {
* age: true,
* },
* where: {
* email: {
* contains: "prisma.io",
* },
* },
* orderBy: {
* age: "asc",
* },
* take: 10,
* })
**/
aggregate<T extends UserAggregateArgs>(args: Subset<T, UserAggregateArgs>): Prisma.PrismaPromise<GetUserAggregateType<T>>
/**
* Group by User.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserGroupByArgs} args - Group by arguments.
* @example
* // Group by city, order by createdAt, get count
* const result = await prisma.user.groupBy({
* by: ['city', 'createdAt'],
* orderBy: {
* createdAt: true
* },
* _count: {
* _all: true
* },
* })
*
**/
groupBy<
T extends UserGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: UserGroupByArgs['orderBy'] }
: { orderBy?: UserGroupByArgs['orderBy'] },
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
ByFields extends MaybeTupleToUnion<T['by']>,
ByValid extends Has<ByFields, OrderFields>,
HavingFields extends GetHavingFields<T['having']>,
HavingValid extends Has<ByFields, HavingFields>,
ByEmpty extends T['by'] extends never[] ? True : False,
InputErrors extends ByEmpty extends True
? `Error: "by" must not be empty.`
: HavingValid extends False
? {
[P in HavingFields]: P extends ByFields
? never
: P extends string
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
: [
Error,
'Field ',
P,
` in "having" needs to be provided in "by"`,
]
}[HavingFields]
: 'take' extends Keys<T>
? 'orderBy' extends Keys<T>
? ByValid extends True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
: 'Error: If you provide "take", you also need to provide "orderBy"'
: 'skip' extends Keys<T>
? 'orderBy' extends Keys<T>
? ByValid extends True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
: 'Error: If you provide "skip", you also need to provide "orderBy"'
: ByValid extends True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
>(args: SubsetIntersection<T, UserGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUserGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the User model
*/
readonly fields: UserFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for User.
* Why is this prefixed with `Prisma__`?
* Because we want to prevent naming conflicts as mentioned in
* https://github.com/prisma/prisma-client-js/issues/707
*/
export interface Prisma__UserClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, ClientOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
calendars<T extends User$calendarsArgs<ExtArgs> = {}>(args?: Subset<T, User$calendarsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$CalendarPayload<ExtArgs>, T, "findMany", ClientOptions> | Null>
events<T extends User$eventsArgs<ExtArgs> = {}>(args?: Subset<T, User$eventsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "findMany", ClientOptions> | Null>
mailCredentials<T extends User$mailCredentialsArgs<ExtArgs> = {}>(args?: Subset<T, User$mailCredentialsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MailCredentialsPayload<ExtArgs>, T, "findMany", ClientOptions> | Null>
webdavCredentials<T extends User$webdavCredentialsArgs<ExtArgs> = {}>(args?: Subset<T, User$webdavCredentialsArgs<ExtArgs>>): Prisma__WebDAVCredentialsClient<$Result.GetResult<Prisma.$WebDAVCredentialsPayload<ExtArgs>, T, "findUniqueOrThrow", ClientOptions> | null, null, ExtArgs, ClientOptions>
announcements<T extends User$announcementsArgs<ExtArgs> = {}>(args?: Subset<T, User$announcementsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AnnouncementPayload<ExtArgs>, T, "findMany", ClientOptions> | Null>
missions<T extends User$missionsArgs<ExtArgs> = {}>(args?: Subset<T, User$missionsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MissionPayload<ExtArgs>, T, "findMany", ClientOptions> | Null>
missionUsers<T extends User$missionUsersArgs<ExtArgs> = {}>(args?: Subset<T, User$missionUsersArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MissionUserPayload<ExtArgs>, T, "findMany", ClientOptions> | Null>
uploadedAttachments<T extends User$uploadedAttachmentsArgs<ExtArgs> = {}>(args?: Subset<T, User$uploadedAttachmentsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AttachmentPayload<ExtArgs>, T, "findMany", ClientOptions> | Null>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the User model
*/
interface UserFieldRefs {
readonly id: FieldRef<"User", 'String'>
readonly email: FieldRef<"User", 'String'>
readonly password: FieldRef<"User", 'String'>
readonly createdAt: FieldRef<"User", 'DateTime'>
readonly updatedAt: FieldRef<"User", 'DateTime'>
}
// Custom InputTypes
/**
* User findUnique
*/
export type UserFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
/**
* Filter, which User to fetch.
*/
where: UserWhereUniqueInput
}
/**
* User findUniqueOrThrow
*/
export type UserFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
/**
* Filter, which User to fetch.
*/
where: UserWhereUniqueInput
}
/**
* User findFirst
*/
export type UserFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
/**
* Filter, which User to fetch.
*/
where?: UserWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Users to fetch.
*/
orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Users.
*/
cursor?: UserWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Users from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Users.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Users.
*/
distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
}
/**
* User findFirstOrThrow
*/
export type UserFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
/**
* Filter, which User to fetch.
*/
where?: UserWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Users to fetch.
*/
orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Users.
*/
cursor?: UserWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Users from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Users.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Users.
*/
distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
}
/**
* User findMany
*/
export type UserFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
/**
* Filter, which Users to fetch.
*/
where?: UserWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Users to fetch.
*/
orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing Users.
*/
cursor?: UserWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Users from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Users.
*/
skip?: number
distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
}
/**
* User create
*/
export type UserCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
/**
* The data needed to create a User.
*/
data: XOR<UserCreateInput, UserUncheckedCreateInput>
}
/**
* User createMany
*/
export type UserCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many Users.
*/
data: UserCreateManyInput | UserCreateManyInput[]
skipDuplicates?: boolean
}
/**
* User createManyAndReturn
*/
export type UserCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: UserOmit<ExtArgs> | null
/**
* The data used to create many Users.
*/
data: UserCreateManyInput | UserCreateManyInput[]
skipDuplicates?: boolean
}
/**
* User update
*/
export type UserUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
/**
* The data needed to update a User.
*/
data: XOR<UserUpdateInput, UserUncheckedUpdateInput>
/**
* Choose, which User to update.
*/
where: UserWhereUniqueInput
}
/**
* User updateMany
*/
export type UserUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update Users.
*/
data: XOR<UserUpdateManyMutationInput, UserUncheckedUpdateManyInput>
/**
* Filter which Users to update
*/
where?: UserWhereInput
/**
* Limit how many Users to update.
*/
limit?: number
}
/**
* User updateManyAndReturn
*/
export type UserUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: UserOmit<ExtArgs> | null
/**
* The data used to update Users.
*/
data: XOR<UserUpdateManyMutationInput, UserUncheckedUpdateManyInput>
/**
* Filter which Users to update
*/
where?: UserWhereInput
/**
* Limit how many Users to update.
*/
limit?: number
}
/**
* User upsert
*/
export type UserUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
/**
* The filter to search for the User to update in case it exists.
*/
where: UserWhereUniqueInput
/**
* In case the User found by the `where` argument doesn't exist, create a new User with this data.
*/
create: XOR<UserCreateInput, UserUncheckedCreateInput>
/**
* In case the User was found with the provided `where` argument, update it with this data.
*/
update: XOR<UserUpdateInput, UserUncheckedUpdateInput>
}
/**
* User delete
*/
export type UserDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
/**
* Filter which User to delete.
*/
where: UserWhereUniqueInput
}
/**
* User deleteMany
*/
export type UserDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Users to delete
*/
where?: UserWhereInput
/**
* Limit how many Users to delete.
*/
limit?: number
}
/**
* User.calendars
*/
export type User$calendarsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Calendar
*/
select?: CalendarSelect<ExtArgs> | null
/**
* Omit specific fields from the Calendar
*/
omit?: CalendarOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: CalendarInclude<ExtArgs> | null
where?: CalendarWhereInput
orderBy?: CalendarOrderByWithRelationInput | CalendarOrderByWithRelationInput[]
cursor?: CalendarWhereUniqueInput
take?: number
skip?: number
distinct?: CalendarScalarFieldEnum | CalendarScalarFieldEnum[]
}
/**
* User.events
*/
export type User$eventsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Event
*/
select?: EventSelect<ExtArgs> | null
/**
* Omit specific fields from the Event
*/
omit?: EventOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventInclude<ExtArgs> | null
where?: EventWhereInput
orderBy?: EventOrderByWithRelationInput | EventOrderByWithRelationInput[]
cursor?: EventWhereUniqueInput
take?: number
skip?: number
distinct?: EventScalarFieldEnum | EventScalarFieldEnum[]
}
/**
* User.mailCredentials
*/
export type User$mailCredentialsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MailCredentials
*/
select?: MailCredentialsSelect<ExtArgs> | null
/**
* Omit specific fields from the MailCredentials
*/
omit?: MailCredentialsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: MailCredentialsInclude<ExtArgs> | null
where?: MailCredentialsWhereInput
orderBy?: MailCredentialsOrderByWithRelationInput | MailCredentialsOrderByWithRelationInput[]
cursor?: MailCredentialsWhereUniqueInput
take?: number
skip?: number
distinct?: MailCredentialsScalarFieldEnum | MailCredentialsScalarFieldEnum[]
}
/**
* User.webdavCredentials
*/
export type User$webdavCredentialsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WebDAVCredentials
*/
select?: WebDAVCredentialsSelect<ExtArgs> | null
/**
* Omit specific fields from the WebDAVCredentials
*/
omit?: WebDAVCredentialsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: WebDAVCredentialsInclude<ExtArgs> | null
where?: WebDAVCredentialsWhereInput
}
/**
* User.announcements
*/
export type User$announcementsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Announcement
*/
select?: AnnouncementSelect<ExtArgs> | null
/**
* Omit specific fields from the Announcement
*/
omit?: AnnouncementOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: AnnouncementInclude<ExtArgs> | null
where?: AnnouncementWhereInput
orderBy?: AnnouncementOrderByWithRelationInput | AnnouncementOrderByWithRelationInput[]
cursor?: AnnouncementWhereUniqueInput
take?: number
skip?: number
distinct?: AnnouncementScalarFieldEnum | AnnouncementScalarFieldEnum[]
}
/**
* User.missions
*/
export type User$missionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Mission
*/
select?: MissionSelect<ExtArgs> | null
/**
* Omit specific fields from the Mission
*/
omit?: MissionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: MissionInclude<ExtArgs> | null
where?: MissionWhereInput
orderBy?: MissionOrderByWithRelationInput | MissionOrderByWithRelationInput[]
cursor?: MissionWhereUniqueInput
take?: number
skip?: number
distinct?: MissionScalarFieldEnum | MissionScalarFieldEnum[]
}
/**
* User.missionUsers
*/
export type User$missionUsersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MissionUser
*/
select?: MissionUserSelect<ExtArgs> | null
/**
* Omit specific fields from the MissionUser
*/
omit?: MissionUserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: MissionUserInclude<ExtArgs> | null
where?: MissionUserWhereInput
orderBy?: MissionUserOrderByWithRelationInput | MissionUserOrderByWithRelationInput[]
cursor?: MissionUserWhereUniqueInput
take?: number
skip?: number
distinct?: MissionUserScalarFieldEnum | MissionUserScalarFieldEnum[]
}
/**
* User.uploadedAttachments
*/
export type User$uploadedAttachmentsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Attachment
*/
select?: AttachmentSelect<ExtArgs> | null
/**
* Omit specific fields from the Attachment
*/
omit?: AttachmentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: AttachmentInclude<ExtArgs> | null
where?: AttachmentWhereInput
orderBy?: AttachmentOrderByWithRelationInput | AttachmentOrderByWithRelationInput[]
cursor?: AttachmentWhereUniqueInput
take?: number
skip?: number
distinct?: AttachmentScalarFieldEnum | AttachmentScalarFieldEnum[]
}
/**
* User without action
*/
export type UserDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
}
/**
* Model Calendar
*/
export type AggregateCalendar = {
_count: CalendarCountAggregateOutputType | null
_min: CalendarMinAggregateOutputType | null
_max: CalendarMaxAggregateOutputType | null
}
export type CalendarMinAggregateOutputType = {
id: string | null
name: string | null
color: string | null
description: string | null
userId: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type CalendarMaxAggregateOutputType = {
id: string | null
name: string | null
color: string | null
description: string | null
userId: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type CalendarCountAggregateOutputType = {
id: number
name: number
color: number
description: number
userId: number
createdAt: number
updatedAt: number
_all: number
}
export type CalendarMinAggregateInputType = {
id?: true
name?: true
color?: true
description?: true
userId?: true
createdAt?: true
updatedAt?: true
}
export type CalendarMaxAggregateInputType = {
id?: true
name?: true
color?: true
description?: true
userId?: true
createdAt?: true
updatedAt?: true
}
export type CalendarCountAggregateInputType = {
id?: true
name?: true
color?: true
description?: true
userId?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type CalendarAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Calendar to aggregate.
*/
where?: CalendarWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Calendars to fetch.
*/
orderBy?: CalendarOrderByWithRelationInput | CalendarOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: CalendarWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Calendars from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Calendars.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned Calendars
**/
_count?: true | CalendarCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: CalendarMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: CalendarMaxAggregateInputType
}
export type GetCalendarAggregateType<T extends CalendarAggregateArgs> = {
[P in keyof T & keyof AggregateCalendar]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateCalendar[P]>
: GetScalarType<T[P], AggregateCalendar[P]>
}
export type CalendarGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: CalendarWhereInput
orderBy?: CalendarOrderByWithAggregationInput | CalendarOrderByWithAggregationInput[]
by: CalendarScalarFieldEnum[] | CalendarScalarFieldEnum
having?: CalendarScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: CalendarCountAggregateInputType | true
_min?: CalendarMinAggregateInputType
_max?: CalendarMaxAggregateInputType
}
export type CalendarGroupByOutputType = {
id: string
name: string
color: string
description: string | null
userId: string
createdAt: Date
updatedAt: Date
_count: CalendarCountAggregateOutputType | null
_min: CalendarMinAggregateOutputType | null
_max: CalendarMaxAggregateOutputType | null
}
type GetCalendarGroupByPayload<T extends CalendarGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<CalendarGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof CalendarGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], CalendarGroupByOutputType[P]>
: GetScalarType<T[P], CalendarGroupByOutputType[P]>
}
>
>
export type CalendarSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
name?: boolean
color?: boolean
description?: boolean
userId?: boolean
createdAt?: boolean
updatedAt?: boolean
events?: boolean | Calendar$eventsArgs<ExtArgs>
user?: boolean | UserDefaultArgs<ExtArgs>
_count?: boolean | CalendarCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["calendar"]>
export type CalendarSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
name?: boolean
color?: boolean
description?: boolean
userId?: boolean
createdAt?: boolean
updatedAt?: boolean
user?: boolean | UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["calendar"]>
export type CalendarSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
name?: boolean
color?: boolean
description?: boolean
userId?: boolean
createdAt?: boolean
updatedAt?: boolean
user?: boolean | UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["calendar"]>
export type CalendarSelectScalar = {
id?: boolean
name?: boolean
color?: boolean
description?: boolean
userId?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type CalendarOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "name" | "color" | "description" | "userId" | "createdAt" | "updatedAt", ExtArgs["result"]["calendar"]>
export type CalendarInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
events?: boolean | Calendar$eventsArgs<ExtArgs>
user?: boolean | UserDefaultArgs<ExtArgs>
_count?: boolean | CalendarCountOutputTypeDefaultArgs<ExtArgs>
}
export type CalendarIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
user?: boolean | UserDefaultArgs<ExtArgs>
}
export type CalendarIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
user?: boolean | UserDefaultArgs<ExtArgs>
}
export type $CalendarPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "Calendar"
objects: {
events: Prisma.$EventPayload<ExtArgs>[]
user: Prisma.$UserPayload<ExtArgs>
}
scalars: $Extensions.GetPayloadResult<{
id: string
name: string
color: string
description: string | null
userId: string
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["calendar"]>
composites: {}
}
type CalendarGetPayload<S extends boolean | null | undefined | CalendarDefaultArgs> = $Result.GetResult<Prisma.$CalendarPayload, S>
type CalendarCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<CalendarFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: CalendarCountAggregateInputType | true
}
export interface CalendarDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, ClientOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Calendar'], meta: { name: 'Calendar' } }
/**
* Find zero or one Calendar that matches the filter.
* @param {CalendarFindUniqueArgs} args - Arguments to find a Calendar
* @example
* // Get one Calendar
* const calendar = await prisma.calendar.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends CalendarFindUniqueArgs>(args: SelectSubset<T, CalendarFindUniqueArgs<ExtArgs>>): Prisma__CalendarClient<$Result.GetResult<Prisma.$CalendarPayload<ExtArgs>, T, "findUnique", ClientOptions> | null, null, ExtArgs, ClientOptions>
/**
* Find one Calendar that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {CalendarFindUniqueOrThrowArgs} args - Arguments to find a Calendar
* @example
* // Get one Calendar
* const calendar = await prisma.calendar.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends CalendarFindUniqueOrThrowArgs>(args: SelectSubset<T, CalendarFindUniqueOrThrowArgs<ExtArgs>>): Prisma__CalendarClient<$Result.GetResult<Prisma.$CalendarPayload<ExtArgs>, T, "findUniqueOrThrow", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Find the first Calendar 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 {CalendarFindFirstArgs} args - Arguments to find a Calendar
* @example
* // Get one Calendar
* const calendar = await prisma.calendar.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends CalendarFindFirstArgs>(args?: SelectSubset<T, CalendarFindFirstArgs<ExtArgs>>): Prisma__CalendarClient<$Result.GetResult<Prisma.$CalendarPayload<ExtArgs>, T, "findFirst", ClientOptions> | null, null, ExtArgs, ClientOptions>
/**
* Find the first Calendar 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 {CalendarFindFirstOrThrowArgs} args - Arguments to find a Calendar
* @example
* // Get one Calendar
* const calendar = await prisma.calendar.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends CalendarFindFirstOrThrowArgs>(args?: SelectSubset<T, CalendarFindFirstOrThrowArgs<ExtArgs>>): Prisma__CalendarClient<$Result.GetResult<Prisma.$CalendarPayload<ExtArgs>, T, "findFirstOrThrow", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Find zero or more Calendars 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 {CalendarFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Calendars
* const calendars = await prisma.calendar.findMany()
*
* // Get first 10 Calendars
* const calendars = await prisma.calendar.findMany({ take: 10 })
*
* // Only select the `id`
* const calendarWithIdOnly = await prisma.calendar.findMany({ select: { id: true } })
*
*/
findMany<T extends CalendarFindManyArgs>(args?: SelectSubset<T, CalendarFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$CalendarPayload<ExtArgs>, T, "findMany", ClientOptions>>
/**
* Create a Calendar.
* @param {CalendarCreateArgs} args - Arguments to create a Calendar.
* @example
* // Create one Calendar
* const Calendar = await prisma.calendar.create({
* data: {
* // ... data to create a Calendar
* }
* })
*
*/
create<T extends CalendarCreateArgs>(args: SelectSubset<T, CalendarCreateArgs<ExtArgs>>): Prisma__CalendarClient<$Result.GetResult<Prisma.$CalendarPayload<ExtArgs>, T, "create", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Create many Calendars.
* @param {CalendarCreateManyArgs} args - Arguments to create many Calendars.
* @example
* // Create many Calendars
* const calendar = await prisma.calendar.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends CalendarCreateManyArgs>(args?: SelectSubset<T, CalendarCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many Calendars and returns the data saved in the database.
* @param {CalendarCreateManyAndReturnArgs} args - Arguments to create many Calendars.
* @example
* // Create many Calendars
* const calendar = await prisma.calendar.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Calendars and only return the `id`
* const calendarWithIdOnly = await prisma.calendar.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 CalendarCreateManyAndReturnArgs>(args?: SelectSubset<T, CalendarCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$CalendarPayload<ExtArgs>, T, "createManyAndReturn", ClientOptions>>
/**
* Delete a Calendar.
* @param {CalendarDeleteArgs} args - Arguments to delete one Calendar.
* @example
* // Delete one Calendar
* const Calendar = await prisma.calendar.delete({
* where: {
* // ... filter to delete one Calendar
* }
* })
*
*/
delete<T extends CalendarDeleteArgs>(args: SelectSubset<T, CalendarDeleteArgs<ExtArgs>>): Prisma__CalendarClient<$Result.GetResult<Prisma.$CalendarPayload<ExtArgs>, T, "delete", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Update one Calendar.
* @param {CalendarUpdateArgs} args - Arguments to update one Calendar.
* @example
* // Update one Calendar
* const calendar = await prisma.calendar.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends CalendarUpdateArgs>(args: SelectSubset<T, CalendarUpdateArgs<ExtArgs>>): Prisma__CalendarClient<$Result.GetResult<Prisma.$CalendarPayload<ExtArgs>, T, "update", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Delete zero or more Calendars.
* @param {CalendarDeleteManyArgs} args - Arguments to filter Calendars to delete.
* @example
* // Delete a few Calendars
* const { count } = await prisma.calendar.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends CalendarDeleteManyArgs>(args?: SelectSubset<T, CalendarDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Calendars.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {CalendarUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Calendars
* const calendar = await prisma.calendar.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends CalendarUpdateManyArgs>(args: SelectSubset<T, CalendarUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Calendars and returns the data updated in the database.
* @param {CalendarUpdateManyAndReturnArgs} args - Arguments to update many Calendars.
* @example
* // Update many Calendars
* const calendar = await prisma.calendar.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more Calendars and only return the `id`
* const calendarWithIdOnly = await prisma.calendar.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends CalendarUpdateManyAndReturnArgs>(args: SelectSubset<T, CalendarUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$CalendarPayload<ExtArgs>, T, "updateManyAndReturn", ClientOptions>>
/**
* Create or update one Calendar.
* @param {CalendarUpsertArgs} args - Arguments to update or create a Calendar.
* @example
* // Update or create a Calendar
* const calendar = await prisma.calendar.upsert({
* create: {
* // ... data to create a Calendar
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Calendar we want to update
* }
* })
*/
upsert<T extends CalendarUpsertArgs>(args: SelectSubset<T, CalendarUpsertArgs<ExtArgs>>): Prisma__CalendarClient<$Result.GetResult<Prisma.$CalendarPayload<ExtArgs>, T, "upsert", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Count the number of Calendars.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {CalendarCountArgs} args - Arguments to filter Calendars to count.
* @example
* // Count the number of Calendars
* const count = await prisma.calendar.count({
* where: {
* // ... the filter for the Calendars we want to count
* }
* })
**/
count<T extends CalendarCountArgs>(
args?: Subset<T, CalendarCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], CalendarCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Calendar.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {CalendarAggregateArgs} 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 CalendarAggregateArgs>(args: Subset<T, CalendarAggregateArgs>): Prisma.PrismaPromise<GetCalendarAggregateType<T>>
/**
* Group by Calendar.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {CalendarGroupByArgs} 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 CalendarGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: CalendarGroupByArgs['orderBy'] }
: { orderBy?: CalendarGroupByArgs['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, CalendarGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCalendarGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the Calendar model
*/
readonly fields: CalendarFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for Calendar.
* 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__CalendarClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, ClientOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
events<T extends Calendar$eventsArgs<ExtArgs> = {}>(args?: Subset<T, Calendar$eventsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "findMany", ClientOptions> | Null>
user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", ClientOptions> | Null, Null, ExtArgs, ClientOptions>
/**
* 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 Calendar model
*/
interface CalendarFieldRefs {
readonly id: FieldRef<"Calendar", 'String'>
readonly name: FieldRef<"Calendar", 'String'>
readonly color: FieldRef<"Calendar", 'String'>
readonly description: FieldRef<"Calendar", 'String'>
readonly userId: FieldRef<"Calendar", 'String'>
readonly createdAt: FieldRef<"Calendar", 'DateTime'>
readonly updatedAt: FieldRef<"Calendar", 'DateTime'>
}
// Custom InputTypes
/**
* Calendar findUnique
*/
export type CalendarFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Calendar
*/
select?: CalendarSelect<ExtArgs> | null
/**
* Omit specific fields from the Calendar
*/
omit?: CalendarOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: CalendarInclude<ExtArgs> | null
/**
* Filter, which Calendar to fetch.
*/
where: CalendarWhereUniqueInput
}
/**
* Calendar findUniqueOrThrow
*/
export type CalendarFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Calendar
*/
select?: CalendarSelect<ExtArgs> | null
/**
* Omit specific fields from the Calendar
*/
omit?: CalendarOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: CalendarInclude<ExtArgs> | null
/**
* Filter, which Calendar to fetch.
*/
where: CalendarWhereUniqueInput
}
/**
* Calendar findFirst
*/
export type CalendarFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Calendar
*/
select?: CalendarSelect<ExtArgs> | null
/**
* Omit specific fields from the Calendar
*/
omit?: CalendarOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: CalendarInclude<ExtArgs> | null
/**
* Filter, which Calendar to fetch.
*/
where?: CalendarWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Calendars to fetch.
*/
orderBy?: CalendarOrderByWithRelationInput | CalendarOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Calendars.
*/
cursor?: CalendarWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Calendars from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Calendars.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Calendars.
*/
distinct?: CalendarScalarFieldEnum | CalendarScalarFieldEnum[]
}
/**
* Calendar findFirstOrThrow
*/
export type CalendarFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Calendar
*/
select?: CalendarSelect<ExtArgs> | null
/**
* Omit specific fields from the Calendar
*/
omit?: CalendarOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: CalendarInclude<ExtArgs> | null
/**
* Filter, which Calendar to fetch.
*/
where?: CalendarWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Calendars to fetch.
*/
orderBy?: CalendarOrderByWithRelationInput | CalendarOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Calendars.
*/
cursor?: CalendarWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Calendars from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Calendars.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Calendars.
*/
distinct?: CalendarScalarFieldEnum | CalendarScalarFieldEnum[]
}
/**
* Calendar findMany
*/
export type CalendarFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Calendar
*/
select?: CalendarSelect<ExtArgs> | null
/**
* Omit specific fields from the Calendar
*/
omit?: CalendarOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: CalendarInclude<ExtArgs> | null
/**
* Filter, which Calendars to fetch.
*/
where?: CalendarWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Calendars to fetch.
*/
orderBy?: CalendarOrderByWithRelationInput | CalendarOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing Calendars.
*/
cursor?: CalendarWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Calendars from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Calendars.
*/
skip?: number
distinct?: CalendarScalarFieldEnum | CalendarScalarFieldEnum[]
}
/**
* Calendar create
*/
export type CalendarCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Calendar
*/
select?: CalendarSelect<ExtArgs> | null
/**
* Omit specific fields from the Calendar
*/
omit?: CalendarOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: CalendarInclude<ExtArgs> | null
/**
* The data needed to create a Calendar.
*/
data: XOR<CalendarCreateInput, CalendarUncheckedCreateInput>
}
/**
* Calendar createMany
*/
export type CalendarCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many Calendars.
*/
data: CalendarCreateManyInput | CalendarCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Calendar createManyAndReturn
*/
export type CalendarCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Calendar
*/
select?: CalendarSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Calendar
*/
omit?: CalendarOmit<ExtArgs> | null
/**
* The data used to create many Calendars.
*/
data: CalendarCreateManyInput | CalendarCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: CalendarIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* Calendar update
*/
export type CalendarUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Calendar
*/
select?: CalendarSelect<ExtArgs> | null
/**
* Omit specific fields from the Calendar
*/
omit?: CalendarOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: CalendarInclude<ExtArgs> | null
/**
* The data needed to update a Calendar.
*/
data: XOR<CalendarUpdateInput, CalendarUncheckedUpdateInput>
/**
* Choose, which Calendar to update.
*/
where: CalendarWhereUniqueInput
}
/**
* Calendar updateMany
*/
export type CalendarUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update Calendars.
*/
data: XOR<CalendarUpdateManyMutationInput, CalendarUncheckedUpdateManyInput>
/**
* Filter which Calendars to update
*/
where?: CalendarWhereInput
/**
* Limit how many Calendars to update.
*/
limit?: number
}
/**
* Calendar updateManyAndReturn
*/
export type CalendarUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Calendar
*/
select?: CalendarSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Calendar
*/
omit?: CalendarOmit<ExtArgs> | null
/**
* The data used to update Calendars.
*/
data: XOR<CalendarUpdateManyMutationInput, CalendarUncheckedUpdateManyInput>
/**
* Filter which Calendars to update
*/
where?: CalendarWhereInput
/**
* Limit how many Calendars to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: CalendarIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* Calendar upsert
*/
export type CalendarUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Calendar
*/
select?: CalendarSelect<ExtArgs> | null
/**
* Omit specific fields from the Calendar
*/
omit?: CalendarOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: CalendarInclude<ExtArgs> | null
/**
* The filter to search for the Calendar to update in case it exists.
*/
where: CalendarWhereUniqueInput
/**
* In case the Calendar found by the `where` argument doesn't exist, create a new Calendar with this data.
*/
create: XOR<CalendarCreateInput, CalendarUncheckedCreateInput>
/**
* In case the Calendar was found with the provided `where` argument, update it with this data.
*/
update: XOR<CalendarUpdateInput, CalendarUncheckedUpdateInput>
}
/**
* Calendar delete
*/
export type CalendarDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Calendar
*/
select?: CalendarSelect<ExtArgs> | null
/**
* Omit specific fields from the Calendar
*/
omit?: CalendarOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: CalendarInclude<ExtArgs> | null
/**
* Filter which Calendar to delete.
*/
where: CalendarWhereUniqueInput
}
/**
* Calendar deleteMany
*/
export type CalendarDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Calendars to delete
*/
where?: CalendarWhereInput
/**
* Limit how many Calendars to delete.
*/
limit?: number
}
/**
* Calendar.events
*/
export type Calendar$eventsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Event
*/
select?: EventSelect<ExtArgs> | null
/**
* Omit specific fields from the Event
*/
omit?: EventOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventInclude<ExtArgs> | null
where?: EventWhereInput
orderBy?: EventOrderByWithRelationInput | EventOrderByWithRelationInput[]
cursor?: EventWhereUniqueInput
take?: number
skip?: number
distinct?: EventScalarFieldEnum | EventScalarFieldEnum[]
}
/**
* Calendar without action
*/
export type CalendarDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Calendar
*/
select?: CalendarSelect<ExtArgs> | null
/**
* Omit specific fields from the Calendar
*/
omit?: CalendarOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: CalendarInclude<ExtArgs> | null
}
/**
* Model Event
*/
export type AggregateEvent = {
_count: EventCountAggregateOutputType | null
_min: EventMinAggregateOutputType | null
_max: EventMaxAggregateOutputType | null
}
export type EventMinAggregateOutputType = {
id: string | null
title: string | null
description: string | null
start: Date | null
end: Date | null
location: string | null
isAllDay: boolean | null
calendarId: string | null
userId: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type EventMaxAggregateOutputType = {
id: string | null
title: string | null
description: string | null
start: Date | null
end: Date | null
location: string | null
isAllDay: boolean | null
calendarId: string | null
userId: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type EventCountAggregateOutputType = {
id: number
title: number
description: number
start: number
end: number
location: number
isAllDay: number
calendarId: number
userId: number
createdAt: number
updatedAt: number
_all: number
}
export type EventMinAggregateInputType = {
id?: true
title?: true
description?: true
start?: true
end?: true
location?: true
isAllDay?: true
calendarId?: true
userId?: true
createdAt?: true
updatedAt?: true
}
export type EventMaxAggregateInputType = {
id?: true
title?: true
description?: true
start?: true
end?: true
location?: true
isAllDay?: true
calendarId?: true
userId?: true
createdAt?: true
updatedAt?: true
}
export type EventCountAggregateInputType = {
id?: true
title?: true
description?: true
start?: true
end?: true
location?: true
isAllDay?: true
calendarId?: true
userId?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type EventAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Event to aggregate.
*/
where?: EventWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Events to fetch.
*/
orderBy?: EventOrderByWithRelationInput | EventOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: EventWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Events from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Events.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned Events
**/
_count?: true | EventCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: EventMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: EventMaxAggregateInputType
}
export type GetEventAggregateType<T extends EventAggregateArgs> = {
[P in keyof T & keyof AggregateEvent]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateEvent[P]>
: GetScalarType<T[P], AggregateEvent[P]>
}
export type EventGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: EventWhereInput
orderBy?: EventOrderByWithAggregationInput | EventOrderByWithAggregationInput[]
by: EventScalarFieldEnum[] | EventScalarFieldEnum
having?: EventScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: EventCountAggregateInputType | true
_min?: EventMinAggregateInputType
_max?: EventMaxAggregateInputType
}
export type EventGroupByOutputType = {
id: string
title: string
description: string | null
start: Date
end: Date
location: string | null
isAllDay: boolean
calendarId: string
userId: string
createdAt: Date
updatedAt: Date
_count: EventCountAggregateOutputType | null
_min: EventMinAggregateOutputType | null
_max: EventMaxAggregateOutputType | null
}
type GetEventGroupByPayload<T extends EventGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<EventGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof EventGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], EventGroupByOutputType[P]>
: GetScalarType<T[P], EventGroupByOutputType[P]>
}
>
>
export type EventSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
title?: boolean
description?: boolean
start?: boolean
end?: boolean
location?: boolean
isAllDay?: boolean
calendarId?: boolean
userId?: boolean
createdAt?: boolean
updatedAt?: boolean
calendar?: boolean | CalendarDefaultArgs<ExtArgs>
user?: boolean | UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["event"]>
export type EventSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
title?: boolean
description?: boolean
start?: boolean
end?: boolean
location?: boolean
isAllDay?: boolean
calendarId?: boolean
userId?: boolean
createdAt?: boolean
updatedAt?: boolean
calendar?: boolean | CalendarDefaultArgs<ExtArgs>
user?: boolean | UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["event"]>
export type EventSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
title?: boolean
description?: boolean
start?: boolean
end?: boolean
location?: boolean
isAllDay?: boolean
calendarId?: boolean
userId?: boolean
createdAt?: boolean
updatedAt?: boolean
calendar?: boolean | CalendarDefaultArgs<ExtArgs>
user?: boolean | UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["event"]>
export type EventSelectScalar = {
id?: boolean
title?: boolean
description?: boolean
start?: boolean
end?: boolean
location?: boolean
isAllDay?: boolean
calendarId?: boolean
userId?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type EventOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "title" | "description" | "start" | "end" | "location" | "isAllDay" | "calendarId" | "userId" | "createdAt" | "updatedAt", ExtArgs["result"]["event"]>
export type EventInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
calendar?: boolean | CalendarDefaultArgs<ExtArgs>
user?: boolean | UserDefaultArgs<ExtArgs>
}
export type EventIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
calendar?: boolean | CalendarDefaultArgs<ExtArgs>
user?: boolean | UserDefaultArgs<ExtArgs>
}
export type EventIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
calendar?: boolean | CalendarDefaultArgs<ExtArgs>
user?: boolean | UserDefaultArgs<ExtArgs>
}
export type $EventPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "Event"
objects: {
calendar: Prisma.$CalendarPayload<ExtArgs>
user: Prisma.$UserPayload<ExtArgs>
}
scalars: $Extensions.GetPayloadResult<{
id: string
title: string
description: string | null
start: Date
end: Date
location: string | null
isAllDay: boolean
calendarId: string
userId: string
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["event"]>
composites: {}
}
type EventGetPayload<S extends boolean | null | undefined | EventDefaultArgs> = $Result.GetResult<Prisma.$EventPayload, S>
type EventCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<EventFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: EventCountAggregateInputType | true
}
export interface EventDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, ClientOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Event'], meta: { name: 'Event' } }
/**
* Find zero or one Event that matches the filter.
* @param {EventFindUniqueArgs} args - Arguments to find a Event
* @example
* // Get one Event
* const event = await prisma.event.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends EventFindUniqueArgs>(args: SelectSubset<T, EventFindUniqueArgs<ExtArgs>>): Prisma__EventClient<$Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "findUnique", ClientOptions> | null, null, ExtArgs, ClientOptions>
/**
* Find one Event that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {EventFindUniqueOrThrowArgs} args - Arguments to find a Event
* @example
* // Get one Event
* const event = await prisma.event.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends EventFindUniqueOrThrowArgs>(args: SelectSubset<T, EventFindUniqueOrThrowArgs<ExtArgs>>): Prisma__EventClient<$Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "findUniqueOrThrow", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Find the first Event 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 {EventFindFirstArgs} args - Arguments to find a Event
* @example
* // Get one Event
* const event = await prisma.event.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends EventFindFirstArgs>(args?: SelectSubset<T, EventFindFirstArgs<ExtArgs>>): Prisma__EventClient<$Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "findFirst", ClientOptions> | null, null, ExtArgs, ClientOptions>
/**
* Find the first Event 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 {EventFindFirstOrThrowArgs} args - Arguments to find a Event
* @example
* // Get one Event
* const event = await prisma.event.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends EventFindFirstOrThrowArgs>(args?: SelectSubset<T, EventFindFirstOrThrowArgs<ExtArgs>>): Prisma__EventClient<$Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "findFirstOrThrow", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Find zero or more Events 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 {EventFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Events
* const events = await prisma.event.findMany()
*
* // Get first 10 Events
* const events = await prisma.event.findMany({ take: 10 })
*
* // Only select the `id`
* const eventWithIdOnly = await prisma.event.findMany({ select: { id: true } })
*
*/
findMany<T extends EventFindManyArgs>(args?: SelectSubset<T, EventFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "findMany", ClientOptions>>
/**
* Create a Event.
* @param {EventCreateArgs} args - Arguments to create a Event.
* @example
* // Create one Event
* const Event = await prisma.event.create({
* data: {
* // ... data to create a Event
* }
* })
*
*/
create<T extends EventCreateArgs>(args: SelectSubset<T, EventCreateArgs<ExtArgs>>): Prisma__EventClient<$Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "create", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Create many Events.
* @param {EventCreateManyArgs} args - Arguments to create many Events.
* @example
* // Create many Events
* const event = await prisma.event.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends EventCreateManyArgs>(args?: SelectSubset<T, EventCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many Events and returns the data saved in the database.
* @param {EventCreateManyAndReturnArgs} args - Arguments to create many Events.
* @example
* // Create many Events
* const event = await prisma.event.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Events and only return the `id`
* const eventWithIdOnly = await prisma.event.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 EventCreateManyAndReturnArgs>(args?: SelectSubset<T, EventCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "createManyAndReturn", ClientOptions>>
/**
* Delete a Event.
* @param {EventDeleteArgs} args - Arguments to delete one Event.
* @example
* // Delete one Event
* const Event = await prisma.event.delete({
* where: {
* // ... filter to delete one Event
* }
* })
*
*/
delete<T extends EventDeleteArgs>(args: SelectSubset<T, EventDeleteArgs<ExtArgs>>): Prisma__EventClient<$Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "delete", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Update one Event.
* @param {EventUpdateArgs} args - Arguments to update one Event.
* @example
* // Update one Event
* const event = await prisma.event.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends EventUpdateArgs>(args: SelectSubset<T, EventUpdateArgs<ExtArgs>>): Prisma__EventClient<$Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "update", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Delete zero or more Events.
* @param {EventDeleteManyArgs} args - Arguments to filter Events to delete.
* @example
* // Delete a few Events
* const { count } = await prisma.event.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends EventDeleteManyArgs>(args?: SelectSubset<T, EventDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Events.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {EventUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Events
* const event = await prisma.event.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends EventUpdateManyArgs>(args: SelectSubset<T, EventUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Events and returns the data updated in the database.
* @param {EventUpdateManyAndReturnArgs} args - Arguments to update many Events.
* @example
* // Update many Events
* const event = await prisma.event.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more Events and only return the `id`
* const eventWithIdOnly = await prisma.event.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends EventUpdateManyAndReturnArgs>(args: SelectSubset<T, EventUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "updateManyAndReturn", ClientOptions>>
/**
* Create or update one Event.
* @param {EventUpsertArgs} args - Arguments to update or create a Event.
* @example
* // Update or create a Event
* const event = await prisma.event.upsert({
* create: {
* // ... data to create a Event
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Event we want to update
* }
* })
*/
upsert<T extends EventUpsertArgs>(args: SelectSubset<T, EventUpsertArgs<ExtArgs>>): Prisma__EventClient<$Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "upsert", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Count the number of Events.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {EventCountArgs} args - Arguments to filter Events to count.
* @example
* // Count the number of Events
* const count = await prisma.event.count({
* where: {
* // ... the filter for the Events we want to count
* }
* })
**/
count<T extends EventCountArgs>(
args?: Subset<T, EventCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], EventCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Event.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {EventAggregateArgs} 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 EventAggregateArgs>(args: Subset<T, EventAggregateArgs>): Prisma.PrismaPromise<GetEventAggregateType<T>>
/**
* Group by Event.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {EventGroupByArgs} 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 EventGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: EventGroupByArgs['orderBy'] }
: { orderBy?: EventGroupByArgs['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, EventGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetEventGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the Event model
*/
readonly fields: EventFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for Event.
* 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__EventClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, ClientOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
calendar<T extends CalendarDefaultArgs<ExtArgs> = {}>(args?: Subset<T, CalendarDefaultArgs<ExtArgs>>): Prisma__CalendarClient<$Result.GetResult<Prisma.$CalendarPayload<ExtArgs>, T, "findUniqueOrThrow", ClientOptions> | Null, Null, ExtArgs, ClientOptions>
user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", ClientOptions> | Null, Null, ExtArgs, ClientOptions>
/**
* 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 Event model
*/
interface EventFieldRefs {
readonly id: FieldRef<"Event", 'String'>
readonly title: FieldRef<"Event", 'String'>
readonly description: FieldRef<"Event", 'String'>
readonly start: FieldRef<"Event", 'DateTime'>
readonly end: FieldRef<"Event", 'DateTime'>
readonly location: FieldRef<"Event", 'String'>
readonly isAllDay: FieldRef<"Event", 'Boolean'>
readonly calendarId: FieldRef<"Event", 'String'>
readonly userId: FieldRef<"Event", 'String'>
readonly createdAt: FieldRef<"Event", 'DateTime'>
readonly updatedAt: FieldRef<"Event", 'DateTime'>
}
// Custom InputTypes
/**
* Event findUnique
*/
export type EventFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Event
*/
select?: EventSelect<ExtArgs> | null
/**
* Omit specific fields from the Event
*/
omit?: EventOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventInclude<ExtArgs> | null
/**
* Filter, which Event to fetch.
*/
where: EventWhereUniqueInput
}
/**
* Event findUniqueOrThrow
*/
export type EventFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Event
*/
select?: EventSelect<ExtArgs> | null
/**
* Omit specific fields from the Event
*/
omit?: EventOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventInclude<ExtArgs> | null
/**
* Filter, which Event to fetch.
*/
where: EventWhereUniqueInput
}
/**
* Event findFirst
*/
export type EventFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Event
*/
select?: EventSelect<ExtArgs> | null
/**
* Omit specific fields from the Event
*/
omit?: EventOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventInclude<ExtArgs> | null
/**
* Filter, which Event to fetch.
*/
where?: EventWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Events to fetch.
*/
orderBy?: EventOrderByWithRelationInput | EventOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Events.
*/
cursor?: EventWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Events from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Events.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Events.
*/
distinct?: EventScalarFieldEnum | EventScalarFieldEnum[]
}
/**
* Event findFirstOrThrow
*/
export type EventFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Event
*/
select?: EventSelect<ExtArgs> | null
/**
* Omit specific fields from the Event
*/
omit?: EventOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventInclude<ExtArgs> | null
/**
* Filter, which Event to fetch.
*/
where?: EventWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Events to fetch.
*/
orderBy?: EventOrderByWithRelationInput | EventOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Events.
*/
cursor?: EventWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Events from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Events.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Events.
*/
distinct?: EventScalarFieldEnum | EventScalarFieldEnum[]
}
/**
* Event findMany
*/
export type EventFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Event
*/
select?: EventSelect<ExtArgs> | null
/**
* Omit specific fields from the Event
*/
omit?: EventOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventInclude<ExtArgs> | null
/**
* Filter, which Events to fetch.
*/
where?: EventWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Events to fetch.
*/
orderBy?: EventOrderByWithRelationInput | EventOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing Events.
*/
cursor?: EventWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Events from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Events.
*/
skip?: number
distinct?: EventScalarFieldEnum | EventScalarFieldEnum[]
}
/**
* Event create
*/
export type EventCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Event
*/
select?: EventSelect<ExtArgs> | null
/**
* Omit specific fields from the Event
*/
omit?: EventOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventInclude<ExtArgs> | null
/**
* The data needed to create a Event.
*/
data: XOR<EventCreateInput, EventUncheckedCreateInput>
}
/**
* Event createMany
*/
export type EventCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many Events.
*/
data: EventCreateManyInput | EventCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Event createManyAndReturn
*/
export type EventCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Event
*/
select?: EventSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Event
*/
omit?: EventOmit<ExtArgs> | null
/**
* The data used to create many Events.
*/
data: EventCreateManyInput | EventCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: EventIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* Event update
*/
export type EventUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Event
*/
select?: EventSelect<ExtArgs> | null
/**
* Omit specific fields from the Event
*/
omit?: EventOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventInclude<ExtArgs> | null
/**
* The data needed to update a Event.
*/
data: XOR<EventUpdateInput, EventUncheckedUpdateInput>
/**
* Choose, which Event to update.
*/
where: EventWhereUniqueInput
}
/**
* Event updateMany
*/
export type EventUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update Events.
*/
data: XOR<EventUpdateManyMutationInput, EventUncheckedUpdateManyInput>
/**
* Filter which Events to update
*/
where?: EventWhereInput
/**
* Limit how many Events to update.
*/
limit?: number
}
/**
* Event updateManyAndReturn
*/
export type EventUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Event
*/
select?: EventSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Event
*/
omit?: EventOmit<ExtArgs> | null
/**
* The data used to update Events.
*/
data: XOR<EventUpdateManyMutationInput, EventUncheckedUpdateManyInput>
/**
* Filter which Events to update
*/
where?: EventWhereInput
/**
* Limit how many Events to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: EventIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* Event upsert
*/
export type EventUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Event
*/
select?: EventSelect<ExtArgs> | null
/**
* Omit specific fields from the Event
*/
omit?: EventOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventInclude<ExtArgs> | null
/**
* The filter to search for the Event to update in case it exists.
*/
where: EventWhereUniqueInput
/**
* In case the Event found by the `where` argument doesn't exist, create a new Event with this data.
*/
create: XOR<EventCreateInput, EventUncheckedCreateInput>
/**
* In case the Event was found with the provided `where` argument, update it with this data.
*/
update: XOR<EventUpdateInput, EventUncheckedUpdateInput>
}
/**
* Event delete
*/
export type EventDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Event
*/
select?: EventSelect<ExtArgs> | null
/**
* Omit specific fields from the Event
*/
omit?: EventOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventInclude<ExtArgs> | null
/**
* Filter which Event to delete.
*/
where: EventWhereUniqueInput
}
/**
* Event deleteMany
*/
export type EventDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Events to delete
*/
where?: EventWhereInput
/**
* Limit how many Events to delete.
*/
limit?: number
}
/**
* Event without action
*/
export type EventDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Event
*/
select?: EventSelect<ExtArgs> | null
/**
* Omit specific fields from the Event
*/
omit?: EventOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventInclude<ExtArgs> | null
}
/**
* Model MailCredentials
*/
export type AggregateMailCredentials = {
_count: MailCredentialsCountAggregateOutputType | null
_avg: MailCredentialsAvgAggregateOutputType | null
_sum: MailCredentialsSumAggregateOutputType | null
_min: MailCredentialsMinAggregateOutputType | null
_max: MailCredentialsMaxAggregateOutputType | null
}
export type MailCredentialsAvgAggregateOutputType = {
port: number | null
smtp_port: number | null
}
export type MailCredentialsSumAggregateOutputType = {
port: number | null
smtp_port: number | null
}
export type MailCredentialsMinAggregateOutputType = {
id: string | null
userId: string | null
email: string | null
password: string | null
host: string | null
port: number | null
secure: boolean | null
use_oauth: boolean | null
refresh_token: string | null
access_token: string | null
token_expiry: Date | null
smtp_host: string | null
smtp_port: number | null
smtp_secure: boolean | null
display_name: string | null
color: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type MailCredentialsMaxAggregateOutputType = {
id: string | null
userId: string | null
email: string | null
password: string | null
host: string | null
port: number | null
secure: boolean | null
use_oauth: boolean | null
refresh_token: string | null
access_token: string | null
token_expiry: Date | null
smtp_host: string | null
smtp_port: number | null
smtp_secure: boolean | null
display_name: string | null
color: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type MailCredentialsCountAggregateOutputType = {
id: number
userId: number
email: number
password: number
host: number
port: number
secure: number
use_oauth: number
refresh_token: number
access_token: number
token_expiry: number
smtp_host: number
smtp_port: number
smtp_secure: number
display_name: number
color: number
createdAt: number
updatedAt: number
_all: number
}
export type MailCredentialsAvgAggregateInputType = {
port?: true
smtp_port?: true
}
export type MailCredentialsSumAggregateInputType = {
port?: true
smtp_port?: true
}
export type MailCredentialsMinAggregateInputType = {
id?: true
userId?: true
email?: true
password?: true
host?: true
port?: true
secure?: true
use_oauth?: true
refresh_token?: true
access_token?: true
token_expiry?: true
smtp_host?: true
smtp_port?: true
smtp_secure?: true
display_name?: true
color?: true
createdAt?: true
updatedAt?: true
}
export type MailCredentialsMaxAggregateInputType = {
id?: true
userId?: true
email?: true
password?: true
host?: true
port?: true
secure?: true
use_oauth?: true
refresh_token?: true
access_token?: true
token_expiry?: true
smtp_host?: true
smtp_port?: true
smtp_secure?: true
display_name?: true
color?: true
createdAt?: true
updatedAt?: true
}
export type MailCredentialsCountAggregateInputType = {
id?: true
userId?: true
email?: true
password?: true
host?: true
port?: true
secure?: true
use_oauth?: true
refresh_token?: true
access_token?: true
token_expiry?: true
smtp_host?: true
smtp_port?: true
smtp_secure?: true
display_name?: true
color?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type MailCredentialsAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which MailCredentials to aggregate.
*/
where?: MailCredentialsWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of MailCredentials to fetch.
*/
orderBy?: MailCredentialsOrderByWithRelationInput | MailCredentialsOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: MailCredentialsWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` MailCredentials from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` MailCredentials.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned MailCredentials
**/
_count?: true | MailCredentialsCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: MailCredentialsAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: MailCredentialsSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: MailCredentialsMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: MailCredentialsMaxAggregateInputType
}
export type GetMailCredentialsAggregateType<T extends MailCredentialsAggregateArgs> = {
[P in keyof T & keyof AggregateMailCredentials]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateMailCredentials[P]>
: GetScalarType<T[P], AggregateMailCredentials[P]>
}
export type MailCredentialsGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: MailCredentialsWhereInput
orderBy?: MailCredentialsOrderByWithAggregationInput | MailCredentialsOrderByWithAggregationInput[]
by: MailCredentialsScalarFieldEnum[] | MailCredentialsScalarFieldEnum
having?: MailCredentialsScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: MailCredentialsCountAggregateInputType | true
_avg?: MailCredentialsAvgAggregateInputType
_sum?: MailCredentialsSumAggregateInputType
_min?: MailCredentialsMinAggregateInputType
_max?: MailCredentialsMaxAggregateInputType
}
export type MailCredentialsGroupByOutputType = {
id: string
userId: string
email: string
password: string | null
host: string
port: number
secure: boolean
use_oauth: boolean
refresh_token: string | null
access_token: string | null
token_expiry: Date | null
smtp_host: string | null
smtp_port: number | null
smtp_secure: boolean | null
display_name: string | null
color: string | null
createdAt: Date
updatedAt: Date
_count: MailCredentialsCountAggregateOutputType | null
_avg: MailCredentialsAvgAggregateOutputType | null
_sum: MailCredentialsSumAggregateOutputType | null
_min: MailCredentialsMinAggregateOutputType | null
_max: MailCredentialsMaxAggregateOutputType | null
}
type GetMailCredentialsGroupByPayload<T extends MailCredentialsGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<MailCredentialsGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof MailCredentialsGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], MailCredentialsGroupByOutputType[P]>
: GetScalarType<T[P], MailCredentialsGroupByOutputType[P]>
}
>
>
export type MailCredentialsSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
userId?: boolean
email?: boolean
password?: boolean
host?: boolean
port?: boolean
secure?: boolean
use_oauth?: boolean
refresh_token?: boolean
access_token?: boolean
token_expiry?: boolean
smtp_host?: boolean
smtp_port?: boolean
smtp_secure?: boolean
display_name?: boolean
color?: boolean
createdAt?: boolean
updatedAt?: boolean
user?: boolean | UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["mailCredentials"]>
export type MailCredentialsSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
userId?: boolean
email?: boolean
password?: boolean
host?: boolean
port?: boolean
secure?: boolean
use_oauth?: boolean
refresh_token?: boolean
access_token?: boolean
token_expiry?: boolean
smtp_host?: boolean
smtp_port?: boolean
smtp_secure?: boolean
display_name?: boolean
color?: boolean
createdAt?: boolean
updatedAt?: boolean
user?: boolean | UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["mailCredentials"]>
export type MailCredentialsSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
userId?: boolean
email?: boolean
password?: boolean
host?: boolean
port?: boolean
secure?: boolean
use_oauth?: boolean
refresh_token?: boolean
access_token?: boolean
token_expiry?: boolean
smtp_host?: boolean
smtp_port?: boolean
smtp_secure?: boolean
display_name?: boolean
color?: boolean
createdAt?: boolean
updatedAt?: boolean
user?: boolean | UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["mailCredentials"]>
export type MailCredentialsSelectScalar = {
id?: boolean
userId?: boolean
email?: boolean
password?: boolean
host?: boolean
port?: boolean
secure?: boolean
use_oauth?: boolean
refresh_token?: boolean
access_token?: boolean
token_expiry?: boolean
smtp_host?: boolean
smtp_port?: boolean
smtp_secure?: boolean
display_name?: boolean
color?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type MailCredentialsOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "userId" | "email" | "password" | "host" | "port" | "secure" | "use_oauth" | "refresh_token" | "access_token" | "token_expiry" | "smtp_host" | "smtp_port" | "smtp_secure" | "display_name" | "color" | "createdAt" | "updatedAt", ExtArgs["result"]["mailCredentials"]>
export type MailCredentialsInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
user?: boolean | UserDefaultArgs<ExtArgs>
}
export type MailCredentialsIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
user?: boolean | UserDefaultArgs<ExtArgs>
}
export type MailCredentialsIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
user?: boolean | UserDefaultArgs<ExtArgs>
}
export type $MailCredentialsPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "MailCredentials"
objects: {
user: Prisma.$UserPayload<ExtArgs>
}
scalars: $Extensions.GetPayloadResult<{
id: string
userId: string
email: string
password: string | null
host: string
port: number
secure: boolean
use_oauth: boolean
refresh_token: string | null
access_token: string | null
token_expiry: Date | null
smtp_host: string | null
smtp_port: number | null
smtp_secure: boolean | null
display_name: string | null
color: string | null
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["mailCredentials"]>
composites: {}
}
type MailCredentialsGetPayload<S extends boolean | null | undefined | MailCredentialsDefaultArgs> = $Result.GetResult<Prisma.$MailCredentialsPayload, S>
type MailCredentialsCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<MailCredentialsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: MailCredentialsCountAggregateInputType | true
}
export interface MailCredentialsDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, ClientOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['MailCredentials'], meta: { name: 'MailCredentials' } }
/**
* Find zero or one MailCredentials that matches the filter.
* @param {MailCredentialsFindUniqueArgs} args - Arguments to find a MailCredentials
* @example
* // Get one MailCredentials
* const mailCredentials = await prisma.mailCredentials.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends MailCredentialsFindUniqueArgs>(args: SelectSubset<T, MailCredentialsFindUniqueArgs<ExtArgs>>): Prisma__MailCredentialsClient<$Result.GetResult<Prisma.$MailCredentialsPayload<ExtArgs>, T, "findUnique", ClientOptions> | null, null, ExtArgs, ClientOptions>
/**
* Find one MailCredentials that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {MailCredentialsFindUniqueOrThrowArgs} args - Arguments to find a MailCredentials
* @example
* // Get one MailCredentials
* const mailCredentials = await prisma.mailCredentials.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends MailCredentialsFindUniqueOrThrowArgs>(args: SelectSubset<T, MailCredentialsFindUniqueOrThrowArgs<ExtArgs>>): Prisma__MailCredentialsClient<$Result.GetResult<Prisma.$MailCredentialsPayload<ExtArgs>, T, "findUniqueOrThrow", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Find the first MailCredentials 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 {MailCredentialsFindFirstArgs} args - Arguments to find a MailCredentials
* @example
* // Get one MailCredentials
* const mailCredentials = await prisma.mailCredentials.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends MailCredentialsFindFirstArgs>(args?: SelectSubset<T, MailCredentialsFindFirstArgs<ExtArgs>>): Prisma__MailCredentialsClient<$Result.GetResult<Prisma.$MailCredentialsPayload<ExtArgs>, T, "findFirst", ClientOptions> | null, null, ExtArgs, ClientOptions>
/**
* Find the first MailCredentials 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 {MailCredentialsFindFirstOrThrowArgs} args - Arguments to find a MailCredentials
* @example
* // Get one MailCredentials
* const mailCredentials = await prisma.mailCredentials.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends MailCredentialsFindFirstOrThrowArgs>(args?: SelectSubset<T, MailCredentialsFindFirstOrThrowArgs<ExtArgs>>): Prisma__MailCredentialsClient<$Result.GetResult<Prisma.$MailCredentialsPayload<ExtArgs>, T, "findFirstOrThrow", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Find zero or more MailCredentials 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 {MailCredentialsFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all MailCredentials
* const mailCredentials = await prisma.mailCredentials.findMany()
*
* // Get first 10 MailCredentials
* const mailCredentials = await prisma.mailCredentials.findMany({ take: 10 })
*
* // Only select the `id`
* const mailCredentialsWithIdOnly = await prisma.mailCredentials.findMany({ select: { id: true } })
*
*/
findMany<T extends MailCredentialsFindManyArgs>(args?: SelectSubset<T, MailCredentialsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MailCredentialsPayload<ExtArgs>, T, "findMany", ClientOptions>>
/**
* Create a MailCredentials.
* @param {MailCredentialsCreateArgs} args - Arguments to create a MailCredentials.
* @example
* // Create one MailCredentials
* const MailCredentials = await prisma.mailCredentials.create({
* data: {
* // ... data to create a MailCredentials
* }
* })
*
*/
create<T extends MailCredentialsCreateArgs>(args: SelectSubset<T, MailCredentialsCreateArgs<ExtArgs>>): Prisma__MailCredentialsClient<$Result.GetResult<Prisma.$MailCredentialsPayload<ExtArgs>, T, "create", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Create many MailCredentials.
* @param {MailCredentialsCreateManyArgs} args - Arguments to create many MailCredentials.
* @example
* // Create many MailCredentials
* const mailCredentials = await prisma.mailCredentials.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends MailCredentialsCreateManyArgs>(args?: SelectSubset<T, MailCredentialsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many MailCredentials and returns the data saved in the database.
* @param {MailCredentialsCreateManyAndReturnArgs} args - Arguments to create many MailCredentials.
* @example
* // Create many MailCredentials
* const mailCredentials = await prisma.mailCredentials.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many MailCredentials and only return the `id`
* const mailCredentialsWithIdOnly = await prisma.mailCredentials.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 MailCredentialsCreateManyAndReturnArgs>(args?: SelectSubset<T, MailCredentialsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MailCredentialsPayload<ExtArgs>, T, "createManyAndReturn", ClientOptions>>
/**
* Delete a MailCredentials.
* @param {MailCredentialsDeleteArgs} args - Arguments to delete one MailCredentials.
* @example
* // Delete one MailCredentials
* const MailCredentials = await prisma.mailCredentials.delete({
* where: {
* // ... filter to delete one MailCredentials
* }
* })
*
*/
delete<T extends MailCredentialsDeleteArgs>(args: SelectSubset<T, MailCredentialsDeleteArgs<ExtArgs>>): Prisma__MailCredentialsClient<$Result.GetResult<Prisma.$MailCredentialsPayload<ExtArgs>, T, "delete", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Update one MailCredentials.
* @param {MailCredentialsUpdateArgs} args - Arguments to update one MailCredentials.
* @example
* // Update one MailCredentials
* const mailCredentials = await prisma.mailCredentials.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends MailCredentialsUpdateArgs>(args: SelectSubset<T, MailCredentialsUpdateArgs<ExtArgs>>): Prisma__MailCredentialsClient<$Result.GetResult<Prisma.$MailCredentialsPayload<ExtArgs>, T, "update", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Delete zero or more MailCredentials.
* @param {MailCredentialsDeleteManyArgs} args - Arguments to filter MailCredentials to delete.
* @example
* // Delete a few MailCredentials
* const { count } = await prisma.mailCredentials.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends MailCredentialsDeleteManyArgs>(args?: SelectSubset<T, MailCredentialsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more MailCredentials.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {MailCredentialsUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many MailCredentials
* const mailCredentials = await prisma.mailCredentials.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends MailCredentialsUpdateManyArgs>(args: SelectSubset<T, MailCredentialsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more MailCredentials and returns the data updated in the database.
* @param {MailCredentialsUpdateManyAndReturnArgs} args - Arguments to update many MailCredentials.
* @example
* // Update many MailCredentials
* const mailCredentials = await prisma.mailCredentials.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more MailCredentials and only return the `id`
* const mailCredentialsWithIdOnly = await prisma.mailCredentials.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends MailCredentialsUpdateManyAndReturnArgs>(args: SelectSubset<T, MailCredentialsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MailCredentialsPayload<ExtArgs>, T, "updateManyAndReturn", ClientOptions>>
/**
* Create or update one MailCredentials.
* @param {MailCredentialsUpsertArgs} args - Arguments to update or create a MailCredentials.
* @example
* // Update or create a MailCredentials
* const mailCredentials = await prisma.mailCredentials.upsert({
* create: {
* // ... data to create a MailCredentials
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the MailCredentials we want to update
* }
* })
*/
upsert<T extends MailCredentialsUpsertArgs>(args: SelectSubset<T, MailCredentialsUpsertArgs<ExtArgs>>): Prisma__MailCredentialsClient<$Result.GetResult<Prisma.$MailCredentialsPayload<ExtArgs>, T, "upsert", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Count the number of MailCredentials.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {MailCredentialsCountArgs} args - Arguments to filter MailCredentials to count.
* @example
* // Count the number of MailCredentials
* const count = await prisma.mailCredentials.count({
* where: {
* // ... the filter for the MailCredentials we want to count
* }
* })
**/
count<T extends MailCredentialsCountArgs>(
args?: Subset<T, MailCredentialsCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], MailCredentialsCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a MailCredentials.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {MailCredentialsAggregateArgs} 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 MailCredentialsAggregateArgs>(args: Subset<T, MailCredentialsAggregateArgs>): Prisma.PrismaPromise<GetMailCredentialsAggregateType<T>>
/**
* Group by MailCredentials.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {MailCredentialsGroupByArgs} 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 MailCredentialsGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: MailCredentialsGroupByArgs['orderBy'] }
: { orderBy?: MailCredentialsGroupByArgs['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, MailCredentialsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMailCredentialsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the MailCredentials model
*/
readonly fields: MailCredentialsFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for MailCredentials.
* 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__MailCredentialsClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, ClientOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", ClientOptions> | Null, Null, ExtArgs, ClientOptions>
/**
* 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 MailCredentials model
*/
interface MailCredentialsFieldRefs {
readonly id: FieldRef<"MailCredentials", 'String'>
readonly userId: FieldRef<"MailCredentials", 'String'>
readonly email: FieldRef<"MailCredentials", 'String'>
readonly password: FieldRef<"MailCredentials", 'String'>
readonly host: FieldRef<"MailCredentials", 'String'>
readonly port: FieldRef<"MailCredentials", 'Int'>
readonly secure: FieldRef<"MailCredentials", 'Boolean'>
readonly use_oauth: FieldRef<"MailCredentials", 'Boolean'>
readonly refresh_token: FieldRef<"MailCredentials", 'String'>
readonly access_token: FieldRef<"MailCredentials", 'String'>
readonly token_expiry: FieldRef<"MailCredentials", 'DateTime'>
readonly smtp_host: FieldRef<"MailCredentials", 'String'>
readonly smtp_port: FieldRef<"MailCredentials", 'Int'>
readonly smtp_secure: FieldRef<"MailCredentials", 'Boolean'>
readonly display_name: FieldRef<"MailCredentials", 'String'>
readonly color: FieldRef<"MailCredentials", 'String'>
readonly createdAt: FieldRef<"MailCredentials", 'DateTime'>
readonly updatedAt: FieldRef<"MailCredentials", 'DateTime'>
}
// Custom InputTypes
/**
* MailCredentials findUnique
*/
export type MailCredentialsFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MailCredentials
*/
select?: MailCredentialsSelect<ExtArgs> | null
/**
* Omit specific fields from the MailCredentials
*/
omit?: MailCredentialsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: MailCredentialsInclude<ExtArgs> | null
/**
* Filter, which MailCredentials to fetch.
*/
where: MailCredentialsWhereUniqueInput
}
/**
* MailCredentials findUniqueOrThrow
*/
export type MailCredentialsFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MailCredentials
*/
select?: MailCredentialsSelect<ExtArgs> | null
/**
* Omit specific fields from the MailCredentials
*/
omit?: MailCredentialsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: MailCredentialsInclude<ExtArgs> | null
/**
* Filter, which MailCredentials to fetch.
*/
where: MailCredentialsWhereUniqueInput
}
/**
* MailCredentials findFirst
*/
export type MailCredentialsFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MailCredentials
*/
select?: MailCredentialsSelect<ExtArgs> | null
/**
* Omit specific fields from the MailCredentials
*/
omit?: MailCredentialsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: MailCredentialsInclude<ExtArgs> | null
/**
* Filter, which MailCredentials to fetch.
*/
where?: MailCredentialsWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of MailCredentials to fetch.
*/
orderBy?: MailCredentialsOrderByWithRelationInput | MailCredentialsOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for MailCredentials.
*/
cursor?: MailCredentialsWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` MailCredentials from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` MailCredentials.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of MailCredentials.
*/
distinct?: MailCredentialsScalarFieldEnum | MailCredentialsScalarFieldEnum[]
}
/**
* MailCredentials findFirstOrThrow
*/
export type MailCredentialsFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MailCredentials
*/
select?: MailCredentialsSelect<ExtArgs> | null
/**
* Omit specific fields from the MailCredentials
*/
omit?: MailCredentialsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: MailCredentialsInclude<ExtArgs> | null
/**
* Filter, which MailCredentials to fetch.
*/
where?: MailCredentialsWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of MailCredentials to fetch.
*/
orderBy?: MailCredentialsOrderByWithRelationInput | MailCredentialsOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for MailCredentials.
*/
cursor?: MailCredentialsWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` MailCredentials from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` MailCredentials.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of MailCredentials.
*/
distinct?: MailCredentialsScalarFieldEnum | MailCredentialsScalarFieldEnum[]
}
/**
* MailCredentials findMany
*/
export type MailCredentialsFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MailCredentials
*/
select?: MailCredentialsSelect<ExtArgs> | null
/**
* Omit specific fields from the MailCredentials
*/
omit?: MailCredentialsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: MailCredentialsInclude<ExtArgs> | null
/**
* Filter, which MailCredentials to fetch.
*/
where?: MailCredentialsWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of MailCredentials to fetch.
*/
orderBy?: MailCredentialsOrderByWithRelationInput | MailCredentialsOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing MailCredentials.
*/
cursor?: MailCredentialsWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` MailCredentials from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` MailCredentials.
*/
skip?: number
distinct?: MailCredentialsScalarFieldEnum | MailCredentialsScalarFieldEnum[]
}
/**
* MailCredentials create
*/
export type MailCredentialsCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MailCredentials
*/
select?: MailCredentialsSelect<ExtArgs> | null
/**
* Omit specific fields from the MailCredentials
*/
omit?: MailCredentialsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: MailCredentialsInclude<ExtArgs> | null
/**
* The data needed to create a MailCredentials.
*/
data: XOR<MailCredentialsCreateInput, MailCredentialsUncheckedCreateInput>
}
/**
* MailCredentials createMany
*/
export type MailCredentialsCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many MailCredentials.
*/
data: MailCredentialsCreateManyInput | MailCredentialsCreateManyInput[]
skipDuplicates?: boolean
}
/**
* MailCredentials createManyAndReturn
*/
export type MailCredentialsCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MailCredentials
*/
select?: MailCredentialsSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the MailCredentials
*/
omit?: MailCredentialsOmit<ExtArgs> | null
/**
* The data used to create many MailCredentials.
*/
data: MailCredentialsCreateManyInput | MailCredentialsCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: MailCredentialsIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* MailCredentials update
*/
export type MailCredentialsUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MailCredentials
*/
select?: MailCredentialsSelect<ExtArgs> | null
/**
* Omit specific fields from the MailCredentials
*/
omit?: MailCredentialsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: MailCredentialsInclude<ExtArgs> | null
/**
* The data needed to update a MailCredentials.
*/
data: XOR<MailCredentialsUpdateInput, MailCredentialsUncheckedUpdateInput>
/**
* Choose, which MailCredentials to update.
*/
where: MailCredentialsWhereUniqueInput
}
/**
* MailCredentials updateMany
*/
export type MailCredentialsUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update MailCredentials.
*/
data: XOR<MailCredentialsUpdateManyMutationInput, MailCredentialsUncheckedUpdateManyInput>
/**
* Filter which MailCredentials to update
*/
where?: MailCredentialsWhereInput
/**
* Limit how many MailCredentials to update.
*/
limit?: number
}
/**
* MailCredentials updateManyAndReturn
*/
export type MailCredentialsUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MailCredentials
*/
select?: MailCredentialsSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the MailCredentials
*/
omit?: MailCredentialsOmit<ExtArgs> | null
/**
* The data used to update MailCredentials.
*/
data: XOR<MailCredentialsUpdateManyMutationInput, MailCredentialsUncheckedUpdateManyInput>
/**
* Filter which MailCredentials to update
*/
where?: MailCredentialsWhereInput
/**
* Limit how many MailCredentials to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: MailCredentialsIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* MailCredentials upsert
*/
export type MailCredentialsUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MailCredentials
*/
select?: MailCredentialsSelect<ExtArgs> | null
/**
* Omit specific fields from the MailCredentials
*/
omit?: MailCredentialsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: MailCredentialsInclude<ExtArgs> | null
/**
* The filter to search for the MailCredentials to update in case it exists.
*/
where: MailCredentialsWhereUniqueInput
/**
* In case the MailCredentials found by the `where` argument doesn't exist, create a new MailCredentials with this data.
*/
create: XOR<MailCredentialsCreateInput, MailCredentialsUncheckedCreateInput>
/**
* In case the MailCredentials was found with the provided `where` argument, update it with this data.
*/
update: XOR<MailCredentialsUpdateInput, MailCredentialsUncheckedUpdateInput>
}
/**
* MailCredentials delete
*/
export type MailCredentialsDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MailCredentials
*/
select?: MailCredentialsSelect<ExtArgs> | null
/**
* Omit specific fields from the MailCredentials
*/
omit?: MailCredentialsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: MailCredentialsInclude<ExtArgs> | null
/**
* Filter which MailCredentials to delete.
*/
where: MailCredentialsWhereUniqueInput
}
/**
* MailCredentials deleteMany
*/
export type MailCredentialsDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which MailCredentials to delete
*/
where?: MailCredentialsWhereInput
/**
* Limit how many MailCredentials to delete.
*/
limit?: number
}
/**
* MailCredentials without action
*/
export type MailCredentialsDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MailCredentials
*/
select?: MailCredentialsSelect<ExtArgs> | null
/**
* Omit specific fields from the MailCredentials
*/
omit?: MailCredentialsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: MailCredentialsInclude<ExtArgs> | null
}
/**
* Model WebDAVCredentials
*/
export type AggregateWebDAVCredentials = {
_count: WebDAVCredentialsCountAggregateOutputType | null
_min: WebDAVCredentialsMinAggregateOutputType | null
_max: WebDAVCredentialsMaxAggregateOutputType | null
}
export type WebDAVCredentialsMinAggregateOutputType = {
id: string | null
userId: string | null
username: string | null
password: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type WebDAVCredentialsMaxAggregateOutputType = {
id: string | null
userId: string | null
username: string | null
password: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type WebDAVCredentialsCountAggregateOutputType = {
id: number
userId: number
username: number
password: number
createdAt: number
updatedAt: number
_all: number
}
export type WebDAVCredentialsMinAggregateInputType = {
id?: true
userId?: true
username?: true
password?: true
createdAt?: true
updatedAt?: true
}
export type WebDAVCredentialsMaxAggregateInputType = {
id?: true
userId?: true
username?: true
password?: true
createdAt?: true
updatedAt?: true
}
export type WebDAVCredentialsCountAggregateInputType = {
id?: true
userId?: true
username?: true
password?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type WebDAVCredentialsAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which WebDAVCredentials to aggregate.
*/
where?: WebDAVCredentialsWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of WebDAVCredentials to fetch.
*/
orderBy?: WebDAVCredentialsOrderByWithRelationInput | WebDAVCredentialsOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: WebDAVCredentialsWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` WebDAVCredentials from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` WebDAVCredentials.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned WebDAVCredentials
**/
_count?: true | WebDAVCredentialsCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: WebDAVCredentialsMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: WebDAVCredentialsMaxAggregateInputType
}
export type GetWebDAVCredentialsAggregateType<T extends WebDAVCredentialsAggregateArgs> = {
[P in keyof T & keyof AggregateWebDAVCredentials]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateWebDAVCredentials[P]>
: GetScalarType<T[P], AggregateWebDAVCredentials[P]>
}
export type WebDAVCredentialsGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: WebDAVCredentialsWhereInput
orderBy?: WebDAVCredentialsOrderByWithAggregationInput | WebDAVCredentialsOrderByWithAggregationInput[]
by: WebDAVCredentialsScalarFieldEnum[] | WebDAVCredentialsScalarFieldEnum
having?: WebDAVCredentialsScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: WebDAVCredentialsCountAggregateInputType | true
_min?: WebDAVCredentialsMinAggregateInputType
_max?: WebDAVCredentialsMaxAggregateInputType
}
export type WebDAVCredentialsGroupByOutputType = {
id: string
userId: string
username: string
password: string
createdAt: Date
updatedAt: Date
_count: WebDAVCredentialsCountAggregateOutputType | null
_min: WebDAVCredentialsMinAggregateOutputType | null
_max: WebDAVCredentialsMaxAggregateOutputType | null
}
type GetWebDAVCredentialsGroupByPayload<T extends WebDAVCredentialsGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<WebDAVCredentialsGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof WebDAVCredentialsGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], WebDAVCredentialsGroupByOutputType[P]>
: GetScalarType<T[P], WebDAVCredentialsGroupByOutputType[P]>
}
>
>
export type WebDAVCredentialsSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
userId?: boolean
username?: boolean
password?: boolean
createdAt?: boolean
updatedAt?: boolean
user?: boolean | UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["webDAVCredentials"]>
export type WebDAVCredentialsSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
userId?: boolean
username?: boolean
password?: boolean
createdAt?: boolean
updatedAt?: boolean
user?: boolean | UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["webDAVCredentials"]>
export type WebDAVCredentialsSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
userId?: boolean
username?: boolean
password?: boolean
createdAt?: boolean
updatedAt?: boolean
user?: boolean | UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["webDAVCredentials"]>
export type WebDAVCredentialsSelectScalar = {
id?: boolean
userId?: boolean
username?: boolean
password?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type WebDAVCredentialsOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "userId" | "username" | "password" | "createdAt" | "updatedAt", ExtArgs["result"]["webDAVCredentials"]>
export type WebDAVCredentialsInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
user?: boolean | UserDefaultArgs<ExtArgs>
}
export type WebDAVCredentialsIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
user?: boolean | UserDefaultArgs<ExtArgs>
}
export type WebDAVCredentialsIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
user?: boolean | UserDefaultArgs<ExtArgs>
}
export type $WebDAVCredentialsPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "WebDAVCredentials"
objects: {
user: Prisma.$UserPayload<ExtArgs>
}
scalars: $Extensions.GetPayloadResult<{
id: string
userId: string
username: string
password: string
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["webDAVCredentials"]>
composites: {}
}
type WebDAVCredentialsGetPayload<S extends boolean | null | undefined | WebDAVCredentialsDefaultArgs> = $Result.GetResult<Prisma.$WebDAVCredentialsPayload, S>
type WebDAVCredentialsCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<WebDAVCredentialsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: WebDAVCredentialsCountAggregateInputType | true
}
export interface WebDAVCredentialsDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, ClientOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['WebDAVCredentials'], meta: { name: 'WebDAVCredentials' } }
/**
* Find zero or one WebDAVCredentials that matches the filter.
* @param {WebDAVCredentialsFindUniqueArgs} args - Arguments to find a WebDAVCredentials
* @example
* // Get one WebDAVCredentials
* const webDAVCredentials = await prisma.webDAVCredentials.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends WebDAVCredentialsFindUniqueArgs>(args: SelectSubset<T, WebDAVCredentialsFindUniqueArgs<ExtArgs>>): Prisma__WebDAVCredentialsClient<$Result.GetResult<Prisma.$WebDAVCredentialsPayload<ExtArgs>, T, "findUnique", ClientOptions> | null, null, ExtArgs, ClientOptions>
/**
* Find one WebDAVCredentials that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {WebDAVCredentialsFindUniqueOrThrowArgs} args - Arguments to find a WebDAVCredentials
* @example
* // Get one WebDAVCredentials
* const webDAVCredentials = await prisma.webDAVCredentials.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends WebDAVCredentialsFindUniqueOrThrowArgs>(args: SelectSubset<T, WebDAVCredentialsFindUniqueOrThrowArgs<ExtArgs>>): Prisma__WebDAVCredentialsClient<$Result.GetResult<Prisma.$WebDAVCredentialsPayload<ExtArgs>, T, "findUniqueOrThrow", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Find the first WebDAVCredentials 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 {WebDAVCredentialsFindFirstArgs} args - Arguments to find a WebDAVCredentials
* @example
* // Get one WebDAVCredentials
* const webDAVCredentials = await prisma.webDAVCredentials.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends WebDAVCredentialsFindFirstArgs>(args?: SelectSubset<T, WebDAVCredentialsFindFirstArgs<ExtArgs>>): Prisma__WebDAVCredentialsClient<$Result.GetResult<Prisma.$WebDAVCredentialsPayload<ExtArgs>, T, "findFirst", ClientOptions> | null, null, ExtArgs, ClientOptions>
/**
* Find the first WebDAVCredentials 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 {WebDAVCredentialsFindFirstOrThrowArgs} args - Arguments to find a WebDAVCredentials
* @example
* // Get one WebDAVCredentials
* const webDAVCredentials = await prisma.webDAVCredentials.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends WebDAVCredentialsFindFirstOrThrowArgs>(args?: SelectSubset<T, WebDAVCredentialsFindFirstOrThrowArgs<ExtArgs>>): Prisma__WebDAVCredentialsClient<$Result.GetResult<Prisma.$WebDAVCredentialsPayload<ExtArgs>, T, "findFirstOrThrow", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Find zero or more WebDAVCredentials 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 {WebDAVCredentialsFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all WebDAVCredentials
* const webDAVCredentials = await prisma.webDAVCredentials.findMany()
*
* // Get first 10 WebDAVCredentials
* const webDAVCredentials = await prisma.webDAVCredentials.findMany({ take: 10 })
*
* // Only select the `id`
* const webDAVCredentialsWithIdOnly = await prisma.webDAVCredentials.findMany({ select: { id: true } })
*
*/
findMany<T extends WebDAVCredentialsFindManyArgs>(args?: SelectSubset<T, WebDAVCredentialsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$WebDAVCredentialsPayload<ExtArgs>, T, "findMany", ClientOptions>>
/**
* Create a WebDAVCredentials.
* @param {WebDAVCredentialsCreateArgs} args - Arguments to create a WebDAVCredentials.
* @example
* // Create one WebDAVCredentials
* const WebDAVCredentials = await prisma.webDAVCredentials.create({
* data: {
* // ... data to create a WebDAVCredentials
* }
* })
*
*/
create<T extends WebDAVCredentialsCreateArgs>(args: SelectSubset<T, WebDAVCredentialsCreateArgs<ExtArgs>>): Prisma__WebDAVCredentialsClient<$Result.GetResult<Prisma.$WebDAVCredentialsPayload<ExtArgs>, T, "create", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Create many WebDAVCredentials.
* @param {WebDAVCredentialsCreateManyArgs} args - Arguments to create many WebDAVCredentials.
* @example
* // Create many WebDAVCredentials
* const webDAVCredentials = await prisma.webDAVCredentials.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends WebDAVCredentialsCreateManyArgs>(args?: SelectSubset<T, WebDAVCredentialsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many WebDAVCredentials and returns the data saved in the database.
* @param {WebDAVCredentialsCreateManyAndReturnArgs} args - Arguments to create many WebDAVCredentials.
* @example
* // Create many WebDAVCredentials
* const webDAVCredentials = await prisma.webDAVCredentials.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many WebDAVCredentials and only return the `id`
* const webDAVCredentialsWithIdOnly = await prisma.webDAVCredentials.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 WebDAVCredentialsCreateManyAndReturnArgs>(args?: SelectSubset<T, WebDAVCredentialsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$WebDAVCredentialsPayload<ExtArgs>, T, "createManyAndReturn", ClientOptions>>
/**
* Delete a WebDAVCredentials.
* @param {WebDAVCredentialsDeleteArgs} args - Arguments to delete one WebDAVCredentials.
* @example
* // Delete one WebDAVCredentials
* const WebDAVCredentials = await prisma.webDAVCredentials.delete({
* where: {
* // ... filter to delete one WebDAVCredentials
* }
* })
*
*/
delete<T extends WebDAVCredentialsDeleteArgs>(args: SelectSubset<T, WebDAVCredentialsDeleteArgs<ExtArgs>>): Prisma__WebDAVCredentialsClient<$Result.GetResult<Prisma.$WebDAVCredentialsPayload<ExtArgs>, T, "delete", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Update one WebDAVCredentials.
* @param {WebDAVCredentialsUpdateArgs} args - Arguments to update one WebDAVCredentials.
* @example
* // Update one WebDAVCredentials
* const webDAVCredentials = await prisma.webDAVCredentials.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends WebDAVCredentialsUpdateArgs>(args: SelectSubset<T, WebDAVCredentialsUpdateArgs<ExtArgs>>): Prisma__WebDAVCredentialsClient<$Result.GetResult<Prisma.$WebDAVCredentialsPayload<ExtArgs>, T, "update", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Delete zero or more WebDAVCredentials.
* @param {WebDAVCredentialsDeleteManyArgs} args - Arguments to filter WebDAVCredentials to delete.
* @example
* // Delete a few WebDAVCredentials
* const { count } = await prisma.webDAVCredentials.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends WebDAVCredentialsDeleteManyArgs>(args?: SelectSubset<T, WebDAVCredentialsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more WebDAVCredentials.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {WebDAVCredentialsUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many WebDAVCredentials
* const webDAVCredentials = await prisma.webDAVCredentials.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends WebDAVCredentialsUpdateManyArgs>(args: SelectSubset<T, WebDAVCredentialsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more WebDAVCredentials and returns the data updated in the database.
* @param {WebDAVCredentialsUpdateManyAndReturnArgs} args - Arguments to update many WebDAVCredentials.
* @example
* // Update many WebDAVCredentials
* const webDAVCredentials = await prisma.webDAVCredentials.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more WebDAVCredentials and only return the `id`
* const webDAVCredentialsWithIdOnly = await prisma.webDAVCredentials.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends WebDAVCredentialsUpdateManyAndReturnArgs>(args: SelectSubset<T, WebDAVCredentialsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$WebDAVCredentialsPayload<ExtArgs>, T, "updateManyAndReturn", ClientOptions>>
/**
* Create or update one WebDAVCredentials.
* @param {WebDAVCredentialsUpsertArgs} args - Arguments to update or create a WebDAVCredentials.
* @example
* // Update or create a WebDAVCredentials
* const webDAVCredentials = await prisma.webDAVCredentials.upsert({
* create: {
* // ... data to create a WebDAVCredentials
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the WebDAVCredentials we want to update
* }
* })
*/
upsert<T extends WebDAVCredentialsUpsertArgs>(args: SelectSubset<T, WebDAVCredentialsUpsertArgs<ExtArgs>>): Prisma__WebDAVCredentialsClient<$Result.GetResult<Prisma.$WebDAVCredentialsPayload<ExtArgs>, T, "upsert", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Count the number of WebDAVCredentials.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {WebDAVCredentialsCountArgs} args - Arguments to filter WebDAVCredentials to count.
* @example
* // Count the number of WebDAVCredentials
* const count = await prisma.webDAVCredentials.count({
* where: {
* // ... the filter for the WebDAVCredentials we want to count
* }
* })
**/
count<T extends WebDAVCredentialsCountArgs>(
args?: Subset<T, WebDAVCredentialsCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], WebDAVCredentialsCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a WebDAVCredentials.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {WebDAVCredentialsAggregateArgs} 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 WebDAVCredentialsAggregateArgs>(args: Subset<T, WebDAVCredentialsAggregateArgs>): Prisma.PrismaPromise<GetWebDAVCredentialsAggregateType<T>>
/**
* Group by WebDAVCredentials.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {WebDAVCredentialsGroupByArgs} 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 WebDAVCredentialsGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: WebDAVCredentialsGroupByArgs['orderBy'] }
: { orderBy?: WebDAVCredentialsGroupByArgs['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, WebDAVCredentialsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetWebDAVCredentialsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the WebDAVCredentials model
*/
readonly fields: WebDAVCredentialsFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for WebDAVCredentials.
* 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__WebDAVCredentialsClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, ClientOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", ClientOptions> | Null, Null, ExtArgs, ClientOptions>
/**
* 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 WebDAVCredentials model
*/
interface WebDAVCredentialsFieldRefs {
readonly id: FieldRef<"WebDAVCredentials", 'String'>
readonly userId: FieldRef<"WebDAVCredentials", 'String'>
readonly username: FieldRef<"WebDAVCredentials", 'String'>
readonly password: FieldRef<"WebDAVCredentials", 'String'>
readonly createdAt: FieldRef<"WebDAVCredentials", 'DateTime'>
readonly updatedAt: FieldRef<"WebDAVCredentials", 'DateTime'>
}
// Custom InputTypes
/**
* WebDAVCredentials findUnique
*/
export type WebDAVCredentialsFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WebDAVCredentials
*/
select?: WebDAVCredentialsSelect<ExtArgs> | null
/**
* Omit specific fields from the WebDAVCredentials
*/
omit?: WebDAVCredentialsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: WebDAVCredentialsInclude<ExtArgs> | null
/**
* Filter, which WebDAVCredentials to fetch.
*/
where: WebDAVCredentialsWhereUniqueInput
}
/**
* WebDAVCredentials findUniqueOrThrow
*/
export type WebDAVCredentialsFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WebDAVCredentials
*/
select?: WebDAVCredentialsSelect<ExtArgs> | null
/**
* Omit specific fields from the WebDAVCredentials
*/
omit?: WebDAVCredentialsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: WebDAVCredentialsInclude<ExtArgs> | null
/**
* Filter, which WebDAVCredentials to fetch.
*/
where: WebDAVCredentialsWhereUniqueInput
}
/**
* WebDAVCredentials findFirst
*/
export type WebDAVCredentialsFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WebDAVCredentials
*/
select?: WebDAVCredentialsSelect<ExtArgs> | null
/**
* Omit specific fields from the WebDAVCredentials
*/
omit?: WebDAVCredentialsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: WebDAVCredentialsInclude<ExtArgs> | null
/**
* Filter, which WebDAVCredentials to fetch.
*/
where?: WebDAVCredentialsWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of WebDAVCredentials to fetch.
*/
orderBy?: WebDAVCredentialsOrderByWithRelationInput | WebDAVCredentialsOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for WebDAVCredentials.
*/
cursor?: WebDAVCredentialsWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` WebDAVCredentials from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` WebDAVCredentials.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of WebDAVCredentials.
*/
distinct?: WebDAVCredentialsScalarFieldEnum | WebDAVCredentialsScalarFieldEnum[]
}
/**
* WebDAVCredentials findFirstOrThrow
*/
export type WebDAVCredentialsFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WebDAVCredentials
*/
select?: WebDAVCredentialsSelect<ExtArgs> | null
/**
* Omit specific fields from the WebDAVCredentials
*/
omit?: WebDAVCredentialsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: WebDAVCredentialsInclude<ExtArgs> | null
/**
* Filter, which WebDAVCredentials to fetch.
*/
where?: WebDAVCredentialsWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of WebDAVCredentials to fetch.
*/
orderBy?: WebDAVCredentialsOrderByWithRelationInput | WebDAVCredentialsOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for WebDAVCredentials.
*/
cursor?: WebDAVCredentialsWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` WebDAVCredentials from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` WebDAVCredentials.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of WebDAVCredentials.
*/
distinct?: WebDAVCredentialsScalarFieldEnum | WebDAVCredentialsScalarFieldEnum[]
}
/**
* WebDAVCredentials findMany
*/
export type WebDAVCredentialsFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WebDAVCredentials
*/
select?: WebDAVCredentialsSelect<ExtArgs> | null
/**
* Omit specific fields from the WebDAVCredentials
*/
omit?: WebDAVCredentialsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: WebDAVCredentialsInclude<ExtArgs> | null
/**
* Filter, which WebDAVCredentials to fetch.
*/
where?: WebDAVCredentialsWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of WebDAVCredentials to fetch.
*/
orderBy?: WebDAVCredentialsOrderByWithRelationInput | WebDAVCredentialsOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing WebDAVCredentials.
*/
cursor?: WebDAVCredentialsWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` WebDAVCredentials from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` WebDAVCredentials.
*/
skip?: number
distinct?: WebDAVCredentialsScalarFieldEnum | WebDAVCredentialsScalarFieldEnum[]
}
/**
* WebDAVCredentials create
*/
export type WebDAVCredentialsCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WebDAVCredentials
*/
select?: WebDAVCredentialsSelect<ExtArgs> | null
/**
* Omit specific fields from the WebDAVCredentials
*/
omit?: WebDAVCredentialsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: WebDAVCredentialsInclude<ExtArgs> | null
/**
* The data needed to create a WebDAVCredentials.
*/
data: XOR<WebDAVCredentialsCreateInput, WebDAVCredentialsUncheckedCreateInput>
}
/**
* WebDAVCredentials createMany
*/
export type WebDAVCredentialsCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many WebDAVCredentials.
*/
data: WebDAVCredentialsCreateManyInput | WebDAVCredentialsCreateManyInput[]
skipDuplicates?: boolean
}
/**
* WebDAVCredentials createManyAndReturn
*/
export type WebDAVCredentialsCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WebDAVCredentials
*/
select?: WebDAVCredentialsSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the WebDAVCredentials
*/
omit?: WebDAVCredentialsOmit<ExtArgs> | null
/**
* The data used to create many WebDAVCredentials.
*/
data: WebDAVCredentialsCreateManyInput | WebDAVCredentialsCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: WebDAVCredentialsIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* WebDAVCredentials update
*/
export type WebDAVCredentialsUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WebDAVCredentials
*/
select?: WebDAVCredentialsSelect<ExtArgs> | null
/**
* Omit specific fields from the WebDAVCredentials
*/
omit?: WebDAVCredentialsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: WebDAVCredentialsInclude<ExtArgs> | null
/**
* The data needed to update a WebDAVCredentials.
*/
data: XOR<WebDAVCredentialsUpdateInput, WebDAVCredentialsUncheckedUpdateInput>
/**
* Choose, which WebDAVCredentials to update.
*/
where: WebDAVCredentialsWhereUniqueInput
}
/**
* WebDAVCredentials updateMany
*/
export type WebDAVCredentialsUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update WebDAVCredentials.
*/
data: XOR<WebDAVCredentialsUpdateManyMutationInput, WebDAVCredentialsUncheckedUpdateManyInput>
/**
* Filter which WebDAVCredentials to update
*/
where?: WebDAVCredentialsWhereInput
/**
* Limit how many WebDAVCredentials to update.
*/
limit?: number
}
/**
* WebDAVCredentials updateManyAndReturn
*/
export type WebDAVCredentialsUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WebDAVCredentials
*/
select?: WebDAVCredentialsSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the WebDAVCredentials
*/
omit?: WebDAVCredentialsOmit<ExtArgs> | null
/**
* The data used to update WebDAVCredentials.
*/
data: XOR<WebDAVCredentialsUpdateManyMutationInput, WebDAVCredentialsUncheckedUpdateManyInput>
/**
* Filter which WebDAVCredentials to update
*/
where?: WebDAVCredentialsWhereInput
/**
* Limit how many WebDAVCredentials to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: WebDAVCredentialsIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* WebDAVCredentials upsert
*/
export type WebDAVCredentialsUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WebDAVCredentials
*/
select?: WebDAVCredentialsSelect<ExtArgs> | null
/**
* Omit specific fields from the WebDAVCredentials
*/
omit?: WebDAVCredentialsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: WebDAVCredentialsInclude<ExtArgs> | null
/**
* The filter to search for the WebDAVCredentials to update in case it exists.
*/
where: WebDAVCredentialsWhereUniqueInput
/**
* In case the WebDAVCredentials found by the `where` argument doesn't exist, create a new WebDAVCredentials with this data.
*/
create: XOR<WebDAVCredentialsCreateInput, WebDAVCredentialsUncheckedCreateInput>
/**
* In case the WebDAVCredentials was found with the provided `where` argument, update it with this data.
*/
update: XOR<WebDAVCredentialsUpdateInput, WebDAVCredentialsUncheckedUpdateInput>
}
/**
* WebDAVCredentials delete
*/
export type WebDAVCredentialsDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WebDAVCredentials
*/
select?: WebDAVCredentialsSelect<ExtArgs> | null
/**
* Omit specific fields from the WebDAVCredentials
*/
omit?: WebDAVCredentialsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: WebDAVCredentialsInclude<ExtArgs> | null
/**
* Filter which WebDAVCredentials to delete.
*/
where: WebDAVCredentialsWhereUniqueInput
}
/**
* WebDAVCredentials deleteMany
*/
export type WebDAVCredentialsDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which WebDAVCredentials to delete
*/
where?: WebDAVCredentialsWhereInput
/**
* Limit how many WebDAVCredentials to delete.
*/
limit?: number
}
/**
* WebDAVCredentials without action
*/
export type WebDAVCredentialsDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WebDAVCredentials
*/
select?: WebDAVCredentialsSelect<ExtArgs> | null
/**
* Omit specific fields from the WebDAVCredentials
*/
omit?: WebDAVCredentialsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: WebDAVCredentialsInclude<ExtArgs> | null
}
/**
* Model Announcement
*/
export type AggregateAnnouncement = {
_count: AnnouncementCountAggregateOutputType | null
_min: AnnouncementMinAggregateOutputType | null
_max: AnnouncementMaxAggregateOutputType | null
}
export type AnnouncementMinAggregateOutputType = {
id: string | null
title: string | null
content: string | null
createdAt: Date | null
updatedAt: Date | null
authorId: string | null
}
export type AnnouncementMaxAggregateOutputType = {
id: string | null
title: string | null
content: string | null
createdAt: Date | null
updatedAt: Date | null
authorId: string | null
}
export type AnnouncementCountAggregateOutputType = {
id: number
title: number
content: number
createdAt: number
updatedAt: number
authorId: number
targetRoles: number
_all: number
}
export type AnnouncementMinAggregateInputType = {
id?: true
title?: true
content?: true
createdAt?: true
updatedAt?: true
authorId?: true
}
export type AnnouncementMaxAggregateInputType = {
id?: true
title?: true
content?: true
createdAt?: true
updatedAt?: true
authorId?: true
}
export type AnnouncementCountAggregateInputType = {
id?: true
title?: true
content?: true
createdAt?: true
updatedAt?: true
authorId?: true
targetRoles?: true
_all?: true
}
export type AnnouncementAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Announcement to aggregate.
*/
where?: AnnouncementWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Announcements to fetch.
*/
orderBy?: AnnouncementOrderByWithRelationInput | AnnouncementOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: AnnouncementWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Announcements from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Announcements.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned Announcements
**/
_count?: true | AnnouncementCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: AnnouncementMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: AnnouncementMaxAggregateInputType
}
export type GetAnnouncementAggregateType<T extends AnnouncementAggregateArgs> = {
[P in keyof T & keyof AggregateAnnouncement]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateAnnouncement[P]>
: GetScalarType<T[P], AggregateAnnouncement[P]>
}
export type AnnouncementGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: AnnouncementWhereInput
orderBy?: AnnouncementOrderByWithAggregationInput | AnnouncementOrderByWithAggregationInput[]
by: AnnouncementScalarFieldEnum[] | AnnouncementScalarFieldEnum
having?: AnnouncementScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: AnnouncementCountAggregateInputType | true
_min?: AnnouncementMinAggregateInputType
_max?: AnnouncementMaxAggregateInputType
}
export type AnnouncementGroupByOutputType = {
id: string
title: string
content: string
createdAt: Date
updatedAt: Date
authorId: string
targetRoles: string[]
_count: AnnouncementCountAggregateOutputType | null
_min: AnnouncementMinAggregateOutputType | null
_max: AnnouncementMaxAggregateOutputType | null
}
type GetAnnouncementGroupByPayload<T extends AnnouncementGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<AnnouncementGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof AnnouncementGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], AnnouncementGroupByOutputType[P]>
: GetScalarType<T[P], AnnouncementGroupByOutputType[P]>
}
>
>
export type AnnouncementSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
title?: boolean
content?: boolean
createdAt?: boolean
updatedAt?: boolean
authorId?: boolean
targetRoles?: boolean
author?: boolean | UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["announcement"]>
export type AnnouncementSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
title?: boolean
content?: boolean
createdAt?: boolean
updatedAt?: boolean
authorId?: boolean
targetRoles?: boolean
author?: boolean | UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["announcement"]>
export type AnnouncementSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
title?: boolean
content?: boolean
createdAt?: boolean
updatedAt?: boolean
authorId?: boolean
targetRoles?: boolean
author?: boolean | UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["announcement"]>
export type AnnouncementSelectScalar = {
id?: boolean
title?: boolean
content?: boolean
createdAt?: boolean
updatedAt?: boolean
authorId?: boolean
targetRoles?: boolean
}
export type AnnouncementOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "title" | "content" | "createdAt" | "updatedAt" | "authorId" | "targetRoles", ExtArgs["result"]["announcement"]>
export type AnnouncementInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
author?: boolean | UserDefaultArgs<ExtArgs>
}
export type AnnouncementIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
author?: boolean | UserDefaultArgs<ExtArgs>
}
export type AnnouncementIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
author?: boolean | UserDefaultArgs<ExtArgs>
}
export type $AnnouncementPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "Announcement"
objects: {
author: Prisma.$UserPayload<ExtArgs>
}
scalars: $Extensions.GetPayloadResult<{
id: string
title: string
content: string
createdAt: Date
updatedAt: Date
authorId: string
targetRoles: string[]
}, ExtArgs["result"]["announcement"]>
composites: {}
}
type AnnouncementGetPayload<S extends boolean | null | undefined | AnnouncementDefaultArgs> = $Result.GetResult<Prisma.$AnnouncementPayload, S>
type AnnouncementCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<AnnouncementFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: AnnouncementCountAggregateInputType | true
}
export interface AnnouncementDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, ClientOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Announcement'], meta: { name: 'Announcement' } }
/**
* Find zero or one Announcement that matches the filter.
* @param {AnnouncementFindUniqueArgs} args - Arguments to find a Announcement
* @example
* // Get one Announcement
* const announcement = await prisma.announcement.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends AnnouncementFindUniqueArgs>(args: SelectSubset<T, AnnouncementFindUniqueArgs<ExtArgs>>): Prisma__AnnouncementClient<$Result.GetResult<Prisma.$AnnouncementPayload<ExtArgs>, T, "findUnique", ClientOptions> | null, null, ExtArgs, ClientOptions>
/**
* Find one Announcement that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {AnnouncementFindUniqueOrThrowArgs} args - Arguments to find a Announcement
* @example
* // Get one Announcement
* const announcement = await prisma.announcement.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends AnnouncementFindUniqueOrThrowArgs>(args: SelectSubset<T, AnnouncementFindUniqueOrThrowArgs<ExtArgs>>): Prisma__AnnouncementClient<$Result.GetResult<Prisma.$AnnouncementPayload<ExtArgs>, T, "findUniqueOrThrow", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Find the first Announcement 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 {AnnouncementFindFirstArgs} args - Arguments to find a Announcement
* @example
* // Get one Announcement
* const announcement = await prisma.announcement.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends AnnouncementFindFirstArgs>(args?: SelectSubset<T, AnnouncementFindFirstArgs<ExtArgs>>): Prisma__AnnouncementClient<$Result.GetResult<Prisma.$AnnouncementPayload<ExtArgs>, T, "findFirst", ClientOptions> | null, null, ExtArgs, ClientOptions>
/**
* Find the first Announcement 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 {AnnouncementFindFirstOrThrowArgs} args - Arguments to find a Announcement
* @example
* // Get one Announcement
* const announcement = await prisma.announcement.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends AnnouncementFindFirstOrThrowArgs>(args?: SelectSubset<T, AnnouncementFindFirstOrThrowArgs<ExtArgs>>): Prisma__AnnouncementClient<$Result.GetResult<Prisma.$AnnouncementPayload<ExtArgs>, T, "findFirstOrThrow", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Find zero or more Announcements 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 {AnnouncementFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Announcements
* const announcements = await prisma.announcement.findMany()
*
* // Get first 10 Announcements
* const announcements = await prisma.announcement.findMany({ take: 10 })
*
* // Only select the `id`
* const announcementWithIdOnly = await prisma.announcement.findMany({ select: { id: true } })
*
*/
findMany<T extends AnnouncementFindManyArgs>(args?: SelectSubset<T, AnnouncementFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AnnouncementPayload<ExtArgs>, T, "findMany", ClientOptions>>
/**
* Create a Announcement.
* @param {AnnouncementCreateArgs} args - Arguments to create a Announcement.
* @example
* // Create one Announcement
* const Announcement = await prisma.announcement.create({
* data: {
* // ... data to create a Announcement
* }
* })
*
*/
create<T extends AnnouncementCreateArgs>(args: SelectSubset<T, AnnouncementCreateArgs<ExtArgs>>): Prisma__AnnouncementClient<$Result.GetResult<Prisma.$AnnouncementPayload<ExtArgs>, T, "create", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Create many Announcements.
* @param {AnnouncementCreateManyArgs} args - Arguments to create many Announcements.
* @example
* // Create many Announcements
* const announcement = await prisma.announcement.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends AnnouncementCreateManyArgs>(args?: SelectSubset<T, AnnouncementCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many Announcements and returns the data saved in the database.
* @param {AnnouncementCreateManyAndReturnArgs} args - Arguments to create many Announcements.
* @example
* // Create many Announcements
* const announcement = await prisma.announcement.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Announcements and only return the `id`
* const announcementWithIdOnly = await prisma.announcement.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 AnnouncementCreateManyAndReturnArgs>(args?: SelectSubset<T, AnnouncementCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AnnouncementPayload<ExtArgs>, T, "createManyAndReturn", ClientOptions>>
/**
* Delete a Announcement.
* @param {AnnouncementDeleteArgs} args - Arguments to delete one Announcement.
* @example
* // Delete one Announcement
* const Announcement = await prisma.announcement.delete({
* where: {
* // ... filter to delete one Announcement
* }
* })
*
*/
delete<T extends AnnouncementDeleteArgs>(args: SelectSubset<T, AnnouncementDeleteArgs<ExtArgs>>): Prisma__AnnouncementClient<$Result.GetResult<Prisma.$AnnouncementPayload<ExtArgs>, T, "delete", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Update one Announcement.
* @param {AnnouncementUpdateArgs} args - Arguments to update one Announcement.
* @example
* // Update one Announcement
* const announcement = await prisma.announcement.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends AnnouncementUpdateArgs>(args: SelectSubset<T, AnnouncementUpdateArgs<ExtArgs>>): Prisma__AnnouncementClient<$Result.GetResult<Prisma.$AnnouncementPayload<ExtArgs>, T, "update", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Delete zero or more Announcements.
* @param {AnnouncementDeleteManyArgs} args - Arguments to filter Announcements to delete.
* @example
* // Delete a few Announcements
* const { count } = await prisma.announcement.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends AnnouncementDeleteManyArgs>(args?: SelectSubset<T, AnnouncementDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Announcements.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AnnouncementUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Announcements
* const announcement = await prisma.announcement.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends AnnouncementUpdateManyArgs>(args: SelectSubset<T, AnnouncementUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Announcements and returns the data updated in the database.
* @param {AnnouncementUpdateManyAndReturnArgs} args - Arguments to update many Announcements.
* @example
* // Update many Announcements
* const announcement = await prisma.announcement.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more Announcements and only return the `id`
* const announcementWithIdOnly = await prisma.announcement.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends AnnouncementUpdateManyAndReturnArgs>(args: SelectSubset<T, AnnouncementUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AnnouncementPayload<ExtArgs>, T, "updateManyAndReturn", ClientOptions>>
/**
* Create or update one Announcement.
* @param {AnnouncementUpsertArgs} args - Arguments to update or create a Announcement.
* @example
* // Update or create a Announcement
* const announcement = await prisma.announcement.upsert({
* create: {
* // ... data to create a Announcement
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Announcement we want to update
* }
* })
*/
upsert<T extends AnnouncementUpsertArgs>(args: SelectSubset<T, AnnouncementUpsertArgs<ExtArgs>>): Prisma__AnnouncementClient<$Result.GetResult<Prisma.$AnnouncementPayload<ExtArgs>, T, "upsert", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Count the number of Announcements.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AnnouncementCountArgs} args - Arguments to filter Announcements to count.
* @example
* // Count the number of Announcements
* const count = await prisma.announcement.count({
* where: {
* // ... the filter for the Announcements we want to count
* }
* })
**/
count<T extends AnnouncementCountArgs>(
args?: Subset<T, AnnouncementCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], AnnouncementCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Announcement.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AnnouncementAggregateArgs} 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 AnnouncementAggregateArgs>(args: Subset<T, AnnouncementAggregateArgs>): Prisma.PrismaPromise<GetAnnouncementAggregateType<T>>
/**
* Group by Announcement.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AnnouncementGroupByArgs} 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 AnnouncementGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: AnnouncementGroupByArgs['orderBy'] }
: { orderBy?: AnnouncementGroupByArgs['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, AnnouncementGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAnnouncementGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the Announcement model
*/
readonly fields: AnnouncementFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for Announcement.
* 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__AnnouncementClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, ClientOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
author<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", ClientOptions> | Null, Null, ExtArgs, ClientOptions>
/**
* 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 Announcement model
*/
interface AnnouncementFieldRefs {
readonly id: FieldRef<"Announcement", 'String'>
readonly title: FieldRef<"Announcement", 'String'>
readonly content: FieldRef<"Announcement", 'String'>
readonly createdAt: FieldRef<"Announcement", 'DateTime'>
readonly updatedAt: FieldRef<"Announcement", 'DateTime'>
readonly authorId: FieldRef<"Announcement", 'String'>
readonly targetRoles: FieldRef<"Announcement", 'String[]'>
}
// Custom InputTypes
/**
* Announcement findUnique
*/
export type AnnouncementFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Announcement
*/
select?: AnnouncementSelect<ExtArgs> | null
/**
* Omit specific fields from the Announcement
*/
omit?: AnnouncementOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: AnnouncementInclude<ExtArgs> | null
/**
* Filter, which Announcement to fetch.
*/
where: AnnouncementWhereUniqueInput
}
/**
* Announcement findUniqueOrThrow
*/
export type AnnouncementFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Announcement
*/
select?: AnnouncementSelect<ExtArgs> | null
/**
* Omit specific fields from the Announcement
*/
omit?: AnnouncementOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: AnnouncementInclude<ExtArgs> | null
/**
* Filter, which Announcement to fetch.
*/
where: AnnouncementWhereUniqueInput
}
/**
* Announcement findFirst
*/
export type AnnouncementFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Announcement
*/
select?: AnnouncementSelect<ExtArgs> | null
/**
* Omit specific fields from the Announcement
*/
omit?: AnnouncementOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: AnnouncementInclude<ExtArgs> | null
/**
* Filter, which Announcement to fetch.
*/
where?: AnnouncementWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Announcements to fetch.
*/
orderBy?: AnnouncementOrderByWithRelationInput | AnnouncementOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Announcements.
*/
cursor?: AnnouncementWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Announcements from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Announcements.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Announcements.
*/
distinct?: AnnouncementScalarFieldEnum | AnnouncementScalarFieldEnum[]
}
/**
* Announcement findFirstOrThrow
*/
export type AnnouncementFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Announcement
*/
select?: AnnouncementSelect<ExtArgs> | null
/**
* Omit specific fields from the Announcement
*/
omit?: AnnouncementOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: AnnouncementInclude<ExtArgs> | null
/**
* Filter, which Announcement to fetch.
*/
where?: AnnouncementWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Announcements to fetch.
*/
orderBy?: AnnouncementOrderByWithRelationInput | AnnouncementOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Announcements.
*/
cursor?: AnnouncementWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Announcements from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Announcements.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Announcements.
*/
distinct?: AnnouncementScalarFieldEnum | AnnouncementScalarFieldEnum[]
}
/**
* Announcement findMany
*/
export type AnnouncementFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Announcement
*/
select?: AnnouncementSelect<ExtArgs> | null
/**
* Omit specific fields from the Announcement
*/
omit?: AnnouncementOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: AnnouncementInclude<ExtArgs> | null
/**
* Filter, which Announcements to fetch.
*/
where?: AnnouncementWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Announcements to fetch.
*/
orderBy?: AnnouncementOrderByWithRelationInput | AnnouncementOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing Announcements.
*/
cursor?: AnnouncementWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Announcements from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Announcements.
*/
skip?: number
distinct?: AnnouncementScalarFieldEnum | AnnouncementScalarFieldEnum[]
}
/**
* Announcement create
*/
export type AnnouncementCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Announcement
*/
select?: AnnouncementSelect<ExtArgs> | null
/**
* Omit specific fields from the Announcement
*/
omit?: AnnouncementOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: AnnouncementInclude<ExtArgs> | null
/**
* The data needed to create a Announcement.
*/
data: XOR<AnnouncementCreateInput, AnnouncementUncheckedCreateInput>
}
/**
* Announcement createMany
*/
export type AnnouncementCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many Announcements.
*/
data: AnnouncementCreateManyInput | AnnouncementCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Announcement createManyAndReturn
*/
export type AnnouncementCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Announcement
*/
select?: AnnouncementSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Announcement
*/
omit?: AnnouncementOmit<ExtArgs> | null
/**
* The data used to create many Announcements.
*/
data: AnnouncementCreateManyInput | AnnouncementCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: AnnouncementIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* Announcement update
*/
export type AnnouncementUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Announcement
*/
select?: AnnouncementSelect<ExtArgs> | null
/**
* Omit specific fields from the Announcement
*/
omit?: AnnouncementOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: AnnouncementInclude<ExtArgs> | null
/**
* The data needed to update a Announcement.
*/
data: XOR<AnnouncementUpdateInput, AnnouncementUncheckedUpdateInput>
/**
* Choose, which Announcement to update.
*/
where: AnnouncementWhereUniqueInput
}
/**
* Announcement updateMany
*/
export type AnnouncementUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update Announcements.
*/
data: XOR<AnnouncementUpdateManyMutationInput, AnnouncementUncheckedUpdateManyInput>
/**
* Filter which Announcements to update
*/
where?: AnnouncementWhereInput
/**
* Limit how many Announcements to update.
*/
limit?: number
}
/**
* Announcement updateManyAndReturn
*/
export type AnnouncementUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Announcement
*/
select?: AnnouncementSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Announcement
*/
omit?: AnnouncementOmit<ExtArgs> | null
/**
* The data used to update Announcements.
*/
data: XOR<AnnouncementUpdateManyMutationInput, AnnouncementUncheckedUpdateManyInput>
/**
* Filter which Announcements to update
*/
where?: AnnouncementWhereInput
/**
* Limit how many Announcements to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: AnnouncementIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* Announcement upsert
*/
export type AnnouncementUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Announcement
*/
select?: AnnouncementSelect<ExtArgs> | null
/**
* Omit specific fields from the Announcement
*/
omit?: AnnouncementOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: AnnouncementInclude<ExtArgs> | null
/**
* The filter to search for the Announcement to update in case it exists.
*/
where: AnnouncementWhereUniqueInput
/**
* In case the Announcement found by the `where` argument doesn't exist, create a new Announcement with this data.
*/
create: XOR<AnnouncementCreateInput, AnnouncementUncheckedCreateInput>
/**
* In case the Announcement was found with the provided `where` argument, update it with this data.
*/
update: XOR<AnnouncementUpdateInput, AnnouncementUncheckedUpdateInput>
}
/**
* Announcement delete
*/
export type AnnouncementDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Announcement
*/
select?: AnnouncementSelect<ExtArgs> | null
/**
* Omit specific fields from the Announcement
*/
omit?: AnnouncementOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: AnnouncementInclude<ExtArgs> | null
/**
* Filter which Announcement to delete.
*/
where: AnnouncementWhereUniqueInput
}
/**
* Announcement deleteMany
*/
export type AnnouncementDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Announcements to delete
*/
where?: AnnouncementWhereInput
/**
* Limit how many Announcements to delete.
*/
limit?: number
}
/**
* Announcement without action
*/
export type AnnouncementDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Announcement
*/
select?: AnnouncementSelect<ExtArgs> | null
/**
* Omit specific fields from the Announcement
*/
omit?: AnnouncementOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: AnnouncementInclude<ExtArgs> | null
}
/**
* Model Mission
*/
export type AggregateMission = {
_count: MissionCountAggregateOutputType | null
_min: MissionMinAggregateOutputType | null
_max: MissionMaxAggregateOutputType | null
}
export type MissionMinAggregateOutputType = {
id: string | null
name: string | null
logo: string | null
niveau: string | null
intention: string | null
missionType: string | null
donneurDOrdre: string | null
projection: string | null
participation: string | null
createdAt: Date | null
updatedAt: Date | null
creatorId: string | null
leantimeProjectId: string | null
outlineCollectionId: string | null
rocketChatChannelId: string | null
giteaRepositoryUrl: string | null
penpotProjectId: string | null
}
export type MissionMaxAggregateOutputType = {
id: string | null
name: string | null
logo: string | null
niveau: string | null
intention: string | null
missionType: string | null
donneurDOrdre: string | null
projection: string | null
participation: string | null
createdAt: Date | null
updatedAt: Date | null
creatorId: string | null
leantimeProjectId: string | null
outlineCollectionId: string | null
rocketChatChannelId: string | null
giteaRepositoryUrl: string | null
penpotProjectId: string | null
}
export type MissionCountAggregateOutputType = {
id: number
name: number
logo: number
oddScope: number
niveau: number
intention: number
missionType: number
donneurDOrdre: number
projection: number
services: number
participation: number
profils: number
createdAt: number
updatedAt: number
creatorId: number
leantimeProjectId: number
outlineCollectionId: number
rocketChatChannelId: number
giteaRepositoryUrl: number
penpotProjectId: number
_all: number
}
export type MissionMinAggregateInputType = {
id?: true
name?: true
logo?: true
niveau?: true
intention?: true
missionType?: true
donneurDOrdre?: true
projection?: true
participation?: true
createdAt?: true
updatedAt?: true
creatorId?: true
leantimeProjectId?: true
outlineCollectionId?: true
rocketChatChannelId?: true
giteaRepositoryUrl?: true
penpotProjectId?: true
}
export type MissionMaxAggregateInputType = {
id?: true
name?: true
logo?: true
niveau?: true
intention?: true
missionType?: true
donneurDOrdre?: true
projection?: true
participation?: true
createdAt?: true
updatedAt?: true
creatorId?: true
leantimeProjectId?: true
outlineCollectionId?: true
rocketChatChannelId?: true
giteaRepositoryUrl?: true
penpotProjectId?: true
}
export type MissionCountAggregateInputType = {
id?: true
name?: true
logo?: true
oddScope?: true
niveau?: true
intention?: true
missionType?: true
donneurDOrdre?: true
projection?: true
services?: true
participation?: true
profils?: true
createdAt?: true
updatedAt?: true
creatorId?: true
leantimeProjectId?: true
outlineCollectionId?: true
rocketChatChannelId?: true
giteaRepositoryUrl?: true
penpotProjectId?: true
_all?: true
}
export type MissionAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Mission to aggregate.
*/
where?: MissionWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Missions to fetch.
*/
orderBy?: MissionOrderByWithRelationInput | MissionOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: MissionWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Missions from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Missions.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned Missions
**/
_count?: true | MissionCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: MissionMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: MissionMaxAggregateInputType
}
export type GetMissionAggregateType<T extends MissionAggregateArgs> = {
[P in keyof T & keyof AggregateMission]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateMission[P]>
: GetScalarType<T[P], AggregateMission[P]>
}
export type MissionGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: MissionWhereInput
orderBy?: MissionOrderByWithAggregationInput | MissionOrderByWithAggregationInput[]
by: MissionScalarFieldEnum[] | MissionScalarFieldEnum
having?: MissionScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: MissionCountAggregateInputType | true
_min?: MissionMinAggregateInputType
_max?: MissionMaxAggregateInputType
}
export type MissionGroupByOutputType = {
id: string
name: string
logo: string | null
oddScope: string[]
niveau: string
intention: string
missionType: string
donneurDOrdre: string
projection: string
services: string[]
participation: string | null
profils: string[]
createdAt: Date
updatedAt: Date
creatorId: string
leantimeProjectId: string | null
outlineCollectionId: string | null
rocketChatChannelId: string | null
giteaRepositoryUrl: string | null
penpotProjectId: string | null
_count: MissionCountAggregateOutputType | null
_min: MissionMinAggregateOutputType | null
_max: MissionMaxAggregateOutputType | null
}
type GetMissionGroupByPayload<T extends MissionGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<MissionGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof MissionGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], MissionGroupByOutputType[P]>
: GetScalarType<T[P], MissionGroupByOutputType[P]>
}
>
>
export type MissionSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
name?: boolean
logo?: boolean
oddScope?: boolean
niveau?: boolean
intention?: boolean
missionType?: boolean
donneurDOrdre?: boolean
projection?: boolean
services?: boolean
participation?: boolean
profils?: boolean
createdAt?: boolean
updatedAt?: boolean
creatorId?: boolean
leantimeProjectId?: boolean
outlineCollectionId?: boolean
rocketChatChannelId?: boolean
giteaRepositoryUrl?: boolean
penpotProjectId?: boolean
creator?: boolean | UserDefaultArgs<ExtArgs>
attachments?: boolean | Mission$attachmentsArgs<ExtArgs>
missionUsers?: boolean | Mission$missionUsersArgs<ExtArgs>
_count?: boolean | MissionCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["mission"]>
export type MissionSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
name?: boolean
logo?: boolean
oddScope?: boolean
niveau?: boolean
intention?: boolean
missionType?: boolean
donneurDOrdre?: boolean
projection?: boolean
services?: boolean
participation?: boolean
profils?: boolean
createdAt?: boolean
updatedAt?: boolean
creatorId?: boolean
leantimeProjectId?: boolean
outlineCollectionId?: boolean
rocketChatChannelId?: boolean
giteaRepositoryUrl?: boolean
penpotProjectId?: boolean
creator?: boolean | UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["mission"]>
export type MissionSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
name?: boolean
logo?: boolean
oddScope?: boolean
niveau?: boolean
intention?: boolean
missionType?: boolean
donneurDOrdre?: boolean
projection?: boolean
services?: boolean
participation?: boolean
profils?: boolean
createdAt?: boolean
updatedAt?: boolean
creatorId?: boolean
leantimeProjectId?: boolean
outlineCollectionId?: boolean
rocketChatChannelId?: boolean
giteaRepositoryUrl?: boolean
penpotProjectId?: boolean
creator?: boolean | UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["mission"]>
export type MissionSelectScalar = {
id?: boolean
name?: boolean
logo?: boolean
oddScope?: boolean
niveau?: boolean
intention?: boolean
missionType?: boolean
donneurDOrdre?: boolean
projection?: boolean
services?: boolean
participation?: boolean
profils?: boolean
createdAt?: boolean
updatedAt?: boolean
creatorId?: boolean
leantimeProjectId?: boolean
outlineCollectionId?: boolean
rocketChatChannelId?: boolean
giteaRepositoryUrl?: boolean
penpotProjectId?: boolean
}
export type MissionOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "name" | "logo" | "oddScope" | "niveau" | "intention" | "missionType" | "donneurDOrdre" | "projection" | "services" | "participation" | "profils" | "createdAt" | "updatedAt" | "creatorId" | "leantimeProjectId" | "outlineCollectionId" | "rocketChatChannelId" | "giteaRepositoryUrl" | "penpotProjectId", ExtArgs["result"]["mission"]>
export type MissionInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
creator?: boolean | UserDefaultArgs<ExtArgs>
attachments?: boolean | Mission$attachmentsArgs<ExtArgs>
missionUsers?: boolean | Mission$missionUsersArgs<ExtArgs>
_count?: boolean | MissionCountOutputTypeDefaultArgs<ExtArgs>
}
export type MissionIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
creator?: boolean | UserDefaultArgs<ExtArgs>
}
export type MissionIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
creator?: boolean | UserDefaultArgs<ExtArgs>
}
export type $MissionPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "Mission"
objects: {
creator: Prisma.$UserPayload<ExtArgs>
attachments: Prisma.$AttachmentPayload<ExtArgs>[]
missionUsers: Prisma.$MissionUserPayload<ExtArgs>[]
}
scalars: $Extensions.GetPayloadResult<{
id: string
name: string
logo: string | null
oddScope: string[]
niveau: string
intention: string
missionType: string
donneurDOrdre: string
projection: string
services: string[]
participation: string | null
profils: string[]
createdAt: Date
updatedAt: Date
creatorId: string
leantimeProjectId: string | null
outlineCollectionId: string | null
rocketChatChannelId: string | null
giteaRepositoryUrl: string | null
penpotProjectId: string | null
}, ExtArgs["result"]["mission"]>
composites: {}
}
type MissionGetPayload<S extends boolean | null | undefined | MissionDefaultArgs> = $Result.GetResult<Prisma.$MissionPayload, S>
type MissionCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<MissionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: MissionCountAggregateInputType | true
}
export interface MissionDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, ClientOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Mission'], meta: { name: 'Mission' } }
/**
* Find zero or one Mission that matches the filter.
* @param {MissionFindUniqueArgs} args - Arguments to find a Mission
* @example
* // Get one Mission
* const mission = await prisma.mission.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends MissionFindUniqueArgs>(args: SelectSubset<T, MissionFindUniqueArgs<ExtArgs>>): Prisma__MissionClient<$Result.GetResult<Prisma.$MissionPayload<ExtArgs>, T, "findUnique", ClientOptions> | null, null, ExtArgs, ClientOptions>
/**
* Find one Mission that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {MissionFindUniqueOrThrowArgs} args - Arguments to find a Mission
* @example
* // Get one Mission
* const mission = await prisma.mission.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends MissionFindUniqueOrThrowArgs>(args: SelectSubset<T, MissionFindUniqueOrThrowArgs<ExtArgs>>): Prisma__MissionClient<$Result.GetResult<Prisma.$MissionPayload<ExtArgs>, T, "findUniqueOrThrow", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Find the first Mission 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 {MissionFindFirstArgs} args - Arguments to find a Mission
* @example
* // Get one Mission
* const mission = await prisma.mission.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends MissionFindFirstArgs>(args?: SelectSubset<T, MissionFindFirstArgs<ExtArgs>>): Prisma__MissionClient<$Result.GetResult<Prisma.$MissionPayload<ExtArgs>, T, "findFirst", ClientOptions> | null, null, ExtArgs, ClientOptions>
/**
* Find the first Mission 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 {MissionFindFirstOrThrowArgs} args - Arguments to find a Mission
* @example
* // Get one Mission
* const mission = await prisma.mission.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends MissionFindFirstOrThrowArgs>(args?: SelectSubset<T, MissionFindFirstOrThrowArgs<ExtArgs>>): Prisma__MissionClient<$Result.GetResult<Prisma.$MissionPayload<ExtArgs>, T, "findFirstOrThrow", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Find zero or more Missions 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 {MissionFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Missions
* const missions = await prisma.mission.findMany()
*
* // Get first 10 Missions
* const missions = await prisma.mission.findMany({ take: 10 })
*
* // Only select the `id`
* const missionWithIdOnly = await prisma.mission.findMany({ select: { id: true } })
*
*/
findMany<T extends MissionFindManyArgs>(args?: SelectSubset<T, MissionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MissionPayload<ExtArgs>, T, "findMany", ClientOptions>>
/**
* Create a Mission.
* @param {MissionCreateArgs} args - Arguments to create a Mission.
* @example
* // Create one Mission
* const Mission = await prisma.mission.create({
* data: {
* // ... data to create a Mission
* }
* })
*
*/
create<T extends MissionCreateArgs>(args: SelectSubset<T, MissionCreateArgs<ExtArgs>>): Prisma__MissionClient<$Result.GetResult<Prisma.$MissionPayload<ExtArgs>, T, "create", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Create many Missions.
* @param {MissionCreateManyArgs} args - Arguments to create many Missions.
* @example
* // Create many Missions
* const mission = await prisma.mission.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends MissionCreateManyArgs>(args?: SelectSubset<T, MissionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many Missions and returns the data saved in the database.
* @param {MissionCreateManyAndReturnArgs} args - Arguments to create many Missions.
* @example
* // Create many Missions
* const mission = await prisma.mission.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Missions and only return the `id`
* const missionWithIdOnly = await prisma.mission.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 MissionCreateManyAndReturnArgs>(args?: SelectSubset<T, MissionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MissionPayload<ExtArgs>, T, "createManyAndReturn", ClientOptions>>
/**
* Delete a Mission.
* @param {MissionDeleteArgs} args - Arguments to delete one Mission.
* @example
* // Delete one Mission
* const Mission = await prisma.mission.delete({
* where: {
* // ... filter to delete one Mission
* }
* })
*
*/
delete<T extends MissionDeleteArgs>(args: SelectSubset<T, MissionDeleteArgs<ExtArgs>>): Prisma__MissionClient<$Result.GetResult<Prisma.$MissionPayload<ExtArgs>, T, "delete", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Update one Mission.
* @param {MissionUpdateArgs} args - Arguments to update one Mission.
* @example
* // Update one Mission
* const mission = await prisma.mission.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends MissionUpdateArgs>(args: SelectSubset<T, MissionUpdateArgs<ExtArgs>>): Prisma__MissionClient<$Result.GetResult<Prisma.$MissionPayload<ExtArgs>, T, "update", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Delete zero or more Missions.
* @param {MissionDeleteManyArgs} args - Arguments to filter Missions to delete.
* @example
* // Delete a few Missions
* const { count } = await prisma.mission.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends MissionDeleteManyArgs>(args?: SelectSubset<T, MissionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Missions.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {MissionUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Missions
* const mission = await prisma.mission.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends MissionUpdateManyArgs>(args: SelectSubset<T, MissionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Missions and returns the data updated in the database.
* @param {MissionUpdateManyAndReturnArgs} args - Arguments to update many Missions.
* @example
* // Update many Missions
* const mission = await prisma.mission.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more Missions and only return the `id`
* const missionWithIdOnly = await prisma.mission.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends MissionUpdateManyAndReturnArgs>(args: SelectSubset<T, MissionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MissionPayload<ExtArgs>, T, "updateManyAndReturn", ClientOptions>>
/**
* Create or update one Mission.
* @param {MissionUpsertArgs} args - Arguments to update or create a Mission.
* @example
* // Update or create a Mission
* const mission = await prisma.mission.upsert({
* create: {
* // ... data to create a Mission
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Mission we want to update
* }
* })
*/
upsert<T extends MissionUpsertArgs>(args: SelectSubset<T, MissionUpsertArgs<ExtArgs>>): Prisma__MissionClient<$Result.GetResult<Prisma.$MissionPayload<ExtArgs>, T, "upsert", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Count the number of Missions.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {MissionCountArgs} args - Arguments to filter Missions to count.
* @example
* // Count the number of Missions
* const count = await prisma.mission.count({
* where: {
* // ... the filter for the Missions we want to count
* }
* })
**/
count<T extends MissionCountArgs>(
args?: Subset<T, MissionCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], MissionCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Mission.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {MissionAggregateArgs} 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 MissionAggregateArgs>(args: Subset<T, MissionAggregateArgs>): Prisma.PrismaPromise<GetMissionAggregateType<T>>
/**
* Group by Mission.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {MissionGroupByArgs} 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 MissionGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: MissionGroupByArgs['orderBy'] }
: { orderBy?: MissionGroupByArgs['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, MissionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMissionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the Mission model
*/
readonly fields: MissionFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for Mission.
* 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__MissionClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, ClientOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
creator<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", ClientOptions> | Null, Null, ExtArgs, ClientOptions>
attachments<T extends Mission$attachmentsArgs<ExtArgs> = {}>(args?: Subset<T, Mission$attachmentsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AttachmentPayload<ExtArgs>, T, "findMany", ClientOptions> | Null>
missionUsers<T extends Mission$missionUsersArgs<ExtArgs> = {}>(args?: Subset<T, Mission$missionUsersArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MissionUserPayload<ExtArgs>, T, "findMany", ClientOptions> | 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 Mission model
*/
interface MissionFieldRefs {
readonly id: FieldRef<"Mission", 'String'>
readonly name: FieldRef<"Mission", 'String'>
readonly logo: FieldRef<"Mission", 'String'>
readonly oddScope: FieldRef<"Mission", 'String[]'>
readonly niveau: FieldRef<"Mission", 'String'>
readonly intention: FieldRef<"Mission", 'String'>
readonly missionType: FieldRef<"Mission", 'String'>
readonly donneurDOrdre: FieldRef<"Mission", 'String'>
readonly projection: FieldRef<"Mission", 'String'>
readonly services: FieldRef<"Mission", 'String[]'>
readonly participation: FieldRef<"Mission", 'String'>
readonly profils: FieldRef<"Mission", 'String[]'>
readonly createdAt: FieldRef<"Mission", 'DateTime'>
readonly updatedAt: FieldRef<"Mission", 'DateTime'>
readonly creatorId: FieldRef<"Mission", 'String'>
readonly leantimeProjectId: FieldRef<"Mission", 'String'>
readonly outlineCollectionId: FieldRef<"Mission", 'String'>
readonly rocketChatChannelId: FieldRef<"Mission", 'String'>
readonly giteaRepositoryUrl: FieldRef<"Mission", 'String'>
readonly penpotProjectId: FieldRef<"Mission", 'String'>
}
// Custom InputTypes
/**
* Mission findUnique
*/
export type MissionFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Mission
*/
select?: MissionSelect<ExtArgs> | null
/**
* Omit specific fields from the Mission
*/
omit?: MissionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: MissionInclude<ExtArgs> | null
/**
* Filter, which Mission to fetch.
*/
where: MissionWhereUniqueInput
}
/**
* Mission findUniqueOrThrow
*/
export type MissionFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Mission
*/
select?: MissionSelect<ExtArgs> | null
/**
* Omit specific fields from the Mission
*/
omit?: MissionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: MissionInclude<ExtArgs> | null
/**
* Filter, which Mission to fetch.
*/
where: MissionWhereUniqueInput
}
/**
* Mission findFirst
*/
export type MissionFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Mission
*/
select?: MissionSelect<ExtArgs> | null
/**
* Omit specific fields from the Mission
*/
omit?: MissionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: MissionInclude<ExtArgs> | null
/**
* Filter, which Mission to fetch.
*/
where?: MissionWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Missions to fetch.
*/
orderBy?: MissionOrderByWithRelationInput | MissionOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Missions.
*/
cursor?: MissionWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Missions from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Missions.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Missions.
*/
distinct?: MissionScalarFieldEnum | MissionScalarFieldEnum[]
}
/**
* Mission findFirstOrThrow
*/
export type MissionFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Mission
*/
select?: MissionSelect<ExtArgs> | null
/**
* Omit specific fields from the Mission
*/
omit?: MissionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: MissionInclude<ExtArgs> | null
/**
* Filter, which Mission to fetch.
*/
where?: MissionWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Missions to fetch.
*/
orderBy?: MissionOrderByWithRelationInput | MissionOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Missions.
*/
cursor?: MissionWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Missions from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Missions.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Missions.
*/
distinct?: MissionScalarFieldEnum | MissionScalarFieldEnum[]
}
/**
* Mission findMany
*/
export type MissionFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Mission
*/
select?: MissionSelect<ExtArgs> | null
/**
* Omit specific fields from the Mission
*/
omit?: MissionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: MissionInclude<ExtArgs> | null
/**
* Filter, which Missions to fetch.
*/
where?: MissionWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Missions to fetch.
*/
orderBy?: MissionOrderByWithRelationInput | MissionOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing Missions.
*/
cursor?: MissionWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Missions from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Missions.
*/
skip?: number
distinct?: MissionScalarFieldEnum | MissionScalarFieldEnum[]
}
/**
* Mission create
*/
export type MissionCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Mission
*/
select?: MissionSelect<ExtArgs> | null
/**
* Omit specific fields from the Mission
*/
omit?: MissionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: MissionInclude<ExtArgs> | null
/**
* The data needed to create a Mission.
*/
data: XOR<MissionCreateInput, MissionUncheckedCreateInput>
}
/**
* Mission createMany
*/
export type MissionCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many Missions.
*/
data: MissionCreateManyInput | MissionCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Mission createManyAndReturn
*/
export type MissionCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Mission
*/
select?: MissionSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Mission
*/
omit?: MissionOmit<ExtArgs> | null
/**
* The data used to create many Missions.
*/
data: MissionCreateManyInput | MissionCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: MissionIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* Mission update
*/
export type MissionUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Mission
*/
select?: MissionSelect<ExtArgs> | null
/**
* Omit specific fields from the Mission
*/
omit?: MissionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: MissionInclude<ExtArgs> | null
/**
* The data needed to update a Mission.
*/
data: XOR<MissionUpdateInput, MissionUncheckedUpdateInput>
/**
* Choose, which Mission to update.
*/
where: MissionWhereUniqueInput
}
/**
* Mission updateMany
*/
export type MissionUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update Missions.
*/
data: XOR<MissionUpdateManyMutationInput, MissionUncheckedUpdateManyInput>
/**
* Filter which Missions to update
*/
where?: MissionWhereInput
/**
* Limit how many Missions to update.
*/
limit?: number
}
/**
* Mission updateManyAndReturn
*/
export type MissionUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Mission
*/
select?: MissionSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Mission
*/
omit?: MissionOmit<ExtArgs> | null
/**
* The data used to update Missions.
*/
data: XOR<MissionUpdateManyMutationInput, MissionUncheckedUpdateManyInput>
/**
* Filter which Missions to update
*/
where?: MissionWhereInput
/**
* Limit how many Missions to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: MissionIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* Mission upsert
*/
export type MissionUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Mission
*/
select?: MissionSelect<ExtArgs> | null
/**
* Omit specific fields from the Mission
*/
omit?: MissionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: MissionInclude<ExtArgs> | null
/**
* The filter to search for the Mission to update in case it exists.
*/
where: MissionWhereUniqueInput
/**
* In case the Mission found by the `where` argument doesn't exist, create a new Mission with this data.
*/
create: XOR<MissionCreateInput, MissionUncheckedCreateInput>
/**
* In case the Mission was found with the provided `where` argument, update it with this data.
*/
update: XOR<MissionUpdateInput, MissionUncheckedUpdateInput>
}
/**
* Mission delete
*/
export type MissionDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Mission
*/
select?: MissionSelect<ExtArgs> | null
/**
* Omit specific fields from the Mission
*/
omit?: MissionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: MissionInclude<ExtArgs> | null
/**
* Filter which Mission to delete.
*/
where: MissionWhereUniqueInput
}
/**
* Mission deleteMany
*/
export type MissionDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Missions to delete
*/
where?: MissionWhereInput
/**
* Limit how many Missions to delete.
*/
limit?: number
}
/**
* Mission.attachments
*/
export type Mission$attachmentsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Attachment
*/
select?: AttachmentSelect<ExtArgs> | null
/**
* Omit specific fields from the Attachment
*/
omit?: AttachmentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: AttachmentInclude<ExtArgs> | null
where?: AttachmentWhereInput
orderBy?: AttachmentOrderByWithRelationInput | AttachmentOrderByWithRelationInput[]
cursor?: AttachmentWhereUniqueInput
take?: number
skip?: number
distinct?: AttachmentScalarFieldEnum | AttachmentScalarFieldEnum[]
}
/**
* Mission.missionUsers
*/
export type Mission$missionUsersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MissionUser
*/
select?: MissionUserSelect<ExtArgs> | null
/**
* Omit specific fields from the MissionUser
*/
omit?: MissionUserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: MissionUserInclude<ExtArgs> | null
where?: MissionUserWhereInput
orderBy?: MissionUserOrderByWithRelationInput | MissionUserOrderByWithRelationInput[]
cursor?: MissionUserWhereUniqueInput
take?: number
skip?: number
distinct?: MissionUserScalarFieldEnum | MissionUserScalarFieldEnum[]
}
/**
* Mission without action
*/
export type MissionDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Mission
*/
select?: MissionSelect<ExtArgs> | null
/**
* Omit specific fields from the Mission
*/
omit?: MissionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: MissionInclude<ExtArgs> | null
}
/**
* Model Attachment
*/
export type AggregateAttachment = {
_count: AttachmentCountAggregateOutputType | null
_avg: AttachmentAvgAggregateOutputType | null
_sum: AttachmentSumAggregateOutputType | null
_min: AttachmentMinAggregateOutputType | null
_max: AttachmentMaxAggregateOutputType | null
}
export type AttachmentAvgAggregateOutputType = {
fileSize: number | null
}
export type AttachmentSumAggregateOutputType = {
fileSize: number | null
}
export type AttachmentMinAggregateOutputType = {
id: string | null
filename: string | null
filePath: string | null
fileType: string | null
fileSize: number | null
createdAt: Date | null
updatedAt: Date | null
missionId: string | null
uploaderId: string | null
}
export type AttachmentMaxAggregateOutputType = {
id: string | null
filename: string | null
filePath: string | null
fileType: string | null
fileSize: number | null
createdAt: Date | null
updatedAt: Date | null
missionId: string | null
uploaderId: string | null
}
export type AttachmentCountAggregateOutputType = {
id: number
filename: number
filePath: number
fileType: number
fileSize: number
createdAt: number
updatedAt: number
missionId: number
uploaderId: number
_all: number
}
export type AttachmentAvgAggregateInputType = {
fileSize?: true
}
export type AttachmentSumAggregateInputType = {
fileSize?: true
}
export type AttachmentMinAggregateInputType = {
id?: true
filename?: true
filePath?: true
fileType?: true
fileSize?: true
createdAt?: true
updatedAt?: true
missionId?: true
uploaderId?: true
}
export type AttachmentMaxAggregateInputType = {
id?: true
filename?: true
filePath?: true
fileType?: true
fileSize?: true
createdAt?: true
updatedAt?: true
missionId?: true
uploaderId?: true
}
export type AttachmentCountAggregateInputType = {
id?: true
filename?: true
filePath?: true
fileType?: true
fileSize?: true
createdAt?: true
updatedAt?: true
missionId?: true
uploaderId?: true
_all?: true
}
export type AttachmentAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Attachment to aggregate.
*/
where?: AttachmentWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Attachments to fetch.
*/
orderBy?: AttachmentOrderByWithRelationInput | AttachmentOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: AttachmentWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Attachments from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Attachments.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned Attachments
**/
_count?: true | AttachmentCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: AttachmentAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: AttachmentSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: AttachmentMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: AttachmentMaxAggregateInputType
}
export type GetAttachmentAggregateType<T extends AttachmentAggregateArgs> = {
[P in keyof T & keyof AggregateAttachment]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateAttachment[P]>
: GetScalarType<T[P], AggregateAttachment[P]>
}
export type AttachmentGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: AttachmentWhereInput
orderBy?: AttachmentOrderByWithAggregationInput | AttachmentOrderByWithAggregationInput[]
by: AttachmentScalarFieldEnum[] | AttachmentScalarFieldEnum
having?: AttachmentScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: AttachmentCountAggregateInputType | true
_avg?: AttachmentAvgAggregateInputType
_sum?: AttachmentSumAggregateInputType
_min?: AttachmentMinAggregateInputType
_max?: AttachmentMaxAggregateInputType
}
export type AttachmentGroupByOutputType = {
id: string
filename: string
filePath: string
fileType: string
fileSize: number
createdAt: Date
updatedAt: Date
missionId: string
uploaderId: string
_count: AttachmentCountAggregateOutputType | null
_avg: AttachmentAvgAggregateOutputType | null
_sum: AttachmentSumAggregateOutputType | null
_min: AttachmentMinAggregateOutputType | null
_max: AttachmentMaxAggregateOutputType | null
}
type GetAttachmentGroupByPayload<T extends AttachmentGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<AttachmentGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof AttachmentGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], AttachmentGroupByOutputType[P]>
: GetScalarType<T[P], AttachmentGroupByOutputType[P]>
}
>
>
export type AttachmentSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
filename?: boolean
filePath?: boolean
fileType?: boolean
fileSize?: boolean
createdAt?: boolean
updatedAt?: boolean
missionId?: boolean
uploaderId?: boolean
mission?: boolean | MissionDefaultArgs<ExtArgs>
uploader?: boolean | UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["attachment"]>
export type AttachmentSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
filename?: boolean
filePath?: boolean
fileType?: boolean
fileSize?: boolean
createdAt?: boolean
updatedAt?: boolean
missionId?: boolean
uploaderId?: boolean
mission?: boolean | MissionDefaultArgs<ExtArgs>
uploader?: boolean | UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["attachment"]>
export type AttachmentSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
filename?: boolean
filePath?: boolean
fileType?: boolean
fileSize?: boolean
createdAt?: boolean
updatedAt?: boolean
missionId?: boolean
uploaderId?: boolean
mission?: boolean | MissionDefaultArgs<ExtArgs>
uploader?: boolean | UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["attachment"]>
export type AttachmentSelectScalar = {
id?: boolean
filename?: boolean
filePath?: boolean
fileType?: boolean
fileSize?: boolean
createdAt?: boolean
updatedAt?: boolean
missionId?: boolean
uploaderId?: boolean
}
export type AttachmentOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "filename" | "filePath" | "fileType" | "fileSize" | "createdAt" | "updatedAt" | "missionId" | "uploaderId", ExtArgs["result"]["attachment"]>
export type AttachmentInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
mission?: boolean | MissionDefaultArgs<ExtArgs>
uploader?: boolean | UserDefaultArgs<ExtArgs>
}
export type AttachmentIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
mission?: boolean | MissionDefaultArgs<ExtArgs>
uploader?: boolean | UserDefaultArgs<ExtArgs>
}
export type AttachmentIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
mission?: boolean | MissionDefaultArgs<ExtArgs>
uploader?: boolean | UserDefaultArgs<ExtArgs>
}
export type $AttachmentPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "Attachment"
objects: {
mission: Prisma.$MissionPayload<ExtArgs>
uploader: Prisma.$UserPayload<ExtArgs>
}
scalars: $Extensions.GetPayloadResult<{
id: string
filename: string
filePath: string
fileType: string
fileSize: number
createdAt: Date
updatedAt: Date
missionId: string
uploaderId: string
}, ExtArgs["result"]["attachment"]>
composites: {}
}
type AttachmentGetPayload<S extends boolean | null | undefined | AttachmentDefaultArgs> = $Result.GetResult<Prisma.$AttachmentPayload, S>
type AttachmentCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<AttachmentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: AttachmentCountAggregateInputType | true
}
export interface AttachmentDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, ClientOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Attachment'], meta: { name: 'Attachment' } }
/**
* Find zero or one Attachment that matches the filter.
* @param {AttachmentFindUniqueArgs} args - Arguments to find a Attachment
* @example
* // Get one Attachment
* const attachment = await prisma.attachment.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends AttachmentFindUniqueArgs>(args: SelectSubset<T, AttachmentFindUniqueArgs<ExtArgs>>): Prisma__AttachmentClient<$Result.GetResult<Prisma.$AttachmentPayload<ExtArgs>, T, "findUnique", ClientOptions> | null, null, ExtArgs, ClientOptions>
/**
* Find one Attachment that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {AttachmentFindUniqueOrThrowArgs} args - Arguments to find a Attachment
* @example
* // Get one Attachment
* const attachment = await prisma.attachment.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends AttachmentFindUniqueOrThrowArgs>(args: SelectSubset<T, AttachmentFindUniqueOrThrowArgs<ExtArgs>>): Prisma__AttachmentClient<$Result.GetResult<Prisma.$AttachmentPayload<ExtArgs>, T, "findUniqueOrThrow", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Find the first Attachment 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 {AttachmentFindFirstArgs} args - Arguments to find a Attachment
* @example
* // Get one Attachment
* const attachment = await prisma.attachment.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends AttachmentFindFirstArgs>(args?: SelectSubset<T, AttachmentFindFirstArgs<ExtArgs>>): Prisma__AttachmentClient<$Result.GetResult<Prisma.$AttachmentPayload<ExtArgs>, T, "findFirst", ClientOptions> | null, null, ExtArgs, ClientOptions>
/**
* Find the first Attachment 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 {AttachmentFindFirstOrThrowArgs} args - Arguments to find a Attachment
* @example
* // Get one Attachment
* const attachment = await prisma.attachment.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends AttachmentFindFirstOrThrowArgs>(args?: SelectSubset<T, AttachmentFindFirstOrThrowArgs<ExtArgs>>): Prisma__AttachmentClient<$Result.GetResult<Prisma.$AttachmentPayload<ExtArgs>, T, "findFirstOrThrow", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Find zero or more Attachments 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 {AttachmentFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Attachments
* const attachments = await prisma.attachment.findMany()
*
* // Get first 10 Attachments
* const attachments = await prisma.attachment.findMany({ take: 10 })
*
* // Only select the `id`
* const attachmentWithIdOnly = await prisma.attachment.findMany({ select: { id: true } })
*
*/
findMany<T extends AttachmentFindManyArgs>(args?: SelectSubset<T, AttachmentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AttachmentPayload<ExtArgs>, T, "findMany", ClientOptions>>
/**
* Create a Attachment.
* @param {AttachmentCreateArgs} args - Arguments to create a Attachment.
* @example
* // Create one Attachment
* const Attachment = await prisma.attachment.create({
* data: {
* // ... data to create a Attachment
* }
* })
*
*/
create<T extends AttachmentCreateArgs>(args: SelectSubset<T, AttachmentCreateArgs<ExtArgs>>): Prisma__AttachmentClient<$Result.GetResult<Prisma.$AttachmentPayload<ExtArgs>, T, "create", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Create many Attachments.
* @param {AttachmentCreateManyArgs} args - Arguments to create many Attachments.
* @example
* // Create many Attachments
* const attachment = await prisma.attachment.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends AttachmentCreateManyArgs>(args?: SelectSubset<T, AttachmentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many Attachments and returns the data saved in the database.
* @param {AttachmentCreateManyAndReturnArgs} args - Arguments to create many Attachments.
* @example
* // Create many Attachments
* const attachment = await prisma.attachment.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Attachments and only return the `id`
* const attachmentWithIdOnly = await prisma.attachment.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 AttachmentCreateManyAndReturnArgs>(args?: SelectSubset<T, AttachmentCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AttachmentPayload<ExtArgs>, T, "createManyAndReturn", ClientOptions>>
/**
* Delete a Attachment.
* @param {AttachmentDeleteArgs} args - Arguments to delete one Attachment.
* @example
* // Delete one Attachment
* const Attachment = await prisma.attachment.delete({
* where: {
* // ... filter to delete one Attachment
* }
* })
*
*/
delete<T extends AttachmentDeleteArgs>(args: SelectSubset<T, AttachmentDeleteArgs<ExtArgs>>): Prisma__AttachmentClient<$Result.GetResult<Prisma.$AttachmentPayload<ExtArgs>, T, "delete", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Update one Attachment.
* @param {AttachmentUpdateArgs} args - Arguments to update one Attachment.
* @example
* // Update one Attachment
* const attachment = await prisma.attachment.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends AttachmentUpdateArgs>(args: SelectSubset<T, AttachmentUpdateArgs<ExtArgs>>): Prisma__AttachmentClient<$Result.GetResult<Prisma.$AttachmentPayload<ExtArgs>, T, "update", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Delete zero or more Attachments.
* @param {AttachmentDeleteManyArgs} args - Arguments to filter Attachments to delete.
* @example
* // Delete a few Attachments
* const { count } = await prisma.attachment.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends AttachmentDeleteManyArgs>(args?: SelectSubset<T, AttachmentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Attachments.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AttachmentUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Attachments
* const attachment = await prisma.attachment.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends AttachmentUpdateManyArgs>(args: SelectSubset<T, AttachmentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Attachments and returns the data updated in the database.
* @param {AttachmentUpdateManyAndReturnArgs} args - Arguments to update many Attachments.
* @example
* // Update many Attachments
* const attachment = await prisma.attachment.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more Attachments and only return the `id`
* const attachmentWithIdOnly = await prisma.attachment.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends AttachmentUpdateManyAndReturnArgs>(args: SelectSubset<T, AttachmentUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AttachmentPayload<ExtArgs>, T, "updateManyAndReturn", ClientOptions>>
/**
* Create or update one Attachment.
* @param {AttachmentUpsertArgs} args - Arguments to update or create a Attachment.
* @example
* // Update or create a Attachment
* const attachment = await prisma.attachment.upsert({
* create: {
* // ... data to create a Attachment
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Attachment we want to update
* }
* })
*/
upsert<T extends AttachmentUpsertArgs>(args: SelectSubset<T, AttachmentUpsertArgs<ExtArgs>>): Prisma__AttachmentClient<$Result.GetResult<Prisma.$AttachmentPayload<ExtArgs>, T, "upsert", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Count the number of Attachments.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AttachmentCountArgs} args - Arguments to filter Attachments to count.
* @example
* // Count the number of Attachments
* const count = await prisma.attachment.count({
* where: {
* // ... the filter for the Attachments we want to count
* }
* })
**/
count<T extends AttachmentCountArgs>(
args?: Subset<T, AttachmentCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], AttachmentCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Attachment.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AttachmentAggregateArgs} 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 AttachmentAggregateArgs>(args: Subset<T, AttachmentAggregateArgs>): Prisma.PrismaPromise<GetAttachmentAggregateType<T>>
/**
* Group by Attachment.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AttachmentGroupByArgs} 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 AttachmentGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: AttachmentGroupByArgs['orderBy'] }
: { orderBy?: AttachmentGroupByArgs['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, AttachmentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAttachmentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the Attachment model
*/
readonly fields: AttachmentFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for Attachment.
* 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__AttachmentClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, ClientOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
mission<T extends MissionDefaultArgs<ExtArgs> = {}>(args?: Subset<T, MissionDefaultArgs<ExtArgs>>): Prisma__MissionClient<$Result.GetResult<Prisma.$MissionPayload<ExtArgs>, T, "findUniqueOrThrow", ClientOptions> | Null, Null, ExtArgs, ClientOptions>
uploader<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", ClientOptions> | Null, Null, ExtArgs, ClientOptions>
/**
* 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 Attachment model
*/
interface AttachmentFieldRefs {
readonly id: FieldRef<"Attachment", 'String'>
readonly filename: FieldRef<"Attachment", 'String'>
readonly filePath: FieldRef<"Attachment", 'String'>
readonly fileType: FieldRef<"Attachment", 'String'>
readonly fileSize: FieldRef<"Attachment", 'Int'>
readonly createdAt: FieldRef<"Attachment", 'DateTime'>
readonly updatedAt: FieldRef<"Attachment", 'DateTime'>
readonly missionId: FieldRef<"Attachment", 'String'>
readonly uploaderId: FieldRef<"Attachment", 'String'>
}
// Custom InputTypes
/**
* Attachment findUnique
*/
export type AttachmentFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Attachment
*/
select?: AttachmentSelect<ExtArgs> | null
/**
* Omit specific fields from the Attachment
*/
omit?: AttachmentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: AttachmentInclude<ExtArgs> | null
/**
* Filter, which Attachment to fetch.
*/
where: AttachmentWhereUniqueInput
}
/**
* Attachment findUniqueOrThrow
*/
export type AttachmentFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Attachment
*/
select?: AttachmentSelect<ExtArgs> | null
/**
* Omit specific fields from the Attachment
*/
omit?: AttachmentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: AttachmentInclude<ExtArgs> | null
/**
* Filter, which Attachment to fetch.
*/
where: AttachmentWhereUniqueInput
}
/**
* Attachment findFirst
*/
export type AttachmentFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Attachment
*/
select?: AttachmentSelect<ExtArgs> | null
/**
* Omit specific fields from the Attachment
*/
omit?: AttachmentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: AttachmentInclude<ExtArgs> | null
/**
* Filter, which Attachment to fetch.
*/
where?: AttachmentWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Attachments to fetch.
*/
orderBy?: AttachmentOrderByWithRelationInput | AttachmentOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Attachments.
*/
cursor?: AttachmentWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Attachments from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Attachments.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Attachments.
*/
distinct?: AttachmentScalarFieldEnum | AttachmentScalarFieldEnum[]
}
/**
* Attachment findFirstOrThrow
*/
export type AttachmentFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Attachment
*/
select?: AttachmentSelect<ExtArgs> | null
/**
* Omit specific fields from the Attachment
*/
omit?: AttachmentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: AttachmentInclude<ExtArgs> | null
/**
* Filter, which Attachment to fetch.
*/
where?: AttachmentWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Attachments to fetch.
*/
orderBy?: AttachmentOrderByWithRelationInput | AttachmentOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Attachments.
*/
cursor?: AttachmentWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Attachments from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Attachments.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Attachments.
*/
distinct?: AttachmentScalarFieldEnum | AttachmentScalarFieldEnum[]
}
/**
* Attachment findMany
*/
export type AttachmentFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Attachment
*/
select?: AttachmentSelect<ExtArgs> | null
/**
* Omit specific fields from the Attachment
*/
omit?: AttachmentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: AttachmentInclude<ExtArgs> | null
/**
* Filter, which Attachments to fetch.
*/
where?: AttachmentWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Attachments to fetch.
*/
orderBy?: AttachmentOrderByWithRelationInput | AttachmentOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing Attachments.
*/
cursor?: AttachmentWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Attachments from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Attachments.
*/
skip?: number
distinct?: AttachmentScalarFieldEnum | AttachmentScalarFieldEnum[]
}
/**
* Attachment create
*/
export type AttachmentCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Attachment
*/
select?: AttachmentSelect<ExtArgs> | null
/**
* Omit specific fields from the Attachment
*/
omit?: AttachmentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: AttachmentInclude<ExtArgs> | null
/**
* The data needed to create a Attachment.
*/
data: XOR<AttachmentCreateInput, AttachmentUncheckedCreateInput>
}
/**
* Attachment createMany
*/
export type AttachmentCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many Attachments.
*/
data: AttachmentCreateManyInput | AttachmentCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Attachment createManyAndReturn
*/
export type AttachmentCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Attachment
*/
select?: AttachmentSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Attachment
*/
omit?: AttachmentOmit<ExtArgs> | null
/**
* The data used to create many Attachments.
*/
data: AttachmentCreateManyInput | AttachmentCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: AttachmentIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* Attachment update
*/
export type AttachmentUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Attachment
*/
select?: AttachmentSelect<ExtArgs> | null
/**
* Omit specific fields from the Attachment
*/
omit?: AttachmentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: AttachmentInclude<ExtArgs> | null
/**
* The data needed to update a Attachment.
*/
data: XOR<AttachmentUpdateInput, AttachmentUncheckedUpdateInput>
/**
* Choose, which Attachment to update.
*/
where: AttachmentWhereUniqueInput
}
/**
* Attachment updateMany
*/
export type AttachmentUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update Attachments.
*/
data: XOR<AttachmentUpdateManyMutationInput, AttachmentUncheckedUpdateManyInput>
/**
* Filter which Attachments to update
*/
where?: AttachmentWhereInput
/**
* Limit how many Attachments to update.
*/
limit?: number
}
/**
* Attachment updateManyAndReturn
*/
export type AttachmentUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Attachment
*/
select?: AttachmentSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Attachment
*/
omit?: AttachmentOmit<ExtArgs> | null
/**
* The data used to update Attachments.
*/
data: XOR<AttachmentUpdateManyMutationInput, AttachmentUncheckedUpdateManyInput>
/**
* Filter which Attachments to update
*/
where?: AttachmentWhereInput
/**
* Limit how many Attachments to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: AttachmentIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* Attachment upsert
*/
export type AttachmentUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Attachment
*/
select?: AttachmentSelect<ExtArgs> | null
/**
* Omit specific fields from the Attachment
*/
omit?: AttachmentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: AttachmentInclude<ExtArgs> | null
/**
* The filter to search for the Attachment to update in case it exists.
*/
where: AttachmentWhereUniqueInput
/**
* In case the Attachment found by the `where` argument doesn't exist, create a new Attachment with this data.
*/
create: XOR<AttachmentCreateInput, AttachmentUncheckedCreateInput>
/**
* In case the Attachment was found with the provided `where` argument, update it with this data.
*/
update: XOR<AttachmentUpdateInput, AttachmentUncheckedUpdateInput>
}
/**
* Attachment delete
*/
export type AttachmentDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Attachment
*/
select?: AttachmentSelect<ExtArgs> | null
/**
* Omit specific fields from the Attachment
*/
omit?: AttachmentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: AttachmentInclude<ExtArgs> | null
/**
* Filter which Attachment to delete.
*/
where: AttachmentWhereUniqueInput
}
/**
* Attachment deleteMany
*/
export type AttachmentDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Attachments to delete
*/
where?: AttachmentWhereInput
/**
* Limit how many Attachments to delete.
*/
limit?: number
}
/**
* Attachment without action
*/
export type AttachmentDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Attachment
*/
select?: AttachmentSelect<ExtArgs> | null
/**
* Omit specific fields from the Attachment
*/
omit?: AttachmentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: AttachmentInclude<ExtArgs> | null
}
/**
* Model MissionUser
*/
export type AggregateMissionUser = {
_count: MissionUserCountAggregateOutputType | null
_min: MissionUserMinAggregateOutputType | null
_max: MissionUserMaxAggregateOutputType | null
}
export type MissionUserMinAggregateOutputType = {
id: string | null
role: string | null
createdAt: Date | null
updatedAt: Date | null
missionId: string | null
userId: string | null
}
export type MissionUserMaxAggregateOutputType = {
id: string | null
role: string | null
createdAt: Date | null
updatedAt: Date | null
missionId: string | null
userId: string | null
}
export type MissionUserCountAggregateOutputType = {
id: number
role: number
createdAt: number
updatedAt: number
missionId: number
userId: number
_all: number
}
export type MissionUserMinAggregateInputType = {
id?: true
role?: true
createdAt?: true
updatedAt?: true
missionId?: true
userId?: true
}
export type MissionUserMaxAggregateInputType = {
id?: true
role?: true
createdAt?: true
updatedAt?: true
missionId?: true
userId?: true
}
export type MissionUserCountAggregateInputType = {
id?: true
role?: true
createdAt?: true
updatedAt?: true
missionId?: true
userId?: true
_all?: true
}
export type MissionUserAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which MissionUser to aggregate.
*/
where?: MissionUserWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of MissionUsers to fetch.
*/
orderBy?: MissionUserOrderByWithRelationInput | MissionUserOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: MissionUserWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` MissionUsers from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` MissionUsers.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned MissionUsers
**/
_count?: true | MissionUserCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: MissionUserMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: MissionUserMaxAggregateInputType
}
export type GetMissionUserAggregateType<T extends MissionUserAggregateArgs> = {
[P in keyof T & keyof AggregateMissionUser]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateMissionUser[P]>
: GetScalarType<T[P], AggregateMissionUser[P]>
}
export type MissionUserGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: MissionUserWhereInput
orderBy?: MissionUserOrderByWithAggregationInput | MissionUserOrderByWithAggregationInput[]
by: MissionUserScalarFieldEnum[] | MissionUserScalarFieldEnum
having?: MissionUserScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: MissionUserCountAggregateInputType | true
_min?: MissionUserMinAggregateInputType
_max?: MissionUserMaxAggregateInputType
}
export type MissionUserGroupByOutputType = {
id: string
role: string
createdAt: Date
updatedAt: Date
missionId: string
userId: string
_count: MissionUserCountAggregateOutputType | null
_min: MissionUserMinAggregateOutputType | null
_max: MissionUserMaxAggregateOutputType | null
}
type GetMissionUserGroupByPayload<T extends MissionUserGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<MissionUserGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof MissionUserGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], MissionUserGroupByOutputType[P]>
: GetScalarType<T[P], MissionUserGroupByOutputType[P]>
}
>
>
export type MissionUserSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
role?: boolean
createdAt?: boolean
updatedAt?: boolean
missionId?: boolean
userId?: boolean
mission?: boolean | MissionDefaultArgs<ExtArgs>
user?: boolean | UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["missionUser"]>
export type MissionUserSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
role?: boolean
createdAt?: boolean
updatedAt?: boolean
missionId?: boolean
userId?: boolean
mission?: boolean | MissionDefaultArgs<ExtArgs>
user?: boolean | UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["missionUser"]>
export type MissionUserSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
role?: boolean
createdAt?: boolean
updatedAt?: boolean
missionId?: boolean
userId?: boolean
mission?: boolean | MissionDefaultArgs<ExtArgs>
user?: boolean | UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["missionUser"]>
export type MissionUserSelectScalar = {
id?: boolean
role?: boolean
createdAt?: boolean
updatedAt?: boolean
missionId?: boolean
userId?: boolean
}
export type MissionUserOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "role" | "createdAt" | "updatedAt" | "missionId" | "userId", ExtArgs["result"]["missionUser"]>
export type MissionUserInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
mission?: boolean | MissionDefaultArgs<ExtArgs>
user?: boolean | UserDefaultArgs<ExtArgs>
}
export type MissionUserIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
mission?: boolean | MissionDefaultArgs<ExtArgs>
user?: boolean | UserDefaultArgs<ExtArgs>
}
export type MissionUserIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
mission?: boolean | MissionDefaultArgs<ExtArgs>
user?: boolean | UserDefaultArgs<ExtArgs>
}
export type $MissionUserPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "MissionUser"
objects: {
mission: Prisma.$MissionPayload<ExtArgs>
user: Prisma.$UserPayload<ExtArgs>
}
scalars: $Extensions.GetPayloadResult<{
id: string
role: string
createdAt: Date
updatedAt: Date
missionId: string
userId: string
}, ExtArgs["result"]["missionUser"]>
composites: {}
}
type MissionUserGetPayload<S extends boolean | null | undefined | MissionUserDefaultArgs> = $Result.GetResult<Prisma.$MissionUserPayload, S>
type MissionUserCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<MissionUserFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: MissionUserCountAggregateInputType | true
}
export interface MissionUserDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, ClientOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['MissionUser'], meta: { name: 'MissionUser' } }
/**
* Find zero or one MissionUser that matches the filter.
* @param {MissionUserFindUniqueArgs} args - Arguments to find a MissionUser
* @example
* // Get one MissionUser
* const missionUser = await prisma.missionUser.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends MissionUserFindUniqueArgs>(args: SelectSubset<T, MissionUserFindUniqueArgs<ExtArgs>>): Prisma__MissionUserClient<$Result.GetResult<Prisma.$MissionUserPayload<ExtArgs>, T, "findUnique", ClientOptions> | null, null, ExtArgs, ClientOptions>
/**
* Find one MissionUser that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {MissionUserFindUniqueOrThrowArgs} args - Arguments to find a MissionUser
* @example
* // Get one MissionUser
* const missionUser = await prisma.missionUser.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends MissionUserFindUniqueOrThrowArgs>(args: SelectSubset<T, MissionUserFindUniqueOrThrowArgs<ExtArgs>>): Prisma__MissionUserClient<$Result.GetResult<Prisma.$MissionUserPayload<ExtArgs>, T, "findUniqueOrThrow", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Find the first MissionUser 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 {MissionUserFindFirstArgs} args - Arguments to find a MissionUser
* @example
* // Get one MissionUser
* const missionUser = await prisma.missionUser.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends MissionUserFindFirstArgs>(args?: SelectSubset<T, MissionUserFindFirstArgs<ExtArgs>>): Prisma__MissionUserClient<$Result.GetResult<Prisma.$MissionUserPayload<ExtArgs>, T, "findFirst", ClientOptions> | null, null, ExtArgs, ClientOptions>
/**
* Find the first MissionUser 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 {MissionUserFindFirstOrThrowArgs} args - Arguments to find a MissionUser
* @example
* // Get one MissionUser
* const missionUser = await prisma.missionUser.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends MissionUserFindFirstOrThrowArgs>(args?: SelectSubset<T, MissionUserFindFirstOrThrowArgs<ExtArgs>>): Prisma__MissionUserClient<$Result.GetResult<Prisma.$MissionUserPayload<ExtArgs>, T, "findFirstOrThrow", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Find zero or more MissionUsers 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 {MissionUserFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all MissionUsers
* const missionUsers = await prisma.missionUser.findMany()
*
* // Get first 10 MissionUsers
* const missionUsers = await prisma.missionUser.findMany({ take: 10 })
*
* // Only select the `id`
* const missionUserWithIdOnly = await prisma.missionUser.findMany({ select: { id: true } })
*
*/
findMany<T extends MissionUserFindManyArgs>(args?: SelectSubset<T, MissionUserFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MissionUserPayload<ExtArgs>, T, "findMany", ClientOptions>>
/**
* Create a MissionUser.
* @param {MissionUserCreateArgs} args - Arguments to create a MissionUser.
* @example
* // Create one MissionUser
* const MissionUser = await prisma.missionUser.create({
* data: {
* // ... data to create a MissionUser
* }
* })
*
*/
create<T extends MissionUserCreateArgs>(args: SelectSubset<T, MissionUserCreateArgs<ExtArgs>>): Prisma__MissionUserClient<$Result.GetResult<Prisma.$MissionUserPayload<ExtArgs>, T, "create", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Create many MissionUsers.
* @param {MissionUserCreateManyArgs} args - Arguments to create many MissionUsers.
* @example
* // Create many MissionUsers
* const missionUser = await prisma.missionUser.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends MissionUserCreateManyArgs>(args?: SelectSubset<T, MissionUserCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many MissionUsers and returns the data saved in the database.
* @param {MissionUserCreateManyAndReturnArgs} args - Arguments to create many MissionUsers.
* @example
* // Create many MissionUsers
* const missionUser = await prisma.missionUser.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many MissionUsers and only return the `id`
* const missionUserWithIdOnly = await prisma.missionUser.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 MissionUserCreateManyAndReturnArgs>(args?: SelectSubset<T, MissionUserCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MissionUserPayload<ExtArgs>, T, "createManyAndReturn", ClientOptions>>
/**
* Delete a MissionUser.
* @param {MissionUserDeleteArgs} args - Arguments to delete one MissionUser.
* @example
* // Delete one MissionUser
* const MissionUser = await prisma.missionUser.delete({
* where: {
* // ... filter to delete one MissionUser
* }
* })
*
*/
delete<T extends MissionUserDeleteArgs>(args: SelectSubset<T, MissionUserDeleteArgs<ExtArgs>>): Prisma__MissionUserClient<$Result.GetResult<Prisma.$MissionUserPayload<ExtArgs>, T, "delete", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Update one MissionUser.
* @param {MissionUserUpdateArgs} args - Arguments to update one MissionUser.
* @example
* // Update one MissionUser
* const missionUser = await prisma.missionUser.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends MissionUserUpdateArgs>(args: SelectSubset<T, MissionUserUpdateArgs<ExtArgs>>): Prisma__MissionUserClient<$Result.GetResult<Prisma.$MissionUserPayload<ExtArgs>, T, "update", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Delete zero or more MissionUsers.
* @param {MissionUserDeleteManyArgs} args - Arguments to filter MissionUsers to delete.
* @example
* // Delete a few MissionUsers
* const { count } = await prisma.missionUser.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends MissionUserDeleteManyArgs>(args?: SelectSubset<T, MissionUserDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more MissionUsers.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {MissionUserUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many MissionUsers
* const missionUser = await prisma.missionUser.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends MissionUserUpdateManyArgs>(args: SelectSubset<T, MissionUserUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more MissionUsers and returns the data updated in the database.
* @param {MissionUserUpdateManyAndReturnArgs} args - Arguments to update many MissionUsers.
* @example
* // Update many MissionUsers
* const missionUser = await prisma.missionUser.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more MissionUsers and only return the `id`
* const missionUserWithIdOnly = await prisma.missionUser.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends MissionUserUpdateManyAndReturnArgs>(args: SelectSubset<T, MissionUserUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MissionUserPayload<ExtArgs>, T, "updateManyAndReturn", ClientOptions>>
/**
* Create or update one MissionUser.
* @param {MissionUserUpsertArgs} args - Arguments to update or create a MissionUser.
* @example
* // Update or create a MissionUser
* const missionUser = await prisma.missionUser.upsert({
* create: {
* // ... data to create a MissionUser
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the MissionUser we want to update
* }
* })
*/
upsert<T extends MissionUserUpsertArgs>(args: SelectSubset<T, MissionUserUpsertArgs<ExtArgs>>): Prisma__MissionUserClient<$Result.GetResult<Prisma.$MissionUserPayload<ExtArgs>, T, "upsert", ClientOptions>, never, ExtArgs, ClientOptions>
/**
* Count the number of MissionUsers.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {MissionUserCountArgs} args - Arguments to filter MissionUsers to count.
* @example
* // Count the number of MissionUsers
* const count = await prisma.missionUser.count({
* where: {
* // ... the filter for the MissionUsers we want to count
* }
* })
**/
count<T extends MissionUserCountArgs>(
args?: Subset<T, MissionUserCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], MissionUserCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a MissionUser.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {MissionUserAggregateArgs} 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 MissionUserAggregateArgs>(args: Subset<T, MissionUserAggregateArgs>): Prisma.PrismaPromise<GetMissionUserAggregateType<T>>
/**
* Group by MissionUser.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {MissionUserGroupByArgs} 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 MissionUserGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: MissionUserGroupByArgs['orderBy'] }
: { orderBy?: MissionUserGroupByArgs['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, MissionUserGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMissionUserGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the MissionUser model
*/
readonly fields: MissionUserFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for MissionUser.
* 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__MissionUserClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, ClientOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
mission<T extends MissionDefaultArgs<ExtArgs> = {}>(args?: Subset<T, MissionDefaultArgs<ExtArgs>>): Prisma__MissionClient<$Result.GetResult<Prisma.$MissionPayload<ExtArgs>, T, "findUniqueOrThrow", ClientOptions> | Null, Null, ExtArgs, ClientOptions>
user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", ClientOptions> | Null, Null, ExtArgs, ClientOptions>
/**
* 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 MissionUser model
*/
interface MissionUserFieldRefs {
readonly id: FieldRef<"MissionUser", 'String'>
readonly role: FieldRef<"MissionUser", 'String'>
readonly createdAt: FieldRef<"MissionUser", 'DateTime'>
readonly updatedAt: FieldRef<"MissionUser", 'DateTime'>
readonly missionId: FieldRef<"MissionUser", 'String'>
readonly userId: FieldRef<"MissionUser", 'String'>
}
// Custom InputTypes
/**
* MissionUser findUnique
*/
export type MissionUserFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MissionUser
*/
select?: MissionUserSelect<ExtArgs> | null
/**
* Omit specific fields from the MissionUser
*/
omit?: MissionUserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: MissionUserInclude<ExtArgs> | null
/**
* Filter, which MissionUser to fetch.
*/
where: MissionUserWhereUniqueInput
}
/**
* MissionUser findUniqueOrThrow
*/
export type MissionUserFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MissionUser
*/
select?: MissionUserSelect<ExtArgs> | null
/**
* Omit specific fields from the MissionUser
*/
omit?: MissionUserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: MissionUserInclude<ExtArgs> | null
/**
* Filter, which MissionUser to fetch.
*/
where: MissionUserWhereUniqueInput
}
/**
* MissionUser findFirst
*/
export type MissionUserFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MissionUser
*/
select?: MissionUserSelect<ExtArgs> | null
/**
* Omit specific fields from the MissionUser
*/
omit?: MissionUserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: MissionUserInclude<ExtArgs> | null
/**
* Filter, which MissionUser to fetch.
*/
where?: MissionUserWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of MissionUsers to fetch.
*/
orderBy?: MissionUserOrderByWithRelationInput | MissionUserOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for MissionUsers.
*/
cursor?: MissionUserWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` MissionUsers from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` MissionUsers.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of MissionUsers.
*/
distinct?: MissionUserScalarFieldEnum | MissionUserScalarFieldEnum[]
}
/**
* MissionUser findFirstOrThrow
*/
export type MissionUserFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MissionUser
*/
select?: MissionUserSelect<ExtArgs> | null
/**
* Omit specific fields from the MissionUser
*/
omit?: MissionUserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: MissionUserInclude<ExtArgs> | null
/**
* Filter, which MissionUser to fetch.
*/
where?: MissionUserWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of MissionUsers to fetch.
*/
orderBy?: MissionUserOrderByWithRelationInput | MissionUserOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for MissionUsers.
*/
cursor?: MissionUserWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` MissionUsers from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` MissionUsers.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of MissionUsers.
*/
distinct?: MissionUserScalarFieldEnum | MissionUserScalarFieldEnum[]
}
/**
* MissionUser findMany
*/
export type MissionUserFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MissionUser
*/
select?: MissionUserSelect<ExtArgs> | null
/**
* Omit specific fields from the MissionUser
*/
omit?: MissionUserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: MissionUserInclude<ExtArgs> | null
/**
* Filter, which MissionUsers to fetch.
*/
where?: MissionUserWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of MissionUsers to fetch.
*/
orderBy?: MissionUserOrderByWithRelationInput | MissionUserOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing MissionUsers.
*/
cursor?: MissionUserWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` MissionUsers from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` MissionUsers.
*/
skip?: number
distinct?: MissionUserScalarFieldEnum | MissionUserScalarFieldEnum[]
}
/**
* MissionUser create
*/
export type MissionUserCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MissionUser
*/
select?: MissionUserSelect<ExtArgs> | null
/**
* Omit specific fields from the MissionUser
*/
omit?: MissionUserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: MissionUserInclude<ExtArgs> | null
/**
* The data needed to create a MissionUser.
*/
data: XOR<MissionUserCreateInput, MissionUserUncheckedCreateInput>
}
/**
* MissionUser createMany
*/
export type MissionUserCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many MissionUsers.
*/
data: MissionUserCreateManyInput | MissionUserCreateManyInput[]
skipDuplicates?: boolean
}
/**
* MissionUser createManyAndReturn
*/
export type MissionUserCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MissionUser
*/
select?: MissionUserSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the MissionUser
*/
omit?: MissionUserOmit<ExtArgs> | null
/**
* The data used to create many MissionUsers.
*/
data: MissionUserCreateManyInput | MissionUserCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: MissionUserIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* MissionUser update
*/
export type MissionUserUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MissionUser
*/
select?: MissionUserSelect<ExtArgs> | null
/**
* Omit specific fields from the MissionUser
*/
omit?: MissionUserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: MissionUserInclude<ExtArgs> | null
/**
* The data needed to update a MissionUser.
*/
data: XOR<MissionUserUpdateInput, MissionUserUncheckedUpdateInput>
/**
* Choose, which MissionUser to update.
*/
where: MissionUserWhereUniqueInput
}
/**
* MissionUser updateMany
*/
export type MissionUserUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update MissionUsers.
*/
data: XOR<MissionUserUpdateManyMutationInput, MissionUserUncheckedUpdateManyInput>
/**
* Filter which MissionUsers to update
*/
where?: MissionUserWhereInput
/**
* Limit how many MissionUsers to update.
*/
limit?: number
}
/**
* MissionUser updateManyAndReturn
*/
export type MissionUserUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MissionUser
*/
select?: MissionUserSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the MissionUser
*/
omit?: MissionUserOmit<ExtArgs> | null
/**
* The data used to update MissionUsers.
*/
data: XOR<MissionUserUpdateManyMutationInput, MissionUserUncheckedUpdateManyInput>
/**
* Filter which MissionUsers to update
*/
where?: MissionUserWhereInput
/**
* Limit how many MissionUsers to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: MissionUserIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* MissionUser upsert
*/
export type MissionUserUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MissionUser
*/
select?: MissionUserSelect<ExtArgs> | null
/**
* Omit specific fields from the MissionUser
*/
omit?: MissionUserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: MissionUserInclude<ExtArgs> | null
/**
* The filter to search for the MissionUser to update in case it exists.
*/
where: MissionUserWhereUniqueInput
/**
* In case the MissionUser found by the `where` argument doesn't exist, create a new MissionUser with this data.
*/
create: XOR<MissionUserCreateInput, MissionUserUncheckedCreateInput>
/**
* In case the MissionUser was found with the provided `where` argument, update it with this data.
*/
update: XOR<MissionUserUpdateInput, MissionUserUncheckedUpdateInput>
}
/**
* MissionUser delete
*/
export type MissionUserDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MissionUser
*/
select?: MissionUserSelect<ExtArgs> | null
/**
* Omit specific fields from the MissionUser
*/
omit?: MissionUserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: MissionUserInclude<ExtArgs> | null
/**
* Filter which MissionUser to delete.
*/
where: MissionUserWhereUniqueInput
}
/**
* MissionUser deleteMany
*/
export type MissionUserDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which MissionUsers to delete
*/
where?: MissionUserWhereInput
/**
* Limit how many MissionUsers to delete.
*/
limit?: number
}
/**
* MissionUser without action
*/
export type MissionUserDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MissionUser
*/
select?: MissionUserSelect<ExtArgs> | null
/**
* Omit specific fields from the MissionUser
*/
omit?: MissionUserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: MissionUserInclude<ExtArgs> | null
}
/**
* Enums
*/
export const TransactionIsolationLevel: {
ReadUncommitted: 'ReadUncommitted',
ReadCommitted: 'ReadCommitted',
RepeatableRead: 'RepeatableRead',
Serializable: 'Serializable'
};
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
export const UserScalarFieldEnum: {
id: 'id',
email: 'email',
password: 'password',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
export const CalendarScalarFieldEnum: {
id: 'id',
name: 'name',
color: 'color',
description: 'description',
userId: 'userId',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
export type CalendarScalarFieldEnum = (typeof CalendarScalarFieldEnum)[keyof typeof CalendarScalarFieldEnum]
export const EventScalarFieldEnum: {
id: 'id',
title: 'title',
description: 'description',
start: 'start',
end: 'end',
location: 'location',
isAllDay: 'isAllDay',
calendarId: 'calendarId',
userId: 'userId',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
export type EventScalarFieldEnum = (typeof EventScalarFieldEnum)[keyof typeof EventScalarFieldEnum]
export const MailCredentialsScalarFieldEnum: {
id: 'id',
userId: 'userId',
email: 'email',
password: 'password',
host: 'host',
port: 'port',
secure: 'secure',
use_oauth: 'use_oauth',
refresh_token: 'refresh_token',
access_token: 'access_token',
token_expiry: 'token_expiry',
smtp_host: 'smtp_host',
smtp_port: 'smtp_port',
smtp_secure: 'smtp_secure',
display_name: 'display_name',
color: 'color',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
export type MailCredentialsScalarFieldEnum = (typeof MailCredentialsScalarFieldEnum)[keyof typeof MailCredentialsScalarFieldEnum]
export const WebDAVCredentialsScalarFieldEnum: {
id: 'id',
userId: 'userId',
username: 'username',
password: 'password',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
export type WebDAVCredentialsScalarFieldEnum = (typeof WebDAVCredentialsScalarFieldEnum)[keyof typeof WebDAVCredentialsScalarFieldEnum]
export const AnnouncementScalarFieldEnum: {
id: 'id',
title: 'title',
content: 'content',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
authorId: 'authorId',
targetRoles: 'targetRoles'
};
export type AnnouncementScalarFieldEnum = (typeof AnnouncementScalarFieldEnum)[keyof typeof AnnouncementScalarFieldEnum]
export const MissionScalarFieldEnum: {
id: 'id',
name: 'name',
logo: 'logo',
oddScope: 'oddScope',
niveau: 'niveau',
intention: 'intention',
missionType: 'missionType',
donneurDOrdre: 'donneurDOrdre',
projection: 'projection',
services: 'services',
participation: 'participation',
profils: 'profils',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
creatorId: 'creatorId',
leantimeProjectId: 'leantimeProjectId',
outlineCollectionId: 'outlineCollectionId',
rocketChatChannelId: 'rocketChatChannelId',
giteaRepositoryUrl: 'giteaRepositoryUrl',
penpotProjectId: 'penpotProjectId'
};
export type MissionScalarFieldEnum = (typeof MissionScalarFieldEnum)[keyof typeof MissionScalarFieldEnum]
export const AttachmentScalarFieldEnum: {
id: 'id',
filename: 'filename',
filePath: 'filePath',
fileType: 'fileType',
fileSize: 'fileSize',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
missionId: 'missionId',
uploaderId: 'uploaderId'
};
export type AttachmentScalarFieldEnum = (typeof AttachmentScalarFieldEnum)[keyof typeof AttachmentScalarFieldEnum]
export const MissionUserScalarFieldEnum: {
id: 'id',
role: 'role',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
missionId: 'missionId',
userId: 'userId'
};
export type MissionUserScalarFieldEnum = (typeof MissionUserScalarFieldEnum)[keyof typeof MissionUserScalarFieldEnum]
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 '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 'Boolean'
*/
export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'>
/**
* 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 'Float'
*/
export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'>
/**
* Reference to a field of type 'Float[]'
*/
export type ListFloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float[]'>
/**
* Deep Input Types
*/
export type UserWhereInput = {
AND?: UserWhereInput | UserWhereInput[]
OR?: UserWhereInput[]
NOT?: UserWhereInput | UserWhereInput[]
id?: StringFilter<"User"> | string
email?: StringFilter<"User"> | string
password?: StringFilter<"User"> | string
createdAt?: DateTimeFilter<"User"> | Date | string
updatedAt?: DateTimeFilter<"User"> | Date | string
calendars?: CalendarListRelationFilter
events?: EventListRelationFilter
mailCredentials?: MailCredentialsListRelationFilter
webdavCredentials?: XOR<WebDAVCredentialsNullableScalarRelationFilter, WebDAVCredentialsWhereInput> | null
announcements?: AnnouncementListRelationFilter
missions?: MissionListRelationFilter
missionUsers?: MissionUserListRelationFilter
uploadedAttachments?: AttachmentListRelationFilter
}
export type UserOrderByWithRelationInput = {
id?: SortOrder
email?: SortOrder
password?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
calendars?: CalendarOrderByRelationAggregateInput
events?: EventOrderByRelationAggregateInput
mailCredentials?: MailCredentialsOrderByRelationAggregateInput
webdavCredentials?: WebDAVCredentialsOrderByWithRelationInput
announcements?: AnnouncementOrderByRelationAggregateInput
missions?: MissionOrderByRelationAggregateInput
missionUsers?: MissionUserOrderByRelationAggregateInput
uploadedAttachments?: AttachmentOrderByRelationAggregateInput
}
export type UserWhereUniqueInput = Prisma.AtLeast<{
id?: string
email?: string
AND?: UserWhereInput | UserWhereInput[]
OR?: UserWhereInput[]
NOT?: UserWhereInput | UserWhereInput[]
password?: StringFilter<"User"> | string
createdAt?: DateTimeFilter<"User"> | Date | string
updatedAt?: DateTimeFilter<"User"> | Date | string
calendars?: CalendarListRelationFilter
events?: EventListRelationFilter
mailCredentials?: MailCredentialsListRelationFilter
webdavCredentials?: XOR<WebDAVCredentialsNullableScalarRelationFilter, WebDAVCredentialsWhereInput> | null
announcements?: AnnouncementListRelationFilter
missions?: MissionListRelationFilter
missionUsers?: MissionUserListRelationFilter
uploadedAttachments?: AttachmentListRelationFilter
}, "id" | "email">
export type UserOrderByWithAggregationInput = {
id?: SortOrder
email?: SortOrder
password?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
_count?: UserCountOrderByAggregateInput
_max?: UserMaxOrderByAggregateInput
_min?: UserMinOrderByAggregateInput
}
export type UserScalarWhereWithAggregatesInput = {
AND?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[]
OR?: UserScalarWhereWithAggregatesInput[]
NOT?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"User"> | string
email?: StringWithAggregatesFilter<"User"> | string
password?: StringWithAggregatesFilter<"User"> | string
createdAt?: DateTimeWithAggregatesFilter<"User"> | Date | string
updatedAt?: DateTimeWithAggregatesFilter<"User"> | Date | string
}
export type CalendarWhereInput = {
AND?: CalendarWhereInput | CalendarWhereInput[]
OR?: CalendarWhereInput[]
NOT?: CalendarWhereInput | CalendarWhereInput[]
id?: StringFilter<"Calendar"> | string
name?: StringFilter<"Calendar"> | string
color?: StringFilter<"Calendar"> | string
description?: StringNullableFilter<"Calendar"> | string | null
userId?: StringFilter<"Calendar"> | string
createdAt?: DateTimeFilter<"Calendar"> | Date | string
updatedAt?: DateTimeFilter<"Calendar"> | Date | string
events?: EventListRelationFilter
user?: XOR<UserScalarRelationFilter, UserWhereInput>
}
export type CalendarOrderByWithRelationInput = {
id?: SortOrder
name?: SortOrder
color?: SortOrder
description?: SortOrderInput | SortOrder
userId?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
events?: EventOrderByRelationAggregateInput
user?: UserOrderByWithRelationInput
}
export type CalendarWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: CalendarWhereInput | CalendarWhereInput[]
OR?: CalendarWhereInput[]
NOT?: CalendarWhereInput | CalendarWhereInput[]
name?: StringFilter<"Calendar"> | string
color?: StringFilter<"Calendar"> | string
description?: StringNullableFilter<"Calendar"> | string | null
userId?: StringFilter<"Calendar"> | string
createdAt?: DateTimeFilter<"Calendar"> | Date | string
updatedAt?: DateTimeFilter<"Calendar"> | Date | string
events?: EventListRelationFilter
user?: XOR<UserScalarRelationFilter, UserWhereInput>
}, "id">
export type CalendarOrderByWithAggregationInput = {
id?: SortOrder
name?: SortOrder
color?: SortOrder
description?: SortOrderInput | SortOrder
userId?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
_count?: CalendarCountOrderByAggregateInput
_max?: CalendarMaxOrderByAggregateInput
_min?: CalendarMinOrderByAggregateInput
}
export type CalendarScalarWhereWithAggregatesInput = {
AND?: CalendarScalarWhereWithAggregatesInput | CalendarScalarWhereWithAggregatesInput[]
OR?: CalendarScalarWhereWithAggregatesInput[]
NOT?: CalendarScalarWhereWithAggregatesInput | CalendarScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"Calendar"> | string
name?: StringWithAggregatesFilter<"Calendar"> | string
color?: StringWithAggregatesFilter<"Calendar"> | string
description?: StringNullableWithAggregatesFilter<"Calendar"> | string | null
userId?: StringWithAggregatesFilter<"Calendar"> | string
createdAt?: DateTimeWithAggregatesFilter<"Calendar"> | Date | string
updatedAt?: DateTimeWithAggregatesFilter<"Calendar"> | Date | string
}
export type EventWhereInput = {
AND?: EventWhereInput | EventWhereInput[]
OR?: EventWhereInput[]
NOT?: EventWhereInput | EventWhereInput[]
id?: StringFilter<"Event"> | string
title?: StringFilter<"Event"> | string
description?: StringNullableFilter<"Event"> | string | null
start?: DateTimeFilter<"Event"> | Date | string
end?: DateTimeFilter<"Event"> | Date | string
location?: StringNullableFilter<"Event"> | string | null
isAllDay?: BoolFilter<"Event"> | boolean
calendarId?: StringFilter<"Event"> | string
userId?: StringFilter<"Event"> | string
createdAt?: DateTimeFilter<"Event"> | Date | string
updatedAt?: DateTimeFilter<"Event"> | Date | string
calendar?: XOR<CalendarScalarRelationFilter, CalendarWhereInput>
user?: XOR<UserScalarRelationFilter, UserWhereInput>
}
export type EventOrderByWithRelationInput = {
id?: SortOrder
title?: SortOrder
description?: SortOrderInput | SortOrder
start?: SortOrder
end?: SortOrder
location?: SortOrderInput | SortOrder
isAllDay?: SortOrder
calendarId?: SortOrder
userId?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
calendar?: CalendarOrderByWithRelationInput
user?: UserOrderByWithRelationInput
}
export type EventWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: EventWhereInput | EventWhereInput[]
OR?: EventWhereInput[]
NOT?: EventWhereInput | EventWhereInput[]
title?: StringFilter<"Event"> | string
description?: StringNullableFilter<"Event"> | string | null
start?: DateTimeFilter<"Event"> | Date | string
end?: DateTimeFilter<"Event"> | Date | string
location?: StringNullableFilter<"Event"> | string | null
isAllDay?: BoolFilter<"Event"> | boolean
calendarId?: StringFilter<"Event"> | string
userId?: StringFilter<"Event"> | string
createdAt?: DateTimeFilter<"Event"> | Date | string
updatedAt?: DateTimeFilter<"Event"> | Date | string
calendar?: XOR<CalendarScalarRelationFilter, CalendarWhereInput>
user?: XOR<UserScalarRelationFilter, UserWhereInput>
}, "id">
export type EventOrderByWithAggregationInput = {
id?: SortOrder
title?: SortOrder
description?: SortOrderInput | SortOrder
start?: SortOrder
end?: SortOrder
location?: SortOrderInput | SortOrder
isAllDay?: SortOrder
calendarId?: SortOrder
userId?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
_count?: EventCountOrderByAggregateInput
_max?: EventMaxOrderByAggregateInput
_min?: EventMinOrderByAggregateInput
}
export type EventScalarWhereWithAggregatesInput = {
AND?: EventScalarWhereWithAggregatesInput | EventScalarWhereWithAggregatesInput[]
OR?: EventScalarWhereWithAggregatesInput[]
NOT?: EventScalarWhereWithAggregatesInput | EventScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"Event"> | string
title?: StringWithAggregatesFilter<"Event"> | string
description?: StringNullableWithAggregatesFilter<"Event"> | string | null
start?: DateTimeWithAggregatesFilter<"Event"> | Date | string
end?: DateTimeWithAggregatesFilter<"Event"> | Date | string
location?: StringNullableWithAggregatesFilter<"Event"> | string | null
isAllDay?: BoolWithAggregatesFilter<"Event"> | boolean
calendarId?: StringWithAggregatesFilter<"Event"> | string
userId?: StringWithAggregatesFilter<"Event"> | string
createdAt?: DateTimeWithAggregatesFilter<"Event"> | Date | string
updatedAt?: DateTimeWithAggregatesFilter<"Event"> | Date | string
}
export type MailCredentialsWhereInput = {
AND?: MailCredentialsWhereInput | MailCredentialsWhereInput[]
OR?: MailCredentialsWhereInput[]
NOT?: MailCredentialsWhereInput | MailCredentialsWhereInput[]
id?: StringFilter<"MailCredentials"> | string
userId?: StringFilter<"MailCredentials"> | string
email?: StringFilter<"MailCredentials"> | string
password?: StringNullableFilter<"MailCredentials"> | string | null
host?: StringFilter<"MailCredentials"> | string
port?: IntFilter<"MailCredentials"> | number
secure?: BoolFilter<"MailCredentials"> | boolean
use_oauth?: BoolFilter<"MailCredentials"> | boolean
refresh_token?: StringNullableFilter<"MailCredentials"> | string | null
access_token?: StringNullableFilter<"MailCredentials"> | string | null
token_expiry?: DateTimeNullableFilter<"MailCredentials"> | Date | string | null
smtp_host?: StringNullableFilter<"MailCredentials"> | string | null
smtp_port?: IntNullableFilter<"MailCredentials"> | number | null
smtp_secure?: BoolNullableFilter<"MailCredentials"> | boolean | null
display_name?: StringNullableFilter<"MailCredentials"> | string | null
color?: StringNullableFilter<"MailCredentials"> | string | null
createdAt?: DateTimeFilter<"MailCredentials"> | Date | string
updatedAt?: DateTimeFilter<"MailCredentials"> | Date | string
user?: XOR<UserScalarRelationFilter, UserWhereInput>
}
export type MailCredentialsOrderByWithRelationInput = {
id?: SortOrder
userId?: SortOrder
email?: SortOrder
password?: SortOrderInput | SortOrder
host?: SortOrder
port?: SortOrder
secure?: SortOrder
use_oauth?: SortOrder
refresh_token?: SortOrderInput | SortOrder
access_token?: SortOrderInput | SortOrder
token_expiry?: SortOrderInput | SortOrder
smtp_host?: SortOrderInput | SortOrder
smtp_port?: SortOrderInput | SortOrder
smtp_secure?: SortOrderInput | SortOrder
display_name?: SortOrderInput | SortOrder
color?: SortOrderInput | SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
user?: UserOrderByWithRelationInput
}
export type MailCredentialsWhereUniqueInput = Prisma.AtLeast<{
id?: string
userId_email?: MailCredentialsUserIdEmailCompoundUniqueInput
AND?: MailCredentialsWhereInput | MailCredentialsWhereInput[]
OR?: MailCredentialsWhereInput[]
NOT?: MailCredentialsWhereInput | MailCredentialsWhereInput[]
userId?: StringFilter<"MailCredentials"> | string
email?: StringFilter<"MailCredentials"> | string
password?: StringNullableFilter<"MailCredentials"> | string | null
host?: StringFilter<"MailCredentials"> | string
port?: IntFilter<"MailCredentials"> | number
secure?: BoolFilter<"MailCredentials"> | boolean
use_oauth?: BoolFilter<"MailCredentials"> | boolean
refresh_token?: StringNullableFilter<"MailCredentials"> | string | null
access_token?: StringNullableFilter<"MailCredentials"> | string | null
token_expiry?: DateTimeNullableFilter<"MailCredentials"> | Date | string | null
smtp_host?: StringNullableFilter<"MailCredentials"> | string | null
smtp_port?: IntNullableFilter<"MailCredentials"> | number | null
smtp_secure?: BoolNullableFilter<"MailCredentials"> | boolean | null
display_name?: StringNullableFilter<"MailCredentials"> | string | null
color?: StringNullableFilter<"MailCredentials"> | string | null
createdAt?: DateTimeFilter<"MailCredentials"> | Date | string
updatedAt?: DateTimeFilter<"MailCredentials"> | Date | string
user?: XOR<UserScalarRelationFilter, UserWhereInput>
}, "id" | "userId_email">
export type MailCredentialsOrderByWithAggregationInput = {
id?: SortOrder
userId?: SortOrder
email?: SortOrder
password?: SortOrderInput | SortOrder
host?: SortOrder
port?: SortOrder
secure?: SortOrder
use_oauth?: SortOrder
refresh_token?: SortOrderInput | SortOrder
access_token?: SortOrderInput | SortOrder
token_expiry?: SortOrderInput | SortOrder
smtp_host?: SortOrderInput | SortOrder
smtp_port?: SortOrderInput | SortOrder
smtp_secure?: SortOrderInput | SortOrder
display_name?: SortOrderInput | SortOrder
color?: SortOrderInput | SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
_count?: MailCredentialsCountOrderByAggregateInput
_avg?: MailCredentialsAvgOrderByAggregateInput
_max?: MailCredentialsMaxOrderByAggregateInput
_min?: MailCredentialsMinOrderByAggregateInput
_sum?: MailCredentialsSumOrderByAggregateInput
}
export type MailCredentialsScalarWhereWithAggregatesInput = {
AND?: MailCredentialsScalarWhereWithAggregatesInput | MailCredentialsScalarWhereWithAggregatesInput[]
OR?: MailCredentialsScalarWhereWithAggregatesInput[]
NOT?: MailCredentialsScalarWhereWithAggregatesInput | MailCredentialsScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"MailCredentials"> | string
userId?: StringWithAggregatesFilter<"MailCredentials"> | string
email?: StringWithAggregatesFilter<"MailCredentials"> | string
password?: StringNullableWithAggregatesFilter<"MailCredentials"> | string | null
host?: StringWithAggregatesFilter<"MailCredentials"> | string
port?: IntWithAggregatesFilter<"MailCredentials"> | number
secure?: BoolWithAggregatesFilter<"MailCredentials"> | boolean
use_oauth?: BoolWithAggregatesFilter<"MailCredentials"> | boolean
refresh_token?: StringNullableWithAggregatesFilter<"MailCredentials"> | string | null
access_token?: StringNullableWithAggregatesFilter<"MailCredentials"> | string | null
token_expiry?: DateTimeNullableWithAggregatesFilter<"MailCredentials"> | Date | string | null
smtp_host?: StringNullableWithAggregatesFilter<"MailCredentials"> | string | null
smtp_port?: IntNullableWithAggregatesFilter<"MailCredentials"> | number | null
smtp_secure?: BoolNullableWithAggregatesFilter<"MailCredentials"> | boolean | null
display_name?: StringNullableWithAggregatesFilter<"MailCredentials"> | string | null
color?: StringNullableWithAggregatesFilter<"MailCredentials"> | string | null
createdAt?: DateTimeWithAggregatesFilter<"MailCredentials"> | Date | string
updatedAt?: DateTimeWithAggregatesFilter<"MailCredentials"> | Date | string
}
export type WebDAVCredentialsWhereInput = {
AND?: WebDAVCredentialsWhereInput | WebDAVCredentialsWhereInput[]
OR?: WebDAVCredentialsWhereInput[]
NOT?: WebDAVCredentialsWhereInput | WebDAVCredentialsWhereInput[]
id?: StringFilter<"WebDAVCredentials"> | string
userId?: StringFilter<"WebDAVCredentials"> | string
username?: StringFilter<"WebDAVCredentials"> | string
password?: StringFilter<"WebDAVCredentials"> | string
createdAt?: DateTimeFilter<"WebDAVCredentials"> | Date | string
updatedAt?: DateTimeFilter<"WebDAVCredentials"> | Date | string
user?: XOR<UserScalarRelationFilter, UserWhereInput>
}
export type WebDAVCredentialsOrderByWithRelationInput = {
id?: SortOrder
userId?: SortOrder
username?: SortOrder
password?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
user?: UserOrderByWithRelationInput
}
export type WebDAVCredentialsWhereUniqueInput = Prisma.AtLeast<{
id?: string
userId?: string
AND?: WebDAVCredentialsWhereInput | WebDAVCredentialsWhereInput[]
OR?: WebDAVCredentialsWhereInput[]
NOT?: WebDAVCredentialsWhereInput | WebDAVCredentialsWhereInput[]
username?: StringFilter<"WebDAVCredentials"> | string
password?: StringFilter<"WebDAVCredentials"> | string
createdAt?: DateTimeFilter<"WebDAVCredentials"> | Date | string
updatedAt?: DateTimeFilter<"WebDAVCredentials"> | Date | string
user?: XOR<UserScalarRelationFilter, UserWhereInput>
}, "id" | "userId">
export type WebDAVCredentialsOrderByWithAggregationInput = {
id?: SortOrder
userId?: SortOrder
username?: SortOrder
password?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
_count?: WebDAVCredentialsCountOrderByAggregateInput
_max?: WebDAVCredentialsMaxOrderByAggregateInput
_min?: WebDAVCredentialsMinOrderByAggregateInput
}
export type WebDAVCredentialsScalarWhereWithAggregatesInput = {
AND?: WebDAVCredentialsScalarWhereWithAggregatesInput | WebDAVCredentialsScalarWhereWithAggregatesInput[]
OR?: WebDAVCredentialsScalarWhereWithAggregatesInput[]
NOT?: WebDAVCredentialsScalarWhereWithAggregatesInput | WebDAVCredentialsScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"WebDAVCredentials"> | string
userId?: StringWithAggregatesFilter<"WebDAVCredentials"> | string
username?: StringWithAggregatesFilter<"WebDAVCredentials"> | string
password?: StringWithAggregatesFilter<"WebDAVCredentials"> | string
createdAt?: DateTimeWithAggregatesFilter<"WebDAVCredentials"> | Date | string
updatedAt?: DateTimeWithAggregatesFilter<"WebDAVCredentials"> | Date | string
}
export type AnnouncementWhereInput = {
AND?: AnnouncementWhereInput | AnnouncementWhereInput[]
OR?: AnnouncementWhereInput[]
NOT?: AnnouncementWhereInput | AnnouncementWhereInput[]
id?: StringFilter<"Announcement"> | string
title?: StringFilter<"Announcement"> | string
content?: StringFilter<"Announcement"> | string
createdAt?: DateTimeFilter<"Announcement"> | Date | string
updatedAt?: DateTimeFilter<"Announcement"> | Date | string
authorId?: StringFilter<"Announcement"> | string
targetRoles?: StringNullableListFilter<"Announcement">
author?: XOR<UserScalarRelationFilter, UserWhereInput>
}
export type AnnouncementOrderByWithRelationInput = {
id?: SortOrder
title?: SortOrder
content?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
authorId?: SortOrder
targetRoles?: SortOrder
author?: UserOrderByWithRelationInput
}
export type AnnouncementWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: AnnouncementWhereInput | AnnouncementWhereInput[]
OR?: AnnouncementWhereInput[]
NOT?: AnnouncementWhereInput | AnnouncementWhereInput[]
title?: StringFilter<"Announcement"> | string
content?: StringFilter<"Announcement"> | string
createdAt?: DateTimeFilter<"Announcement"> | Date | string
updatedAt?: DateTimeFilter<"Announcement"> | Date | string
authorId?: StringFilter<"Announcement"> | string
targetRoles?: StringNullableListFilter<"Announcement">
author?: XOR<UserScalarRelationFilter, UserWhereInput>
}, "id">
export type AnnouncementOrderByWithAggregationInput = {
id?: SortOrder
title?: SortOrder
content?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
authorId?: SortOrder
targetRoles?: SortOrder
_count?: AnnouncementCountOrderByAggregateInput
_max?: AnnouncementMaxOrderByAggregateInput
_min?: AnnouncementMinOrderByAggregateInput
}
export type AnnouncementScalarWhereWithAggregatesInput = {
AND?: AnnouncementScalarWhereWithAggregatesInput | AnnouncementScalarWhereWithAggregatesInput[]
OR?: AnnouncementScalarWhereWithAggregatesInput[]
NOT?: AnnouncementScalarWhereWithAggregatesInput | AnnouncementScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"Announcement"> | string
title?: StringWithAggregatesFilter<"Announcement"> | string
content?: StringWithAggregatesFilter<"Announcement"> | string
createdAt?: DateTimeWithAggregatesFilter<"Announcement"> | Date | string
updatedAt?: DateTimeWithAggregatesFilter<"Announcement"> | Date | string
authorId?: StringWithAggregatesFilter<"Announcement"> | string
targetRoles?: StringNullableListFilter<"Announcement">
}
export type MissionWhereInput = {
AND?: MissionWhereInput | MissionWhereInput[]
OR?: MissionWhereInput[]
NOT?: MissionWhereInput | MissionWhereInput[]
id?: StringFilter<"Mission"> | string
name?: StringFilter<"Mission"> | string
logo?: StringNullableFilter<"Mission"> | string | null
oddScope?: StringNullableListFilter<"Mission">
niveau?: StringFilter<"Mission"> | string
intention?: StringFilter<"Mission"> | string
missionType?: StringFilter<"Mission"> | string
donneurDOrdre?: StringFilter<"Mission"> | string
projection?: StringFilter<"Mission"> | string
services?: StringNullableListFilter<"Mission">
participation?: StringNullableFilter<"Mission"> | string | null
profils?: StringNullableListFilter<"Mission">
createdAt?: DateTimeFilter<"Mission"> | Date | string
updatedAt?: DateTimeFilter<"Mission"> | Date | string
creatorId?: StringFilter<"Mission"> | string
leantimeProjectId?: StringNullableFilter<"Mission"> | string | null
outlineCollectionId?: StringNullableFilter<"Mission"> | string | null
rocketChatChannelId?: StringNullableFilter<"Mission"> | string | null
giteaRepositoryUrl?: StringNullableFilter<"Mission"> | string | null
penpotProjectId?: StringNullableFilter<"Mission"> | string | null
creator?: XOR<UserScalarRelationFilter, UserWhereInput>
attachments?: AttachmentListRelationFilter
missionUsers?: MissionUserListRelationFilter
}
export type MissionOrderByWithRelationInput = {
id?: SortOrder
name?: SortOrder
logo?: SortOrderInput | SortOrder
oddScope?: SortOrder
niveau?: SortOrder
intention?: SortOrder
missionType?: SortOrder
donneurDOrdre?: SortOrder
projection?: SortOrder
services?: SortOrder
participation?: SortOrderInput | SortOrder
profils?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
creatorId?: SortOrder
leantimeProjectId?: SortOrderInput | SortOrder
outlineCollectionId?: SortOrderInput | SortOrder
rocketChatChannelId?: SortOrderInput | SortOrder
giteaRepositoryUrl?: SortOrderInput | SortOrder
penpotProjectId?: SortOrderInput | SortOrder
creator?: UserOrderByWithRelationInput
attachments?: AttachmentOrderByRelationAggregateInput
missionUsers?: MissionUserOrderByRelationAggregateInput
}
export type MissionWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: MissionWhereInput | MissionWhereInput[]
OR?: MissionWhereInput[]
NOT?: MissionWhereInput | MissionWhereInput[]
name?: StringFilter<"Mission"> | string
logo?: StringNullableFilter<"Mission"> | string | null
oddScope?: StringNullableListFilter<"Mission">
niveau?: StringFilter<"Mission"> | string
intention?: StringFilter<"Mission"> | string
missionType?: StringFilter<"Mission"> | string
donneurDOrdre?: StringFilter<"Mission"> | string
projection?: StringFilter<"Mission"> | string
services?: StringNullableListFilter<"Mission">
participation?: StringNullableFilter<"Mission"> | string | null
profils?: StringNullableListFilter<"Mission">
createdAt?: DateTimeFilter<"Mission"> | Date | string
updatedAt?: DateTimeFilter<"Mission"> | Date | string
creatorId?: StringFilter<"Mission"> | string
leantimeProjectId?: StringNullableFilter<"Mission"> | string | null
outlineCollectionId?: StringNullableFilter<"Mission"> | string | null
rocketChatChannelId?: StringNullableFilter<"Mission"> | string | null
giteaRepositoryUrl?: StringNullableFilter<"Mission"> | string | null
penpotProjectId?: StringNullableFilter<"Mission"> | string | null
creator?: XOR<UserScalarRelationFilter, UserWhereInput>
attachments?: AttachmentListRelationFilter
missionUsers?: MissionUserListRelationFilter
}, "id">
export type MissionOrderByWithAggregationInput = {
id?: SortOrder
name?: SortOrder
logo?: SortOrderInput | SortOrder
oddScope?: SortOrder
niveau?: SortOrder
intention?: SortOrder
missionType?: SortOrder
donneurDOrdre?: SortOrder
projection?: SortOrder
services?: SortOrder
participation?: SortOrderInput | SortOrder
profils?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
creatorId?: SortOrder
leantimeProjectId?: SortOrderInput | SortOrder
outlineCollectionId?: SortOrderInput | SortOrder
rocketChatChannelId?: SortOrderInput | SortOrder
giteaRepositoryUrl?: SortOrderInput | SortOrder
penpotProjectId?: SortOrderInput | SortOrder
_count?: MissionCountOrderByAggregateInput
_max?: MissionMaxOrderByAggregateInput
_min?: MissionMinOrderByAggregateInput
}
export type MissionScalarWhereWithAggregatesInput = {
AND?: MissionScalarWhereWithAggregatesInput | MissionScalarWhereWithAggregatesInput[]
OR?: MissionScalarWhereWithAggregatesInput[]
NOT?: MissionScalarWhereWithAggregatesInput | MissionScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"Mission"> | string
name?: StringWithAggregatesFilter<"Mission"> | string
logo?: StringNullableWithAggregatesFilter<"Mission"> | string | null
oddScope?: StringNullableListFilter<"Mission">
niveau?: StringWithAggregatesFilter<"Mission"> | string
intention?: StringWithAggregatesFilter<"Mission"> | string
missionType?: StringWithAggregatesFilter<"Mission"> | string
donneurDOrdre?: StringWithAggregatesFilter<"Mission"> | string
projection?: StringWithAggregatesFilter<"Mission"> | string
services?: StringNullableListFilter<"Mission">
participation?: StringNullableWithAggregatesFilter<"Mission"> | string | null
profils?: StringNullableListFilter<"Mission">
createdAt?: DateTimeWithAggregatesFilter<"Mission"> | Date | string
updatedAt?: DateTimeWithAggregatesFilter<"Mission"> | Date | string
creatorId?: StringWithAggregatesFilter<"Mission"> | string
leantimeProjectId?: StringNullableWithAggregatesFilter<"Mission"> | string | null
outlineCollectionId?: StringNullableWithAggregatesFilter<"Mission"> | string | null
rocketChatChannelId?: StringNullableWithAggregatesFilter<"Mission"> | string | null
giteaRepositoryUrl?: StringNullableWithAggregatesFilter<"Mission"> | string | null
penpotProjectId?: StringNullableWithAggregatesFilter<"Mission"> | string | null
}
export type AttachmentWhereInput = {
AND?: AttachmentWhereInput | AttachmentWhereInput[]
OR?: AttachmentWhereInput[]
NOT?: AttachmentWhereInput | AttachmentWhereInput[]
id?: StringFilter<"Attachment"> | string
filename?: StringFilter<"Attachment"> | string
filePath?: StringFilter<"Attachment"> | string
fileType?: StringFilter<"Attachment"> | string
fileSize?: IntFilter<"Attachment"> | number
createdAt?: DateTimeFilter<"Attachment"> | Date | string
updatedAt?: DateTimeFilter<"Attachment"> | Date | string
missionId?: StringFilter<"Attachment"> | string
uploaderId?: StringFilter<"Attachment"> | string
mission?: XOR<MissionScalarRelationFilter, MissionWhereInput>
uploader?: XOR<UserScalarRelationFilter, UserWhereInput>
}
export type AttachmentOrderByWithRelationInput = {
id?: SortOrder
filename?: SortOrder
filePath?: SortOrder
fileType?: SortOrder
fileSize?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
missionId?: SortOrder
uploaderId?: SortOrder
mission?: MissionOrderByWithRelationInput
uploader?: UserOrderByWithRelationInput
}
export type AttachmentWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: AttachmentWhereInput | AttachmentWhereInput[]
OR?: AttachmentWhereInput[]
NOT?: AttachmentWhereInput | AttachmentWhereInput[]
filename?: StringFilter<"Attachment"> | string
filePath?: StringFilter<"Attachment"> | string
fileType?: StringFilter<"Attachment"> | string
fileSize?: IntFilter<"Attachment"> | number
createdAt?: DateTimeFilter<"Attachment"> | Date | string
updatedAt?: DateTimeFilter<"Attachment"> | Date | string
missionId?: StringFilter<"Attachment"> | string
uploaderId?: StringFilter<"Attachment"> | string
mission?: XOR<MissionScalarRelationFilter, MissionWhereInput>
uploader?: XOR<UserScalarRelationFilter, UserWhereInput>
}, "id">
export type AttachmentOrderByWithAggregationInput = {
id?: SortOrder
filename?: SortOrder
filePath?: SortOrder
fileType?: SortOrder
fileSize?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
missionId?: SortOrder
uploaderId?: SortOrder
_count?: AttachmentCountOrderByAggregateInput
_avg?: AttachmentAvgOrderByAggregateInput
_max?: AttachmentMaxOrderByAggregateInput
_min?: AttachmentMinOrderByAggregateInput
_sum?: AttachmentSumOrderByAggregateInput
}
export type AttachmentScalarWhereWithAggregatesInput = {
AND?: AttachmentScalarWhereWithAggregatesInput | AttachmentScalarWhereWithAggregatesInput[]
OR?: AttachmentScalarWhereWithAggregatesInput[]
NOT?: AttachmentScalarWhereWithAggregatesInput | AttachmentScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"Attachment"> | string
filename?: StringWithAggregatesFilter<"Attachment"> | string
filePath?: StringWithAggregatesFilter<"Attachment"> | string
fileType?: StringWithAggregatesFilter<"Attachment"> | string
fileSize?: IntWithAggregatesFilter<"Attachment"> | number
createdAt?: DateTimeWithAggregatesFilter<"Attachment"> | Date | string
updatedAt?: DateTimeWithAggregatesFilter<"Attachment"> | Date | string
missionId?: StringWithAggregatesFilter<"Attachment"> | string
uploaderId?: StringWithAggregatesFilter<"Attachment"> | string
}
export type MissionUserWhereInput = {
AND?: MissionUserWhereInput | MissionUserWhereInput[]
OR?: MissionUserWhereInput[]
NOT?: MissionUserWhereInput | MissionUserWhereInput[]
id?: StringFilter<"MissionUser"> | string
role?: StringFilter<"MissionUser"> | string
createdAt?: DateTimeFilter<"MissionUser"> | Date | string
updatedAt?: DateTimeFilter<"MissionUser"> | Date | string
missionId?: StringFilter<"MissionUser"> | string
userId?: StringFilter<"MissionUser"> | string
mission?: XOR<MissionScalarRelationFilter, MissionWhereInput>
user?: XOR<UserScalarRelationFilter, UserWhereInput>
}
export type MissionUserOrderByWithRelationInput = {
id?: SortOrder
role?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
missionId?: SortOrder
userId?: SortOrder
mission?: MissionOrderByWithRelationInput
user?: UserOrderByWithRelationInput
}
export type MissionUserWhereUniqueInput = Prisma.AtLeast<{
id?: string
missionId_userId_role?: MissionUserMissionIdUserIdRoleCompoundUniqueInput
AND?: MissionUserWhereInput | MissionUserWhereInput[]
OR?: MissionUserWhereInput[]
NOT?: MissionUserWhereInput | MissionUserWhereInput[]
role?: StringFilter<"MissionUser"> | string
createdAt?: DateTimeFilter<"MissionUser"> | Date | string
updatedAt?: DateTimeFilter<"MissionUser"> | Date | string
missionId?: StringFilter<"MissionUser"> | string
userId?: StringFilter<"MissionUser"> | string
mission?: XOR<MissionScalarRelationFilter, MissionWhereInput>
user?: XOR<UserScalarRelationFilter, UserWhereInput>
}, "id" | "missionId_userId_role">
export type MissionUserOrderByWithAggregationInput = {
id?: SortOrder
role?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
missionId?: SortOrder
userId?: SortOrder
_count?: MissionUserCountOrderByAggregateInput
_max?: MissionUserMaxOrderByAggregateInput
_min?: MissionUserMinOrderByAggregateInput
}
export type MissionUserScalarWhereWithAggregatesInput = {
AND?: MissionUserScalarWhereWithAggregatesInput | MissionUserScalarWhereWithAggregatesInput[]
OR?: MissionUserScalarWhereWithAggregatesInput[]
NOT?: MissionUserScalarWhereWithAggregatesInput | MissionUserScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"MissionUser"> | string
role?: StringWithAggregatesFilter<"MissionUser"> | string
createdAt?: DateTimeWithAggregatesFilter<"MissionUser"> | Date | string
updatedAt?: DateTimeWithAggregatesFilter<"MissionUser"> | Date | string
missionId?: StringWithAggregatesFilter<"MissionUser"> | string
userId?: StringWithAggregatesFilter<"MissionUser"> | string
}
export type UserCreateInput = {
id?: string
email: string
password: string
createdAt?: Date | string
updatedAt?: Date | string
calendars?: CalendarCreateNestedManyWithoutUserInput
events?: EventCreateNestedManyWithoutUserInput
mailCredentials?: MailCredentialsCreateNestedManyWithoutUserInput
webdavCredentials?: WebDAVCredentialsCreateNestedOneWithoutUserInput
announcements?: AnnouncementCreateNestedManyWithoutAuthorInput
missions?: MissionCreateNestedManyWithoutCreatorInput
missionUsers?: MissionUserCreateNestedManyWithoutUserInput
uploadedAttachments?: AttachmentCreateNestedManyWithoutUploaderInput
}
export type UserUncheckedCreateInput = {
id?: string
email: string
password: string
createdAt?: Date | string
updatedAt?: Date | string
calendars?: CalendarUncheckedCreateNestedManyWithoutUserInput
events?: EventUncheckedCreateNestedManyWithoutUserInput
mailCredentials?: MailCredentialsUncheckedCreateNestedManyWithoutUserInput
webdavCredentials?: WebDAVCredentialsUncheckedCreateNestedOneWithoutUserInput
announcements?: AnnouncementUncheckedCreateNestedManyWithoutAuthorInput
missions?: MissionUncheckedCreateNestedManyWithoutCreatorInput
missionUsers?: MissionUserUncheckedCreateNestedManyWithoutUserInput
uploadedAttachments?: AttachmentUncheckedCreateNestedManyWithoutUploaderInput
}
export type UserUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
email?: StringFieldUpdateOperationsInput | string
password?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
calendars?: CalendarUpdateManyWithoutUserNestedInput
events?: EventUpdateManyWithoutUserNestedInput
mailCredentials?: MailCredentialsUpdateManyWithoutUserNestedInput
webdavCredentials?: WebDAVCredentialsUpdateOneWithoutUserNestedInput
announcements?: AnnouncementUpdateManyWithoutAuthorNestedInput
missions?: MissionUpdateManyWithoutCreatorNestedInput
missionUsers?: MissionUserUpdateManyWithoutUserNestedInput
uploadedAttachments?: AttachmentUpdateManyWithoutUploaderNestedInput
}
export type UserUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
email?: StringFieldUpdateOperationsInput | string
password?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
calendars?: CalendarUncheckedUpdateManyWithoutUserNestedInput
events?: EventUncheckedUpdateManyWithoutUserNestedInput
mailCredentials?: MailCredentialsUncheckedUpdateManyWithoutUserNestedInput
webdavCredentials?: WebDAVCredentialsUncheckedUpdateOneWithoutUserNestedInput
announcements?: AnnouncementUncheckedUpdateManyWithoutAuthorNestedInput
missions?: MissionUncheckedUpdateManyWithoutCreatorNestedInput
missionUsers?: MissionUserUncheckedUpdateManyWithoutUserNestedInput
uploadedAttachments?: AttachmentUncheckedUpdateManyWithoutUploaderNestedInput
}
export type UserCreateManyInput = {
id?: string
email: string
password: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type UserUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
email?: StringFieldUpdateOperationsInput | string
password?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type UserUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
email?: StringFieldUpdateOperationsInput | string
password?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type CalendarCreateInput = {
id?: string
name: string
color?: string
description?: string | null
createdAt?: Date | string
updatedAt?: Date | string
events?: EventCreateNestedManyWithoutCalendarInput
user: UserCreateNestedOneWithoutCalendarsInput
}
export type CalendarUncheckedCreateInput = {
id?: string
name: string
color?: string
description?: string | null
userId: string
createdAt?: Date | string
updatedAt?: Date | string
events?: EventUncheckedCreateNestedManyWithoutCalendarInput
}
export type CalendarUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
color?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
events?: EventUpdateManyWithoutCalendarNestedInput
user?: UserUpdateOneRequiredWithoutCalendarsNestedInput
}
export type CalendarUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
color?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
userId?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
events?: EventUncheckedUpdateManyWithoutCalendarNestedInput
}
export type CalendarCreateManyInput = {
id?: string
name: string
color?: string
description?: string | null
userId: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type CalendarUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
color?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type CalendarUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
color?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
userId?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type EventCreateInput = {
id?: string
title: string
description?: string | null
start: Date | string
end: Date | string
location?: string | null
isAllDay?: boolean
createdAt?: Date | string
updatedAt?: Date | string
calendar: CalendarCreateNestedOneWithoutEventsInput
user: UserCreateNestedOneWithoutEventsInput
}
export type EventUncheckedCreateInput = {
id?: string
title: string
description?: string | null
start: Date | string
end: Date | string
location?: string | null
isAllDay?: boolean
calendarId: string
userId: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type EventUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
start?: DateTimeFieldUpdateOperationsInput | Date | string
end?: DateTimeFieldUpdateOperationsInput | Date | string
location?: NullableStringFieldUpdateOperationsInput | string | null
isAllDay?: BoolFieldUpdateOperationsInput | boolean
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
calendar?: CalendarUpdateOneRequiredWithoutEventsNestedInput
user?: UserUpdateOneRequiredWithoutEventsNestedInput
}
export type EventUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
start?: DateTimeFieldUpdateOperationsInput | Date | string
end?: DateTimeFieldUpdateOperationsInput | Date | string
location?: NullableStringFieldUpdateOperationsInput | string | null
isAllDay?: BoolFieldUpdateOperationsInput | boolean
calendarId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type EventCreateManyInput = {
id?: string
title: string
description?: string | null
start: Date | string
end: Date | string
location?: string | null
isAllDay?: boolean
calendarId: string
userId: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type EventUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
start?: DateTimeFieldUpdateOperationsInput | Date | string
end?: DateTimeFieldUpdateOperationsInput | Date | string
location?: NullableStringFieldUpdateOperationsInput | string | null
isAllDay?: BoolFieldUpdateOperationsInput | boolean
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type EventUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
start?: DateTimeFieldUpdateOperationsInput | Date | string
end?: DateTimeFieldUpdateOperationsInput | Date | string
location?: NullableStringFieldUpdateOperationsInput | string | null
isAllDay?: BoolFieldUpdateOperationsInput | boolean
calendarId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type MailCredentialsCreateInput = {
id?: string
email: string
password?: string | null
host: string
port: number
secure?: boolean
use_oauth?: boolean
refresh_token?: string | null
access_token?: string | null
token_expiry?: Date | string | null
smtp_host?: string | null
smtp_port?: number | null
smtp_secure?: boolean | null
display_name?: string | null
color?: string | null
createdAt?: Date | string
updatedAt?: Date | string
user: UserCreateNestedOneWithoutMailCredentialsInput
}
export type MailCredentialsUncheckedCreateInput = {
id?: string
userId: string
email: string
password?: string | null
host: string
port: number
secure?: boolean
use_oauth?: boolean
refresh_token?: string | null
access_token?: string | null
token_expiry?: Date | string | null
smtp_host?: string | null
smtp_port?: number | null
smtp_secure?: boolean | null
display_name?: string | null
color?: string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type MailCredentialsUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
email?: StringFieldUpdateOperationsInput | string
password?: NullableStringFieldUpdateOperationsInput | string | null
host?: StringFieldUpdateOperationsInput | string
port?: IntFieldUpdateOperationsInput | number
secure?: BoolFieldUpdateOperationsInput | boolean
use_oauth?: BoolFieldUpdateOperationsInput | boolean
refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
access_token?: NullableStringFieldUpdateOperationsInput | string | null
token_expiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
smtp_host?: NullableStringFieldUpdateOperationsInput | string | null
smtp_port?: NullableIntFieldUpdateOperationsInput | number | null
smtp_secure?: NullableBoolFieldUpdateOperationsInput | boolean | null
display_name?: NullableStringFieldUpdateOperationsInput | string | null
color?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
user?: UserUpdateOneRequiredWithoutMailCredentialsNestedInput
}
export type MailCredentialsUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
email?: StringFieldUpdateOperationsInput | string
password?: NullableStringFieldUpdateOperationsInput | string | null
host?: StringFieldUpdateOperationsInput | string
port?: IntFieldUpdateOperationsInput | number
secure?: BoolFieldUpdateOperationsInput | boolean
use_oauth?: BoolFieldUpdateOperationsInput | boolean
refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
access_token?: NullableStringFieldUpdateOperationsInput | string | null
token_expiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
smtp_host?: NullableStringFieldUpdateOperationsInput | string | null
smtp_port?: NullableIntFieldUpdateOperationsInput | number | null
smtp_secure?: NullableBoolFieldUpdateOperationsInput | boolean | null
display_name?: NullableStringFieldUpdateOperationsInput | string | null
color?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type MailCredentialsCreateManyInput = {
id?: string
userId: string
email: string
password?: string | null
host: string
port: number
secure?: boolean
use_oauth?: boolean
refresh_token?: string | null
access_token?: string | null
token_expiry?: Date | string | null
smtp_host?: string | null
smtp_port?: number | null
smtp_secure?: boolean | null
display_name?: string | null
color?: string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type MailCredentialsUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
email?: StringFieldUpdateOperationsInput | string
password?: NullableStringFieldUpdateOperationsInput | string | null
host?: StringFieldUpdateOperationsInput | string
port?: IntFieldUpdateOperationsInput | number
secure?: BoolFieldUpdateOperationsInput | boolean
use_oauth?: BoolFieldUpdateOperationsInput | boolean
refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
access_token?: NullableStringFieldUpdateOperationsInput | string | null
token_expiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
smtp_host?: NullableStringFieldUpdateOperationsInput | string | null
smtp_port?: NullableIntFieldUpdateOperationsInput | number | null
smtp_secure?: NullableBoolFieldUpdateOperationsInput | boolean | null
display_name?: NullableStringFieldUpdateOperationsInput | string | null
color?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type MailCredentialsUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
email?: StringFieldUpdateOperationsInput | string
password?: NullableStringFieldUpdateOperationsInput | string | null
host?: StringFieldUpdateOperationsInput | string
port?: IntFieldUpdateOperationsInput | number
secure?: BoolFieldUpdateOperationsInput | boolean
use_oauth?: BoolFieldUpdateOperationsInput | boolean
refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
access_token?: NullableStringFieldUpdateOperationsInput | string | null
token_expiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
smtp_host?: NullableStringFieldUpdateOperationsInput | string | null
smtp_port?: NullableIntFieldUpdateOperationsInput | number | null
smtp_secure?: NullableBoolFieldUpdateOperationsInput | boolean | null
display_name?: NullableStringFieldUpdateOperationsInput | string | null
color?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type WebDAVCredentialsCreateInput = {
id?: string
username: string
password: string
createdAt?: Date | string
updatedAt?: Date | string
user: UserCreateNestedOneWithoutWebdavCredentialsInput
}
export type WebDAVCredentialsUncheckedCreateInput = {
id?: string
userId: string
username: string
password: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type WebDAVCredentialsUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
username?: StringFieldUpdateOperationsInput | string
password?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
user?: UserUpdateOneRequiredWithoutWebdavCredentialsNestedInput
}
export type WebDAVCredentialsUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
username?: StringFieldUpdateOperationsInput | string
password?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type WebDAVCredentialsCreateManyInput = {
id?: string
userId: string
username: string
password: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type WebDAVCredentialsUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
username?: StringFieldUpdateOperationsInput | string
password?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type WebDAVCredentialsUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
username?: StringFieldUpdateOperationsInput | string
password?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type AnnouncementCreateInput = {
id?: string
title: string
content: string
createdAt?: Date | string
updatedAt?: Date | string
targetRoles?: AnnouncementCreatetargetRolesInput | string[]
author: UserCreateNestedOneWithoutAnnouncementsInput
}
export type AnnouncementUncheckedCreateInput = {
id?: string
title: string
content: string
createdAt?: Date | string
updatedAt?: Date | string
authorId: string
targetRoles?: AnnouncementCreatetargetRolesInput | string[]
}
export type AnnouncementUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
content?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
targetRoles?: AnnouncementUpdatetargetRolesInput | string[]
author?: UserUpdateOneRequiredWithoutAnnouncementsNestedInput
}
export type AnnouncementUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
content?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
authorId?: StringFieldUpdateOperationsInput | string
targetRoles?: AnnouncementUpdatetargetRolesInput | string[]
}
export type AnnouncementCreateManyInput = {
id?: string
title: string
content: string
createdAt?: Date | string
updatedAt?: Date | string
authorId: string
targetRoles?: AnnouncementCreatetargetRolesInput | string[]
}
export type AnnouncementUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
content?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
targetRoles?: AnnouncementUpdatetargetRolesInput | string[]
}
export type AnnouncementUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
content?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
authorId?: StringFieldUpdateOperationsInput | string
targetRoles?: AnnouncementUpdatetargetRolesInput | string[]
}
export type MissionCreateInput = {
id?: string
name: string
logo?: string | null
oddScope?: MissionCreateoddScopeInput | string[]
niveau: string
intention: string
missionType: string
donneurDOrdre: string
projection: string
services?: MissionCreateservicesInput | string[]
participation?: string | null
profils?: MissionCreateprofilsInput | string[]
createdAt?: Date | string
updatedAt?: Date | string
leantimeProjectId?: string | null
outlineCollectionId?: string | null
rocketChatChannelId?: string | null
giteaRepositoryUrl?: string | null
penpotProjectId?: string | null
creator: UserCreateNestedOneWithoutMissionsInput
attachments?: AttachmentCreateNestedManyWithoutMissionInput
missionUsers?: MissionUserCreateNestedManyWithoutMissionInput
}
export type MissionUncheckedCreateInput = {
id?: string
name: string
logo?: string | null
oddScope?: MissionCreateoddScopeInput | string[]
niveau: string
intention: string
missionType: string
donneurDOrdre: string
projection: string
services?: MissionCreateservicesInput | string[]
participation?: string | null
profils?: MissionCreateprofilsInput | string[]
createdAt?: Date | string
updatedAt?: Date | string
creatorId: string
leantimeProjectId?: string | null
outlineCollectionId?: string | null
rocketChatChannelId?: string | null
giteaRepositoryUrl?: string | null
penpotProjectId?: string | null
attachments?: AttachmentUncheckedCreateNestedManyWithoutMissionInput
missionUsers?: MissionUserUncheckedCreateNestedManyWithoutMissionInput
}
export type MissionUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
logo?: NullableStringFieldUpdateOperationsInput | string | null
oddScope?: MissionUpdateoddScopeInput | string[]
niveau?: StringFieldUpdateOperationsInput | string
intention?: StringFieldUpdateOperationsInput | string
missionType?: StringFieldUpdateOperationsInput | string
donneurDOrdre?: StringFieldUpdateOperationsInput | string
projection?: StringFieldUpdateOperationsInput | string
services?: MissionUpdateservicesInput | string[]
participation?: NullableStringFieldUpdateOperationsInput | string | null
profils?: MissionUpdateprofilsInput | string[]
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
leantimeProjectId?: NullableStringFieldUpdateOperationsInput | string | null
outlineCollectionId?: NullableStringFieldUpdateOperationsInput | string | null
rocketChatChannelId?: NullableStringFieldUpdateOperationsInput | string | null
giteaRepositoryUrl?: NullableStringFieldUpdateOperationsInput | string | null
penpotProjectId?: NullableStringFieldUpdateOperationsInput | string | null
creator?: UserUpdateOneRequiredWithoutMissionsNestedInput
attachments?: AttachmentUpdateManyWithoutMissionNestedInput
missionUsers?: MissionUserUpdateManyWithoutMissionNestedInput
}
export type MissionUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
logo?: NullableStringFieldUpdateOperationsInput | string | null
oddScope?: MissionUpdateoddScopeInput | string[]
niveau?: StringFieldUpdateOperationsInput | string
intention?: StringFieldUpdateOperationsInput | string
missionType?: StringFieldUpdateOperationsInput | string
donneurDOrdre?: StringFieldUpdateOperationsInput | string
projection?: StringFieldUpdateOperationsInput | string
services?: MissionUpdateservicesInput | string[]
participation?: NullableStringFieldUpdateOperationsInput | string | null
profils?: MissionUpdateprofilsInput | string[]
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
creatorId?: StringFieldUpdateOperationsInput | string
leantimeProjectId?: NullableStringFieldUpdateOperationsInput | string | null
outlineCollectionId?: NullableStringFieldUpdateOperationsInput | string | null
rocketChatChannelId?: NullableStringFieldUpdateOperationsInput | string | null
giteaRepositoryUrl?: NullableStringFieldUpdateOperationsInput | string | null
penpotProjectId?: NullableStringFieldUpdateOperationsInput | string | null
attachments?: AttachmentUncheckedUpdateManyWithoutMissionNestedInput
missionUsers?: MissionUserUncheckedUpdateManyWithoutMissionNestedInput
}
export type MissionCreateManyInput = {
id?: string
name: string
logo?: string | null
oddScope?: MissionCreateoddScopeInput | string[]
niveau: string
intention: string
missionType: string
donneurDOrdre: string
projection: string
services?: MissionCreateservicesInput | string[]
participation?: string | null
profils?: MissionCreateprofilsInput | string[]
createdAt?: Date | string
updatedAt?: Date | string
creatorId: string
leantimeProjectId?: string | null
outlineCollectionId?: string | null
rocketChatChannelId?: string | null
giteaRepositoryUrl?: string | null
penpotProjectId?: string | null
}
export type MissionUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
logo?: NullableStringFieldUpdateOperationsInput | string | null
oddScope?: MissionUpdateoddScopeInput | string[]
niveau?: StringFieldUpdateOperationsInput | string
intention?: StringFieldUpdateOperationsInput | string
missionType?: StringFieldUpdateOperationsInput | string
donneurDOrdre?: StringFieldUpdateOperationsInput | string
projection?: StringFieldUpdateOperationsInput | string
services?: MissionUpdateservicesInput | string[]
participation?: NullableStringFieldUpdateOperationsInput | string | null
profils?: MissionUpdateprofilsInput | string[]
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
leantimeProjectId?: NullableStringFieldUpdateOperationsInput | string | null
outlineCollectionId?: NullableStringFieldUpdateOperationsInput | string | null
rocketChatChannelId?: NullableStringFieldUpdateOperationsInput | string | null
giteaRepositoryUrl?: NullableStringFieldUpdateOperationsInput | string | null
penpotProjectId?: NullableStringFieldUpdateOperationsInput | string | null
}
export type MissionUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
logo?: NullableStringFieldUpdateOperationsInput | string | null
oddScope?: MissionUpdateoddScopeInput | string[]
niveau?: StringFieldUpdateOperationsInput | string
intention?: StringFieldUpdateOperationsInput | string
missionType?: StringFieldUpdateOperationsInput | string
donneurDOrdre?: StringFieldUpdateOperationsInput | string
projection?: StringFieldUpdateOperationsInput | string
services?: MissionUpdateservicesInput | string[]
participation?: NullableStringFieldUpdateOperationsInput | string | null
profils?: MissionUpdateprofilsInput | string[]
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
creatorId?: StringFieldUpdateOperationsInput | string
leantimeProjectId?: NullableStringFieldUpdateOperationsInput | string | null
outlineCollectionId?: NullableStringFieldUpdateOperationsInput | string | null
rocketChatChannelId?: NullableStringFieldUpdateOperationsInput | string | null
giteaRepositoryUrl?: NullableStringFieldUpdateOperationsInput | string | null
penpotProjectId?: NullableStringFieldUpdateOperationsInput | string | null
}
export type AttachmentCreateInput = {
id?: string
filename: string
filePath: string
fileType: string
fileSize: number
createdAt?: Date | string
updatedAt?: Date | string
mission: MissionCreateNestedOneWithoutAttachmentsInput
uploader: UserCreateNestedOneWithoutUploadedAttachmentsInput
}
export type AttachmentUncheckedCreateInput = {
id?: string
filename: string
filePath: string
fileType: string
fileSize: number
createdAt?: Date | string
updatedAt?: Date | string
missionId: string
uploaderId: string
}
export type AttachmentUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
filename?: StringFieldUpdateOperationsInput | string
filePath?: StringFieldUpdateOperationsInput | string
fileType?: StringFieldUpdateOperationsInput | string
fileSize?: IntFieldUpdateOperationsInput | number
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
mission?: MissionUpdateOneRequiredWithoutAttachmentsNestedInput
uploader?: UserUpdateOneRequiredWithoutUploadedAttachmentsNestedInput
}
export type AttachmentUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
filename?: StringFieldUpdateOperationsInput | string
filePath?: StringFieldUpdateOperationsInput | string
fileType?: StringFieldUpdateOperationsInput | string
fileSize?: IntFieldUpdateOperationsInput | number
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
missionId?: StringFieldUpdateOperationsInput | string
uploaderId?: StringFieldUpdateOperationsInput | string
}
export type AttachmentCreateManyInput = {
id?: string
filename: string
filePath: string
fileType: string
fileSize: number
createdAt?: Date | string
updatedAt?: Date | string
missionId: string
uploaderId: string
}
export type AttachmentUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
filename?: StringFieldUpdateOperationsInput | string
filePath?: StringFieldUpdateOperationsInput | string
fileType?: StringFieldUpdateOperationsInput | string
fileSize?: IntFieldUpdateOperationsInput | number
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type AttachmentUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
filename?: StringFieldUpdateOperationsInput | string
filePath?: StringFieldUpdateOperationsInput | string
fileType?: StringFieldUpdateOperationsInput | string
fileSize?: IntFieldUpdateOperationsInput | number
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
missionId?: StringFieldUpdateOperationsInput | string
uploaderId?: StringFieldUpdateOperationsInput | string
}
export type MissionUserCreateInput = {
id?: string
role: string
createdAt?: Date | string
updatedAt?: Date | string
mission: MissionCreateNestedOneWithoutMissionUsersInput
user: UserCreateNestedOneWithoutMissionUsersInput
}
export type MissionUserUncheckedCreateInput = {
id?: string
role: string
createdAt?: Date | string
updatedAt?: Date | string
missionId: string
userId: string
}
export type MissionUserUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
role?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
mission?: MissionUpdateOneRequiredWithoutMissionUsersNestedInput
user?: UserUpdateOneRequiredWithoutMissionUsersNestedInput
}
export type MissionUserUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
role?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
missionId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
}
export type MissionUserCreateManyInput = {
id?: string
role: string
createdAt?: Date | string
updatedAt?: Date | string
missionId: string
userId: string
}
export type MissionUserUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
role?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type MissionUserUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
role?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
missionId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | 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 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 CalendarListRelationFilter = {
every?: CalendarWhereInput
some?: CalendarWhereInput
none?: CalendarWhereInput
}
export type EventListRelationFilter = {
every?: EventWhereInput
some?: EventWhereInput
none?: EventWhereInput
}
export type MailCredentialsListRelationFilter = {
every?: MailCredentialsWhereInput
some?: MailCredentialsWhereInput
none?: MailCredentialsWhereInput
}
export type WebDAVCredentialsNullableScalarRelationFilter = {
is?: WebDAVCredentialsWhereInput | null
isNot?: WebDAVCredentialsWhereInput | null
}
export type AnnouncementListRelationFilter = {
every?: AnnouncementWhereInput
some?: AnnouncementWhereInput
none?: AnnouncementWhereInput
}
export type MissionListRelationFilter = {
every?: MissionWhereInput
some?: MissionWhereInput
none?: MissionWhereInput
}
export type MissionUserListRelationFilter = {
every?: MissionUserWhereInput
some?: MissionUserWhereInput
none?: MissionUserWhereInput
}
export type AttachmentListRelationFilter = {
every?: AttachmentWhereInput
some?: AttachmentWhereInput
none?: AttachmentWhereInput
}
export type CalendarOrderByRelationAggregateInput = {
_count?: SortOrder
}
export type EventOrderByRelationAggregateInput = {
_count?: SortOrder
}
export type MailCredentialsOrderByRelationAggregateInput = {
_count?: SortOrder
}
export type AnnouncementOrderByRelationAggregateInput = {
_count?: SortOrder
}
export type MissionOrderByRelationAggregateInput = {
_count?: SortOrder
}
export type MissionUserOrderByRelationAggregateInput = {
_count?: SortOrder
}
export type AttachmentOrderByRelationAggregateInput = {
_count?: SortOrder
}
export type UserCountOrderByAggregateInput = {
id?: SortOrder
email?: SortOrder
password?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type UserMaxOrderByAggregateInput = {
id?: SortOrder
email?: SortOrder
password?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type UserMinOrderByAggregateInput = {
id?: SortOrder
email?: SortOrder
password?: 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 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 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 UserScalarRelationFilter = {
is?: UserWhereInput
isNot?: UserWhereInput
}
export type SortOrderInput = {
sort: SortOrder
nulls?: NullsOrder
}
export type CalendarCountOrderByAggregateInput = {
id?: SortOrder
name?: SortOrder
color?: SortOrder
description?: SortOrder
userId?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type CalendarMaxOrderByAggregateInput = {
id?: SortOrder
name?: SortOrder
color?: SortOrder
description?: SortOrder
userId?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type CalendarMinOrderByAggregateInput = {
id?: SortOrder
name?: SortOrder
color?: SortOrder
description?: SortOrder
userId?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
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 BoolFilter<$PrismaModel = never> = {
equals?: boolean | BooleanFieldRefInput<$PrismaModel>
not?: NestedBoolFilter<$PrismaModel> | boolean
}
export type CalendarScalarRelationFilter = {
is?: CalendarWhereInput
isNot?: CalendarWhereInput
}
export type EventCountOrderByAggregateInput = {
id?: SortOrder
title?: SortOrder
description?: SortOrder
start?: SortOrder
end?: SortOrder
location?: SortOrder
isAllDay?: SortOrder
calendarId?: SortOrder
userId?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type EventMaxOrderByAggregateInput = {
id?: SortOrder
title?: SortOrder
description?: SortOrder
start?: SortOrder
end?: SortOrder
location?: SortOrder
isAllDay?: SortOrder
calendarId?: SortOrder
userId?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type EventMinOrderByAggregateInput = {
id?: SortOrder
title?: SortOrder
description?: SortOrder
start?: SortOrder
end?: SortOrder
location?: SortOrder
isAllDay?: SortOrder
calendarId?: SortOrder
userId?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type BoolWithAggregatesFilter<$PrismaModel = never> = {
equals?: boolean | BooleanFieldRefInput<$PrismaModel>
not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
_count?: NestedIntFilter<$PrismaModel>
_min?: NestedBoolFilter<$PrismaModel>
_max?: NestedBoolFilter<$PrismaModel>
}
export type 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 DateTimeNullableFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
}
export type IntNullableFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel> | null
in?: number[] | 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 BoolNullableFilter<$PrismaModel = never> = {
equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null
not?: NestedBoolNullableFilter<$PrismaModel> | boolean | null
}
export type MailCredentialsUserIdEmailCompoundUniqueInput = {
userId: string
email: string
}
export type MailCredentialsCountOrderByAggregateInput = {
id?: SortOrder
userId?: SortOrder
email?: SortOrder
password?: SortOrder
host?: SortOrder
port?: SortOrder
secure?: SortOrder
use_oauth?: SortOrder
refresh_token?: SortOrder
access_token?: SortOrder
token_expiry?: SortOrder
smtp_host?: SortOrder
smtp_port?: SortOrder
smtp_secure?: SortOrder
display_name?: SortOrder
color?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type MailCredentialsAvgOrderByAggregateInput = {
port?: SortOrder
smtp_port?: SortOrder
}
export type MailCredentialsMaxOrderByAggregateInput = {
id?: SortOrder
userId?: SortOrder
email?: SortOrder
password?: SortOrder
host?: SortOrder
port?: SortOrder
secure?: SortOrder
use_oauth?: SortOrder
refresh_token?: SortOrder
access_token?: SortOrder
token_expiry?: SortOrder
smtp_host?: SortOrder
smtp_port?: SortOrder
smtp_secure?: SortOrder
display_name?: SortOrder
color?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type MailCredentialsMinOrderByAggregateInput = {
id?: SortOrder
userId?: SortOrder
email?: SortOrder
password?: SortOrder
host?: SortOrder
port?: SortOrder
secure?: SortOrder
use_oauth?: SortOrder
refresh_token?: SortOrder
access_token?: SortOrder
token_expiry?: SortOrder
smtp_host?: SortOrder
smtp_port?: SortOrder
smtp_secure?: SortOrder
display_name?: SortOrder
color?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type MailCredentialsSumOrderByAggregateInput = {
port?: SortOrder
smtp_port?: 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 DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null
_count?: NestedIntNullableFilter<$PrismaModel>
_min?: NestedDateTimeNullableFilter<$PrismaModel>
_max?: NestedDateTimeNullableFilter<$PrismaModel>
}
export type IntNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel> | null
in?: number[] | ListIntFieldRefInput<$PrismaModel> | null
notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null
_count?: NestedIntNullableFilter<$PrismaModel>
_avg?: NestedFloatNullableFilter<$PrismaModel>
_sum?: NestedIntNullableFilter<$PrismaModel>
_min?: NestedIntNullableFilter<$PrismaModel>
_max?: NestedIntNullableFilter<$PrismaModel>
}
export type BoolNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null
not?: NestedBoolNullableWithAggregatesFilter<$PrismaModel> | boolean | null
_count?: NestedIntNullableFilter<$PrismaModel>
_min?: NestedBoolNullableFilter<$PrismaModel>
_max?: NestedBoolNullableFilter<$PrismaModel>
}
export type WebDAVCredentialsCountOrderByAggregateInput = {
id?: SortOrder
userId?: SortOrder
username?: SortOrder
password?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type WebDAVCredentialsMaxOrderByAggregateInput = {
id?: SortOrder
userId?: SortOrder
username?: SortOrder
password?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type WebDAVCredentialsMinOrderByAggregateInput = {
id?: SortOrder
userId?: SortOrder
username?: SortOrder
password?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type StringNullableListFilter<$PrismaModel = never> = {
equals?: string[] | ListStringFieldRefInput<$PrismaModel> | null
has?: string | StringFieldRefInput<$PrismaModel> | null
hasEvery?: string[] | ListStringFieldRefInput<$PrismaModel>
hasSome?: string[] | ListStringFieldRefInput<$PrismaModel>
isEmpty?: boolean
}
export type AnnouncementCountOrderByAggregateInput = {
id?: SortOrder
title?: SortOrder
content?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
authorId?: SortOrder
targetRoles?: SortOrder
}
export type AnnouncementMaxOrderByAggregateInput = {
id?: SortOrder
title?: SortOrder
content?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
authorId?: SortOrder
}
export type AnnouncementMinOrderByAggregateInput = {
id?: SortOrder
title?: SortOrder
content?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
authorId?: SortOrder
}
export type MissionCountOrderByAggregateInput = {
id?: SortOrder
name?: SortOrder
logo?: SortOrder
oddScope?: SortOrder
niveau?: SortOrder
intention?: SortOrder
missionType?: SortOrder
donneurDOrdre?: SortOrder
projection?: SortOrder
services?: SortOrder
participation?: SortOrder
profils?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
creatorId?: SortOrder
leantimeProjectId?: SortOrder
outlineCollectionId?: SortOrder
rocketChatChannelId?: SortOrder
giteaRepositoryUrl?: SortOrder
penpotProjectId?: SortOrder
}
export type MissionMaxOrderByAggregateInput = {
id?: SortOrder
name?: SortOrder
logo?: SortOrder
niveau?: SortOrder
intention?: SortOrder
missionType?: SortOrder
donneurDOrdre?: SortOrder
projection?: SortOrder
participation?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
creatorId?: SortOrder
leantimeProjectId?: SortOrder
outlineCollectionId?: SortOrder
rocketChatChannelId?: SortOrder
giteaRepositoryUrl?: SortOrder
penpotProjectId?: SortOrder
}
export type MissionMinOrderByAggregateInput = {
id?: SortOrder
name?: SortOrder
logo?: SortOrder
niveau?: SortOrder
intention?: SortOrder
missionType?: SortOrder
donneurDOrdre?: SortOrder
projection?: SortOrder
participation?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
creatorId?: SortOrder
leantimeProjectId?: SortOrder
outlineCollectionId?: SortOrder
rocketChatChannelId?: SortOrder
giteaRepositoryUrl?: SortOrder
penpotProjectId?: SortOrder
}
export type MissionScalarRelationFilter = {
is?: MissionWhereInput
isNot?: MissionWhereInput
}
export type AttachmentCountOrderByAggregateInput = {
id?: SortOrder
filename?: SortOrder
filePath?: SortOrder
fileType?: SortOrder
fileSize?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
missionId?: SortOrder
uploaderId?: SortOrder
}
export type AttachmentAvgOrderByAggregateInput = {
fileSize?: SortOrder
}
export type AttachmentMaxOrderByAggregateInput = {
id?: SortOrder
filename?: SortOrder
filePath?: SortOrder
fileType?: SortOrder
fileSize?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
missionId?: SortOrder
uploaderId?: SortOrder
}
export type AttachmentMinOrderByAggregateInput = {
id?: SortOrder
filename?: SortOrder
filePath?: SortOrder
fileType?: SortOrder
fileSize?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
missionId?: SortOrder
uploaderId?: SortOrder
}
export type AttachmentSumOrderByAggregateInput = {
fileSize?: SortOrder
}
export type MissionUserMissionIdUserIdRoleCompoundUniqueInput = {
missionId: string
userId: string
role: string
}
export type MissionUserCountOrderByAggregateInput = {
id?: SortOrder
role?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
missionId?: SortOrder
userId?: SortOrder
}
export type MissionUserMaxOrderByAggregateInput = {
id?: SortOrder
role?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
missionId?: SortOrder
userId?: SortOrder
}
export type MissionUserMinOrderByAggregateInput = {
id?: SortOrder
role?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
missionId?: SortOrder
userId?: SortOrder
}
export type CalendarCreateNestedManyWithoutUserInput = {
create?: XOR<CalendarCreateWithoutUserInput, CalendarUncheckedCreateWithoutUserInput> | CalendarCreateWithoutUserInput[] | CalendarUncheckedCreateWithoutUserInput[]
connectOrCreate?: CalendarCreateOrConnectWithoutUserInput | CalendarCreateOrConnectWithoutUserInput[]
createMany?: CalendarCreateManyUserInputEnvelope
connect?: CalendarWhereUniqueInput | CalendarWhereUniqueInput[]
}
export type EventCreateNestedManyWithoutUserInput = {
create?: XOR<EventCreateWithoutUserInput, EventUncheckedCreateWithoutUserInput> | EventCreateWithoutUserInput[] | EventUncheckedCreateWithoutUserInput[]
connectOrCreate?: EventCreateOrConnectWithoutUserInput | EventCreateOrConnectWithoutUserInput[]
createMany?: EventCreateManyUserInputEnvelope
connect?: EventWhereUniqueInput | EventWhereUniqueInput[]
}
export type MailCredentialsCreateNestedManyWithoutUserInput = {
create?: XOR<MailCredentialsCreateWithoutUserInput, MailCredentialsUncheckedCreateWithoutUserInput> | MailCredentialsCreateWithoutUserInput[] | MailCredentialsUncheckedCreateWithoutUserInput[]
connectOrCreate?: MailCredentialsCreateOrConnectWithoutUserInput | MailCredentialsCreateOrConnectWithoutUserInput[]
createMany?: MailCredentialsCreateManyUserInputEnvelope
connect?: MailCredentialsWhereUniqueInput | MailCredentialsWhereUniqueInput[]
}
export type WebDAVCredentialsCreateNestedOneWithoutUserInput = {
create?: XOR<WebDAVCredentialsCreateWithoutUserInput, WebDAVCredentialsUncheckedCreateWithoutUserInput>
connectOrCreate?: WebDAVCredentialsCreateOrConnectWithoutUserInput
connect?: WebDAVCredentialsWhereUniqueInput
}
export type AnnouncementCreateNestedManyWithoutAuthorInput = {
create?: XOR<AnnouncementCreateWithoutAuthorInput, AnnouncementUncheckedCreateWithoutAuthorInput> | AnnouncementCreateWithoutAuthorInput[] | AnnouncementUncheckedCreateWithoutAuthorInput[]
connectOrCreate?: AnnouncementCreateOrConnectWithoutAuthorInput | AnnouncementCreateOrConnectWithoutAuthorInput[]
createMany?: AnnouncementCreateManyAuthorInputEnvelope
connect?: AnnouncementWhereUniqueInput | AnnouncementWhereUniqueInput[]
}
export type MissionCreateNestedManyWithoutCreatorInput = {
create?: XOR<MissionCreateWithoutCreatorInput, MissionUncheckedCreateWithoutCreatorInput> | MissionCreateWithoutCreatorInput[] | MissionUncheckedCreateWithoutCreatorInput[]
connectOrCreate?: MissionCreateOrConnectWithoutCreatorInput | MissionCreateOrConnectWithoutCreatorInput[]
createMany?: MissionCreateManyCreatorInputEnvelope
connect?: MissionWhereUniqueInput | MissionWhereUniqueInput[]
}
export type MissionUserCreateNestedManyWithoutUserInput = {
create?: XOR<MissionUserCreateWithoutUserInput, MissionUserUncheckedCreateWithoutUserInput> | MissionUserCreateWithoutUserInput[] | MissionUserUncheckedCreateWithoutUserInput[]
connectOrCreate?: MissionUserCreateOrConnectWithoutUserInput | MissionUserCreateOrConnectWithoutUserInput[]
createMany?: MissionUserCreateManyUserInputEnvelope
connect?: MissionUserWhereUniqueInput | MissionUserWhereUniqueInput[]
}
export type AttachmentCreateNestedManyWithoutUploaderInput = {
create?: XOR<AttachmentCreateWithoutUploaderInput, AttachmentUncheckedCreateWithoutUploaderInput> | AttachmentCreateWithoutUploaderInput[] | AttachmentUncheckedCreateWithoutUploaderInput[]
connectOrCreate?: AttachmentCreateOrConnectWithoutUploaderInput | AttachmentCreateOrConnectWithoutUploaderInput[]
createMany?: AttachmentCreateManyUploaderInputEnvelope
connect?: AttachmentWhereUniqueInput | AttachmentWhereUniqueInput[]
}
export type CalendarUncheckedCreateNestedManyWithoutUserInput = {
create?: XOR<CalendarCreateWithoutUserInput, CalendarUncheckedCreateWithoutUserInput> | CalendarCreateWithoutUserInput[] | CalendarUncheckedCreateWithoutUserInput[]
connectOrCreate?: CalendarCreateOrConnectWithoutUserInput | CalendarCreateOrConnectWithoutUserInput[]
createMany?: CalendarCreateManyUserInputEnvelope
connect?: CalendarWhereUniqueInput | CalendarWhereUniqueInput[]
}
export type EventUncheckedCreateNestedManyWithoutUserInput = {
create?: XOR<EventCreateWithoutUserInput, EventUncheckedCreateWithoutUserInput> | EventCreateWithoutUserInput[] | EventUncheckedCreateWithoutUserInput[]
connectOrCreate?: EventCreateOrConnectWithoutUserInput | EventCreateOrConnectWithoutUserInput[]
createMany?: EventCreateManyUserInputEnvelope
connect?: EventWhereUniqueInput | EventWhereUniqueInput[]
}
export type MailCredentialsUncheckedCreateNestedManyWithoutUserInput = {
create?: XOR<MailCredentialsCreateWithoutUserInput, MailCredentialsUncheckedCreateWithoutUserInput> | MailCredentialsCreateWithoutUserInput[] | MailCredentialsUncheckedCreateWithoutUserInput[]
connectOrCreate?: MailCredentialsCreateOrConnectWithoutUserInput | MailCredentialsCreateOrConnectWithoutUserInput[]
createMany?: MailCredentialsCreateManyUserInputEnvelope
connect?: MailCredentialsWhereUniqueInput | MailCredentialsWhereUniqueInput[]
}
export type WebDAVCredentialsUncheckedCreateNestedOneWithoutUserInput = {
create?: XOR<WebDAVCredentialsCreateWithoutUserInput, WebDAVCredentialsUncheckedCreateWithoutUserInput>
connectOrCreate?: WebDAVCredentialsCreateOrConnectWithoutUserInput
connect?: WebDAVCredentialsWhereUniqueInput
}
export type AnnouncementUncheckedCreateNestedManyWithoutAuthorInput = {
create?: XOR<AnnouncementCreateWithoutAuthorInput, AnnouncementUncheckedCreateWithoutAuthorInput> | AnnouncementCreateWithoutAuthorInput[] | AnnouncementUncheckedCreateWithoutAuthorInput[]
connectOrCreate?: AnnouncementCreateOrConnectWithoutAuthorInput | AnnouncementCreateOrConnectWithoutAuthorInput[]
createMany?: AnnouncementCreateManyAuthorInputEnvelope
connect?: AnnouncementWhereUniqueInput | AnnouncementWhereUniqueInput[]
}
export type MissionUncheckedCreateNestedManyWithoutCreatorInput = {
create?: XOR<MissionCreateWithoutCreatorInput, MissionUncheckedCreateWithoutCreatorInput> | MissionCreateWithoutCreatorInput[] | MissionUncheckedCreateWithoutCreatorInput[]
connectOrCreate?: MissionCreateOrConnectWithoutCreatorInput | MissionCreateOrConnectWithoutCreatorInput[]
createMany?: MissionCreateManyCreatorInputEnvelope
connect?: MissionWhereUniqueInput | MissionWhereUniqueInput[]
}
export type MissionUserUncheckedCreateNestedManyWithoutUserInput = {
create?: XOR<MissionUserCreateWithoutUserInput, MissionUserUncheckedCreateWithoutUserInput> | MissionUserCreateWithoutUserInput[] | MissionUserUncheckedCreateWithoutUserInput[]
connectOrCreate?: MissionUserCreateOrConnectWithoutUserInput | MissionUserCreateOrConnectWithoutUserInput[]
createMany?: MissionUserCreateManyUserInputEnvelope
connect?: MissionUserWhereUniqueInput | MissionUserWhereUniqueInput[]
}
export type AttachmentUncheckedCreateNestedManyWithoutUploaderInput = {
create?: XOR<AttachmentCreateWithoutUploaderInput, AttachmentUncheckedCreateWithoutUploaderInput> | AttachmentCreateWithoutUploaderInput[] | AttachmentUncheckedCreateWithoutUploaderInput[]
connectOrCreate?: AttachmentCreateOrConnectWithoutUploaderInput | AttachmentCreateOrConnectWithoutUploaderInput[]
createMany?: AttachmentCreateManyUploaderInputEnvelope
connect?: AttachmentWhereUniqueInput | AttachmentWhereUniqueInput[]
}
export type StringFieldUpdateOperationsInput = {
set?: string
}
export type DateTimeFieldUpdateOperationsInput = {
set?: Date | string
}
export type CalendarUpdateManyWithoutUserNestedInput = {
create?: XOR<CalendarCreateWithoutUserInput, CalendarUncheckedCreateWithoutUserInput> | CalendarCreateWithoutUserInput[] | CalendarUncheckedCreateWithoutUserInput[]
connectOrCreate?: CalendarCreateOrConnectWithoutUserInput | CalendarCreateOrConnectWithoutUserInput[]
upsert?: CalendarUpsertWithWhereUniqueWithoutUserInput | CalendarUpsertWithWhereUniqueWithoutUserInput[]
createMany?: CalendarCreateManyUserInputEnvelope
set?: CalendarWhereUniqueInput | CalendarWhereUniqueInput[]
disconnect?: CalendarWhereUniqueInput | CalendarWhereUniqueInput[]
delete?: CalendarWhereUniqueInput | CalendarWhereUniqueInput[]
connect?: CalendarWhereUniqueInput | CalendarWhereUniqueInput[]
update?: CalendarUpdateWithWhereUniqueWithoutUserInput | CalendarUpdateWithWhereUniqueWithoutUserInput[]
updateMany?: CalendarUpdateManyWithWhereWithoutUserInput | CalendarUpdateManyWithWhereWithoutUserInput[]
deleteMany?: CalendarScalarWhereInput | CalendarScalarWhereInput[]
}
export type EventUpdateManyWithoutUserNestedInput = {
create?: XOR<EventCreateWithoutUserInput, EventUncheckedCreateWithoutUserInput> | EventCreateWithoutUserInput[] | EventUncheckedCreateWithoutUserInput[]
connectOrCreate?: EventCreateOrConnectWithoutUserInput | EventCreateOrConnectWithoutUserInput[]
upsert?: EventUpsertWithWhereUniqueWithoutUserInput | EventUpsertWithWhereUniqueWithoutUserInput[]
createMany?: EventCreateManyUserInputEnvelope
set?: EventWhereUniqueInput | EventWhereUniqueInput[]
disconnect?: EventWhereUniqueInput | EventWhereUniqueInput[]
delete?: EventWhereUniqueInput | EventWhereUniqueInput[]
connect?: EventWhereUniqueInput | EventWhereUniqueInput[]
update?: EventUpdateWithWhereUniqueWithoutUserInput | EventUpdateWithWhereUniqueWithoutUserInput[]
updateMany?: EventUpdateManyWithWhereWithoutUserInput | EventUpdateManyWithWhereWithoutUserInput[]
deleteMany?: EventScalarWhereInput | EventScalarWhereInput[]
}
export type MailCredentialsUpdateManyWithoutUserNestedInput = {
create?: XOR<MailCredentialsCreateWithoutUserInput, MailCredentialsUncheckedCreateWithoutUserInput> | MailCredentialsCreateWithoutUserInput[] | MailCredentialsUncheckedCreateWithoutUserInput[]
connectOrCreate?: MailCredentialsCreateOrConnectWithoutUserInput | MailCredentialsCreateOrConnectWithoutUserInput[]
upsert?: MailCredentialsUpsertWithWhereUniqueWithoutUserInput | MailCredentialsUpsertWithWhereUniqueWithoutUserInput[]
createMany?: MailCredentialsCreateManyUserInputEnvelope
set?: MailCredentialsWhereUniqueInput | MailCredentialsWhereUniqueInput[]
disconnect?: MailCredentialsWhereUniqueInput | MailCredentialsWhereUniqueInput[]
delete?: MailCredentialsWhereUniqueInput | MailCredentialsWhereUniqueInput[]
connect?: MailCredentialsWhereUniqueInput | MailCredentialsWhereUniqueInput[]
update?: MailCredentialsUpdateWithWhereUniqueWithoutUserInput | MailCredentialsUpdateWithWhereUniqueWithoutUserInput[]
updateMany?: MailCredentialsUpdateManyWithWhereWithoutUserInput | MailCredentialsUpdateManyWithWhereWithoutUserInput[]
deleteMany?: MailCredentialsScalarWhereInput | MailCredentialsScalarWhereInput[]
}
export type WebDAVCredentialsUpdateOneWithoutUserNestedInput = {
create?: XOR<WebDAVCredentialsCreateWithoutUserInput, WebDAVCredentialsUncheckedCreateWithoutUserInput>
connectOrCreate?: WebDAVCredentialsCreateOrConnectWithoutUserInput
upsert?: WebDAVCredentialsUpsertWithoutUserInput
disconnect?: WebDAVCredentialsWhereInput | boolean
delete?: WebDAVCredentialsWhereInput | boolean
connect?: WebDAVCredentialsWhereUniqueInput
update?: XOR<XOR<WebDAVCredentialsUpdateToOneWithWhereWithoutUserInput, WebDAVCredentialsUpdateWithoutUserInput>, WebDAVCredentialsUncheckedUpdateWithoutUserInput>
}
export type AnnouncementUpdateManyWithoutAuthorNestedInput = {
create?: XOR<AnnouncementCreateWithoutAuthorInput, AnnouncementUncheckedCreateWithoutAuthorInput> | AnnouncementCreateWithoutAuthorInput[] | AnnouncementUncheckedCreateWithoutAuthorInput[]
connectOrCreate?: AnnouncementCreateOrConnectWithoutAuthorInput | AnnouncementCreateOrConnectWithoutAuthorInput[]
upsert?: AnnouncementUpsertWithWhereUniqueWithoutAuthorInput | AnnouncementUpsertWithWhereUniqueWithoutAuthorInput[]
createMany?: AnnouncementCreateManyAuthorInputEnvelope
set?: AnnouncementWhereUniqueInput | AnnouncementWhereUniqueInput[]
disconnect?: AnnouncementWhereUniqueInput | AnnouncementWhereUniqueInput[]
delete?: AnnouncementWhereUniqueInput | AnnouncementWhereUniqueInput[]
connect?: AnnouncementWhereUniqueInput | AnnouncementWhereUniqueInput[]
update?: AnnouncementUpdateWithWhereUniqueWithoutAuthorInput | AnnouncementUpdateWithWhereUniqueWithoutAuthorInput[]
updateMany?: AnnouncementUpdateManyWithWhereWithoutAuthorInput | AnnouncementUpdateManyWithWhereWithoutAuthorInput[]
deleteMany?: AnnouncementScalarWhereInput | AnnouncementScalarWhereInput[]
}
export type MissionUpdateManyWithoutCreatorNestedInput = {
create?: XOR<MissionCreateWithoutCreatorInput, MissionUncheckedCreateWithoutCreatorInput> | MissionCreateWithoutCreatorInput[] | MissionUncheckedCreateWithoutCreatorInput[]
connectOrCreate?: MissionCreateOrConnectWithoutCreatorInput | MissionCreateOrConnectWithoutCreatorInput[]
upsert?: MissionUpsertWithWhereUniqueWithoutCreatorInput | MissionUpsertWithWhereUniqueWithoutCreatorInput[]
createMany?: MissionCreateManyCreatorInputEnvelope
set?: MissionWhereUniqueInput | MissionWhereUniqueInput[]
disconnect?: MissionWhereUniqueInput | MissionWhereUniqueInput[]
delete?: MissionWhereUniqueInput | MissionWhereUniqueInput[]
connect?: MissionWhereUniqueInput | MissionWhereUniqueInput[]
update?: MissionUpdateWithWhereUniqueWithoutCreatorInput | MissionUpdateWithWhereUniqueWithoutCreatorInput[]
updateMany?: MissionUpdateManyWithWhereWithoutCreatorInput | MissionUpdateManyWithWhereWithoutCreatorInput[]
deleteMany?: MissionScalarWhereInput | MissionScalarWhereInput[]
}
export type MissionUserUpdateManyWithoutUserNestedInput = {
create?: XOR<MissionUserCreateWithoutUserInput, MissionUserUncheckedCreateWithoutUserInput> | MissionUserCreateWithoutUserInput[] | MissionUserUncheckedCreateWithoutUserInput[]
connectOrCreate?: MissionUserCreateOrConnectWithoutUserInput | MissionUserCreateOrConnectWithoutUserInput[]
upsert?: MissionUserUpsertWithWhereUniqueWithoutUserInput | MissionUserUpsertWithWhereUniqueWithoutUserInput[]
createMany?: MissionUserCreateManyUserInputEnvelope
set?: MissionUserWhereUniqueInput | MissionUserWhereUniqueInput[]
disconnect?: MissionUserWhereUniqueInput | MissionUserWhereUniqueInput[]
delete?: MissionUserWhereUniqueInput | MissionUserWhereUniqueInput[]
connect?: MissionUserWhereUniqueInput | MissionUserWhereUniqueInput[]
update?: MissionUserUpdateWithWhereUniqueWithoutUserInput | MissionUserUpdateWithWhereUniqueWithoutUserInput[]
updateMany?: MissionUserUpdateManyWithWhereWithoutUserInput | MissionUserUpdateManyWithWhereWithoutUserInput[]
deleteMany?: MissionUserScalarWhereInput | MissionUserScalarWhereInput[]
}
export type AttachmentUpdateManyWithoutUploaderNestedInput = {
create?: XOR<AttachmentCreateWithoutUploaderInput, AttachmentUncheckedCreateWithoutUploaderInput> | AttachmentCreateWithoutUploaderInput[] | AttachmentUncheckedCreateWithoutUploaderInput[]
connectOrCreate?: AttachmentCreateOrConnectWithoutUploaderInput | AttachmentCreateOrConnectWithoutUploaderInput[]
upsert?: AttachmentUpsertWithWhereUniqueWithoutUploaderInput | AttachmentUpsertWithWhereUniqueWithoutUploaderInput[]
createMany?: AttachmentCreateManyUploaderInputEnvelope
set?: AttachmentWhereUniqueInput | AttachmentWhereUniqueInput[]
disconnect?: AttachmentWhereUniqueInput | AttachmentWhereUniqueInput[]
delete?: AttachmentWhereUniqueInput | AttachmentWhereUniqueInput[]
connect?: AttachmentWhereUniqueInput | AttachmentWhereUniqueInput[]
update?: AttachmentUpdateWithWhereUniqueWithoutUploaderInput | AttachmentUpdateWithWhereUniqueWithoutUploaderInput[]
updateMany?: AttachmentUpdateManyWithWhereWithoutUploaderInput | AttachmentUpdateManyWithWhereWithoutUploaderInput[]
deleteMany?: AttachmentScalarWhereInput | AttachmentScalarWhereInput[]
}
export type CalendarUncheckedUpdateManyWithoutUserNestedInput = {
create?: XOR<CalendarCreateWithoutUserInput, CalendarUncheckedCreateWithoutUserInput> | CalendarCreateWithoutUserInput[] | CalendarUncheckedCreateWithoutUserInput[]
connectOrCreate?: CalendarCreateOrConnectWithoutUserInput | CalendarCreateOrConnectWithoutUserInput[]
upsert?: CalendarUpsertWithWhereUniqueWithoutUserInput | CalendarUpsertWithWhereUniqueWithoutUserInput[]
createMany?: CalendarCreateManyUserInputEnvelope
set?: CalendarWhereUniqueInput | CalendarWhereUniqueInput[]
disconnect?: CalendarWhereUniqueInput | CalendarWhereUniqueInput[]
delete?: CalendarWhereUniqueInput | CalendarWhereUniqueInput[]
connect?: CalendarWhereUniqueInput | CalendarWhereUniqueInput[]
update?: CalendarUpdateWithWhereUniqueWithoutUserInput | CalendarUpdateWithWhereUniqueWithoutUserInput[]
updateMany?: CalendarUpdateManyWithWhereWithoutUserInput | CalendarUpdateManyWithWhereWithoutUserInput[]
deleteMany?: CalendarScalarWhereInput | CalendarScalarWhereInput[]
}
export type EventUncheckedUpdateManyWithoutUserNestedInput = {
create?: XOR<EventCreateWithoutUserInput, EventUncheckedCreateWithoutUserInput> | EventCreateWithoutUserInput[] | EventUncheckedCreateWithoutUserInput[]
connectOrCreate?: EventCreateOrConnectWithoutUserInput | EventCreateOrConnectWithoutUserInput[]
upsert?: EventUpsertWithWhereUniqueWithoutUserInput | EventUpsertWithWhereUniqueWithoutUserInput[]
createMany?: EventCreateManyUserInputEnvelope
set?: EventWhereUniqueInput | EventWhereUniqueInput[]
disconnect?: EventWhereUniqueInput | EventWhereUniqueInput[]
delete?: EventWhereUniqueInput | EventWhereUniqueInput[]
connect?: EventWhereUniqueInput | EventWhereUniqueInput[]
update?: EventUpdateWithWhereUniqueWithoutUserInput | EventUpdateWithWhereUniqueWithoutUserInput[]
updateMany?: EventUpdateManyWithWhereWithoutUserInput | EventUpdateManyWithWhereWithoutUserInput[]
deleteMany?: EventScalarWhereInput | EventScalarWhereInput[]
}
export type MailCredentialsUncheckedUpdateManyWithoutUserNestedInput = {
create?: XOR<MailCredentialsCreateWithoutUserInput, MailCredentialsUncheckedCreateWithoutUserInput> | MailCredentialsCreateWithoutUserInput[] | MailCredentialsUncheckedCreateWithoutUserInput[]
connectOrCreate?: MailCredentialsCreateOrConnectWithoutUserInput | MailCredentialsCreateOrConnectWithoutUserInput[]
upsert?: MailCredentialsUpsertWithWhereUniqueWithoutUserInput | MailCredentialsUpsertWithWhereUniqueWithoutUserInput[]
createMany?: MailCredentialsCreateManyUserInputEnvelope
set?: MailCredentialsWhereUniqueInput | MailCredentialsWhereUniqueInput[]
disconnect?: MailCredentialsWhereUniqueInput | MailCredentialsWhereUniqueInput[]
delete?: MailCredentialsWhereUniqueInput | MailCredentialsWhereUniqueInput[]
connect?: MailCredentialsWhereUniqueInput | MailCredentialsWhereUniqueInput[]
update?: MailCredentialsUpdateWithWhereUniqueWithoutUserInput | MailCredentialsUpdateWithWhereUniqueWithoutUserInput[]
updateMany?: MailCredentialsUpdateManyWithWhereWithoutUserInput | MailCredentialsUpdateManyWithWhereWithoutUserInput[]
deleteMany?: MailCredentialsScalarWhereInput | MailCredentialsScalarWhereInput[]
}
export type WebDAVCredentialsUncheckedUpdateOneWithoutUserNestedInput = {
create?: XOR<WebDAVCredentialsCreateWithoutUserInput, WebDAVCredentialsUncheckedCreateWithoutUserInput>
connectOrCreate?: WebDAVCredentialsCreateOrConnectWithoutUserInput
upsert?: WebDAVCredentialsUpsertWithoutUserInput
disconnect?: WebDAVCredentialsWhereInput | boolean
delete?: WebDAVCredentialsWhereInput | boolean
connect?: WebDAVCredentialsWhereUniqueInput
update?: XOR<XOR<WebDAVCredentialsUpdateToOneWithWhereWithoutUserInput, WebDAVCredentialsUpdateWithoutUserInput>, WebDAVCredentialsUncheckedUpdateWithoutUserInput>
}
export type AnnouncementUncheckedUpdateManyWithoutAuthorNestedInput = {
create?: XOR<AnnouncementCreateWithoutAuthorInput, AnnouncementUncheckedCreateWithoutAuthorInput> | AnnouncementCreateWithoutAuthorInput[] | AnnouncementUncheckedCreateWithoutAuthorInput[]
connectOrCreate?: AnnouncementCreateOrConnectWithoutAuthorInput | AnnouncementCreateOrConnectWithoutAuthorInput[]
upsert?: AnnouncementUpsertWithWhereUniqueWithoutAuthorInput | AnnouncementUpsertWithWhereUniqueWithoutAuthorInput[]
createMany?: AnnouncementCreateManyAuthorInputEnvelope
set?: AnnouncementWhereUniqueInput | AnnouncementWhereUniqueInput[]
disconnect?: AnnouncementWhereUniqueInput | AnnouncementWhereUniqueInput[]
delete?: AnnouncementWhereUniqueInput | AnnouncementWhereUniqueInput[]
connect?: AnnouncementWhereUniqueInput | AnnouncementWhereUniqueInput[]
update?: AnnouncementUpdateWithWhereUniqueWithoutAuthorInput | AnnouncementUpdateWithWhereUniqueWithoutAuthorInput[]
updateMany?: AnnouncementUpdateManyWithWhereWithoutAuthorInput | AnnouncementUpdateManyWithWhereWithoutAuthorInput[]
deleteMany?: AnnouncementScalarWhereInput | AnnouncementScalarWhereInput[]
}
export type MissionUncheckedUpdateManyWithoutCreatorNestedInput = {
create?: XOR<MissionCreateWithoutCreatorInput, MissionUncheckedCreateWithoutCreatorInput> | MissionCreateWithoutCreatorInput[] | MissionUncheckedCreateWithoutCreatorInput[]
connectOrCreate?: MissionCreateOrConnectWithoutCreatorInput | MissionCreateOrConnectWithoutCreatorInput[]
upsert?: MissionUpsertWithWhereUniqueWithoutCreatorInput | MissionUpsertWithWhereUniqueWithoutCreatorInput[]
createMany?: MissionCreateManyCreatorInputEnvelope
set?: MissionWhereUniqueInput | MissionWhereUniqueInput[]
disconnect?: MissionWhereUniqueInput | MissionWhereUniqueInput[]
delete?: MissionWhereUniqueInput | MissionWhereUniqueInput[]
connect?: MissionWhereUniqueInput | MissionWhereUniqueInput[]
update?: MissionUpdateWithWhereUniqueWithoutCreatorInput | MissionUpdateWithWhereUniqueWithoutCreatorInput[]
updateMany?: MissionUpdateManyWithWhereWithoutCreatorInput | MissionUpdateManyWithWhereWithoutCreatorInput[]
deleteMany?: MissionScalarWhereInput | MissionScalarWhereInput[]
}
export type MissionUserUncheckedUpdateManyWithoutUserNestedInput = {
create?: XOR<MissionUserCreateWithoutUserInput, MissionUserUncheckedCreateWithoutUserInput> | MissionUserCreateWithoutUserInput[] | MissionUserUncheckedCreateWithoutUserInput[]
connectOrCreate?: MissionUserCreateOrConnectWithoutUserInput | MissionUserCreateOrConnectWithoutUserInput[]
upsert?: MissionUserUpsertWithWhereUniqueWithoutUserInput | MissionUserUpsertWithWhereUniqueWithoutUserInput[]
createMany?: MissionUserCreateManyUserInputEnvelope
set?: MissionUserWhereUniqueInput | MissionUserWhereUniqueInput[]
disconnect?: MissionUserWhereUniqueInput | MissionUserWhereUniqueInput[]
delete?: MissionUserWhereUniqueInput | MissionUserWhereUniqueInput[]
connect?: MissionUserWhereUniqueInput | MissionUserWhereUniqueInput[]
update?: MissionUserUpdateWithWhereUniqueWithoutUserInput | MissionUserUpdateWithWhereUniqueWithoutUserInput[]
updateMany?: MissionUserUpdateManyWithWhereWithoutUserInput | MissionUserUpdateManyWithWhereWithoutUserInput[]
deleteMany?: MissionUserScalarWhereInput | MissionUserScalarWhereInput[]
}
export type AttachmentUncheckedUpdateManyWithoutUploaderNestedInput = {
create?: XOR<AttachmentCreateWithoutUploaderInput, AttachmentUncheckedCreateWithoutUploaderInput> | AttachmentCreateWithoutUploaderInput[] | AttachmentUncheckedCreateWithoutUploaderInput[]
connectOrCreate?: AttachmentCreateOrConnectWithoutUploaderInput | AttachmentCreateOrConnectWithoutUploaderInput[]
upsert?: AttachmentUpsertWithWhereUniqueWithoutUploaderInput | AttachmentUpsertWithWhereUniqueWithoutUploaderInput[]
createMany?: AttachmentCreateManyUploaderInputEnvelope
set?: AttachmentWhereUniqueInput | AttachmentWhereUniqueInput[]
disconnect?: AttachmentWhereUniqueInput | AttachmentWhereUniqueInput[]
delete?: AttachmentWhereUniqueInput | AttachmentWhereUniqueInput[]
connect?: AttachmentWhereUniqueInput | AttachmentWhereUniqueInput[]
update?: AttachmentUpdateWithWhereUniqueWithoutUploaderInput | AttachmentUpdateWithWhereUniqueWithoutUploaderInput[]
updateMany?: AttachmentUpdateManyWithWhereWithoutUploaderInput | AttachmentUpdateManyWithWhereWithoutUploaderInput[]
deleteMany?: AttachmentScalarWhereInput | AttachmentScalarWhereInput[]
}
export type EventCreateNestedManyWithoutCalendarInput = {
create?: XOR<EventCreateWithoutCalendarInput, EventUncheckedCreateWithoutCalendarInput> | EventCreateWithoutCalendarInput[] | EventUncheckedCreateWithoutCalendarInput[]
connectOrCreate?: EventCreateOrConnectWithoutCalendarInput | EventCreateOrConnectWithoutCalendarInput[]
createMany?: EventCreateManyCalendarInputEnvelope
connect?: EventWhereUniqueInput | EventWhereUniqueInput[]
}
export type UserCreateNestedOneWithoutCalendarsInput = {
create?: XOR<UserCreateWithoutCalendarsInput, UserUncheckedCreateWithoutCalendarsInput>
connectOrCreate?: UserCreateOrConnectWithoutCalendarsInput
connect?: UserWhereUniqueInput
}
export type EventUncheckedCreateNestedManyWithoutCalendarInput = {
create?: XOR<EventCreateWithoutCalendarInput, EventUncheckedCreateWithoutCalendarInput> | EventCreateWithoutCalendarInput[] | EventUncheckedCreateWithoutCalendarInput[]
connectOrCreate?: EventCreateOrConnectWithoutCalendarInput | EventCreateOrConnectWithoutCalendarInput[]
createMany?: EventCreateManyCalendarInputEnvelope
connect?: EventWhereUniqueInput | EventWhereUniqueInput[]
}
export type NullableStringFieldUpdateOperationsInput = {
set?: string | null
}
export type EventUpdateManyWithoutCalendarNestedInput = {
create?: XOR<EventCreateWithoutCalendarInput, EventUncheckedCreateWithoutCalendarInput> | EventCreateWithoutCalendarInput[] | EventUncheckedCreateWithoutCalendarInput[]
connectOrCreate?: EventCreateOrConnectWithoutCalendarInput | EventCreateOrConnectWithoutCalendarInput[]
upsert?: EventUpsertWithWhereUniqueWithoutCalendarInput | EventUpsertWithWhereUniqueWithoutCalendarInput[]
createMany?: EventCreateManyCalendarInputEnvelope
set?: EventWhereUniqueInput | EventWhereUniqueInput[]
disconnect?: EventWhereUniqueInput | EventWhereUniqueInput[]
delete?: EventWhereUniqueInput | EventWhereUniqueInput[]
connect?: EventWhereUniqueInput | EventWhereUniqueInput[]
update?: EventUpdateWithWhereUniqueWithoutCalendarInput | EventUpdateWithWhereUniqueWithoutCalendarInput[]
updateMany?: EventUpdateManyWithWhereWithoutCalendarInput | EventUpdateManyWithWhereWithoutCalendarInput[]
deleteMany?: EventScalarWhereInput | EventScalarWhereInput[]
}
export type UserUpdateOneRequiredWithoutCalendarsNestedInput = {
create?: XOR<UserCreateWithoutCalendarsInput, UserUncheckedCreateWithoutCalendarsInput>
connectOrCreate?: UserCreateOrConnectWithoutCalendarsInput
upsert?: UserUpsertWithoutCalendarsInput
connect?: UserWhereUniqueInput
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutCalendarsInput, UserUpdateWithoutCalendarsInput>, UserUncheckedUpdateWithoutCalendarsInput>
}
export type EventUncheckedUpdateManyWithoutCalendarNestedInput = {
create?: XOR<EventCreateWithoutCalendarInput, EventUncheckedCreateWithoutCalendarInput> | EventCreateWithoutCalendarInput[] | EventUncheckedCreateWithoutCalendarInput[]
connectOrCreate?: EventCreateOrConnectWithoutCalendarInput | EventCreateOrConnectWithoutCalendarInput[]
upsert?: EventUpsertWithWhereUniqueWithoutCalendarInput | EventUpsertWithWhereUniqueWithoutCalendarInput[]
createMany?: EventCreateManyCalendarInputEnvelope
set?: EventWhereUniqueInput | EventWhereUniqueInput[]
disconnect?: EventWhereUniqueInput | EventWhereUniqueInput[]
delete?: EventWhereUniqueInput | EventWhereUniqueInput[]
connect?: EventWhereUniqueInput | EventWhereUniqueInput[]
update?: EventUpdateWithWhereUniqueWithoutCalendarInput | EventUpdateWithWhereUniqueWithoutCalendarInput[]
updateMany?: EventUpdateManyWithWhereWithoutCalendarInput | EventUpdateManyWithWhereWithoutCalendarInput[]
deleteMany?: EventScalarWhereInput | EventScalarWhereInput[]
}
export type CalendarCreateNestedOneWithoutEventsInput = {
create?: XOR<CalendarCreateWithoutEventsInput, CalendarUncheckedCreateWithoutEventsInput>
connectOrCreate?: CalendarCreateOrConnectWithoutEventsInput
connect?: CalendarWhereUniqueInput
}
export type UserCreateNestedOneWithoutEventsInput = {
create?: XOR<UserCreateWithoutEventsInput, UserUncheckedCreateWithoutEventsInput>
connectOrCreate?: UserCreateOrConnectWithoutEventsInput
connect?: UserWhereUniqueInput
}
export type BoolFieldUpdateOperationsInput = {
set?: boolean
}
export type CalendarUpdateOneRequiredWithoutEventsNestedInput = {
create?: XOR<CalendarCreateWithoutEventsInput, CalendarUncheckedCreateWithoutEventsInput>
connectOrCreate?: CalendarCreateOrConnectWithoutEventsInput
upsert?: CalendarUpsertWithoutEventsInput
connect?: CalendarWhereUniqueInput
update?: XOR<XOR<CalendarUpdateToOneWithWhereWithoutEventsInput, CalendarUpdateWithoutEventsInput>, CalendarUncheckedUpdateWithoutEventsInput>
}
export type UserUpdateOneRequiredWithoutEventsNestedInput = {
create?: XOR<UserCreateWithoutEventsInput, UserUncheckedCreateWithoutEventsInput>
connectOrCreate?: UserCreateOrConnectWithoutEventsInput
upsert?: UserUpsertWithoutEventsInput
connect?: UserWhereUniqueInput
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutEventsInput, UserUpdateWithoutEventsInput>, UserUncheckedUpdateWithoutEventsInput>
}
export type UserCreateNestedOneWithoutMailCredentialsInput = {
create?: XOR<UserCreateWithoutMailCredentialsInput, UserUncheckedCreateWithoutMailCredentialsInput>
connectOrCreate?: UserCreateOrConnectWithoutMailCredentialsInput
connect?: UserWhereUniqueInput
}
export type IntFieldUpdateOperationsInput = {
set?: number
increment?: number
decrement?: number
multiply?: number
divide?: number
}
export type NullableDateTimeFieldUpdateOperationsInput = {
set?: Date | string | null
}
export type NullableIntFieldUpdateOperationsInput = {
set?: number | null
increment?: number
decrement?: number
multiply?: number
divide?: number
}
export type NullableBoolFieldUpdateOperationsInput = {
set?: boolean | null
}
export type UserUpdateOneRequiredWithoutMailCredentialsNestedInput = {
create?: XOR<UserCreateWithoutMailCredentialsInput, UserUncheckedCreateWithoutMailCredentialsInput>
connectOrCreate?: UserCreateOrConnectWithoutMailCredentialsInput
upsert?: UserUpsertWithoutMailCredentialsInput
connect?: UserWhereUniqueInput
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutMailCredentialsInput, UserUpdateWithoutMailCredentialsInput>, UserUncheckedUpdateWithoutMailCredentialsInput>
}
export type UserCreateNestedOneWithoutWebdavCredentialsInput = {
create?: XOR<UserCreateWithoutWebdavCredentialsInput, UserUncheckedCreateWithoutWebdavCredentialsInput>
connectOrCreate?: UserCreateOrConnectWithoutWebdavCredentialsInput
connect?: UserWhereUniqueInput
}
export type UserUpdateOneRequiredWithoutWebdavCredentialsNestedInput = {
create?: XOR<UserCreateWithoutWebdavCredentialsInput, UserUncheckedCreateWithoutWebdavCredentialsInput>
connectOrCreate?: UserCreateOrConnectWithoutWebdavCredentialsInput
upsert?: UserUpsertWithoutWebdavCredentialsInput
connect?: UserWhereUniqueInput
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutWebdavCredentialsInput, UserUpdateWithoutWebdavCredentialsInput>, UserUncheckedUpdateWithoutWebdavCredentialsInput>
}
export type AnnouncementCreatetargetRolesInput = {
set: string[]
}
export type UserCreateNestedOneWithoutAnnouncementsInput = {
create?: XOR<UserCreateWithoutAnnouncementsInput, UserUncheckedCreateWithoutAnnouncementsInput>
connectOrCreate?: UserCreateOrConnectWithoutAnnouncementsInput
connect?: UserWhereUniqueInput
}
export type AnnouncementUpdatetargetRolesInput = {
set?: string[]
push?: string | string[]
}
export type UserUpdateOneRequiredWithoutAnnouncementsNestedInput = {
create?: XOR<UserCreateWithoutAnnouncementsInput, UserUncheckedCreateWithoutAnnouncementsInput>
connectOrCreate?: UserCreateOrConnectWithoutAnnouncementsInput
upsert?: UserUpsertWithoutAnnouncementsInput
connect?: UserWhereUniqueInput
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutAnnouncementsInput, UserUpdateWithoutAnnouncementsInput>, UserUncheckedUpdateWithoutAnnouncementsInput>
}
export type MissionCreateoddScopeInput = {
set: string[]
}
export type MissionCreateservicesInput = {
set: string[]
}
export type MissionCreateprofilsInput = {
set: string[]
}
export type UserCreateNestedOneWithoutMissionsInput = {
create?: XOR<UserCreateWithoutMissionsInput, UserUncheckedCreateWithoutMissionsInput>
connectOrCreate?: UserCreateOrConnectWithoutMissionsInput
connect?: UserWhereUniqueInput
}
export type AttachmentCreateNestedManyWithoutMissionInput = {
create?: XOR<AttachmentCreateWithoutMissionInput, AttachmentUncheckedCreateWithoutMissionInput> | AttachmentCreateWithoutMissionInput[] | AttachmentUncheckedCreateWithoutMissionInput[]
connectOrCreate?: AttachmentCreateOrConnectWithoutMissionInput | AttachmentCreateOrConnectWithoutMissionInput[]
createMany?: AttachmentCreateManyMissionInputEnvelope
connect?: AttachmentWhereUniqueInput | AttachmentWhereUniqueInput[]
}
export type MissionUserCreateNestedManyWithoutMissionInput = {
create?: XOR<MissionUserCreateWithoutMissionInput, MissionUserUncheckedCreateWithoutMissionInput> | MissionUserCreateWithoutMissionInput[] | MissionUserUncheckedCreateWithoutMissionInput[]
connectOrCreate?: MissionUserCreateOrConnectWithoutMissionInput | MissionUserCreateOrConnectWithoutMissionInput[]
createMany?: MissionUserCreateManyMissionInputEnvelope
connect?: MissionUserWhereUniqueInput | MissionUserWhereUniqueInput[]
}
export type AttachmentUncheckedCreateNestedManyWithoutMissionInput = {
create?: XOR<AttachmentCreateWithoutMissionInput, AttachmentUncheckedCreateWithoutMissionInput> | AttachmentCreateWithoutMissionInput[] | AttachmentUncheckedCreateWithoutMissionInput[]
connectOrCreate?: AttachmentCreateOrConnectWithoutMissionInput | AttachmentCreateOrConnectWithoutMissionInput[]
createMany?: AttachmentCreateManyMissionInputEnvelope
connect?: AttachmentWhereUniqueInput | AttachmentWhereUniqueInput[]
}
export type MissionUserUncheckedCreateNestedManyWithoutMissionInput = {
create?: XOR<MissionUserCreateWithoutMissionInput, MissionUserUncheckedCreateWithoutMissionInput> | MissionUserCreateWithoutMissionInput[] | MissionUserUncheckedCreateWithoutMissionInput[]
connectOrCreate?: MissionUserCreateOrConnectWithoutMissionInput | MissionUserCreateOrConnectWithoutMissionInput[]
createMany?: MissionUserCreateManyMissionInputEnvelope
connect?: MissionUserWhereUniqueInput | MissionUserWhereUniqueInput[]
}
export type MissionUpdateoddScopeInput = {
set?: string[]
push?: string | string[]
}
export type MissionUpdateservicesInput = {
set?: string[]
push?: string | string[]
}
export type MissionUpdateprofilsInput = {
set?: string[]
push?: string | string[]
}
export type UserUpdateOneRequiredWithoutMissionsNestedInput = {
create?: XOR<UserCreateWithoutMissionsInput, UserUncheckedCreateWithoutMissionsInput>
connectOrCreate?: UserCreateOrConnectWithoutMissionsInput
upsert?: UserUpsertWithoutMissionsInput
connect?: UserWhereUniqueInput
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutMissionsInput, UserUpdateWithoutMissionsInput>, UserUncheckedUpdateWithoutMissionsInput>
}
export type AttachmentUpdateManyWithoutMissionNestedInput = {
create?: XOR<AttachmentCreateWithoutMissionInput, AttachmentUncheckedCreateWithoutMissionInput> | AttachmentCreateWithoutMissionInput[] | AttachmentUncheckedCreateWithoutMissionInput[]
connectOrCreate?: AttachmentCreateOrConnectWithoutMissionInput | AttachmentCreateOrConnectWithoutMissionInput[]
upsert?: AttachmentUpsertWithWhereUniqueWithoutMissionInput | AttachmentUpsertWithWhereUniqueWithoutMissionInput[]
createMany?: AttachmentCreateManyMissionInputEnvelope
set?: AttachmentWhereUniqueInput | AttachmentWhereUniqueInput[]
disconnect?: AttachmentWhereUniqueInput | AttachmentWhereUniqueInput[]
delete?: AttachmentWhereUniqueInput | AttachmentWhereUniqueInput[]
connect?: AttachmentWhereUniqueInput | AttachmentWhereUniqueInput[]
update?: AttachmentUpdateWithWhereUniqueWithoutMissionInput | AttachmentUpdateWithWhereUniqueWithoutMissionInput[]
updateMany?: AttachmentUpdateManyWithWhereWithoutMissionInput | AttachmentUpdateManyWithWhereWithoutMissionInput[]
deleteMany?: AttachmentScalarWhereInput | AttachmentScalarWhereInput[]
}
export type MissionUserUpdateManyWithoutMissionNestedInput = {
create?: XOR<MissionUserCreateWithoutMissionInput, MissionUserUncheckedCreateWithoutMissionInput> | MissionUserCreateWithoutMissionInput[] | MissionUserUncheckedCreateWithoutMissionInput[]
connectOrCreate?: MissionUserCreateOrConnectWithoutMissionInput | MissionUserCreateOrConnectWithoutMissionInput[]
upsert?: MissionUserUpsertWithWhereUniqueWithoutMissionInput | MissionUserUpsertWithWhereUniqueWithoutMissionInput[]
createMany?: MissionUserCreateManyMissionInputEnvelope
set?: MissionUserWhereUniqueInput | MissionUserWhereUniqueInput[]
disconnect?: MissionUserWhereUniqueInput | MissionUserWhereUniqueInput[]
delete?: MissionUserWhereUniqueInput | MissionUserWhereUniqueInput[]
connect?: MissionUserWhereUniqueInput | MissionUserWhereUniqueInput[]
update?: MissionUserUpdateWithWhereUniqueWithoutMissionInput | MissionUserUpdateWithWhereUniqueWithoutMissionInput[]
updateMany?: MissionUserUpdateManyWithWhereWithoutMissionInput | MissionUserUpdateManyWithWhereWithoutMissionInput[]
deleteMany?: MissionUserScalarWhereInput | MissionUserScalarWhereInput[]
}
export type AttachmentUncheckedUpdateManyWithoutMissionNestedInput = {
create?: XOR<AttachmentCreateWithoutMissionInput, AttachmentUncheckedCreateWithoutMissionInput> | AttachmentCreateWithoutMissionInput[] | AttachmentUncheckedCreateWithoutMissionInput[]
connectOrCreate?: AttachmentCreateOrConnectWithoutMissionInput | AttachmentCreateOrConnectWithoutMissionInput[]
upsert?: AttachmentUpsertWithWhereUniqueWithoutMissionInput | AttachmentUpsertWithWhereUniqueWithoutMissionInput[]
createMany?: AttachmentCreateManyMissionInputEnvelope
set?: AttachmentWhereUniqueInput | AttachmentWhereUniqueInput[]
disconnect?: AttachmentWhereUniqueInput | AttachmentWhereUniqueInput[]
delete?: AttachmentWhereUniqueInput | AttachmentWhereUniqueInput[]
connect?: AttachmentWhereUniqueInput | AttachmentWhereUniqueInput[]
update?: AttachmentUpdateWithWhereUniqueWithoutMissionInput | AttachmentUpdateWithWhereUniqueWithoutMissionInput[]
updateMany?: AttachmentUpdateManyWithWhereWithoutMissionInput | AttachmentUpdateManyWithWhereWithoutMissionInput[]
deleteMany?: AttachmentScalarWhereInput | AttachmentScalarWhereInput[]
}
export type MissionUserUncheckedUpdateManyWithoutMissionNestedInput = {
create?: XOR<MissionUserCreateWithoutMissionInput, MissionUserUncheckedCreateWithoutMissionInput> | MissionUserCreateWithoutMissionInput[] | MissionUserUncheckedCreateWithoutMissionInput[]
connectOrCreate?: MissionUserCreateOrConnectWithoutMissionInput | MissionUserCreateOrConnectWithoutMissionInput[]
upsert?: MissionUserUpsertWithWhereUniqueWithoutMissionInput | MissionUserUpsertWithWhereUniqueWithoutMissionInput[]
createMany?: MissionUserCreateManyMissionInputEnvelope
set?: MissionUserWhereUniqueInput | MissionUserWhereUniqueInput[]
disconnect?: MissionUserWhereUniqueInput | MissionUserWhereUniqueInput[]
delete?: MissionUserWhereUniqueInput | MissionUserWhereUniqueInput[]
connect?: MissionUserWhereUniqueInput | MissionUserWhereUniqueInput[]
update?: MissionUserUpdateWithWhereUniqueWithoutMissionInput | MissionUserUpdateWithWhereUniqueWithoutMissionInput[]
updateMany?: MissionUserUpdateManyWithWhereWithoutMissionInput | MissionUserUpdateManyWithWhereWithoutMissionInput[]
deleteMany?: MissionUserScalarWhereInput | MissionUserScalarWhereInput[]
}
export type MissionCreateNestedOneWithoutAttachmentsInput = {
create?: XOR<MissionCreateWithoutAttachmentsInput, MissionUncheckedCreateWithoutAttachmentsInput>
connectOrCreate?: MissionCreateOrConnectWithoutAttachmentsInput
connect?: MissionWhereUniqueInput
}
export type UserCreateNestedOneWithoutUploadedAttachmentsInput = {
create?: XOR<UserCreateWithoutUploadedAttachmentsInput, UserUncheckedCreateWithoutUploadedAttachmentsInput>
connectOrCreate?: UserCreateOrConnectWithoutUploadedAttachmentsInput
connect?: UserWhereUniqueInput
}
export type MissionUpdateOneRequiredWithoutAttachmentsNestedInput = {
create?: XOR<MissionCreateWithoutAttachmentsInput, MissionUncheckedCreateWithoutAttachmentsInput>
connectOrCreate?: MissionCreateOrConnectWithoutAttachmentsInput
upsert?: MissionUpsertWithoutAttachmentsInput
connect?: MissionWhereUniqueInput
update?: XOR<XOR<MissionUpdateToOneWithWhereWithoutAttachmentsInput, MissionUpdateWithoutAttachmentsInput>, MissionUncheckedUpdateWithoutAttachmentsInput>
}
export type UserUpdateOneRequiredWithoutUploadedAttachmentsNestedInput = {
create?: XOR<UserCreateWithoutUploadedAttachmentsInput, UserUncheckedCreateWithoutUploadedAttachmentsInput>
connectOrCreate?: UserCreateOrConnectWithoutUploadedAttachmentsInput
upsert?: UserUpsertWithoutUploadedAttachmentsInput
connect?: UserWhereUniqueInput
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutUploadedAttachmentsInput, UserUpdateWithoutUploadedAttachmentsInput>, UserUncheckedUpdateWithoutUploadedAttachmentsInput>
}
export type MissionCreateNestedOneWithoutMissionUsersInput = {
create?: XOR<MissionCreateWithoutMissionUsersInput, MissionUncheckedCreateWithoutMissionUsersInput>
connectOrCreate?: MissionCreateOrConnectWithoutMissionUsersInput
connect?: MissionWhereUniqueInput
}
export type UserCreateNestedOneWithoutMissionUsersInput = {
create?: XOR<UserCreateWithoutMissionUsersInput, UserUncheckedCreateWithoutMissionUsersInput>
connectOrCreate?: UserCreateOrConnectWithoutMissionUsersInput
connect?: UserWhereUniqueInput
}
export type MissionUpdateOneRequiredWithoutMissionUsersNestedInput = {
create?: XOR<MissionCreateWithoutMissionUsersInput, MissionUncheckedCreateWithoutMissionUsersInput>
connectOrCreate?: MissionCreateOrConnectWithoutMissionUsersInput
upsert?: MissionUpsertWithoutMissionUsersInput
connect?: MissionWhereUniqueInput
update?: XOR<XOR<MissionUpdateToOneWithWhereWithoutMissionUsersInput, MissionUpdateWithoutMissionUsersInput>, MissionUncheckedUpdateWithoutMissionUsersInput>
}
export type UserUpdateOneRequiredWithoutMissionUsersNestedInput = {
create?: XOR<UserCreateWithoutMissionUsersInput, UserUncheckedCreateWithoutMissionUsersInput>
connectOrCreate?: UserCreateOrConnectWithoutMissionUsersInput
upsert?: UserUpsertWithoutMissionUsersInput
connect?: UserWhereUniqueInput
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutMissionUsersInput, UserUpdateWithoutMissionUsersInput>, UserUncheckedUpdateWithoutMissionUsersInput>
}
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 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 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 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 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 NestedBoolFilter<$PrismaModel = never> = {
equals?: boolean | BooleanFieldRefInput<$PrismaModel>
not?: NestedBoolFilter<$PrismaModel> | boolean
}
export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = {
equals?: boolean | BooleanFieldRefInput<$PrismaModel>
not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
_count?: NestedIntFilter<$PrismaModel>
_min?: NestedBoolFilter<$PrismaModel>
_max?: NestedBoolFilter<$PrismaModel>
}
export type NestedDateTimeNullableFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
}
export type NestedBoolNullableFilter<$PrismaModel = never> = {
equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null
not?: NestedBoolNullableFilter<$PrismaModel> | boolean | null
}
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 NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null
_count?: NestedIntNullableFilter<$PrismaModel>
_min?: NestedDateTimeNullableFilter<$PrismaModel>
_max?: NestedDateTimeNullableFilter<$PrismaModel>
}
export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel> | null
in?: number[] | ListIntFieldRefInput<$PrismaModel> | null
notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null
_count?: NestedIntNullableFilter<$PrismaModel>
_avg?: NestedFloatNullableFilter<$PrismaModel>
_sum?: NestedIntNullableFilter<$PrismaModel>
_min?: NestedIntNullableFilter<$PrismaModel>
_max?: NestedIntNullableFilter<$PrismaModel>
}
export type NestedFloatNullableFilter<$PrismaModel = never> = {
equals?: number | FloatFieldRefInput<$PrismaModel> | null
in?: number[] | ListFloatFieldRefInput<$PrismaModel> | null
notIn?: number[] | ListFloatFieldRefInput<$PrismaModel> | null
lt?: number | FloatFieldRefInput<$PrismaModel>
lte?: number | FloatFieldRefInput<$PrismaModel>
gt?: number | FloatFieldRefInput<$PrismaModel>
gte?: number | FloatFieldRefInput<$PrismaModel>
not?: NestedFloatNullableFilter<$PrismaModel> | number | null
}
export type NestedBoolNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null
not?: NestedBoolNullableWithAggregatesFilter<$PrismaModel> | boolean | null
_count?: NestedIntNullableFilter<$PrismaModel>
_min?: NestedBoolNullableFilter<$PrismaModel>
_max?: NestedBoolNullableFilter<$PrismaModel>
}
export type CalendarCreateWithoutUserInput = {
id?: string
name: string
color?: string
description?: string | null
createdAt?: Date | string
updatedAt?: Date | string
events?: EventCreateNestedManyWithoutCalendarInput
}
export type CalendarUncheckedCreateWithoutUserInput = {
id?: string
name: string
color?: string
description?: string | null
createdAt?: Date | string
updatedAt?: Date | string
events?: EventUncheckedCreateNestedManyWithoutCalendarInput
}
export type CalendarCreateOrConnectWithoutUserInput = {
where: CalendarWhereUniqueInput
create: XOR<CalendarCreateWithoutUserInput, CalendarUncheckedCreateWithoutUserInput>
}
export type CalendarCreateManyUserInputEnvelope = {
data: CalendarCreateManyUserInput | CalendarCreateManyUserInput[]
skipDuplicates?: boolean
}
export type EventCreateWithoutUserInput = {
id?: string
title: string
description?: string | null
start: Date | string
end: Date | string
location?: string | null
isAllDay?: boolean
createdAt?: Date | string
updatedAt?: Date | string
calendar: CalendarCreateNestedOneWithoutEventsInput
}
export type EventUncheckedCreateWithoutUserInput = {
id?: string
title: string
description?: string | null
start: Date | string
end: Date | string
location?: string | null
isAllDay?: boolean
calendarId: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type EventCreateOrConnectWithoutUserInput = {
where: EventWhereUniqueInput
create: XOR<EventCreateWithoutUserInput, EventUncheckedCreateWithoutUserInput>
}
export type EventCreateManyUserInputEnvelope = {
data: EventCreateManyUserInput | EventCreateManyUserInput[]
skipDuplicates?: boolean
}
export type MailCredentialsCreateWithoutUserInput = {
id?: string
email: string
password?: string | null
host: string
port: number
secure?: boolean
use_oauth?: boolean
refresh_token?: string | null
access_token?: string | null
token_expiry?: Date | string | null
smtp_host?: string | null
smtp_port?: number | null
smtp_secure?: boolean | null
display_name?: string | null
color?: string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type MailCredentialsUncheckedCreateWithoutUserInput = {
id?: string
email: string
password?: string | null
host: string
port: number
secure?: boolean
use_oauth?: boolean
refresh_token?: string | null
access_token?: string | null
token_expiry?: Date | string | null
smtp_host?: string | null
smtp_port?: number | null
smtp_secure?: boolean | null
display_name?: string | null
color?: string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type MailCredentialsCreateOrConnectWithoutUserInput = {
where: MailCredentialsWhereUniqueInput
create: XOR<MailCredentialsCreateWithoutUserInput, MailCredentialsUncheckedCreateWithoutUserInput>
}
export type MailCredentialsCreateManyUserInputEnvelope = {
data: MailCredentialsCreateManyUserInput | MailCredentialsCreateManyUserInput[]
skipDuplicates?: boolean
}
export type WebDAVCredentialsCreateWithoutUserInput = {
id?: string
username: string
password: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type WebDAVCredentialsUncheckedCreateWithoutUserInput = {
id?: string
username: string
password: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type WebDAVCredentialsCreateOrConnectWithoutUserInput = {
where: WebDAVCredentialsWhereUniqueInput
create: XOR<WebDAVCredentialsCreateWithoutUserInput, WebDAVCredentialsUncheckedCreateWithoutUserInput>
}
export type AnnouncementCreateWithoutAuthorInput = {
id?: string
title: string
content: string
createdAt?: Date | string
updatedAt?: Date | string
targetRoles?: AnnouncementCreatetargetRolesInput | string[]
}
export type AnnouncementUncheckedCreateWithoutAuthorInput = {
id?: string
title: string
content: string
createdAt?: Date | string
updatedAt?: Date | string
targetRoles?: AnnouncementCreatetargetRolesInput | string[]
}
export type AnnouncementCreateOrConnectWithoutAuthorInput = {
where: AnnouncementWhereUniqueInput
create: XOR<AnnouncementCreateWithoutAuthorInput, AnnouncementUncheckedCreateWithoutAuthorInput>
}
export type AnnouncementCreateManyAuthorInputEnvelope = {
data: AnnouncementCreateManyAuthorInput | AnnouncementCreateManyAuthorInput[]
skipDuplicates?: boolean
}
export type MissionCreateWithoutCreatorInput = {
id?: string
name: string
logo?: string | null
oddScope?: MissionCreateoddScopeInput | string[]
niveau: string
intention: string
missionType: string
donneurDOrdre: string
projection: string
services?: MissionCreateservicesInput | string[]
participation?: string | null
profils?: MissionCreateprofilsInput | string[]
createdAt?: Date | string
updatedAt?: Date | string
leantimeProjectId?: string | null
outlineCollectionId?: string | null
rocketChatChannelId?: string | null
giteaRepositoryUrl?: string | null
penpotProjectId?: string | null
attachments?: AttachmentCreateNestedManyWithoutMissionInput
missionUsers?: MissionUserCreateNestedManyWithoutMissionInput
}
export type MissionUncheckedCreateWithoutCreatorInput = {
id?: string
name: string
logo?: string | null
oddScope?: MissionCreateoddScopeInput | string[]
niveau: string
intention: string
missionType: string
donneurDOrdre: string
projection: string
services?: MissionCreateservicesInput | string[]
participation?: string | null
profils?: MissionCreateprofilsInput | string[]
createdAt?: Date | string
updatedAt?: Date | string
leantimeProjectId?: string | null
outlineCollectionId?: string | null
rocketChatChannelId?: string | null
giteaRepositoryUrl?: string | null
penpotProjectId?: string | null
attachments?: AttachmentUncheckedCreateNestedManyWithoutMissionInput
missionUsers?: MissionUserUncheckedCreateNestedManyWithoutMissionInput
}
export type MissionCreateOrConnectWithoutCreatorInput = {
where: MissionWhereUniqueInput
create: XOR<MissionCreateWithoutCreatorInput, MissionUncheckedCreateWithoutCreatorInput>
}
export type MissionCreateManyCreatorInputEnvelope = {
data: MissionCreateManyCreatorInput | MissionCreateManyCreatorInput[]
skipDuplicates?: boolean
}
export type MissionUserCreateWithoutUserInput = {
id?: string
role: string
createdAt?: Date | string
updatedAt?: Date | string
mission: MissionCreateNestedOneWithoutMissionUsersInput
}
export type MissionUserUncheckedCreateWithoutUserInput = {
id?: string
role: string
createdAt?: Date | string
updatedAt?: Date | string
missionId: string
}
export type MissionUserCreateOrConnectWithoutUserInput = {
where: MissionUserWhereUniqueInput
create: XOR<MissionUserCreateWithoutUserInput, MissionUserUncheckedCreateWithoutUserInput>
}
export type MissionUserCreateManyUserInputEnvelope = {
data: MissionUserCreateManyUserInput | MissionUserCreateManyUserInput[]
skipDuplicates?: boolean
}
export type AttachmentCreateWithoutUploaderInput = {
id?: string
filename: string
filePath: string
fileType: string
fileSize: number
createdAt?: Date | string
updatedAt?: Date | string
mission: MissionCreateNestedOneWithoutAttachmentsInput
}
export type AttachmentUncheckedCreateWithoutUploaderInput = {
id?: string
filename: string
filePath: string
fileType: string
fileSize: number
createdAt?: Date | string
updatedAt?: Date | string
missionId: string
}
export type AttachmentCreateOrConnectWithoutUploaderInput = {
where: AttachmentWhereUniqueInput
create: XOR<AttachmentCreateWithoutUploaderInput, AttachmentUncheckedCreateWithoutUploaderInput>
}
export type AttachmentCreateManyUploaderInputEnvelope = {
data: AttachmentCreateManyUploaderInput | AttachmentCreateManyUploaderInput[]
skipDuplicates?: boolean
}
export type CalendarUpsertWithWhereUniqueWithoutUserInput = {
where: CalendarWhereUniqueInput
update: XOR<CalendarUpdateWithoutUserInput, CalendarUncheckedUpdateWithoutUserInput>
create: XOR<CalendarCreateWithoutUserInput, CalendarUncheckedCreateWithoutUserInput>
}
export type CalendarUpdateWithWhereUniqueWithoutUserInput = {
where: CalendarWhereUniqueInput
data: XOR<CalendarUpdateWithoutUserInput, CalendarUncheckedUpdateWithoutUserInput>
}
export type CalendarUpdateManyWithWhereWithoutUserInput = {
where: CalendarScalarWhereInput
data: XOR<CalendarUpdateManyMutationInput, CalendarUncheckedUpdateManyWithoutUserInput>
}
export type CalendarScalarWhereInput = {
AND?: CalendarScalarWhereInput | CalendarScalarWhereInput[]
OR?: CalendarScalarWhereInput[]
NOT?: CalendarScalarWhereInput | CalendarScalarWhereInput[]
id?: StringFilter<"Calendar"> | string
name?: StringFilter<"Calendar"> | string
color?: StringFilter<"Calendar"> | string
description?: StringNullableFilter<"Calendar"> | string | null
userId?: StringFilter<"Calendar"> | string
createdAt?: DateTimeFilter<"Calendar"> | Date | string
updatedAt?: DateTimeFilter<"Calendar"> | Date | string
}
export type EventUpsertWithWhereUniqueWithoutUserInput = {
where: EventWhereUniqueInput
update: XOR<EventUpdateWithoutUserInput, EventUncheckedUpdateWithoutUserInput>
create: XOR<EventCreateWithoutUserInput, EventUncheckedCreateWithoutUserInput>
}
export type EventUpdateWithWhereUniqueWithoutUserInput = {
where: EventWhereUniqueInput
data: XOR<EventUpdateWithoutUserInput, EventUncheckedUpdateWithoutUserInput>
}
export type EventUpdateManyWithWhereWithoutUserInput = {
where: EventScalarWhereInput
data: XOR<EventUpdateManyMutationInput, EventUncheckedUpdateManyWithoutUserInput>
}
export type EventScalarWhereInput = {
AND?: EventScalarWhereInput | EventScalarWhereInput[]
OR?: EventScalarWhereInput[]
NOT?: EventScalarWhereInput | EventScalarWhereInput[]
id?: StringFilter<"Event"> | string
title?: StringFilter<"Event"> | string
description?: StringNullableFilter<"Event"> | string | null
start?: DateTimeFilter<"Event"> | Date | string
end?: DateTimeFilter<"Event"> | Date | string
location?: StringNullableFilter<"Event"> | string | null
isAllDay?: BoolFilter<"Event"> | boolean
calendarId?: StringFilter<"Event"> | string
userId?: StringFilter<"Event"> | string
createdAt?: DateTimeFilter<"Event"> | Date | string
updatedAt?: DateTimeFilter<"Event"> | Date | string
}
export type MailCredentialsUpsertWithWhereUniqueWithoutUserInput = {
where: MailCredentialsWhereUniqueInput
update: XOR<MailCredentialsUpdateWithoutUserInput, MailCredentialsUncheckedUpdateWithoutUserInput>
create: XOR<MailCredentialsCreateWithoutUserInput, MailCredentialsUncheckedCreateWithoutUserInput>
}
export type MailCredentialsUpdateWithWhereUniqueWithoutUserInput = {
where: MailCredentialsWhereUniqueInput
data: XOR<MailCredentialsUpdateWithoutUserInput, MailCredentialsUncheckedUpdateWithoutUserInput>
}
export type MailCredentialsUpdateManyWithWhereWithoutUserInput = {
where: MailCredentialsScalarWhereInput
data: XOR<MailCredentialsUpdateManyMutationInput, MailCredentialsUncheckedUpdateManyWithoutUserInput>
}
export type MailCredentialsScalarWhereInput = {
AND?: MailCredentialsScalarWhereInput | MailCredentialsScalarWhereInput[]
OR?: MailCredentialsScalarWhereInput[]
NOT?: MailCredentialsScalarWhereInput | MailCredentialsScalarWhereInput[]
id?: StringFilter<"MailCredentials"> | string
userId?: StringFilter<"MailCredentials"> | string
email?: StringFilter<"MailCredentials"> | string
password?: StringNullableFilter<"MailCredentials"> | string | null
host?: StringFilter<"MailCredentials"> | string
port?: IntFilter<"MailCredentials"> | number
secure?: BoolFilter<"MailCredentials"> | boolean
use_oauth?: BoolFilter<"MailCredentials"> | boolean
refresh_token?: StringNullableFilter<"MailCredentials"> | string | null
access_token?: StringNullableFilter<"MailCredentials"> | string | null
token_expiry?: DateTimeNullableFilter<"MailCredentials"> | Date | string | null
smtp_host?: StringNullableFilter<"MailCredentials"> | string | null
smtp_port?: IntNullableFilter<"MailCredentials"> | number | null
smtp_secure?: BoolNullableFilter<"MailCredentials"> | boolean | null
display_name?: StringNullableFilter<"MailCredentials"> | string | null
color?: StringNullableFilter<"MailCredentials"> | string | null
createdAt?: DateTimeFilter<"MailCredentials"> | Date | string
updatedAt?: DateTimeFilter<"MailCredentials"> | Date | string
}
export type WebDAVCredentialsUpsertWithoutUserInput = {
update: XOR<WebDAVCredentialsUpdateWithoutUserInput, WebDAVCredentialsUncheckedUpdateWithoutUserInput>
create: XOR<WebDAVCredentialsCreateWithoutUserInput, WebDAVCredentialsUncheckedCreateWithoutUserInput>
where?: WebDAVCredentialsWhereInput
}
export type WebDAVCredentialsUpdateToOneWithWhereWithoutUserInput = {
where?: WebDAVCredentialsWhereInput
data: XOR<WebDAVCredentialsUpdateWithoutUserInput, WebDAVCredentialsUncheckedUpdateWithoutUserInput>
}
export type WebDAVCredentialsUpdateWithoutUserInput = {
id?: StringFieldUpdateOperationsInput | string
username?: StringFieldUpdateOperationsInput | string
password?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type WebDAVCredentialsUncheckedUpdateWithoutUserInput = {
id?: StringFieldUpdateOperationsInput | string
username?: StringFieldUpdateOperationsInput | string
password?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type AnnouncementUpsertWithWhereUniqueWithoutAuthorInput = {
where: AnnouncementWhereUniqueInput
update: XOR<AnnouncementUpdateWithoutAuthorInput, AnnouncementUncheckedUpdateWithoutAuthorInput>
create: XOR<AnnouncementCreateWithoutAuthorInput, AnnouncementUncheckedCreateWithoutAuthorInput>
}
export type AnnouncementUpdateWithWhereUniqueWithoutAuthorInput = {
where: AnnouncementWhereUniqueInput
data: XOR<AnnouncementUpdateWithoutAuthorInput, AnnouncementUncheckedUpdateWithoutAuthorInput>
}
export type AnnouncementUpdateManyWithWhereWithoutAuthorInput = {
where: AnnouncementScalarWhereInput
data: XOR<AnnouncementUpdateManyMutationInput, AnnouncementUncheckedUpdateManyWithoutAuthorInput>
}
export type AnnouncementScalarWhereInput = {
AND?: AnnouncementScalarWhereInput | AnnouncementScalarWhereInput[]
OR?: AnnouncementScalarWhereInput[]
NOT?: AnnouncementScalarWhereInput | AnnouncementScalarWhereInput[]
id?: StringFilter<"Announcement"> | string
title?: StringFilter<"Announcement"> | string
content?: StringFilter<"Announcement"> | string
createdAt?: DateTimeFilter<"Announcement"> | Date | string
updatedAt?: DateTimeFilter<"Announcement"> | Date | string
authorId?: StringFilter<"Announcement"> | string
targetRoles?: StringNullableListFilter<"Announcement">
}
export type MissionUpsertWithWhereUniqueWithoutCreatorInput = {
where: MissionWhereUniqueInput
update: XOR<MissionUpdateWithoutCreatorInput, MissionUncheckedUpdateWithoutCreatorInput>
create: XOR<MissionCreateWithoutCreatorInput, MissionUncheckedCreateWithoutCreatorInput>
}
export type MissionUpdateWithWhereUniqueWithoutCreatorInput = {
where: MissionWhereUniqueInput
data: XOR<MissionUpdateWithoutCreatorInput, MissionUncheckedUpdateWithoutCreatorInput>
}
export type MissionUpdateManyWithWhereWithoutCreatorInput = {
where: MissionScalarWhereInput
data: XOR<MissionUpdateManyMutationInput, MissionUncheckedUpdateManyWithoutCreatorInput>
}
export type MissionScalarWhereInput = {
AND?: MissionScalarWhereInput | MissionScalarWhereInput[]
OR?: MissionScalarWhereInput[]
NOT?: MissionScalarWhereInput | MissionScalarWhereInput[]
id?: StringFilter<"Mission"> | string
name?: StringFilter<"Mission"> | string
logo?: StringNullableFilter<"Mission"> | string | null
oddScope?: StringNullableListFilter<"Mission">
niveau?: StringFilter<"Mission"> | string
intention?: StringFilter<"Mission"> | string
missionType?: StringFilter<"Mission"> | string
donneurDOrdre?: StringFilter<"Mission"> | string
projection?: StringFilter<"Mission"> | string
services?: StringNullableListFilter<"Mission">
participation?: StringNullableFilter<"Mission"> | string | null
profils?: StringNullableListFilter<"Mission">
createdAt?: DateTimeFilter<"Mission"> | Date | string
updatedAt?: DateTimeFilter<"Mission"> | Date | string
creatorId?: StringFilter<"Mission"> | string
leantimeProjectId?: StringNullableFilter<"Mission"> | string | null
outlineCollectionId?: StringNullableFilter<"Mission"> | string | null
rocketChatChannelId?: StringNullableFilter<"Mission"> | string | null
giteaRepositoryUrl?: StringNullableFilter<"Mission"> | string | null
penpotProjectId?: StringNullableFilter<"Mission"> | string | null
}
export type MissionUserUpsertWithWhereUniqueWithoutUserInput = {
where: MissionUserWhereUniqueInput
update: XOR<MissionUserUpdateWithoutUserInput, MissionUserUncheckedUpdateWithoutUserInput>
create: XOR<MissionUserCreateWithoutUserInput, MissionUserUncheckedCreateWithoutUserInput>
}
export type MissionUserUpdateWithWhereUniqueWithoutUserInput = {
where: MissionUserWhereUniqueInput
data: XOR<MissionUserUpdateWithoutUserInput, MissionUserUncheckedUpdateWithoutUserInput>
}
export type MissionUserUpdateManyWithWhereWithoutUserInput = {
where: MissionUserScalarWhereInput
data: XOR<MissionUserUpdateManyMutationInput, MissionUserUncheckedUpdateManyWithoutUserInput>
}
export type MissionUserScalarWhereInput = {
AND?: MissionUserScalarWhereInput | MissionUserScalarWhereInput[]
OR?: MissionUserScalarWhereInput[]
NOT?: MissionUserScalarWhereInput | MissionUserScalarWhereInput[]
id?: StringFilter<"MissionUser"> | string
role?: StringFilter<"MissionUser"> | string
createdAt?: DateTimeFilter<"MissionUser"> | Date | string
updatedAt?: DateTimeFilter<"MissionUser"> | Date | string
missionId?: StringFilter<"MissionUser"> | string
userId?: StringFilter<"MissionUser"> | string
}
export type AttachmentUpsertWithWhereUniqueWithoutUploaderInput = {
where: AttachmentWhereUniqueInput
update: XOR<AttachmentUpdateWithoutUploaderInput, AttachmentUncheckedUpdateWithoutUploaderInput>
create: XOR<AttachmentCreateWithoutUploaderInput, AttachmentUncheckedCreateWithoutUploaderInput>
}
export type AttachmentUpdateWithWhereUniqueWithoutUploaderInput = {
where: AttachmentWhereUniqueInput
data: XOR<AttachmentUpdateWithoutUploaderInput, AttachmentUncheckedUpdateWithoutUploaderInput>
}
export type AttachmentUpdateManyWithWhereWithoutUploaderInput = {
where: AttachmentScalarWhereInput
data: XOR<AttachmentUpdateManyMutationInput, AttachmentUncheckedUpdateManyWithoutUploaderInput>
}
export type AttachmentScalarWhereInput = {
AND?: AttachmentScalarWhereInput | AttachmentScalarWhereInput[]
OR?: AttachmentScalarWhereInput[]
NOT?: AttachmentScalarWhereInput | AttachmentScalarWhereInput[]
id?: StringFilter<"Attachment"> | string
filename?: StringFilter<"Attachment"> | string
filePath?: StringFilter<"Attachment"> | string
fileType?: StringFilter<"Attachment"> | string
fileSize?: IntFilter<"Attachment"> | number
createdAt?: DateTimeFilter<"Attachment"> | Date | string
updatedAt?: DateTimeFilter<"Attachment"> | Date | string
missionId?: StringFilter<"Attachment"> | string
uploaderId?: StringFilter<"Attachment"> | string
}
export type EventCreateWithoutCalendarInput = {
id?: string
title: string
description?: string | null
start: Date | string
end: Date | string
location?: string | null
isAllDay?: boolean
createdAt?: Date | string
updatedAt?: Date | string
user: UserCreateNestedOneWithoutEventsInput
}
export type EventUncheckedCreateWithoutCalendarInput = {
id?: string
title: string
description?: string | null
start: Date | string
end: Date | string
location?: string | null
isAllDay?: boolean
userId: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type EventCreateOrConnectWithoutCalendarInput = {
where: EventWhereUniqueInput
create: XOR<EventCreateWithoutCalendarInput, EventUncheckedCreateWithoutCalendarInput>
}
export type EventCreateManyCalendarInputEnvelope = {
data: EventCreateManyCalendarInput | EventCreateManyCalendarInput[]
skipDuplicates?: boolean
}
export type UserCreateWithoutCalendarsInput = {
id?: string
email: string
password: string
createdAt?: Date | string
updatedAt?: Date | string
events?: EventCreateNestedManyWithoutUserInput
mailCredentials?: MailCredentialsCreateNestedManyWithoutUserInput
webdavCredentials?: WebDAVCredentialsCreateNestedOneWithoutUserInput
announcements?: AnnouncementCreateNestedManyWithoutAuthorInput
missions?: MissionCreateNestedManyWithoutCreatorInput
missionUsers?: MissionUserCreateNestedManyWithoutUserInput
uploadedAttachments?: AttachmentCreateNestedManyWithoutUploaderInput
}
export type UserUncheckedCreateWithoutCalendarsInput = {
id?: string
email: string
password: string
createdAt?: Date | string
updatedAt?: Date | string
events?: EventUncheckedCreateNestedManyWithoutUserInput
mailCredentials?: MailCredentialsUncheckedCreateNestedManyWithoutUserInput
webdavCredentials?: WebDAVCredentialsUncheckedCreateNestedOneWithoutUserInput
announcements?: AnnouncementUncheckedCreateNestedManyWithoutAuthorInput
missions?: MissionUncheckedCreateNestedManyWithoutCreatorInput
missionUsers?: MissionUserUncheckedCreateNestedManyWithoutUserInput
uploadedAttachments?: AttachmentUncheckedCreateNestedManyWithoutUploaderInput
}
export type UserCreateOrConnectWithoutCalendarsInput = {
where: UserWhereUniqueInput
create: XOR<UserCreateWithoutCalendarsInput, UserUncheckedCreateWithoutCalendarsInput>
}
export type EventUpsertWithWhereUniqueWithoutCalendarInput = {
where: EventWhereUniqueInput
update: XOR<EventUpdateWithoutCalendarInput, EventUncheckedUpdateWithoutCalendarInput>
create: XOR<EventCreateWithoutCalendarInput, EventUncheckedCreateWithoutCalendarInput>
}
export type EventUpdateWithWhereUniqueWithoutCalendarInput = {
where: EventWhereUniqueInput
data: XOR<EventUpdateWithoutCalendarInput, EventUncheckedUpdateWithoutCalendarInput>
}
export type EventUpdateManyWithWhereWithoutCalendarInput = {
where: EventScalarWhereInput
data: XOR<EventUpdateManyMutationInput, EventUncheckedUpdateManyWithoutCalendarInput>
}
export type UserUpsertWithoutCalendarsInput = {
update: XOR<UserUpdateWithoutCalendarsInput, UserUncheckedUpdateWithoutCalendarsInput>
create: XOR<UserCreateWithoutCalendarsInput, UserUncheckedCreateWithoutCalendarsInput>
where?: UserWhereInput
}
export type UserUpdateToOneWithWhereWithoutCalendarsInput = {
where?: UserWhereInput
data: XOR<UserUpdateWithoutCalendarsInput, UserUncheckedUpdateWithoutCalendarsInput>
}
export type UserUpdateWithoutCalendarsInput = {
id?: StringFieldUpdateOperationsInput | string
email?: StringFieldUpdateOperationsInput | string
password?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
events?: EventUpdateManyWithoutUserNestedInput
mailCredentials?: MailCredentialsUpdateManyWithoutUserNestedInput
webdavCredentials?: WebDAVCredentialsUpdateOneWithoutUserNestedInput
announcements?: AnnouncementUpdateManyWithoutAuthorNestedInput
missions?: MissionUpdateManyWithoutCreatorNestedInput
missionUsers?: MissionUserUpdateManyWithoutUserNestedInput
uploadedAttachments?: AttachmentUpdateManyWithoutUploaderNestedInput
}
export type UserUncheckedUpdateWithoutCalendarsInput = {
id?: StringFieldUpdateOperationsInput | string
email?: StringFieldUpdateOperationsInput | string
password?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
events?: EventUncheckedUpdateManyWithoutUserNestedInput
mailCredentials?: MailCredentialsUncheckedUpdateManyWithoutUserNestedInput
webdavCredentials?: WebDAVCredentialsUncheckedUpdateOneWithoutUserNestedInput
announcements?: AnnouncementUncheckedUpdateManyWithoutAuthorNestedInput
missions?: MissionUncheckedUpdateManyWithoutCreatorNestedInput
missionUsers?: MissionUserUncheckedUpdateManyWithoutUserNestedInput
uploadedAttachments?: AttachmentUncheckedUpdateManyWithoutUploaderNestedInput
}
export type CalendarCreateWithoutEventsInput = {
id?: string
name: string
color?: string
description?: string | null
createdAt?: Date | string
updatedAt?: Date | string
user: UserCreateNestedOneWithoutCalendarsInput
}
export type CalendarUncheckedCreateWithoutEventsInput = {
id?: string
name: string
color?: string
description?: string | null
userId: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type CalendarCreateOrConnectWithoutEventsInput = {
where: CalendarWhereUniqueInput
create: XOR<CalendarCreateWithoutEventsInput, CalendarUncheckedCreateWithoutEventsInput>
}
export type UserCreateWithoutEventsInput = {
id?: string
email: string
password: string
createdAt?: Date | string
updatedAt?: Date | string
calendars?: CalendarCreateNestedManyWithoutUserInput
mailCredentials?: MailCredentialsCreateNestedManyWithoutUserInput
webdavCredentials?: WebDAVCredentialsCreateNestedOneWithoutUserInput
announcements?: AnnouncementCreateNestedManyWithoutAuthorInput
missions?: MissionCreateNestedManyWithoutCreatorInput
missionUsers?: MissionUserCreateNestedManyWithoutUserInput
uploadedAttachments?: AttachmentCreateNestedManyWithoutUploaderInput
}
export type UserUncheckedCreateWithoutEventsInput = {
id?: string
email: string
password: string
createdAt?: Date | string
updatedAt?: Date | string
calendars?: CalendarUncheckedCreateNestedManyWithoutUserInput
mailCredentials?: MailCredentialsUncheckedCreateNestedManyWithoutUserInput
webdavCredentials?: WebDAVCredentialsUncheckedCreateNestedOneWithoutUserInput
announcements?: AnnouncementUncheckedCreateNestedManyWithoutAuthorInput
missions?: MissionUncheckedCreateNestedManyWithoutCreatorInput
missionUsers?: MissionUserUncheckedCreateNestedManyWithoutUserInput
uploadedAttachments?: AttachmentUncheckedCreateNestedManyWithoutUploaderInput
}
export type UserCreateOrConnectWithoutEventsInput = {
where: UserWhereUniqueInput
create: XOR<UserCreateWithoutEventsInput, UserUncheckedCreateWithoutEventsInput>
}
export type CalendarUpsertWithoutEventsInput = {
update: XOR<CalendarUpdateWithoutEventsInput, CalendarUncheckedUpdateWithoutEventsInput>
create: XOR<CalendarCreateWithoutEventsInput, CalendarUncheckedCreateWithoutEventsInput>
where?: CalendarWhereInput
}
export type CalendarUpdateToOneWithWhereWithoutEventsInput = {
where?: CalendarWhereInput
data: XOR<CalendarUpdateWithoutEventsInput, CalendarUncheckedUpdateWithoutEventsInput>
}
export type CalendarUpdateWithoutEventsInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
color?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
user?: UserUpdateOneRequiredWithoutCalendarsNestedInput
}
export type CalendarUncheckedUpdateWithoutEventsInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
color?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
userId?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type UserUpsertWithoutEventsInput = {
update: XOR<UserUpdateWithoutEventsInput, UserUncheckedUpdateWithoutEventsInput>
create: XOR<UserCreateWithoutEventsInput, UserUncheckedCreateWithoutEventsInput>
where?: UserWhereInput
}
export type UserUpdateToOneWithWhereWithoutEventsInput = {
where?: UserWhereInput
data: XOR<UserUpdateWithoutEventsInput, UserUncheckedUpdateWithoutEventsInput>
}
export type UserUpdateWithoutEventsInput = {
id?: StringFieldUpdateOperationsInput | string
email?: StringFieldUpdateOperationsInput | string
password?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
calendars?: CalendarUpdateManyWithoutUserNestedInput
mailCredentials?: MailCredentialsUpdateManyWithoutUserNestedInput
webdavCredentials?: WebDAVCredentialsUpdateOneWithoutUserNestedInput
announcements?: AnnouncementUpdateManyWithoutAuthorNestedInput
missions?: MissionUpdateManyWithoutCreatorNestedInput
missionUsers?: MissionUserUpdateManyWithoutUserNestedInput
uploadedAttachments?: AttachmentUpdateManyWithoutUploaderNestedInput
}
export type UserUncheckedUpdateWithoutEventsInput = {
id?: StringFieldUpdateOperationsInput | string
email?: StringFieldUpdateOperationsInput | string
password?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
calendars?: CalendarUncheckedUpdateManyWithoutUserNestedInput
mailCredentials?: MailCredentialsUncheckedUpdateManyWithoutUserNestedInput
webdavCredentials?: WebDAVCredentialsUncheckedUpdateOneWithoutUserNestedInput
announcements?: AnnouncementUncheckedUpdateManyWithoutAuthorNestedInput
missions?: MissionUncheckedUpdateManyWithoutCreatorNestedInput
missionUsers?: MissionUserUncheckedUpdateManyWithoutUserNestedInput
uploadedAttachments?: AttachmentUncheckedUpdateManyWithoutUploaderNestedInput
}
export type UserCreateWithoutMailCredentialsInput = {
id?: string
email: string
password: string
createdAt?: Date | string
updatedAt?: Date | string
calendars?: CalendarCreateNestedManyWithoutUserInput
events?: EventCreateNestedManyWithoutUserInput
webdavCredentials?: WebDAVCredentialsCreateNestedOneWithoutUserInput
announcements?: AnnouncementCreateNestedManyWithoutAuthorInput
missions?: MissionCreateNestedManyWithoutCreatorInput
missionUsers?: MissionUserCreateNestedManyWithoutUserInput
uploadedAttachments?: AttachmentCreateNestedManyWithoutUploaderInput
}
export type UserUncheckedCreateWithoutMailCredentialsInput = {
id?: string
email: string
password: string
createdAt?: Date | string
updatedAt?: Date | string
calendars?: CalendarUncheckedCreateNestedManyWithoutUserInput
events?: EventUncheckedCreateNestedManyWithoutUserInput
webdavCredentials?: WebDAVCredentialsUncheckedCreateNestedOneWithoutUserInput
announcements?: AnnouncementUncheckedCreateNestedManyWithoutAuthorInput
missions?: MissionUncheckedCreateNestedManyWithoutCreatorInput
missionUsers?: MissionUserUncheckedCreateNestedManyWithoutUserInput
uploadedAttachments?: AttachmentUncheckedCreateNestedManyWithoutUploaderInput
}
export type UserCreateOrConnectWithoutMailCredentialsInput = {
where: UserWhereUniqueInput
create: XOR<UserCreateWithoutMailCredentialsInput, UserUncheckedCreateWithoutMailCredentialsInput>
}
export type UserUpsertWithoutMailCredentialsInput = {
update: XOR<UserUpdateWithoutMailCredentialsInput, UserUncheckedUpdateWithoutMailCredentialsInput>
create: XOR<UserCreateWithoutMailCredentialsInput, UserUncheckedCreateWithoutMailCredentialsInput>
where?: UserWhereInput
}
export type UserUpdateToOneWithWhereWithoutMailCredentialsInput = {
where?: UserWhereInput
data: XOR<UserUpdateWithoutMailCredentialsInput, UserUncheckedUpdateWithoutMailCredentialsInput>
}
export type UserUpdateWithoutMailCredentialsInput = {
id?: StringFieldUpdateOperationsInput | string
email?: StringFieldUpdateOperationsInput | string
password?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
calendars?: CalendarUpdateManyWithoutUserNestedInput
events?: EventUpdateManyWithoutUserNestedInput
webdavCredentials?: WebDAVCredentialsUpdateOneWithoutUserNestedInput
announcements?: AnnouncementUpdateManyWithoutAuthorNestedInput
missions?: MissionUpdateManyWithoutCreatorNestedInput
missionUsers?: MissionUserUpdateManyWithoutUserNestedInput
uploadedAttachments?: AttachmentUpdateManyWithoutUploaderNestedInput
}
export type UserUncheckedUpdateWithoutMailCredentialsInput = {
id?: StringFieldUpdateOperationsInput | string
email?: StringFieldUpdateOperationsInput | string
password?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
calendars?: CalendarUncheckedUpdateManyWithoutUserNestedInput
events?: EventUncheckedUpdateManyWithoutUserNestedInput
webdavCredentials?: WebDAVCredentialsUncheckedUpdateOneWithoutUserNestedInput
announcements?: AnnouncementUncheckedUpdateManyWithoutAuthorNestedInput
missions?: MissionUncheckedUpdateManyWithoutCreatorNestedInput
missionUsers?: MissionUserUncheckedUpdateManyWithoutUserNestedInput
uploadedAttachments?: AttachmentUncheckedUpdateManyWithoutUploaderNestedInput
}
export type UserCreateWithoutWebdavCredentialsInput = {
id?: string
email: string
password: string
createdAt?: Date | string
updatedAt?: Date | string
calendars?: CalendarCreateNestedManyWithoutUserInput
events?: EventCreateNestedManyWithoutUserInput
mailCredentials?: MailCredentialsCreateNestedManyWithoutUserInput
announcements?: AnnouncementCreateNestedManyWithoutAuthorInput
missions?: MissionCreateNestedManyWithoutCreatorInput
missionUsers?: MissionUserCreateNestedManyWithoutUserInput
uploadedAttachments?: AttachmentCreateNestedManyWithoutUploaderInput
}
export type UserUncheckedCreateWithoutWebdavCredentialsInput = {
id?: string
email: string
password: string
createdAt?: Date | string
updatedAt?: Date | string
calendars?: CalendarUncheckedCreateNestedManyWithoutUserInput
events?: EventUncheckedCreateNestedManyWithoutUserInput
mailCredentials?: MailCredentialsUncheckedCreateNestedManyWithoutUserInput
announcements?: AnnouncementUncheckedCreateNestedManyWithoutAuthorInput
missions?: MissionUncheckedCreateNestedManyWithoutCreatorInput
missionUsers?: MissionUserUncheckedCreateNestedManyWithoutUserInput
uploadedAttachments?: AttachmentUncheckedCreateNestedManyWithoutUploaderInput
}
export type UserCreateOrConnectWithoutWebdavCredentialsInput = {
where: UserWhereUniqueInput
create: XOR<UserCreateWithoutWebdavCredentialsInput, UserUncheckedCreateWithoutWebdavCredentialsInput>
}
export type UserUpsertWithoutWebdavCredentialsInput = {
update: XOR<UserUpdateWithoutWebdavCredentialsInput, UserUncheckedUpdateWithoutWebdavCredentialsInput>
create: XOR<UserCreateWithoutWebdavCredentialsInput, UserUncheckedCreateWithoutWebdavCredentialsInput>
where?: UserWhereInput
}
export type UserUpdateToOneWithWhereWithoutWebdavCredentialsInput = {
where?: UserWhereInput
data: XOR<UserUpdateWithoutWebdavCredentialsInput, UserUncheckedUpdateWithoutWebdavCredentialsInput>
}
export type UserUpdateWithoutWebdavCredentialsInput = {
id?: StringFieldUpdateOperationsInput | string
email?: StringFieldUpdateOperationsInput | string
password?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
calendars?: CalendarUpdateManyWithoutUserNestedInput
events?: EventUpdateManyWithoutUserNestedInput
mailCredentials?: MailCredentialsUpdateManyWithoutUserNestedInput
announcements?: AnnouncementUpdateManyWithoutAuthorNestedInput
missions?: MissionUpdateManyWithoutCreatorNestedInput
missionUsers?: MissionUserUpdateManyWithoutUserNestedInput
uploadedAttachments?: AttachmentUpdateManyWithoutUploaderNestedInput
}
export type UserUncheckedUpdateWithoutWebdavCredentialsInput = {
id?: StringFieldUpdateOperationsInput | string
email?: StringFieldUpdateOperationsInput | string
password?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
calendars?: CalendarUncheckedUpdateManyWithoutUserNestedInput
events?: EventUncheckedUpdateManyWithoutUserNestedInput
mailCredentials?: MailCredentialsUncheckedUpdateManyWithoutUserNestedInput
announcements?: AnnouncementUncheckedUpdateManyWithoutAuthorNestedInput
missions?: MissionUncheckedUpdateManyWithoutCreatorNestedInput
missionUsers?: MissionUserUncheckedUpdateManyWithoutUserNestedInput
uploadedAttachments?: AttachmentUncheckedUpdateManyWithoutUploaderNestedInput
}
export type UserCreateWithoutAnnouncementsInput = {
id?: string
email: string
password: string
createdAt?: Date | string
updatedAt?: Date | string
calendars?: CalendarCreateNestedManyWithoutUserInput
events?: EventCreateNestedManyWithoutUserInput
mailCredentials?: MailCredentialsCreateNestedManyWithoutUserInput
webdavCredentials?: WebDAVCredentialsCreateNestedOneWithoutUserInput
missions?: MissionCreateNestedManyWithoutCreatorInput
missionUsers?: MissionUserCreateNestedManyWithoutUserInput
uploadedAttachments?: AttachmentCreateNestedManyWithoutUploaderInput
}
export type UserUncheckedCreateWithoutAnnouncementsInput = {
id?: string
email: string
password: string
createdAt?: Date | string
updatedAt?: Date | string
calendars?: CalendarUncheckedCreateNestedManyWithoutUserInput
events?: EventUncheckedCreateNestedManyWithoutUserInput
mailCredentials?: MailCredentialsUncheckedCreateNestedManyWithoutUserInput
webdavCredentials?: WebDAVCredentialsUncheckedCreateNestedOneWithoutUserInput
missions?: MissionUncheckedCreateNestedManyWithoutCreatorInput
missionUsers?: MissionUserUncheckedCreateNestedManyWithoutUserInput
uploadedAttachments?: AttachmentUncheckedCreateNestedManyWithoutUploaderInput
}
export type UserCreateOrConnectWithoutAnnouncementsInput = {
where: UserWhereUniqueInput
create: XOR<UserCreateWithoutAnnouncementsInput, UserUncheckedCreateWithoutAnnouncementsInput>
}
export type UserUpsertWithoutAnnouncementsInput = {
update: XOR<UserUpdateWithoutAnnouncementsInput, UserUncheckedUpdateWithoutAnnouncementsInput>
create: XOR<UserCreateWithoutAnnouncementsInput, UserUncheckedCreateWithoutAnnouncementsInput>
where?: UserWhereInput
}
export type UserUpdateToOneWithWhereWithoutAnnouncementsInput = {
where?: UserWhereInput
data: XOR<UserUpdateWithoutAnnouncementsInput, UserUncheckedUpdateWithoutAnnouncementsInput>
}
export type UserUpdateWithoutAnnouncementsInput = {
id?: StringFieldUpdateOperationsInput | string
email?: StringFieldUpdateOperationsInput | string
password?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
calendars?: CalendarUpdateManyWithoutUserNestedInput
events?: EventUpdateManyWithoutUserNestedInput
mailCredentials?: MailCredentialsUpdateManyWithoutUserNestedInput
webdavCredentials?: WebDAVCredentialsUpdateOneWithoutUserNestedInput
missions?: MissionUpdateManyWithoutCreatorNestedInput
missionUsers?: MissionUserUpdateManyWithoutUserNestedInput
uploadedAttachments?: AttachmentUpdateManyWithoutUploaderNestedInput
}
export type UserUncheckedUpdateWithoutAnnouncementsInput = {
id?: StringFieldUpdateOperationsInput | string
email?: StringFieldUpdateOperationsInput | string
password?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
calendars?: CalendarUncheckedUpdateManyWithoutUserNestedInput
events?: EventUncheckedUpdateManyWithoutUserNestedInput
mailCredentials?: MailCredentialsUncheckedUpdateManyWithoutUserNestedInput
webdavCredentials?: WebDAVCredentialsUncheckedUpdateOneWithoutUserNestedInput
missions?: MissionUncheckedUpdateManyWithoutCreatorNestedInput
missionUsers?: MissionUserUncheckedUpdateManyWithoutUserNestedInput
uploadedAttachments?: AttachmentUncheckedUpdateManyWithoutUploaderNestedInput
}
export type UserCreateWithoutMissionsInput = {
id?: string
email: string
password: string
createdAt?: Date | string
updatedAt?: Date | string
calendars?: CalendarCreateNestedManyWithoutUserInput
events?: EventCreateNestedManyWithoutUserInput
mailCredentials?: MailCredentialsCreateNestedManyWithoutUserInput
webdavCredentials?: WebDAVCredentialsCreateNestedOneWithoutUserInput
announcements?: AnnouncementCreateNestedManyWithoutAuthorInput
missionUsers?: MissionUserCreateNestedManyWithoutUserInput
uploadedAttachments?: AttachmentCreateNestedManyWithoutUploaderInput
}
export type UserUncheckedCreateWithoutMissionsInput = {
id?: string
email: string
password: string
createdAt?: Date | string
updatedAt?: Date | string
calendars?: CalendarUncheckedCreateNestedManyWithoutUserInput
events?: EventUncheckedCreateNestedManyWithoutUserInput
mailCredentials?: MailCredentialsUncheckedCreateNestedManyWithoutUserInput
webdavCredentials?: WebDAVCredentialsUncheckedCreateNestedOneWithoutUserInput
announcements?: AnnouncementUncheckedCreateNestedManyWithoutAuthorInput
missionUsers?: MissionUserUncheckedCreateNestedManyWithoutUserInput
uploadedAttachments?: AttachmentUncheckedCreateNestedManyWithoutUploaderInput
}
export type UserCreateOrConnectWithoutMissionsInput = {
where: UserWhereUniqueInput
create: XOR<UserCreateWithoutMissionsInput, UserUncheckedCreateWithoutMissionsInput>
}
export type AttachmentCreateWithoutMissionInput = {
id?: string
filename: string
filePath: string
fileType: string
fileSize: number
createdAt?: Date | string
updatedAt?: Date | string
uploader: UserCreateNestedOneWithoutUploadedAttachmentsInput
}
export type AttachmentUncheckedCreateWithoutMissionInput = {
id?: string
filename: string
filePath: string
fileType: string
fileSize: number
createdAt?: Date | string
updatedAt?: Date | string
uploaderId: string
}
export type AttachmentCreateOrConnectWithoutMissionInput = {
where: AttachmentWhereUniqueInput
create: XOR<AttachmentCreateWithoutMissionInput, AttachmentUncheckedCreateWithoutMissionInput>
}
export type AttachmentCreateManyMissionInputEnvelope = {
data: AttachmentCreateManyMissionInput | AttachmentCreateManyMissionInput[]
skipDuplicates?: boolean
}
export type MissionUserCreateWithoutMissionInput = {
id?: string
role: string
createdAt?: Date | string
updatedAt?: Date | string
user: UserCreateNestedOneWithoutMissionUsersInput
}
export type MissionUserUncheckedCreateWithoutMissionInput = {
id?: string
role: string
createdAt?: Date | string
updatedAt?: Date | string
userId: string
}
export type MissionUserCreateOrConnectWithoutMissionInput = {
where: MissionUserWhereUniqueInput
create: XOR<MissionUserCreateWithoutMissionInput, MissionUserUncheckedCreateWithoutMissionInput>
}
export type MissionUserCreateManyMissionInputEnvelope = {
data: MissionUserCreateManyMissionInput | MissionUserCreateManyMissionInput[]
skipDuplicates?: boolean
}
export type UserUpsertWithoutMissionsInput = {
update: XOR<UserUpdateWithoutMissionsInput, UserUncheckedUpdateWithoutMissionsInput>
create: XOR<UserCreateWithoutMissionsInput, UserUncheckedCreateWithoutMissionsInput>
where?: UserWhereInput
}
export type UserUpdateToOneWithWhereWithoutMissionsInput = {
where?: UserWhereInput
data: XOR<UserUpdateWithoutMissionsInput, UserUncheckedUpdateWithoutMissionsInput>
}
export type UserUpdateWithoutMissionsInput = {
id?: StringFieldUpdateOperationsInput | string
email?: StringFieldUpdateOperationsInput | string
password?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
calendars?: CalendarUpdateManyWithoutUserNestedInput
events?: EventUpdateManyWithoutUserNestedInput
mailCredentials?: MailCredentialsUpdateManyWithoutUserNestedInput
webdavCredentials?: WebDAVCredentialsUpdateOneWithoutUserNestedInput
announcements?: AnnouncementUpdateManyWithoutAuthorNestedInput
missionUsers?: MissionUserUpdateManyWithoutUserNestedInput
uploadedAttachments?: AttachmentUpdateManyWithoutUploaderNestedInput
}
export type UserUncheckedUpdateWithoutMissionsInput = {
id?: StringFieldUpdateOperationsInput | string
email?: StringFieldUpdateOperationsInput | string
password?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
calendars?: CalendarUncheckedUpdateManyWithoutUserNestedInput
events?: EventUncheckedUpdateManyWithoutUserNestedInput
mailCredentials?: MailCredentialsUncheckedUpdateManyWithoutUserNestedInput
webdavCredentials?: WebDAVCredentialsUncheckedUpdateOneWithoutUserNestedInput
announcements?: AnnouncementUncheckedUpdateManyWithoutAuthorNestedInput
missionUsers?: MissionUserUncheckedUpdateManyWithoutUserNestedInput
uploadedAttachments?: AttachmentUncheckedUpdateManyWithoutUploaderNestedInput
}
export type AttachmentUpsertWithWhereUniqueWithoutMissionInput = {
where: AttachmentWhereUniqueInput
update: XOR<AttachmentUpdateWithoutMissionInput, AttachmentUncheckedUpdateWithoutMissionInput>
create: XOR<AttachmentCreateWithoutMissionInput, AttachmentUncheckedCreateWithoutMissionInput>
}
export type AttachmentUpdateWithWhereUniqueWithoutMissionInput = {
where: AttachmentWhereUniqueInput
data: XOR<AttachmentUpdateWithoutMissionInput, AttachmentUncheckedUpdateWithoutMissionInput>
}
export type AttachmentUpdateManyWithWhereWithoutMissionInput = {
where: AttachmentScalarWhereInput
data: XOR<AttachmentUpdateManyMutationInput, AttachmentUncheckedUpdateManyWithoutMissionInput>
}
export type MissionUserUpsertWithWhereUniqueWithoutMissionInput = {
where: MissionUserWhereUniqueInput
update: XOR<MissionUserUpdateWithoutMissionInput, MissionUserUncheckedUpdateWithoutMissionInput>
create: XOR<MissionUserCreateWithoutMissionInput, MissionUserUncheckedCreateWithoutMissionInput>
}
export type MissionUserUpdateWithWhereUniqueWithoutMissionInput = {
where: MissionUserWhereUniqueInput
data: XOR<MissionUserUpdateWithoutMissionInput, MissionUserUncheckedUpdateWithoutMissionInput>
}
export type MissionUserUpdateManyWithWhereWithoutMissionInput = {
where: MissionUserScalarWhereInput
data: XOR<MissionUserUpdateManyMutationInput, MissionUserUncheckedUpdateManyWithoutMissionInput>
}
export type MissionCreateWithoutAttachmentsInput = {
id?: string
name: string
logo?: string | null
oddScope?: MissionCreateoddScopeInput | string[]
niveau: string
intention: string
missionType: string
donneurDOrdre: string
projection: string
services?: MissionCreateservicesInput | string[]
participation?: string | null
profils?: MissionCreateprofilsInput | string[]
createdAt?: Date | string
updatedAt?: Date | string
leantimeProjectId?: string | null
outlineCollectionId?: string | null
rocketChatChannelId?: string | null
giteaRepositoryUrl?: string | null
penpotProjectId?: string | null
creator: UserCreateNestedOneWithoutMissionsInput
missionUsers?: MissionUserCreateNestedManyWithoutMissionInput
}
export type MissionUncheckedCreateWithoutAttachmentsInput = {
id?: string
name: string
logo?: string | null
oddScope?: MissionCreateoddScopeInput | string[]
niveau: string
intention: string
missionType: string
donneurDOrdre: string
projection: string
services?: MissionCreateservicesInput | string[]
participation?: string | null
profils?: MissionCreateprofilsInput | string[]
createdAt?: Date | string
updatedAt?: Date | string
creatorId: string
leantimeProjectId?: string | null
outlineCollectionId?: string | null
rocketChatChannelId?: string | null
giteaRepositoryUrl?: string | null
penpotProjectId?: string | null
missionUsers?: MissionUserUncheckedCreateNestedManyWithoutMissionInput
}
export type MissionCreateOrConnectWithoutAttachmentsInput = {
where: MissionWhereUniqueInput
create: XOR<MissionCreateWithoutAttachmentsInput, MissionUncheckedCreateWithoutAttachmentsInput>
}
export type UserCreateWithoutUploadedAttachmentsInput = {
id?: string
email: string
password: string
createdAt?: Date | string
updatedAt?: Date | string
calendars?: CalendarCreateNestedManyWithoutUserInput
events?: EventCreateNestedManyWithoutUserInput
mailCredentials?: MailCredentialsCreateNestedManyWithoutUserInput
webdavCredentials?: WebDAVCredentialsCreateNestedOneWithoutUserInput
announcements?: AnnouncementCreateNestedManyWithoutAuthorInput
missions?: MissionCreateNestedManyWithoutCreatorInput
missionUsers?: MissionUserCreateNestedManyWithoutUserInput
}
export type UserUncheckedCreateWithoutUploadedAttachmentsInput = {
id?: string
email: string
password: string
createdAt?: Date | string
updatedAt?: Date | string
calendars?: CalendarUncheckedCreateNestedManyWithoutUserInput
events?: EventUncheckedCreateNestedManyWithoutUserInput
mailCredentials?: MailCredentialsUncheckedCreateNestedManyWithoutUserInput
webdavCredentials?: WebDAVCredentialsUncheckedCreateNestedOneWithoutUserInput
announcements?: AnnouncementUncheckedCreateNestedManyWithoutAuthorInput
missions?: MissionUncheckedCreateNestedManyWithoutCreatorInput
missionUsers?: MissionUserUncheckedCreateNestedManyWithoutUserInput
}
export type UserCreateOrConnectWithoutUploadedAttachmentsInput = {
where: UserWhereUniqueInput
create: XOR<UserCreateWithoutUploadedAttachmentsInput, UserUncheckedCreateWithoutUploadedAttachmentsInput>
}
export type MissionUpsertWithoutAttachmentsInput = {
update: XOR<MissionUpdateWithoutAttachmentsInput, MissionUncheckedUpdateWithoutAttachmentsInput>
create: XOR<MissionCreateWithoutAttachmentsInput, MissionUncheckedCreateWithoutAttachmentsInput>
where?: MissionWhereInput
}
export type MissionUpdateToOneWithWhereWithoutAttachmentsInput = {
where?: MissionWhereInput
data: XOR<MissionUpdateWithoutAttachmentsInput, MissionUncheckedUpdateWithoutAttachmentsInput>
}
export type MissionUpdateWithoutAttachmentsInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
logo?: NullableStringFieldUpdateOperationsInput | string | null
oddScope?: MissionUpdateoddScopeInput | string[]
niveau?: StringFieldUpdateOperationsInput | string
intention?: StringFieldUpdateOperationsInput | string
missionType?: StringFieldUpdateOperationsInput | string
donneurDOrdre?: StringFieldUpdateOperationsInput | string
projection?: StringFieldUpdateOperationsInput | string
services?: MissionUpdateservicesInput | string[]
participation?: NullableStringFieldUpdateOperationsInput | string | null
profils?: MissionUpdateprofilsInput | string[]
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
leantimeProjectId?: NullableStringFieldUpdateOperationsInput | string | null
outlineCollectionId?: NullableStringFieldUpdateOperationsInput | string | null
rocketChatChannelId?: NullableStringFieldUpdateOperationsInput | string | null
giteaRepositoryUrl?: NullableStringFieldUpdateOperationsInput | string | null
penpotProjectId?: NullableStringFieldUpdateOperationsInput | string | null
creator?: UserUpdateOneRequiredWithoutMissionsNestedInput
missionUsers?: MissionUserUpdateManyWithoutMissionNestedInput
}
export type MissionUncheckedUpdateWithoutAttachmentsInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
logo?: NullableStringFieldUpdateOperationsInput | string | null
oddScope?: MissionUpdateoddScopeInput | string[]
niveau?: StringFieldUpdateOperationsInput | string
intention?: StringFieldUpdateOperationsInput | string
missionType?: StringFieldUpdateOperationsInput | string
donneurDOrdre?: StringFieldUpdateOperationsInput | string
projection?: StringFieldUpdateOperationsInput | string
services?: MissionUpdateservicesInput | string[]
participation?: NullableStringFieldUpdateOperationsInput | string | null
profils?: MissionUpdateprofilsInput | string[]
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
creatorId?: StringFieldUpdateOperationsInput | string
leantimeProjectId?: NullableStringFieldUpdateOperationsInput | string | null
outlineCollectionId?: NullableStringFieldUpdateOperationsInput | string | null
rocketChatChannelId?: NullableStringFieldUpdateOperationsInput | string | null
giteaRepositoryUrl?: NullableStringFieldUpdateOperationsInput | string | null
penpotProjectId?: NullableStringFieldUpdateOperationsInput | string | null
missionUsers?: MissionUserUncheckedUpdateManyWithoutMissionNestedInput
}
export type UserUpsertWithoutUploadedAttachmentsInput = {
update: XOR<UserUpdateWithoutUploadedAttachmentsInput, UserUncheckedUpdateWithoutUploadedAttachmentsInput>
create: XOR<UserCreateWithoutUploadedAttachmentsInput, UserUncheckedCreateWithoutUploadedAttachmentsInput>
where?: UserWhereInput
}
export type UserUpdateToOneWithWhereWithoutUploadedAttachmentsInput = {
where?: UserWhereInput
data: XOR<UserUpdateWithoutUploadedAttachmentsInput, UserUncheckedUpdateWithoutUploadedAttachmentsInput>
}
export type UserUpdateWithoutUploadedAttachmentsInput = {
id?: StringFieldUpdateOperationsInput | string
email?: StringFieldUpdateOperationsInput | string
password?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
calendars?: CalendarUpdateManyWithoutUserNestedInput
events?: EventUpdateManyWithoutUserNestedInput
mailCredentials?: MailCredentialsUpdateManyWithoutUserNestedInput
webdavCredentials?: WebDAVCredentialsUpdateOneWithoutUserNestedInput
announcements?: AnnouncementUpdateManyWithoutAuthorNestedInput
missions?: MissionUpdateManyWithoutCreatorNestedInput
missionUsers?: MissionUserUpdateManyWithoutUserNestedInput
}
export type UserUncheckedUpdateWithoutUploadedAttachmentsInput = {
id?: StringFieldUpdateOperationsInput | string
email?: StringFieldUpdateOperationsInput | string
password?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
calendars?: CalendarUncheckedUpdateManyWithoutUserNestedInput
events?: EventUncheckedUpdateManyWithoutUserNestedInput
mailCredentials?: MailCredentialsUncheckedUpdateManyWithoutUserNestedInput
webdavCredentials?: WebDAVCredentialsUncheckedUpdateOneWithoutUserNestedInput
announcements?: AnnouncementUncheckedUpdateManyWithoutAuthorNestedInput
missions?: MissionUncheckedUpdateManyWithoutCreatorNestedInput
missionUsers?: MissionUserUncheckedUpdateManyWithoutUserNestedInput
}
export type MissionCreateWithoutMissionUsersInput = {
id?: string
name: string
logo?: string | null
oddScope?: MissionCreateoddScopeInput | string[]
niveau: string
intention: string
missionType: string
donneurDOrdre: string
projection: string
services?: MissionCreateservicesInput | string[]
participation?: string | null
profils?: MissionCreateprofilsInput | string[]
createdAt?: Date | string
updatedAt?: Date | string
leantimeProjectId?: string | null
outlineCollectionId?: string | null
rocketChatChannelId?: string | null
giteaRepositoryUrl?: string | null
penpotProjectId?: string | null
creator: UserCreateNestedOneWithoutMissionsInput
attachments?: AttachmentCreateNestedManyWithoutMissionInput
}
export type MissionUncheckedCreateWithoutMissionUsersInput = {
id?: string
name: string
logo?: string | null
oddScope?: MissionCreateoddScopeInput | string[]
niveau: string
intention: string
missionType: string
donneurDOrdre: string
projection: string
services?: MissionCreateservicesInput | string[]
participation?: string | null
profils?: MissionCreateprofilsInput | string[]
createdAt?: Date | string
updatedAt?: Date | string
creatorId: string
leantimeProjectId?: string | null
outlineCollectionId?: string | null
rocketChatChannelId?: string | null
giteaRepositoryUrl?: string | null
penpotProjectId?: string | null
attachments?: AttachmentUncheckedCreateNestedManyWithoutMissionInput
}
export type MissionCreateOrConnectWithoutMissionUsersInput = {
where: MissionWhereUniqueInput
create: XOR<MissionCreateWithoutMissionUsersInput, MissionUncheckedCreateWithoutMissionUsersInput>
}
export type UserCreateWithoutMissionUsersInput = {
id?: string
email: string
password: string
createdAt?: Date | string
updatedAt?: Date | string
calendars?: CalendarCreateNestedManyWithoutUserInput
events?: EventCreateNestedManyWithoutUserInput
mailCredentials?: MailCredentialsCreateNestedManyWithoutUserInput
webdavCredentials?: WebDAVCredentialsCreateNestedOneWithoutUserInput
announcements?: AnnouncementCreateNestedManyWithoutAuthorInput
missions?: MissionCreateNestedManyWithoutCreatorInput
uploadedAttachments?: AttachmentCreateNestedManyWithoutUploaderInput
}
export type UserUncheckedCreateWithoutMissionUsersInput = {
id?: string
email: string
password: string
createdAt?: Date | string
updatedAt?: Date | string
calendars?: CalendarUncheckedCreateNestedManyWithoutUserInput
events?: EventUncheckedCreateNestedManyWithoutUserInput
mailCredentials?: MailCredentialsUncheckedCreateNestedManyWithoutUserInput
webdavCredentials?: WebDAVCredentialsUncheckedCreateNestedOneWithoutUserInput
announcements?: AnnouncementUncheckedCreateNestedManyWithoutAuthorInput
missions?: MissionUncheckedCreateNestedManyWithoutCreatorInput
uploadedAttachments?: AttachmentUncheckedCreateNestedManyWithoutUploaderInput
}
export type UserCreateOrConnectWithoutMissionUsersInput = {
where: UserWhereUniqueInput
create: XOR<UserCreateWithoutMissionUsersInput, UserUncheckedCreateWithoutMissionUsersInput>
}
export type MissionUpsertWithoutMissionUsersInput = {
update: XOR<MissionUpdateWithoutMissionUsersInput, MissionUncheckedUpdateWithoutMissionUsersInput>
create: XOR<MissionCreateWithoutMissionUsersInput, MissionUncheckedCreateWithoutMissionUsersInput>
where?: MissionWhereInput
}
export type MissionUpdateToOneWithWhereWithoutMissionUsersInput = {
where?: MissionWhereInput
data: XOR<MissionUpdateWithoutMissionUsersInput, MissionUncheckedUpdateWithoutMissionUsersInput>
}
export type MissionUpdateWithoutMissionUsersInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
logo?: NullableStringFieldUpdateOperationsInput | string | null
oddScope?: MissionUpdateoddScopeInput | string[]
niveau?: StringFieldUpdateOperationsInput | string
intention?: StringFieldUpdateOperationsInput | string
missionType?: StringFieldUpdateOperationsInput | string
donneurDOrdre?: StringFieldUpdateOperationsInput | string
projection?: StringFieldUpdateOperationsInput | string
services?: MissionUpdateservicesInput | string[]
participation?: NullableStringFieldUpdateOperationsInput | string | null
profils?: MissionUpdateprofilsInput | string[]
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
leantimeProjectId?: NullableStringFieldUpdateOperationsInput | string | null
outlineCollectionId?: NullableStringFieldUpdateOperationsInput | string | null
rocketChatChannelId?: NullableStringFieldUpdateOperationsInput | string | null
giteaRepositoryUrl?: NullableStringFieldUpdateOperationsInput | string | null
penpotProjectId?: NullableStringFieldUpdateOperationsInput | string | null
creator?: UserUpdateOneRequiredWithoutMissionsNestedInput
attachments?: AttachmentUpdateManyWithoutMissionNestedInput
}
export type MissionUncheckedUpdateWithoutMissionUsersInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
logo?: NullableStringFieldUpdateOperationsInput | string | null
oddScope?: MissionUpdateoddScopeInput | string[]
niveau?: StringFieldUpdateOperationsInput | string
intention?: StringFieldUpdateOperationsInput | string
missionType?: StringFieldUpdateOperationsInput | string
donneurDOrdre?: StringFieldUpdateOperationsInput | string
projection?: StringFieldUpdateOperationsInput | string
services?: MissionUpdateservicesInput | string[]
participation?: NullableStringFieldUpdateOperationsInput | string | null
profils?: MissionUpdateprofilsInput | string[]
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
creatorId?: StringFieldUpdateOperationsInput | string
leantimeProjectId?: NullableStringFieldUpdateOperationsInput | string | null
outlineCollectionId?: NullableStringFieldUpdateOperationsInput | string | null
rocketChatChannelId?: NullableStringFieldUpdateOperationsInput | string | null
giteaRepositoryUrl?: NullableStringFieldUpdateOperationsInput | string | null
penpotProjectId?: NullableStringFieldUpdateOperationsInput | string | null
attachments?: AttachmentUncheckedUpdateManyWithoutMissionNestedInput
}
export type UserUpsertWithoutMissionUsersInput = {
update: XOR<UserUpdateWithoutMissionUsersInput, UserUncheckedUpdateWithoutMissionUsersInput>
create: XOR<UserCreateWithoutMissionUsersInput, UserUncheckedCreateWithoutMissionUsersInput>
where?: UserWhereInput
}
export type UserUpdateToOneWithWhereWithoutMissionUsersInput = {
where?: UserWhereInput
data: XOR<UserUpdateWithoutMissionUsersInput, UserUncheckedUpdateWithoutMissionUsersInput>
}
export type UserUpdateWithoutMissionUsersInput = {
id?: StringFieldUpdateOperationsInput | string
email?: StringFieldUpdateOperationsInput | string
password?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
calendars?: CalendarUpdateManyWithoutUserNestedInput
events?: EventUpdateManyWithoutUserNestedInput
mailCredentials?: MailCredentialsUpdateManyWithoutUserNestedInput
webdavCredentials?: WebDAVCredentialsUpdateOneWithoutUserNestedInput
announcements?: AnnouncementUpdateManyWithoutAuthorNestedInput
missions?: MissionUpdateManyWithoutCreatorNestedInput
uploadedAttachments?: AttachmentUpdateManyWithoutUploaderNestedInput
}
export type UserUncheckedUpdateWithoutMissionUsersInput = {
id?: StringFieldUpdateOperationsInput | string
email?: StringFieldUpdateOperationsInput | string
password?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
calendars?: CalendarUncheckedUpdateManyWithoutUserNestedInput
events?: EventUncheckedUpdateManyWithoutUserNestedInput
mailCredentials?: MailCredentialsUncheckedUpdateManyWithoutUserNestedInput
webdavCredentials?: WebDAVCredentialsUncheckedUpdateOneWithoutUserNestedInput
announcements?: AnnouncementUncheckedUpdateManyWithoutAuthorNestedInput
missions?: MissionUncheckedUpdateManyWithoutCreatorNestedInput
uploadedAttachments?: AttachmentUncheckedUpdateManyWithoutUploaderNestedInput
}
export type CalendarCreateManyUserInput = {
id?: string
name: string
color?: string
description?: string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type EventCreateManyUserInput = {
id?: string
title: string
description?: string | null
start: Date | string
end: Date | string
location?: string | null
isAllDay?: boolean
calendarId: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type MailCredentialsCreateManyUserInput = {
id?: string
email: string
password?: string | null
host: string
port: number
secure?: boolean
use_oauth?: boolean
refresh_token?: string | null
access_token?: string | null
token_expiry?: Date | string | null
smtp_host?: string | null
smtp_port?: number | null
smtp_secure?: boolean | null
display_name?: string | null
color?: string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type AnnouncementCreateManyAuthorInput = {
id?: string
title: string
content: string
createdAt?: Date | string
updatedAt?: Date | string
targetRoles?: AnnouncementCreatetargetRolesInput | string[]
}
export type MissionCreateManyCreatorInput = {
id?: string
name: string
logo?: string | null
oddScope?: MissionCreateoddScopeInput | string[]
niveau: string
intention: string
missionType: string
donneurDOrdre: string
projection: string
services?: MissionCreateservicesInput | string[]
participation?: string | null
profils?: MissionCreateprofilsInput | string[]
createdAt?: Date | string
updatedAt?: Date | string
leantimeProjectId?: string | null
outlineCollectionId?: string | null
rocketChatChannelId?: string | null
giteaRepositoryUrl?: string | null
penpotProjectId?: string | null
}
export type MissionUserCreateManyUserInput = {
id?: string
role: string
createdAt?: Date | string
updatedAt?: Date | string
missionId: string
}
export type AttachmentCreateManyUploaderInput = {
id?: string
filename: string
filePath: string
fileType: string
fileSize: number
createdAt?: Date | string
updatedAt?: Date | string
missionId: string
}
export type CalendarUpdateWithoutUserInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
color?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
events?: EventUpdateManyWithoutCalendarNestedInput
}
export type CalendarUncheckedUpdateWithoutUserInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
color?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
events?: EventUncheckedUpdateManyWithoutCalendarNestedInput
}
export type CalendarUncheckedUpdateManyWithoutUserInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
color?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type EventUpdateWithoutUserInput = {
id?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
start?: DateTimeFieldUpdateOperationsInput | Date | string
end?: DateTimeFieldUpdateOperationsInput | Date | string
location?: NullableStringFieldUpdateOperationsInput | string | null
isAllDay?: BoolFieldUpdateOperationsInput | boolean
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
calendar?: CalendarUpdateOneRequiredWithoutEventsNestedInput
}
export type EventUncheckedUpdateWithoutUserInput = {
id?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
start?: DateTimeFieldUpdateOperationsInput | Date | string
end?: DateTimeFieldUpdateOperationsInput | Date | string
location?: NullableStringFieldUpdateOperationsInput | string | null
isAllDay?: BoolFieldUpdateOperationsInput | boolean
calendarId?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type EventUncheckedUpdateManyWithoutUserInput = {
id?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
start?: DateTimeFieldUpdateOperationsInput | Date | string
end?: DateTimeFieldUpdateOperationsInput | Date | string
location?: NullableStringFieldUpdateOperationsInput | string | null
isAllDay?: BoolFieldUpdateOperationsInput | boolean
calendarId?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type MailCredentialsUpdateWithoutUserInput = {
id?: StringFieldUpdateOperationsInput | string
email?: StringFieldUpdateOperationsInput | string
password?: NullableStringFieldUpdateOperationsInput | string | null
host?: StringFieldUpdateOperationsInput | string
port?: IntFieldUpdateOperationsInput | number
secure?: BoolFieldUpdateOperationsInput | boolean
use_oauth?: BoolFieldUpdateOperationsInput | boolean
refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
access_token?: NullableStringFieldUpdateOperationsInput | string | null
token_expiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
smtp_host?: NullableStringFieldUpdateOperationsInput | string | null
smtp_port?: NullableIntFieldUpdateOperationsInput | number | null
smtp_secure?: NullableBoolFieldUpdateOperationsInput | boolean | null
display_name?: NullableStringFieldUpdateOperationsInput | string | null
color?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type MailCredentialsUncheckedUpdateWithoutUserInput = {
id?: StringFieldUpdateOperationsInput | string
email?: StringFieldUpdateOperationsInput | string
password?: NullableStringFieldUpdateOperationsInput | string | null
host?: StringFieldUpdateOperationsInput | string
port?: IntFieldUpdateOperationsInput | number
secure?: BoolFieldUpdateOperationsInput | boolean
use_oauth?: BoolFieldUpdateOperationsInput | boolean
refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
access_token?: NullableStringFieldUpdateOperationsInput | string | null
token_expiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
smtp_host?: NullableStringFieldUpdateOperationsInput | string | null
smtp_port?: NullableIntFieldUpdateOperationsInput | number | null
smtp_secure?: NullableBoolFieldUpdateOperationsInput | boolean | null
display_name?: NullableStringFieldUpdateOperationsInput | string | null
color?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type MailCredentialsUncheckedUpdateManyWithoutUserInput = {
id?: StringFieldUpdateOperationsInput | string
email?: StringFieldUpdateOperationsInput | string
password?: NullableStringFieldUpdateOperationsInput | string | null
host?: StringFieldUpdateOperationsInput | string
port?: IntFieldUpdateOperationsInput | number
secure?: BoolFieldUpdateOperationsInput | boolean
use_oauth?: BoolFieldUpdateOperationsInput | boolean
refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
access_token?: NullableStringFieldUpdateOperationsInput | string | null
token_expiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
smtp_host?: NullableStringFieldUpdateOperationsInput | string | null
smtp_port?: NullableIntFieldUpdateOperationsInput | number | null
smtp_secure?: NullableBoolFieldUpdateOperationsInput | boolean | null
display_name?: NullableStringFieldUpdateOperationsInput | string | null
color?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type AnnouncementUpdateWithoutAuthorInput = {
id?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
content?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
targetRoles?: AnnouncementUpdatetargetRolesInput | string[]
}
export type AnnouncementUncheckedUpdateWithoutAuthorInput = {
id?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
content?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
targetRoles?: AnnouncementUpdatetargetRolesInput | string[]
}
export type AnnouncementUncheckedUpdateManyWithoutAuthorInput = {
id?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
content?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
targetRoles?: AnnouncementUpdatetargetRolesInput | string[]
}
export type MissionUpdateWithoutCreatorInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
logo?: NullableStringFieldUpdateOperationsInput | string | null
oddScope?: MissionUpdateoddScopeInput | string[]
niveau?: StringFieldUpdateOperationsInput | string
intention?: StringFieldUpdateOperationsInput | string
missionType?: StringFieldUpdateOperationsInput | string
donneurDOrdre?: StringFieldUpdateOperationsInput | string
projection?: StringFieldUpdateOperationsInput | string
services?: MissionUpdateservicesInput | string[]
participation?: NullableStringFieldUpdateOperationsInput | string | null
profils?: MissionUpdateprofilsInput | string[]
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
leantimeProjectId?: NullableStringFieldUpdateOperationsInput | string | null
outlineCollectionId?: NullableStringFieldUpdateOperationsInput | string | null
rocketChatChannelId?: NullableStringFieldUpdateOperationsInput | string | null
giteaRepositoryUrl?: NullableStringFieldUpdateOperationsInput | string | null
penpotProjectId?: NullableStringFieldUpdateOperationsInput | string | null
attachments?: AttachmentUpdateManyWithoutMissionNestedInput
missionUsers?: MissionUserUpdateManyWithoutMissionNestedInput
}
export type MissionUncheckedUpdateWithoutCreatorInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
logo?: NullableStringFieldUpdateOperationsInput | string | null
oddScope?: MissionUpdateoddScopeInput | string[]
niveau?: StringFieldUpdateOperationsInput | string
intention?: StringFieldUpdateOperationsInput | string
missionType?: StringFieldUpdateOperationsInput | string
donneurDOrdre?: StringFieldUpdateOperationsInput | string
projection?: StringFieldUpdateOperationsInput | string
services?: MissionUpdateservicesInput | string[]
participation?: NullableStringFieldUpdateOperationsInput | string | null
profils?: MissionUpdateprofilsInput | string[]
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
leantimeProjectId?: NullableStringFieldUpdateOperationsInput | string | null
outlineCollectionId?: NullableStringFieldUpdateOperationsInput | string | null
rocketChatChannelId?: NullableStringFieldUpdateOperationsInput | string | null
giteaRepositoryUrl?: NullableStringFieldUpdateOperationsInput | string | null
penpotProjectId?: NullableStringFieldUpdateOperationsInput | string | null
attachments?: AttachmentUncheckedUpdateManyWithoutMissionNestedInput
missionUsers?: MissionUserUncheckedUpdateManyWithoutMissionNestedInput
}
export type MissionUncheckedUpdateManyWithoutCreatorInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
logo?: NullableStringFieldUpdateOperationsInput | string | null
oddScope?: MissionUpdateoddScopeInput | string[]
niveau?: StringFieldUpdateOperationsInput | string
intention?: StringFieldUpdateOperationsInput | string
missionType?: StringFieldUpdateOperationsInput | string
donneurDOrdre?: StringFieldUpdateOperationsInput | string
projection?: StringFieldUpdateOperationsInput | string
services?: MissionUpdateservicesInput | string[]
participation?: NullableStringFieldUpdateOperationsInput | string | null
profils?: MissionUpdateprofilsInput | string[]
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
leantimeProjectId?: NullableStringFieldUpdateOperationsInput | string | null
outlineCollectionId?: NullableStringFieldUpdateOperationsInput | string | null
rocketChatChannelId?: NullableStringFieldUpdateOperationsInput | string | null
giteaRepositoryUrl?: NullableStringFieldUpdateOperationsInput | string | null
penpotProjectId?: NullableStringFieldUpdateOperationsInput | string | null
}
export type MissionUserUpdateWithoutUserInput = {
id?: StringFieldUpdateOperationsInput | string
role?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
mission?: MissionUpdateOneRequiredWithoutMissionUsersNestedInput
}
export type MissionUserUncheckedUpdateWithoutUserInput = {
id?: StringFieldUpdateOperationsInput | string
role?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
missionId?: StringFieldUpdateOperationsInput | string
}
export type MissionUserUncheckedUpdateManyWithoutUserInput = {
id?: StringFieldUpdateOperationsInput | string
role?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
missionId?: StringFieldUpdateOperationsInput | string
}
export type AttachmentUpdateWithoutUploaderInput = {
id?: StringFieldUpdateOperationsInput | string
filename?: StringFieldUpdateOperationsInput | string
filePath?: StringFieldUpdateOperationsInput | string
fileType?: StringFieldUpdateOperationsInput | string
fileSize?: IntFieldUpdateOperationsInput | number
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
mission?: MissionUpdateOneRequiredWithoutAttachmentsNestedInput
}
export type AttachmentUncheckedUpdateWithoutUploaderInput = {
id?: StringFieldUpdateOperationsInput | string
filename?: StringFieldUpdateOperationsInput | string
filePath?: StringFieldUpdateOperationsInput | string
fileType?: StringFieldUpdateOperationsInput | string
fileSize?: IntFieldUpdateOperationsInput | number
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
missionId?: StringFieldUpdateOperationsInput | string
}
export type AttachmentUncheckedUpdateManyWithoutUploaderInput = {
id?: StringFieldUpdateOperationsInput | string
filename?: StringFieldUpdateOperationsInput | string
filePath?: StringFieldUpdateOperationsInput | string
fileType?: StringFieldUpdateOperationsInput | string
fileSize?: IntFieldUpdateOperationsInput | number
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
missionId?: StringFieldUpdateOperationsInput | string
}
export type EventCreateManyCalendarInput = {
id?: string
title: string
description?: string | null
start: Date | string
end: Date | string
location?: string | null
isAllDay?: boolean
userId: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type EventUpdateWithoutCalendarInput = {
id?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
start?: DateTimeFieldUpdateOperationsInput | Date | string
end?: DateTimeFieldUpdateOperationsInput | Date | string
location?: NullableStringFieldUpdateOperationsInput | string | null
isAllDay?: BoolFieldUpdateOperationsInput | boolean
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
user?: UserUpdateOneRequiredWithoutEventsNestedInput
}
export type EventUncheckedUpdateWithoutCalendarInput = {
id?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
start?: DateTimeFieldUpdateOperationsInput | Date | string
end?: DateTimeFieldUpdateOperationsInput | Date | string
location?: NullableStringFieldUpdateOperationsInput | string | null
isAllDay?: BoolFieldUpdateOperationsInput | boolean
userId?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type EventUncheckedUpdateManyWithoutCalendarInput = {
id?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
start?: DateTimeFieldUpdateOperationsInput | Date | string
end?: DateTimeFieldUpdateOperationsInput | Date | string
location?: NullableStringFieldUpdateOperationsInput | string | null
isAllDay?: BoolFieldUpdateOperationsInput | boolean
userId?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type AttachmentCreateManyMissionInput = {
id?: string
filename: string
filePath: string
fileType: string
fileSize: number
createdAt?: Date | string
updatedAt?: Date | string
uploaderId: string
}
export type MissionUserCreateManyMissionInput = {
id?: string
role: string
createdAt?: Date | string
updatedAt?: Date | string
userId: string
}
export type AttachmentUpdateWithoutMissionInput = {
id?: StringFieldUpdateOperationsInput | string
filename?: StringFieldUpdateOperationsInput | string
filePath?: StringFieldUpdateOperationsInput | string
fileType?: StringFieldUpdateOperationsInput | string
fileSize?: IntFieldUpdateOperationsInput | number
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
uploader?: UserUpdateOneRequiredWithoutUploadedAttachmentsNestedInput
}
export type AttachmentUncheckedUpdateWithoutMissionInput = {
id?: StringFieldUpdateOperationsInput | string
filename?: StringFieldUpdateOperationsInput | string
filePath?: StringFieldUpdateOperationsInput | string
fileType?: StringFieldUpdateOperationsInput | string
fileSize?: IntFieldUpdateOperationsInput | number
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
uploaderId?: StringFieldUpdateOperationsInput | string
}
export type AttachmentUncheckedUpdateManyWithoutMissionInput = {
id?: StringFieldUpdateOperationsInput | string
filename?: StringFieldUpdateOperationsInput | string
filePath?: StringFieldUpdateOperationsInput | string
fileType?: StringFieldUpdateOperationsInput | string
fileSize?: IntFieldUpdateOperationsInput | number
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
uploaderId?: StringFieldUpdateOperationsInput | string
}
export type MissionUserUpdateWithoutMissionInput = {
id?: StringFieldUpdateOperationsInput | string
role?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
user?: UserUpdateOneRequiredWithoutMissionUsersNestedInput
}
export type MissionUserUncheckedUpdateWithoutMissionInput = {
id?: StringFieldUpdateOperationsInput | string
role?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
userId?: StringFieldUpdateOperationsInput | string
}
export type MissionUserUncheckedUpdateManyWithoutMissionInput = {
id?: StringFieldUpdateOperationsInput | string
role?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
userId?: StringFieldUpdateOperationsInput | string
}
/**
* Batch Payload for updateMany & deleteMany & createMany
*/
export type BatchPayload = {
count: number
}
/**
* DMMF
*/
export const dmmf: runtime.BaseDMMF
}