sepehr 640fcb26f7 fix: improve note interactions and markdown LaTeX support
## Bug Fixes

### Note Card Actions
- Fix broken size change functionality (missing state declaration)
- Implement React 19 useOptimistic for instant UI feedback
- Add startTransition for non-blocking updates
- Ensure smooth animations without page refresh
- All note actions now work: pin, archive, color, size, checklist

### Markdown LaTeX Rendering
- Add remark-math and rehype-katex plugins
- Support inline equations with dollar sign syntax
- Support block equations with double dollar sign syntax
- Import KaTeX CSS for proper styling
- Equations now render correctly instead of showing raw LaTeX

## Technical Details

- Replace undefined currentNote references with optimistic state
- Add optimistic updates before server actions for instant feedback
- Use router.refresh() in transitions for smart cache invalidation
- Install remark-math, rehype-katex, and katex packages

## Testing

- Build passes successfully with no TypeScript errors
- Dev server hot-reloads changes correctly
2026-01-09 22:13:49 +01:00

13884 lines
491 KiB
TypeScript

/**
* Client
**/
import * as runtime from './runtime/library.js';
import $Types = runtime.Types // general types
import $Public = runtime.Types.Public
import $Utils = runtime.Types.Utils
import $Extensions = runtime.Types.Extensions
import $Result = runtime.Types.Result
export type PrismaPromise<T> = $Public.PrismaPromise<T>
/**
* Model User
*
*/
export type User = $Result.DefaultSelection<Prisma.$UserPayload>
/**
* Model Account
*
*/
export type Account = $Result.DefaultSelection<Prisma.$AccountPayload>
/**
* Model Session
*
*/
export type Session = $Result.DefaultSelection<Prisma.$SessionPayload>
/**
* Model VerificationToken
*
*/
export type VerificationToken = $Result.DefaultSelection<Prisma.$VerificationTokenPayload>
/**
* Model Label
*
*/
export type Label = $Result.DefaultSelection<Prisma.$LabelPayload>
/**
* Model Note
*
*/
export type Note = $Result.DefaultSelection<Prisma.$NotePayload>
/**
* Model NoteShare
*
*/
export type NoteShare = $Result.DefaultSelection<Prisma.$NoteSharePayload>
/**
* Model SystemConfig
*
*/
export type SystemConfig = $Result.DefaultSelection<Prisma.$SystemConfigPayload>
/**
* ## Prisma Client ʲˢ
*
* Type-safe database client for TypeScript & Node.js
* @example
* ```
* const prisma = new PrismaClient()
* // Fetch zero or more Users
* const users = await prisma.user.findMany()
* ```
*
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
*/
export class PrismaClient<
ClientOptions extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions,
U = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array<Prisma.LogLevel | Prisma.LogDefinition> ? Prisma.GetEvents<ClientOptions['log']> : never : never,
ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs
> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['other'] }
/**
* ## Prisma Client ʲˢ
*
* Type-safe database client for TypeScript & Node.js
* @example
* ```
* const prisma = new PrismaClient()
* // Fetch zero or more Users
* const users = await prisma.user.findMany()
* ```
*
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
*/
constructor(optionsArg ?: Prisma.Subset<ClientOptions, Prisma.PrismaClientOptions>);
$on<V extends U>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): void;
/**
* Connect with the database
*/
$connect(): $Utils.JsPromise<void>;
/**
* Disconnect from the database
*/
$disconnect(): $Utils.JsPromise<void>;
/**
* Add a middleware
* @deprecated since 4.16.0. For new code, prefer client extensions instead.
* @see https://pris.ly/d/extensions
*/
$use(cb: Prisma.Middleware): void
/**
* Executes a prepared raw query and returns the number of affected rows.
* @example
* ```
* const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`
* ```
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
*/
$executeRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>;
/**
* Executes a raw query and returns the number of affected rows.
* Susceptible to SQL injections, see documentation.
* @example
* ```
* const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com')
* ```
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
*/
$executeRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;
/**
* Performs a prepared raw query and returns the `SELECT` data.
* @example
* ```
* const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`
* ```
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
*/
$queryRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>;
/**
* Performs a raw query and returns the `SELECT` data.
* Susceptible to SQL injections, see documentation.
* @example
* ```
* const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com')
* ```
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
*/
$queryRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;
/**
* Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole.
* @example
* ```
* const [george, bob, alice] = await prisma.$transaction([
* prisma.user.create({ data: { name: 'George' } }),
* prisma.user.create({ data: { name: 'Bob' } }),
* prisma.user.create({ data: { name: 'Alice' } }),
* ])
* ```
*
* Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions).
*/
$transaction<P extends Prisma.PrismaPromise<any>[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise<runtime.Types.Utils.UnwrapTuple<P>>
$transaction<R>(fn: (prisma: Omit<PrismaClient, runtime.ITXClientDenyList>) => $Utils.JsPromise<R>, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise<R>
$extends: $Extensions.ExtendsHook<"extends", Prisma.TypeMapCb, ExtArgs>
/**
* `prisma.user`: Exposes CRUD operations for the **User** model.
* Example usage:
* ```ts
* // Fetch zero or more Users
* const users = await prisma.user.findMany()
* ```
*/
get user(): Prisma.UserDelegate<ExtArgs>;
/**
* `prisma.account`: Exposes CRUD operations for the **Account** model.
* Example usage:
* ```ts
* // Fetch zero or more Accounts
* const accounts = await prisma.account.findMany()
* ```
*/
get account(): Prisma.AccountDelegate<ExtArgs>;
/**
* `prisma.session`: Exposes CRUD operations for the **Session** model.
* Example usage:
* ```ts
* // Fetch zero or more Sessions
* const sessions = await prisma.session.findMany()
* ```
*/
get session(): Prisma.SessionDelegate<ExtArgs>;
/**
* `prisma.verificationToken`: Exposes CRUD operations for the **VerificationToken** model.
* Example usage:
* ```ts
* // Fetch zero or more VerificationTokens
* const verificationTokens = await prisma.verificationToken.findMany()
* ```
*/
get verificationToken(): Prisma.VerificationTokenDelegate<ExtArgs>;
/**
* `prisma.label`: Exposes CRUD operations for the **Label** model.
* Example usage:
* ```ts
* // Fetch zero or more Labels
* const labels = await prisma.label.findMany()
* ```
*/
get label(): Prisma.LabelDelegate<ExtArgs>;
/**
* `prisma.note`: Exposes CRUD operations for the **Note** model.
* Example usage:
* ```ts
* // Fetch zero or more Notes
* const notes = await prisma.note.findMany()
* ```
*/
get note(): Prisma.NoteDelegate<ExtArgs>;
/**
* `prisma.noteShare`: Exposes CRUD operations for the **NoteShare** model.
* Example usage:
* ```ts
* // Fetch zero or more NoteShares
* const noteShares = await prisma.noteShare.findMany()
* ```
*/
get noteShare(): Prisma.NoteShareDelegate<ExtArgs>;
/**
* `prisma.systemConfig`: Exposes CRUD operations for the **SystemConfig** model.
* Example usage:
* ```ts
* // Fetch zero or more SystemConfigs
* const systemConfigs = await prisma.systemConfig.findMany()
* ```
*/
get systemConfig(): Prisma.SystemConfigDelegate<ExtArgs>;
}
export namespace Prisma {
export import DMMF = runtime.DMMF
export type PrismaPromise<T> = $Public.PrismaPromise<T>
/**
* Validator
*/
export import validator = runtime.Public.validator
/**
* Prisma Errors
*/
export import PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError
export import PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError
export import PrismaClientRustPanicError = runtime.PrismaClientRustPanicError
export import PrismaClientInitializationError = runtime.PrismaClientInitializationError
export import PrismaClientValidationError = runtime.PrismaClientValidationError
export import NotFoundError = runtime.NotFoundError
/**
* Re-export of sql-template-tag
*/
export import sql = runtime.sqltag
export import empty = runtime.empty
export import join = runtime.join
export import raw = runtime.raw
export import Sql = runtime.Sql
/**
* Decimal.js
*/
export import Decimal = runtime.Decimal
export type DecimalJsLike = runtime.DecimalJsLike
/**
* Metrics
*/
export type Metrics = runtime.Metrics
export type Metric<T> = runtime.Metric<T>
export type MetricHistogram = runtime.MetricHistogram
export type MetricHistogramBucket = runtime.MetricHistogramBucket
/**
* Extensions
*/
export import Extension = $Extensions.UserArgs
export import getExtensionContext = runtime.Extensions.getExtensionContext
export import Args = $Public.Args
export import Payload = $Public.Payload
export import Result = $Public.Result
export import Exact = $Public.Exact
/**
* Prisma Client JS version: 5.22.0
* Query Engine version: 605197351a3c8bdd595af2d2a9bc3025bca48ea2
*/
export type PrismaVersion = {
client: string
}
export const prismaVersion: PrismaVersion
/**
* Utility Types
*/
export import JsonObject = runtime.JsonObject
export import JsonArray = runtime.JsonArray
export import JsonValue = runtime.JsonValue
export import InputJsonObject = runtime.InputJsonObject
export import InputJsonArray = runtime.InputJsonArray
export import InputJsonValue = runtime.InputJsonValue
/**
* Types of the values used to represent different kinds of `null` values when working with JSON fields.
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
namespace NullTypes {
/**
* Type of `Prisma.DbNull`.
*
* You cannot use other instances of this class. Please use the `Prisma.DbNull` value.
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
class DbNull {
private DbNull: never
private constructor()
}
/**
* Type of `Prisma.JsonNull`.
*
* You cannot use other instances of this class. Please use the `Prisma.JsonNull` value.
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
class JsonNull {
private JsonNull: never
private constructor()
}
/**
* Type of `Prisma.AnyNull`.
*
* You cannot use other instances of this class. Please use the `Prisma.AnyNull` value.
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
class AnyNull {
private AnyNull: never
private constructor()
}
}
/**
* Helper for filtering JSON entries that have `null` on the database (empty on the db)
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
export const DbNull: NullTypes.DbNull
/**
* Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
export const JsonNull: NullTypes.JsonNull
/**
* Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
export const AnyNull: NullTypes.AnyNull
type SelectAndInclude = {
select: any
include: any
}
type SelectAndOmit = {
select: any
omit: any
}
/**
* Get the type of the value, that the Promise holds.
*/
export type PromiseType<T extends PromiseLike<any>> = T extends PromiseLike<infer U> ? U : T;
/**
* Get the return type of a function which returns a Promise.
*/
export type PromiseReturnType<T extends (...args: any) => $Utils.JsPromise<any>> = PromiseType<ReturnType<T>>
/**
* From T, pick a set of properties whose keys are in the union K
*/
type Prisma__Pick<T, K extends keyof T> = {
[P in K]: T[P];
};
export type Enumerable<T> = T | Array<T>;
export type RequiredKeys<T> = {
[K in keyof T]-?: {} extends Prisma__Pick<T, K> ? never : K
}[keyof T]
export type TruthyKeys<T> = keyof {
[K in keyof T as T[K] extends false | undefined | null ? never : K]: K
}
export type TrueKeys<T> = TruthyKeys<Prisma__Pick<T, RequiredKeys<T>>>
/**
* Subset
* @desc From `T` pick properties that exist in `U`. Simple version of Intersection
*/
export type Subset<T, U> = {
[key in keyof T]: key extends keyof U ? T[key] : never;
};
/**
* SelectSubset
* @desc From `T` pick properties that exist in `U`. Simple version of Intersection.
* Additionally, it validates, if both select and include are present. If the case, it errors.
*/
export type SelectSubset<T, U> = {
[key in keyof T]: key extends keyof U ? T[key] : never
} &
(T extends SelectAndInclude
? 'Please either choose `select` or `include`.'
: T extends SelectAndOmit
? 'Please either choose `select` or `omit`.'
: {})
/**
* Subset + Intersection
* @desc From `T` pick properties that exist in `U` and intersect `K`
*/
export type SubsetIntersection<T, U, K> = {
[key in keyof T]: key extends keyof U ? T[key] : never
} &
K
type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never };
/**
* XOR is needed to have a real mutually exclusive union type
* https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types
*/
type XOR<T, U> =
T extends object ?
U extends object ?
(Without<T, U> & U) | (Without<U, T> & T)
: U : T
/**
* Is T a Record?
*/
type IsObject<T extends any> = T extends Array<any>
? False
: T extends Date
? False
: T extends Uint8Array
? False
: T extends BigInt
? False
: T extends object
? True
: False
/**
* If it's T[], return T
*/
export type UnEnumerate<T extends unknown> = T extends Array<infer U> ? U : T
/**
* From ts-toolbelt
*/
type __Either<O extends object, K extends Key> = Omit<O, K> &
{
// Merge all but K
[P in K]: Prisma__Pick<O, P & keyof O> // With K possibilities
}[K]
type EitherStrict<O extends object, K extends Key> = Strict<__Either<O, K>>
type EitherLoose<O extends object, K extends Key> = ComputeRaw<__Either<O, K>>
type _Either<
O extends object,
K extends Key,
strict extends Boolean
> = {
1: EitherStrict<O, K>
0: EitherLoose<O, K>
}[strict]
type Either<
O extends object,
K extends Key,
strict extends Boolean = 1
> = O extends unknown ? _Either<O, K, strict> : never
export type Union = any
type PatchUndefined<O extends object, O1 extends object> = {
[K in keyof O]: O[K] extends undefined ? At<O1, K> : O[K]
} & {}
/** Helper Types for "Merge" **/
export type IntersectOf<U extends Union> = (
U extends unknown ? (k: U) => void : never
) extends (k: infer I) => void
? I
: never
export type Overwrite<O extends object, O1 extends object> = {
[K in keyof O]: K extends keyof O1 ? O1[K] : O[K];
} & {};
type _Merge<U extends object> = IntersectOf<Overwrite<U, {
[K in keyof U]-?: At<U, K>;
}>>;
type Key = string | number | symbol;
type AtBasic<O extends object, K extends Key> = K extends keyof O ? O[K] : never;
type AtStrict<O extends object, K extends Key> = O[K & keyof O];
type AtLoose<O extends object, K extends Key> = O extends unknown ? AtStrict<O, K> : never;
export type At<O extends object, K extends Key, strict extends Boolean = 1> = {
1: AtStrict<O, K>;
0: AtLoose<O, K>;
}[strict];
export type ComputeRaw<A extends any> = A extends Function ? A : {
[K in keyof A]: A[K];
} & {};
export type OptionalFlat<O> = {
[K in keyof O]?: O[K];
} & {};
type _Record<K extends keyof any, T> = {
[P in K]: T;
};
// cause typescript not to expand types and preserve names
type NoExpand<T> = T extends unknown ? T : never;
// this type assumes the passed object is entirely optional
type AtLeast<O extends object, K extends string> = NoExpand<
O extends unknown
? | (K extends keyof O ? { [P in K]: O[P] } & O : O)
| {[P in keyof O as P extends K ? K : never]-?: O[P]} & O
: never>;
type _Strict<U, _U = U> = U extends unknown ? U & OptionalFlat<_Record<Exclude<Keys<_U>, keyof U>, never>> : never;
export type Strict<U extends object> = ComputeRaw<_Strict<U>>;
/** End Helper Types for "Merge" **/
export type Merge<U extends object> = ComputeRaw<_Merge<Strict<U>>>;
/**
A [[Boolean]]
*/
export type Boolean = True | False
// /**
// 1
// */
export type True = 1
/**
0
*/
export type False = 0
export type Not<B extends Boolean> = {
0: 1
1: 0
}[B]
export type Extends<A1 extends any, A2 extends any> = [A1] extends [never]
? 0 // anything `never` is false
: A1 extends A2
? 1
: 0
export type Has<U extends Union, U1 extends Union> = Not<
Extends<Exclude<U1, U>, U1>
>
export type Or<B1 extends Boolean, B2 extends Boolean> = {
0: {
0: 0
1: 1
}
1: {
0: 1
1: 1
}
}[B1][B2]
export type Keys<U extends Union> = U extends unknown ? keyof U : never
type Cast<A, B> = A extends B ? A : B;
export const type: unique symbol;
/**
* Used by group by
*/
export type GetScalarType<T, O> = O extends object ? {
[P in keyof T]: P extends keyof O
? O[P]
: never
} : never
type FieldPaths<
T,
U = Omit<T, '_avg' | '_sum' | '_count' | '_min' | '_max'>
> = IsObject<T> extends True ? U : T
type GetHavingFields<T> = {
[K in keyof T]: Or<
Or<Extends<'OR', K>, Extends<'AND', K>>,
Extends<'NOT', K>
> extends True
? // infer is only needed to not hit TS limit
// based on the brilliant idea of Pierre-Antoine Mills
// https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437
T[K] extends infer TK
? GetHavingFields<UnEnumerate<TK> extends object ? Merge<UnEnumerate<TK>> : never>
: never
: {} extends FieldPaths<T[K]>
? never
: K
}[keyof T]
/**
* Convert tuple to union
*/
type _TupleToUnion<T> = T extends (infer E)[] ? E : never
type TupleToUnion<K extends readonly any[]> = _TupleToUnion<K>
type MaybeTupleToUnion<T> = T extends any[] ? TupleToUnion<T> : T
/**
* Like `Pick`, but additionally can also accept an array of keys
*/
type PickEnumerable<T, K extends Enumerable<keyof T> | keyof T> = Prisma__Pick<T, MaybeTupleToUnion<K>>
/**
* Exclude all keys with underscores
*/
type ExcludeUnderscoreKeys<T extends string> = T extends `_${string}` ? never : T
export type FieldRef<Model, FieldType> = runtime.FieldRef<Model, FieldType>
type FieldRefInputType<Model, FieldType> = Model extends never ? never : FieldRef<Model, FieldType>
export const ModelName: {
User: 'User',
Account: 'Account',
Session: 'Session',
VerificationToken: 'VerificationToken',
Label: 'Label',
Note: 'Note',
NoteShare: 'NoteShare',
SystemConfig: 'SystemConfig'
};
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" | "account" | "session" | "verificationToken" | "label" | "note" | "noteShare" | "systemConfig"
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
}
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
}
}
}
Account: {
payload: Prisma.$AccountPayload<ExtArgs>
fields: Prisma.AccountFieldRefs
operations: {
findUnique: {
args: Prisma.AccountFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AccountPayload> | null
}
findUniqueOrThrow: {
args: Prisma.AccountFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AccountPayload>
}
findFirst: {
args: Prisma.AccountFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AccountPayload> | null
}
findFirstOrThrow: {
args: Prisma.AccountFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AccountPayload>
}
findMany: {
args: Prisma.AccountFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AccountPayload>[]
}
create: {
args: Prisma.AccountCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AccountPayload>
}
createMany: {
args: Prisma.AccountCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.AccountCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AccountPayload>[]
}
delete: {
args: Prisma.AccountDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AccountPayload>
}
update: {
args: Prisma.AccountUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AccountPayload>
}
deleteMany: {
args: Prisma.AccountDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.AccountUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.AccountUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AccountPayload>
}
aggregate: {
args: Prisma.AccountAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateAccount>
}
groupBy: {
args: Prisma.AccountGroupByArgs<ExtArgs>
result: $Utils.Optional<AccountGroupByOutputType>[]
}
count: {
args: Prisma.AccountCountArgs<ExtArgs>
result: $Utils.Optional<AccountCountAggregateOutputType> | number
}
}
}
Session: {
payload: Prisma.$SessionPayload<ExtArgs>
fields: Prisma.SessionFieldRefs
operations: {
findUnique: {
args: Prisma.SessionFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$SessionPayload> | null
}
findUniqueOrThrow: {
args: Prisma.SessionFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$SessionPayload>
}
findFirst: {
args: Prisma.SessionFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$SessionPayload> | null
}
findFirstOrThrow: {
args: Prisma.SessionFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$SessionPayload>
}
findMany: {
args: Prisma.SessionFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$SessionPayload>[]
}
create: {
args: Prisma.SessionCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$SessionPayload>
}
createMany: {
args: Prisma.SessionCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.SessionCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$SessionPayload>[]
}
delete: {
args: Prisma.SessionDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$SessionPayload>
}
update: {
args: Prisma.SessionUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$SessionPayload>
}
deleteMany: {
args: Prisma.SessionDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.SessionUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.SessionUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$SessionPayload>
}
aggregate: {
args: Prisma.SessionAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateSession>
}
groupBy: {
args: Prisma.SessionGroupByArgs<ExtArgs>
result: $Utils.Optional<SessionGroupByOutputType>[]
}
count: {
args: Prisma.SessionCountArgs<ExtArgs>
result: $Utils.Optional<SessionCountAggregateOutputType> | number
}
}
}
VerificationToken: {
payload: Prisma.$VerificationTokenPayload<ExtArgs>
fields: Prisma.VerificationTokenFieldRefs
operations: {
findUnique: {
args: Prisma.VerificationTokenFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload> | null
}
findUniqueOrThrow: {
args: Prisma.VerificationTokenFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>
}
findFirst: {
args: Prisma.VerificationTokenFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload> | null
}
findFirstOrThrow: {
args: Prisma.VerificationTokenFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>
}
findMany: {
args: Prisma.VerificationTokenFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>[]
}
create: {
args: Prisma.VerificationTokenCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>
}
createMany: {
args: Prisma.VerificationTokenCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.VerificationTokenCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>[]
}
delete: {
args: Prisma.VerificationTokenDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>
}
update: {
args: Prisma.VerificationTokenUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>
}
deleteMany: {
args: Prisma.VerificationTokenDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.VerificationTokenUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.VerificationTokenUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>
}
aggregate: {
args: Prisma.VerificationTokenAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateVerificationToken>
}
groupBy: {
args: Prisma.VerificationTokenGroupByArgs<ExtArgs>
result: $Utils.Optional<VerificationTokenGroupByOutputType>[]
}
count: {
args: Prisma.VerificationTokenCountArgs<ExtArgs>
result: $Utils.Optional<VerificationTokenCountAggregateOutputType> | number
}
}
}
Label: {
payload: Prisma.$LabelPayload<ExtArgs>
fields: Prisma.LabelFieldRefs
operations: {
findUnique: {
args: Prisma.LabelFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$LabelPayload> | null
}
findUniqueOrThrow: {
args: Prisma.LabelFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$LabelPayload>
}
findFirst: {
args: Prisma.LabelFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$LabelPayload> | null
}
findFirstOrThrow: {
args: Prisma.LabelFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$LabelPayload>
}
findMany: {
args: Prisma.LabelFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$LabelPayload>[]
}
create: {
args: Prisma.LabelCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$LabelPayload>
}
createMany: {
args: Prisma.LabelCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.LabelCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$LabelPayload>[]
}
delete: {
args: Prisma.LabelDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$LabelPayload>
}
update: {
args: Prisma.LabelUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$LabelPayload>
}
deleteMany: {
args: Prisma.LabelDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.LabelUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.LabelUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$LabelPayload>
}
aggregate: {
args: Prisma.LabelAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateLabel>
}
groupBy: {
args: Prisma.LabelGroupByArgs<ExtArgs>
result: $Utils.Optional<LabelGroupByOutputType>[]
}
count: {
args: Prisma.LabelCountArgs<ExtArgs>
result: $Utils.Optional<LabelCountAggregateOutputType> | number
}
}
}
Note: {
payload: Prisma.$NotePayload<ExtArgs>
fields: Prisma.NoteFieldRefs
operations: {
findUnique: {
args: Prisma.NoteFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$NotePayload> | null
}
findUniqueOrThrow: {
args: Prisma.NoteFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$NotePayload>
}
findFirst: {
args: Prisma.NoteFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$NotePayload> | null
}
findFirstOrThrow: {
args: Prisma.NoteFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$NotePayload>
}
findMany: {
args: Prisma.NoteFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$NotePayload>[]
}
create: {
args: Prisma.NoteCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$NotePayload>
}
createMany: {
args: Prisma.NoteCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.NoteCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$NotePayload>[]
}
delete: {
args: Prisma.NoteDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$NotePayload>
}
update: {
args: Prisma.NoteUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$NotePayload>
}
deleteMany: {
args: Prisma.NoteDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.NoteUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.NoteUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$NotePayload>
}
aggregate: {
args: Prisma.NoteAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateNote>
}
groupBy: {
args: Prisma.NoteGroupByArgs<ExtArgs>
result: $Utils.Optional<NoteGroupByOutputType>[]
}
count: {
args: Prisma.NoteCountArgs<ExtArgs>
result: $Utils.Optional<NoteCountAggregateOutputType> | number
}
}
}
NoteShare: {
payload: Prisma.$NoteSharePayload<ExtArgs>
fields: Prisma.NoteShareFieldRefs
operations: {
findUnique: {
args: Prisma.NoteShareFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$NoteSharePayload> | null
}
findUniqueOrThrow: {
args: Prisma.NoteShareFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$NoteSharePayload>
}
findFirst: {
args: Prisma.NoteShareFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$NoteSharePayload> | null
}
findFirstOrThrow: {
args: Prisma.NoteShareFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$NoteSharePayload>
}
findMany: {
args: Prisma.NoteShareFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$NoteSharePayload>[]
}
create: {
args: Prisma.NoteShareCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$NoteSharePayload>
}
createMany: {
args: Prisma.NoteShareCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.NoteShareCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$NoteSharePayload>[]
}
delete: {
args: Prisma.NoteShareDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$NoteSharePayload>
}
update: {
args: Prisma.NoteShareUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$NoteSharePayload>
}
deleteMany: {
args: Prisma.NoteShareDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.NoteShareUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.NoteShareUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$NoteSharePayload>
}
aggregate: {
args: Prisma.NoteShareAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateNoteShare>
}
groupBy: {
args: Prisma.NoteShareGroupByArgs<ExtArgs>
result: $Utils.Optional<NoteShareGroupByOutputType>[]
}
count: {
args: Prisma.NoteShareCountArgs<ExtArgs>
result: $Utils.Optional<NoteShareCountAggregateOutputType> | number
}
}
}
SystemConfig: {
payload: Prisma.$SystemConfigPayload<ExtArgs>
fields: Prisma.SystemConfigFieldRefs
operations: {
findUnique: {
args: Prisma.SystemConfigFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$SystemConfigPayload> | null
}
findUniqueOrThrow: {
args: Prisma.SystemConfigFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$SystemConfigPayload>
}
findFirst: {
args: Prisma.SystemConfigFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$SystemConfigPayload> | null
}
findFirstOrThrow: {
args: Prisma.SystemConfigFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$SystemConfigPayload>
}
findMany: {
args: Prisma.SystemConfigFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$SystemConfigPayload>[]
}
create: {
args: Prisma.SystemConfigCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$SystemConfigPayload>
}
createMany: {
args: Prisma.SystemConfigCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.SystemConfigCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$SystemConfigPayload>[]
}
delete: {
args: Prisma.SystemConfigDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$SystemConfigPayload>
}
update: {
args: Prisma.SystemConfigUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$SystemConfigPayload>
}
deleteMany: {
args: Prisma.SystemConfigDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.SystemConfigUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.SystemConfigUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$SystemConfigPayload>
}
aggregate: {
args: Prisma.SystemConfigAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateSystemConfig>
}
groupBy: {
args: Prisma.SystemConfigGroupByArgs<ExtArgs>
result: $Utils.Optional<SystemConfigGroupByOutputType>[]
}
count: {
args: Prisma.SystemConfigCountArgs<ExtArgs>
result: $Utils.Optional<SystemConfigCountAggregateOutputType> | number
}
}
}
}
} & {
other: {
payload: any
operations: {
$executeRaw: {
args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]],
result: any
}
$executeRawUnsafe: {
args: [query: string, ...values: any[]],
result: any
}
$queryRaw: {
args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]],
result: any
}
$queryRawUnsafe: {
args: [query: string, ...values: any[]],
result: any
}
}
}
}
export const defineExtension: $Extensions.ExtendsHook<"define", Prisma.TypeMapCb, $Extensions.DefaultArgs>
export type DefaultPrismaClient = PrismaClient
export type ErrorFormat = 'pretty' | 'colorless' | 'minimal'
export interface PrismaClientOptions {
/**
* Overwrites the datasource url from your schema.prisma file
*/
datasources?: Datasources
/**
* Overwrites the datasource url from your schema.prisma file
*/
datasourceUrl?: string
/**
* @default "colorless"
*/
errorFormat?: ErrorFormat
/**
* @example
* ```
* // Defaults to stdout
* log: ['query', 'info', 'warn', 'error']
*
* // Emit as events
* log: [
* { emit: 'stdout', level: 'query' },
* { emit: 'stdout', level: 'info' },
* { emit: 'stdout', level: 'warn' }
* { emit: 'stdout', level: 'error' }
* ]
* ```
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option).
*/
log?: (LogLevel | LogDefinition)[]
/**
* The default values for transactionOptions
* maxWait ?= 2000
* timeout ?= 5000
*/
transactionOptions?: {
maxWait?: number
timeout?: number
isolationLevel?: Prisma.TransactionIsolationLevel
}
}
/* Types for Logging */
export type LogLevel = 'info' | 'query' | 'warn' | 'error'
export type LogDefinition = {
level: LogLevel
emit: 'stdout' | 'event'
}
export type GetLogType<T extends LogLevel | LogDefinition> = T extends LogDefinition ? T['emit'] extends 'event' ? T['level'] : never : never
export type GetEvents<T extends any> = T extends Array<LogLevel | LogDefinition> ?
GetLogType<T[0]> | GetLogType<T[1]> | GetLogType<T[2]> | GetLogType<T[3]>
: never
export type QueryEvent = {
timestamp: Date
query: string
params: string
duration: number
target: string
}
export type LogEvent = {
timestamp: Date
message: string
target: string
}
/* End Types for Logging */
export type PrismaAction =
| 'findUnique'
| 'findUniqueOrThrow'
| 'findMany'
| 'findFirst'
| 'findFirstOrThrow'
| 'create'
| 'createMany'
| 'createManyAndReturn'
| 'update'
| 'updateMany'
| 'upsert'
| 'delete'
| 'deleteMany'
| 'executeRaw'
| 'queryRaw'
| 'aggregate'
| 'count'
| 'runCommandRaw'
| 'findRaw'
| 'groupBy'
/**
* These options are being passed into the middleware as "params"
*/
export type MiddlewareParams = {
model?: ModelName
action: PrismaAction
args: any
dataPath: string[]
runInTransaction: boolean
}
/**
* The `T` type makes sure, that the `return proceed` is not forgotten in the middleware implementation
*/
export type Middleware<T = any> = (
params: MiddlewareParams,
next: (params: MiddlewareParams) => $Utils.JsPromise<T>,
) => $Utils.JsPromise<T>
// tested in getLogLevel.test.ts
export function getLogLevel(log: Array<LogLevel | LogDefinition>): LogLevel | undefined;
/**
* `PrismaClient` proxy available in interactive transactions.
*/
export type TransactionClient = Omit<Prisma.DefaultPrismaClient, runtime.ITXClientDenyList>
export type Datasource = {
url?: string
}
/**
* Count Types
*/
/**
* Count Type UserCountOutputType
*/
export type UserCountOutputType = {
accounts: number
sessions: number
notes: number
labels: number
receivedShares: number
sentShares: number
}
export type UserCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
accounts?: boolean | UserCountOutputTypeCountAccountsArgs
sessions?: boolean | UserCountOutputTypeCountSessionsArgs
notes?: boolean | UserCountOutputTypeCountNotesArgs
labels?: boolean | UserCountOutputTypeCountLabelsArgs
receivedShares?: boolean | UserCountOutputTypeCountReceivedSharesArgs
sentShares?: boolean | UserCountOutputTypeCountSentSharesArgs
}
// 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 UserCountOutputTypeCountAccountsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: AccountWhereInput
}
/**
* UserCountOutputType without action
*/
export type UserCountOutputTypeCountSessionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: SessionWhereInput
}
/**
* UserCountOutputType without action
*/
export type UserCountOutputTypeCountNotesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: NoteWhereInput
}
/**
* UserCountOutputType without action
*/
export type UserCountOutputTypeCountLabelsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: LabelWhereInput
}
/**
* UserCountOutputType without action
*/
export type UserCountOutputTypeCountReceivedSharesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: NoteShareWhereInput
}
/**
* UserCountOutputType without action
*/
export type UserCountOutputTypeCountSentSharesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: NoteShareWhereInput
}
/**
* Count Type NoteCountOutputType
*/
export type NoteCountOutputType = {
shares: number
}
export type NoteCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
shares?: boolean | NoteCountOutputTypeCountSharesArgs
}
// Custom InputTypes
/**
* NoteCountOutputType without action
*/
export type NoteCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the NoteCountOutputType
*/
select?: NoteCountOutputTypeSelect<ExtArgs> | null
}
/**
* NoteCountOutputType without action
*/
export type NoteCountOutputTypeCountSharesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: NoteShareWhereInput
}
/**
* Models
*/
/**
* Model User
*/
export type AggregateUser = {
_count: UserCountAggregateOutputType | null
_min: UserMinAggregateOutputType | null
_max: UserMaxAggregateOutputType | null
}
export type UserMinAggregateOutputType = {
id: string | null
name: string | null
email: string | null
emailVerified: Date | null
password: string | null
role: string | null
image: string | null
theme: string | null
resetToken: string | null
resetTokenExpiry: Date | null
createdAt: Date | null
updatedAt: Date | null
}
export type UserMaxAggregateOutputType = {
id: string | null
name: string | null
email: string | null
emailVerified: Date | null
password: string | null
role: string | null
image: string | null
theme: string | null
resetToken: string | null
resetTokenExpiry: Date | null
createdAt: Date | null
updatedAt: Date | null
}
export type UserCountAggregateOutputType = {
id: number
name: number
email: number
emailVerified: number
password: number
role: number
image: number
theme: number
resetToken: number
resetTokenExpiry: number
createdAt: number
updatedAt: number
_all: number
}
export type UserMinAggregateInputType = {
id?: true
name?: true
email?: true
emailVerified?: true
password?: true
role?: true
image?: true
theme?: true
resetToken?: true
resetTokenExpiry?: true
createdAt?: true
updatedAt?: true
}
export type UserMaxAggregateInputType = {
id?: true
name?: true
email?: true
emailVerified?: true
password?: true
role?: true
image?: true
theme?: true
resetToken?: true
resetTokenExpiry?: true
createdAt?: true
updatedAt?: true
}
export type UserCountAggregateInputType = {
id?: true
name?: true
email?: true
emailVerified?: true
password?: true
role?: true
image?: true
theme?: true
resetToken?: true
resetTokenExpiry?: 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
name: string | null
email: string
emailVerified: Date | null
password: string | null
role: string
image: string | null
theme: string
resetToken: string | null
resetTokenExpiry: Date | null
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
name?: boolean
email?: boolean
emailVerified?: boolean
password?: boolean
role?: boolean
image?: boolean
theme?: boolean
resetToken?: boolean
resetTokenExpiry?: boolean
createdAt?: boolean
updatedAt?: boolean
accounts?: boolean | User$accountsArgs<ExtArgs>
sessions?: boolean | User$sessionsArgs<ExtArgs>
notes?: boolean | User$notesArgs<ExtArgs>
labels?: boolean | User$labelsArgs<ExtArgs>
receivedShares?: boolean | User$receivedSharesArgs<ExtArgs>
sentShares?: boolean | User$sentSharesArgs<ExtArgs>
_count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["user"]>
export type UserSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
name?: boolean
email?: boolean
emailVerified?: boolean
password?: boolean
role?: boolean
image?: boolean
theme?: boolean
resetToken?: boolean
resetTokenExpiry?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["user"]>
export type UserSelectScalar = {
id?: boolean
name?: boolean
email?: boolean
emailVerified?: boolean
password?: boolean
role?: boolean
image?: boolean
theme?: boolean
resetToken?: boolean
resetTokenExpiry?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type UserInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
accounts?: boolean | User$accountsArgs<ExtArgs>
sessions?: boolean | User$sessionsArgs<ExtArgs>
notes?: boolean | User$notesArgs<ExtArgs>
labels?: boolean | User$labelsArgs<ExtArgs>
receivedShares?: boolean | User$receivedSharesArgs<ExtArgs>
sentShares?: boolean | User$sentSharesArgs<ExtArgs>
_count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
}
export type UserIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {}
export type $UserPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "User"
objects: {
accounts: Prisma.$AccountPayload<ExtArgs>[]
sessions: Prisma.$SessionPayload<ExtArgs>[]
notes: Prisma.$NotePayload<ExtArgs>[]
labels: Prisma.$LabelPayload<ExtArgs>[]
receivedShares: Prisma.$NoteSharePayload<ExtArgs>[]
sentShares: Prisma.$NoteSharePayload<ExtArgs>[]
}
scalars: $Extensions.GetPayloadResult<{
id: string
name: string | null
email: string
emailVerified: Date | null
password: string | null
role: string
image: string | null
theme: string
resetToken: string | null
resetTokenExpiry: Date | null
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'> & {
select?: UserCountAggregateInputType | true
}
export interface UserDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['User'], meta: { name: 'User' } }
/**
* Find zero or one User that matches the filter.
* @param {UserFindUniqueArgs} args - Arguments to find a User
* @example
* // Get one User
* const user = await prisma.user.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends UserFindUniqueArgs>(args: SelectSubset<T, UserFindUniqueArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one User that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {UserFindUniqueOrThrowArgs} args - Arguments to find a User
* @example
* // Get one User
* const user = await prisma.user.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends UserFindUniqueOrThrowArgs>(args: SelectSubset<T, UserFindUniqueOrThrowArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first User that matches the filter.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserFindFirstArgs} args - Arguments to find a User
* @example
* // Get one User
* const user = await prisma.user.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends UserFindFirstArgs>(args?: SelectSubset<T, UserFindFirstArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first User that matches the filter or
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserFindFirstOrThrowArgs} args - Arguments to find a User
* @example
* // Get one User
* const user = await prisma.user.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends UserFindFirstOrThrowArgs>(args?: SelectSubset<T, UserFindFirstOrThrowArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more Users that matches the filter.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Users
* const users = await prisma.user.findMany()
*
* // Get first 10 Users
* const users = await prisma.user.findMany({ take: 10 })
*
* // Only select the `id`
* const userWithIdOnly = await prisma.user.findMany({ select: { id: true } })
*
*/
findMany<T extends UserFindManyArgs>(args?: SelectSubset<T, UserFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findMany">>
/**
* Create a User.
* @param {UserCreateArgs} args - Arguments to create a User.
* @example
* // Create one User
* const User = await prisma.user.create({
* data: {
* // ... data to create a User
* }
* })
*
*/
create<T extends UserCreateArgs>(args: SelectSubset<T, UserCreateArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many Users.
* @param {UserCreateManyArgs} args - Arguments to create many Users.
* @example
* // Create many Users
* const user = await prisma.user.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends UserCreateManyArgs>(args?: SelectSubset<T, UserCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* 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">>
/**
* Delete a User.
* @param {UserDeleteArgs} args - Arguments to delete one User.
* @example
* // Delete one User
* const User = await prisma.user.delete({
* where: {
* // ... filter to delete one User
* }
* })
*
*/
delete<T extends UserDeleteArgs>(args: SelectSubset<T, UserDeleteArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one User.
* @param {UserUpdateArgs} args - Arguments to update one User.
* @example
* // Update one User
* const user = await prisma.user.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends UserUpdateArgs>(args: SelectSubset<T, UserUpdateArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more Users.
* @param {UserDeleteManyArgs} args - Arguments to filter Users to delete.
* @example
* // Delete a few Users
* const { count } = await prisma.user.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends UserDeleteManyArgs>(args?: SelectSubset<T, UserDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Users.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Users
* const user = await prisma.user.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends UserUpdateManyArgs>(args: SelectSubset<T, UserUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one User.
* @param {UserUpsertArgs} args - Arguments to update or create a User.
* @example
* // Update or create a User
* const user = await prisma.user.upsert({
* create: {
* // ... data to create a User
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the User we want to update
* }
* })
*/
upsert<T extends UserUpsertArgs>(args: SelectSubset<T, UserUpsertArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of Users.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserCountArgs} args - Arguments to filter Users to count.
* @example
* // Count the number of Users
* const count = await prisma.user.count({
* where: {
* // ... the filter for the Users we want to count
* }
* })
**/
count<T extends UserCountArgs>(
args?: Subset<T, UserCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], UserCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a User.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
* @example
* // Ordered by age ascending
* // Where email contains prisma.io
* // Limited to the 10 users
* const aggregations = await prisma.user.aggregate({
* _avg: {
* age: true,
* },
* where: {
* email: {
* contains: "prisma.io",
* },
* },
* orderBy: {
* age: "asc",
* },
* take: 10,
* })
**/
aggregate<T extends UserAggregateArgs>(args: Subset<T, UserAggregateArgs>): Prisma.PrismaPromise<GetUserAggregateType<T>>
/**
* Group by User.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserGroupByArgs} args - Group by arguments.
* @example
* // Group by city, order by createdAt, get count
* const result = await prisma.user.groupBy({
* by: ['city', 'createdAt'],
* orderBy: {
* createdAt: true
* },
* _count: {
* _all: true
* },
* })
*
**/
groupBy<
T extends UserGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: UserGroupByArgs['orderBy'] }
: { orderBy?: UserGroupByArgs['orderBy'] },
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
ByFields extends MaybeTupleToUnion<T['by']>,
ByValid extends Has<ByFields, OrderFields>,
HavingFields extends GetHavingFields<T['having']>,
HavingValid extends Has<ByFields, HavingFields>,
ByEmpty extends T['by'] extends never[] ? True : False,
InputErrors extends ByEmpty extends True
? `Error: "by" must not be empty.`
: HavingValid extends False
? {
[P in HavingFields]: P extends ByFields
? never
: P extends string
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
: [
Error,
'Field ',
P,
` in "having" needs to be provided in "by"`,
]
}[HavingFields]
: 'take' extends Keys<T>
? 'orderBy' extends Keys<T>
? ByValid extends True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
: 'Error: If you provide "take", you also need to provide "orderBy"'
: 'skip' extends Keys<T>
? 'orderBy' extends Keys<T>
? ByValid extends True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
: 'Error: If you provide "skip", you also need to provide "orderBy"'
: ByValid extends True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
>(args: SubsetIntersection<T, UserGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUserGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the User model
*/
readonly fields: UserFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for User.
* Why is this prefixed with `Prisma__`?
* Because we want to prevent naming conflicts as mentioned in
* https://github.com/prisma/prisma-client-js/issues/707
*/
export interface Prisma__UserClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
accounts<T extends User$accountsArgs<ExtArgs> = {}>(args?: Subset<T, User$accountsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findMany"> | Null>
sessions<T extends User$sessionsArgs<ExtArgs> = {}>(args?: Subset<T, User$sessionsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findMany"> | Null>
notes<T extends User$notesArgs<ExtArgs> = {}>(args?: Subset<T, User$notesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$NotePayload<ExtArgs>, T, "findMany"> | Null>
labels<T extends User$labelsArgs<ExtArgs> = {}>(args?: Subset<T, User$labelsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$LabelPayload<ExtArgs>, T, "findMany"> | Null>
receivedShares<T extends User$receivedSharesArgs<ExtArgs> = {}>(args?: Subset<T, User$receivedSharesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$NoteSharePayload<ExtArgs>, T, "findMany"> | Null>
sentShares<T extends User$sentSharesArgs<ExtArgs> = {}>(args?: Subset<T, User$sentSharesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$NoteSharePayload<ExtArgs>, T, "findMany"> | Null>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the User model
*/
interface UserFieldRefs {
readonly id: FieldRef<"User", 'String'>
readonly name: FieldRef<"User", 'String'>
readonly email: FieldRef<"User", 'String'>
readonly emailVerified: FieldRef<"User", 'DateTime'>
readonly password: FieldRef<"User", 'String'>
readonly role: FieldRef<"User", 'String'>
readonly image: FieldRef<"User", 'String'>
readonly theme: FieldRef<"User", 'String'>
readonly resetToken: FieldRef<"User", 'String'>
readonly resetTokenExpiry: FieldRef<"User", 'DateTime'>
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
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
/**
* Filter, which User to fetch.
*/
where: UserWhereUniqueInput
}
/**
* User findUniqueOrThrow
*/
export type UserFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
/**
* Filter, which User to fetch.
*/
where: UserWhereUniqueInput
}
/**
* User findFirst
*/
export type UserFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
/**
* Filter, which User to fetch.
*/
where?: UserWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Users to fetch.
*/
orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Users.
*/
cursor?: UserWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Users from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Users.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Users.
*/
distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
}
/**
* User findFirstOrThrow
*/
export type UserFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
/**
* Filter, which User to fetch.
*/
where?: UserWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Users to fetch.
*/
orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Users.
*/
cursor?: UserWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Users from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Users.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Users.
*/
distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
}
/**
* User findMany
*/
export type UserFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
/**
* Filter, which Users to fetch.
*/
where?: UserWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Users to fetch.
*/
orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing Users.
*/
cursor?: UserWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Users from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Users.
*/
skip?: number
distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
}
/**
* User create
*/
export type UserCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
/**
* The data needed to create a User.
*/
data: XOR<UserCreateInput, UserUncheckedCreateInput>
}
/**
* User createMany
*/
export type UserCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many Users.
*/
data: UserCreateManyInput | UserCreateManyInput[]
}
/**
* User createManyAndReturn
*/
export type UserCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many Users.
*/
data: UserCreateManyInput | UserCreateManyInput[]
}
/**
* User update
*/
export type UserUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
/**
* The data needed to update a User.
*/
data: XOR<UserUpdateInput, UserUncheckedUpdateInput>
/**
* Choose, which User to update.
*/
where: UserWhereUniqueInput
}
/**
* User updateMany
*/
export type UserUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update Users.
*/
data: XOR<UserUpdateManyMutationInput, UserUncheckedUpdateManyInput>
/**
* Filter which Users to update
*/
where?: UserWhereInput
}
/**
* User upsert
*/
export type UserUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
/**
* The filter to search for the User to update in case it exists.
*/
where: UserWhereUniqueInput
/**
* In case the User found by the `where` argument doesn't exist, create a new User with this data.
*/
create: XOR<UserCreateInput, UserUncheckedCreateInput>
/**
* In case the User was found with the provided `where` argument, update it with this data.
*/
update: XOR<UserUpdateInput, UserUncheckedUpdateInput>
}
/**
* User delete
*/
export type UserDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
/**
* Filter which User to delete.
*/
where: UserWhereUniqueInput
}
/**
* User deleteMany
*/
export type UserDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Users to delete
*/
where?: UserWhereInput
}
/**
* User.accounts
*/
export type User$accountsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Account
*/
select?: AccountSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: AccountInclude<ExtArgs> | null
where?: AccountWhereInput
orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[]
cursor?: AccountWhereUniqueInput
take?: number
skip?: number
distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[]
}
/**
* User.sessions
*/
export type User$sessionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Session
*/
select?: SessionSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: SessionInclude<ExtArgs> | null
where?: SessionWhereInput
orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
cursor?: SessionWhereUniqueInput
take?: number
skip?: number
distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
}
/**
* User.notes
*/
export type User$notesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Note
*/
select?: NoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: NoteInclude<ExtArgs> | null
where?: NoteWhereInput
orderBy?: NoteOrderByWithRelationInput | NoteOrderByWithRelationInput[]
cursor?: NoteWhereUniqueInput
take?: number
skip?: number
distinct?: NoteScalarFieldEnum | NoteScalarFieldEnum[]
}
/**
* User.labels
*/
export type User$labelsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Label
*/
select?: LabelSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: LabelInclude<ExtArgs> | null
where?: LabelWhereInput
orderBy?: LabelOrderByWithRelationInput | LabelOrderByWithRelationInput[]
cursor?: LabelWhereUniqueInput
take?: number
skip?: number
distinct?: LabelScalarFieldEnum | LabelScalarFieldEnum[]
}
/**
* User.receivedShares
*/
export type User$receivedSharesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the NoteShare
*/
select?: NoteShareSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: NoteShareInclude<ExtArgs> | null
where?: NoteShareWhereInput
orderBy?: NoteShareOrderByWithRelationInput | NoteShareOrderByWithRelationInput[]
cursor?: NoteShareWhereUniqueInput
take?: number
skip?: number
distinct?: NoteShareScalarFieldEnum | NoteShareScalarFieldEnum[]
}
/**
* User.sentShares
*/
export type User$sentSharesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the NoteShare
*/
select?: NoteShareSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: NoteShareInclude<ExtArgs> | null
where?: NoteShareWhereInput
orderBy?: NoteShareOrderByWithRelationInput | NoteShareOrderByWithRelationInput[]
cursor?: NoteShareWhereUniqueInput
take?: number
skip?: number
distinct?: NoteShareScalarFieldEnum | NoteShareScalarFieldEnum[]
}
/**
* User without action
*/
export type UserDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
}
/**
* Model Account
*/
export type AggregateAccount = {
_count: AccountCountAggregateOutputType | null
_avg: AccountAvgAggregateOutputType | null
_sum: AccountSumAggregateOutputType | null
_min: AccountMinAggregateOutputType | null
_max: AccountMaxAggregateOutputType | null
}
export type AccountAvgAggregateOutputType = {
expires_at: number | null
}
export type AccountSumAggregateOutputType = {
expires_at: number | null
}
export type AccountMinAggregateOutputType = {
userId: string | null
type: string | null
provider: string | null
providerAccountId: string | null
refresh_token: string | null
access_token: string | null
expires_at: number | null
token_type: string | null
scope: string | null
id_token: string | null
session_state: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type AccountMaxAggregateOutputType = {
userId: string | null
type: string | null
provider: string | null
providerAccountId: string | null
refresh_token: string | null
access_token: string | null
expires_at: number | null
token_type: string | null
scope: string | null
id_token: string | null
session_state: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type AccountCountAggregateOutputType = {
userId: number
type: number
provider: number
providerAccountId: number
refresh_token: number
access_token: number
expires_at: number
token_type: number
scope: number
id_token: number
session_state: number
createdAt: number
updatedAt: number
_all: number
}
export type AccountAvgAggregateInputType = {
expires_at?: true
}
export type AccountSumAggregateInputType = {
expires_at?: true
}
export type AccountMinAggregateInputType = {
userId?: true
type?: true
provider?: true
providerAccountId?: true
refresh_token?: true
access_token?: true
expires_at?: true
token_type?: true
scope?: true
id_token?: true
session_state?: true
createdAt?: true
updatedAt?: true
}
export type AccountMaxAggregateInputType = {
userId?: true
type?: true
provider?: true
providerAccountId?: true
refresh_token?: true
access_token?: true
expires_at?: true
token_type?: true
scope?: true
id_token?: true
session_state?: true
createdAt?: true
updatedAt?: true
}
export type AccountCountAggregateInputType = {
userId?: true
type?: true
provider?: true
providerAccountId?: true
refresh_token?: true
access_token?: true
expires_at?: true
token_type?: true
scope?: true
id_token?: true
session_state?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type AccountAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Account to aggregate.
*/
where?: AccountWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Accounts to fetch.
*/
orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: AccountWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Accounts from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Accounts.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned Accounts
**/
_count?: true | AccountCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: AccountAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: AccountSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: AccountMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: AccountMaxAggregateInputType
}
export type GetAccountAggregateType<T extends AccountAggregateArgs> = {
[P in keyof T & keyof AggregateAccount]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateAccount[P]>
: GetScalarType<T[P], AggregateAccount[P]>
}
export type AccountGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: AccountWhereInput
orderBy?: AccountOrderByWithAggregationInput | AccountOrderByWithAggregationInput[]
by: AccountScalarFieldEnum[] | AccountScalarFieldEnum
having?: AccountScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: AccountCountAggregateInputType | true
_avg?: AccountAvgAggregateInputType
_sum?: AccountSumAggregateInputType
_min?: AccountMinAggregateInputType
_max?: AccountMaxAggregateInputType
}
export type AccountGroupByOutputType = {
userId: string
type: string
provider: string
providerAccountId: string
refresh_token: string | null
access_token: string | null
expires_at: number | null
token_type: string | null
scope: string | null
id_token: string | null
session_state: string | null
createdAt: Date
updatedAt: Date
_count: AccountCountAggregateOutputType | null
_avg: AccountAvgAggregateOutputType | null
_sum: AccountSumAggregateOutputType | null
_min: AccountMinAggregateOutputType | null
_max: AccountMaxAggregateOutputType | null
}
type GetAccountGroupByPayload<T extends AccountGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<AccountGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof AccountGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], AccountGroupByOutputType[P]>
: GetScalarType<T[P], AccountGroupByOutputType[P]>
}
>
>
export type AccountSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
userId?: boolean
type?: boolean
provider?: boolean
providerAccountId?: boolean
refresh_token?: boolean
access_token?: boolean
expires_at?: boolean
token_type?: boolean
scope?: boolean
id_token?: boolean
session_state?: boolean
createdAt?: boolean
updatedAt?: boolean
user?: boolean | UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["account"]>
export type AccountSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
userId?: boolean
type?: boolean
provider?: boolean
providerAccountId?: boolean
refresh_token?: boolean
access_token?: boolean
expires_at?: boolean
token_type?: boolean
scope?: boolean
id_token?: boolean
session_state?: boolean
createdAt?: boolean
updatedAt?: boolean
user?: boolean | UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["account"]>
export type AccountSelectScalar = {
userId?: boolean
type?: boolean
provider?: boolean
providerAccountId?: boolean
refresh_token?: boolean
access_token?: boolean
expires_at?: boolean
token_type?: boolean
scope?: boolean
id_token?: boolean
session_state?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type AccountInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
user?: boolean | UserDefaultArgs<ExtArgs>
}
export type AccountIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
user?: boolean | UserDefaultArgs<ExtArgs>
}
export type $AccountPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "Account"
objects: {
user: Prisma.$UserPayload<ExtArgs>
}
scalars: $Extensions.GetPayloadResult<{
userId: string
type: string
provider: string
providerAccountId: string
refresh_token: string | null
access_token: string | null
expires_at: number | null
token_type: string | null
scope: string | null
id_token: string | null
session_state: string | null
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["account"]>
composites: {}
}
type AccountGetPayload<S extends boolean | null | undefined | AccountDefaultArgs> = $Result.GetResult<Prisma.$AccountPayload, S>
type AccountCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<AccountFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: AccountCountAggregateInputType | true
}
export interface AccountDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Account'], meta: { name: 'Account' } }
/**
* Find zero or one Account that matches the filter.
* @param {AccountFindUniqueArgs} args - Arguments to find a Account
* @example
* // Get one Account
* const account = await prisma.account.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends AccountFindUniqueArgs>(args: SelectSubset<T, AccountFindUniqueArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one Account that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {AccountFindUniqueOrThrowArgs} args - Arguments to find a Account
* @example
* // Get one Account
* const account = await prisma.account.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends AccountFindUniqueOrThrowArgs>(args: SelectSubset<T, AccountFindUniqueOrThrowArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first Account 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 {AccountFindFirstArgs} args - Arguments to find a Account
* @example
* // Get one Account
* const account = await prisma.account.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends AccountFindFirstArgs>(args?: SelectSubset<T, AccountFindFirstArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first Account 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 {AccountFindFirstOrThrowArgs} args - Arguments to find a Account
* @example
* // Get one Account
* const account = await prisma.account.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends AccountFindFirstOrThrowArgs>(args?: SelectSubset<T, AccountFindFirstOrThrowArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more Accounts 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 {AccountFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Accounts
* const accounts = await prisma.account.findMany()
*
* // Get first 10 Accounts
* const accounts = await prisma.account.findMany({ take: 10 })
*
* // Only select the `userId`
* const accountWithUserIdOnly = await prisma.account.findMany({ select: { userId: true } })
*
*/
findMany<T extends AccountFindManyArgs>(args?: SelectSubset<T, AccountFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findMany">>
/**
* Create a Account.
* @param {AccountCreateArgs} args - Arguments to create a Account.
* @example
* // Create one Account
* const Account = await prisma.account.create({
* data: {
* // ... data to create a Account
* }
* })
*
*/
create<T extends AccountCreateArgs>(args: SelectSubset<T, AccountCreateArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many Accounts.
* @param {AccountCreateManyArgs} args - Arguments to create many Accounts.
* @example
* // Create many Accounts
* const account = await prisma.account.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends AccountCreateManyArgs>(args?: SelectSubset<T, AccountCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many Accounts and returns the data saved in the database.
* @param {AccountCreateManyAndReturnArgs} args - Arguments to create many Accounts.
* @example
* // Create many Accounts
* const account = await prisma.account.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Accounts and only return the `userId`
* const accountWithUserIdOnly = await prisma.account.createManyAndReturn({
* select: { userId: 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 AccountCreateManyAndReturnArgs>(args?: SelectSubset<T, AccountCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a Account.
* @param {AccountDeleteArgs} args - Arguments to delete one Account.
* @example
* // Delete one Account
* const Account = await prisma.account.delete({
* where: {
* // ... filter to delete one Account
* }
* })
*
*/
delete<T extends AccountDeleteArgs>(args: SelectSubset<T, AccountDeleteArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one Account.
* @param {AccountUpdateArgs} args - Arguments to update one Account.
* @example
* // Update one Account
* const account = await prisma.account.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends AccountUpdateArgs>(args: SelectSubset<T, AccountUpdateArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more Accounts.
* @param {AccountDeleteManyArgs} args - Arguments to filter Accounts to delete.
* @example
* // Delete a few Accounts
* const { count } = await prisma.account.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends AccountDeleteManyArgs>(args?: SelectSubset<T, AccountDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Accounts.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AccountUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Accounts
* const account = await prisma.account.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends AccountUpdateManyArgs>(args: SelectSubset<T, AccountUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one Account.
* @param {AccountUpsertArgs} args - Arguments to update or create a Account.
* @example
* // Update or create a Account
* const account = await prisma.account.upsert({
* create: {
* // ... data to create a Account
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Account we want to update
* }
* })
*/
upsert<T extends AccountUpsertArgs>(args: SelectSubset<T, AccountUpsertArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of Accounts.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AccountCountArgs} args - Arguments to filter Accounts to count.
* @example
* // Count the number of Accounts
* const count = await prisma.account.count({
* where: {
* // ... the filter for the Accounts we want to count
* }
* })
**/
count<T extends AccountCountArgs>(
args?: Subset<T, AccountCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], AccountCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Account.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AccountAggregateArgs} 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 AccountAggregateArgs>(args: Subset<T, AccountAggregateArgs>): Prisma.PrismaPromise<GetAccountAggregateType<T>>
/**
* Group by Account.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AccountGroupByArgs} 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 AccountGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: AccountGroupByArgs['orderBy'] }
: { orderBy?: AccountGroupByArgs['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, AccountGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAccountGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the Account model
*/
readonly fields: AccountFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for Account.
* 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__AccountClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the Account model
*/
interface AccountFieldRefs {
readonly userId: FieldRef<"Account", 'String'>
readonly type: FieldRef<"Account", 'String'>
readonly provider: FieldRef<"Account", 'String'>
readonly providerAccountId: FieldRef<"Account", 'String'>
readonly refresh_token: FieldRef<"Account", 'String'>
readonly access_token: FieldRef<"Account", 'String'>
readonly expires_at: FieldRef<"Account", 'Int'>
readonly token_type: FieldRef<"Account", 'String'>
readonly scope: FieldRef<"Account", 'String'>
readonly id_token: FieldRef<"Account", 'String'>
readonly session_state: FieldRef<"Account", 'String'>
readonly createdAt: FieldRef<"Account", 'DateTime'>
readonly updatedAt: FieldRef<"Account", 'DateTime'>
}
// Custom InputTypes
/**
* Account findUnique
*/
export type AccountFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Account
*/
select?: AccountSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: AccountInclude<ExtArgs> | null
/**
* Filter, which Account to fetch.
*/
where: AccountWhereUniqueInput
}
/**
* Account findUniqueOrThrow
*/
export type AccountFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Account
*/
select?: AccountSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: AccountInclude<ExtArgs> | null
/**
* Filter, which Account to fetch.
*/
where: AccountWhereUniqueInput
}
/**
* Account findFirst
*/
export type AccountFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Account
*/
select?: AccountSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: AccountInclude<ExtArgs> | null
/**
* Filter, which Account to fetch.
*/
where?: AccountWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Accounts to fetch.
*/
orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Accounts.
*/
cursor?: AccountWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Accounts from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Accounts.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Accounts.
*/
distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[]
}
/**
* Account findFirstOrThrow
*/
export type AccountFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Account
*/
select?: AccountSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: AccountInclude<ExtArgs> | null
/**
* Filter, which Account to fetch.
*/
where?: AccountWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Accounts to fetch.
*/
orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Accounts.
*/
cursor?: AccountWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Accounts from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Accounts.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Accounts.
*/
distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[]
}
/**
* Account findMany
*/
export type AccountFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Account
*/
select?: AccountSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: AccountInclude<ExtArgs> | null
/**
* Filter, which Accounts to fetch.
*/
where?: AccountWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Accounts to fetch.
*/
orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing Accounts.
*/
cursor?: AccountWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Accounts from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Accounts.
*/
skip?: number
distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[]
}
/**
* Account create
*/
export type AccountCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Account
*/
select?: AccountSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: AccountInclude<ExtArgs> | null
/**
* The data needed to create a Account.
*/
data: XOR<AccountCreateInput, AccountUncheckedCreateInput>
}
/**
* Account createMany
*/
export type AccountCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many Accounts.
*/
data: AccountCreateManyInput | AccountCreateManyInput[]
}
/**
* Account createManyAndReturn
*/
export type AccountCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Account
*/
select?: AccountSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many Accounts.
*/
data: AccountCreateManyInput | AccountCreateManyInput[]
/**
* Choose, which related nodes to fetch as well
*/
include?: AccountIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* Account update
*/
export type AccountUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Account
*/
select?: AccountSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: AccountInclude<ExtArgs> | null
/**
* The data needed to update a Account.
*/
data: XOR<AccountUpdateInput, AccountUncheckedUpdateInput>
/**
* Choose, which Account to update.
*/
where: AccountWhereUniqueInput
}
/**
* Account updateMany
*/
export type AccountUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update Accounts.
*/
data: XOR<AccountUpdateManyMutationInput, AccountUncheckedUpdateManyInput>
/**
* Filter which Accounts to update
*/
where?: AccountWhereInput
}
/**
* Account upsert
*/
export type AccountUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Account
*/
select?: AccountSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: AccountInclude<ExtArgs> | null
/**
* The filter to search for the Account to update in case it exists.
*/
where: AccountWhereUniqueInput
/**
* In case the Account found by the `where` argument doesn't exist, create a new Account with this data.
*/
create: XOR<AccountCreateInput, AccountUncheckedCreateInput>
/**
* In case the Account was found with the provided `where` argument, update it with this data.
*/
update: XOR<AccountUpdateInput, AccountUncheckedUpdateInput>
}
/**
* Account delete
*/
export type AccountDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Account
*/
select?: AccountSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: AccountInclude<ExtArgs> | null
/**
* Filter which Account to delete.
*/
where: AccountWhereUniqueInput
}
/**
* Account deleteMany
*/
export type AccountDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Accounts to delete
*/
where?: AccountWhereInput
}
/**
* Account without action
*/
export type AccountDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Account
*/
select?: AccountSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: AccountInclude<ExtArgs> | null
}
/**
* Model Session
*/
export type AggregateSession = {
_count: SessionCountAggregateOutputType | null
_min: SessionMinAggregateOutputType | null
_max: SessionMaxAggregateOutputType | null
}
export type SessionMinAggregateOutputType = {
sessionToken: string | null
userId: string | null
expires: Date | null
createdAt: Date | null
updatedAt: Date | null
}
export type SessionMaxAggregateOutputType = {
sessionToken: string | null
userId: string | null
expires: Date | null
createdAt: Date | null
updatedAt: Date | null
}
export type SessionCountAggregateOutputType = {
sessionToken: number
userId: number
expires: number
createdAt: number
updatedAt: number
_all: number
}
export type SessionMinAggregateInputType = {
sessionToken?: true
userId?: true
expires?: true
createdAt?: true
updatedAt?: true
}
export type SessionMaxAggregateInputType = {
sessionToken?: true
userId?: true
expires?: true
createdAt?: true
updatedAt?: true
}
export type SessionCountAggregateInputType = {
sessionToken?: true
userId?: true
expires?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type SessionAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Session to aggregate.
*/
where?: SessionWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Sessions to fetch.
*/
orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: SessionWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Sessions from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Sessions.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned Sessions
**/
_count?: true | SessionCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: SessionMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: SessionMaxAggregateInputType
}
export type GetSessionAggregateType<T extends SessionAggregateArgs> = {
[P in keyof T & keyof AggregateSession]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateSession[P]>
: GetScalarType<T[P], AggregateSession[P]>
}
export type SessionGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: SessionWhereInput
orderBy?: SessionOrderByWithAggregationInput | SessionOrderByWithAggregationInput[]
by: SessionScalarFieldEnum[] | SessionScalarFieldEnum
having?: SessionScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: SessionCountAggregateInputType | true
_min?: SessionMinAggregateInputType
_max?: SessionMaxAggregateInputType
}
export type SessionGroupByOutputType = {
sessionToken: string
userId: string
expires: Date
createdAt: Date
updatedAt: Date
_count: SessionCountAggregateOutputType | null
_min: SessionMinAggregateOutputType | null
_max: SessionMaxAggregateOutputType | null
}
type GetSessionGroupByPayload<T extends SessionGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<SessionGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof SessionGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], SessionGroupByOutputType[P]>
: GetScalarType<T[P], SessionGroupByOutputType[P]>
}
>
>
export type SessionSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
sessionToken?: boolean
userId?: boolean
expires?: boolean
createdAt?: boolean
updatedAt?: boolean
user?: boolean | UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["session"]>
export type SessionSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
sessionToken?: boolean
userId?: boolean
expires?: boolean
createdAt?: boolean
updatedAt?: boolean
user?: boolean | UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["session"]>
export type SessionSelectScalar = {
sessionToken?: boolean
userId?: boolean
expires?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type SessionInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
user?: boolean | UserDefaultArgs<ExtArgs>
}
export type SessionIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
user?: boolean | UserDefaultArgs<ExtArgs>
}
export type $SessionPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "Session"
objects: {
user: Prisma.$UserPayload<ExtArgs>
}
scalars: $Extensions.GetPayloadResult<{
sessionToken: string
userId: string
expires: Date
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["session"]>
composites: {}
}
type SessionGetPayload<S extends boolean | null | undefined | SessionDefaultArgs> = $Result.GetResult<Prisma.$SessionPayload, S>
type SessionCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<SessionFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: SessionCountAggregateInputType | true
}
export interface SessionDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Session'], meta: { name: 'Session' } }
/**
* Find zero or one Session that matches the filter.
* @param {SessionFindUniqueArgs} args - Arguments to find a Session
* @example
* // Get one Session
* const session = await prisma.session.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends SessionFindUniqueArgs>(args: SelectSubset<T, SessionFindUniqueArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one Session that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {SessionFindUniqueOrThrowArgs} args - Arguments to find a Session
* @example
* // Get one Session
* const session = await prisma.session.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends SessionFindUniqueOrThrowArgs>(args: SelectSubset<T, SessionFindUniqueOrThrowArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first Session 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 {SessionFindFirstArgs} args - Arguments to find a Session
* @example
* // Get one Session
* const session = await prisma.session.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends SessionFindFirstArgs>(args?: SelectSubset<T, SessionFindFirstArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first Session 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 {SessionFindFirstOrThrowArgs} args - Arguments to find a Session
* @example
* // Get one Session
* const session = await prisma.session.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends SessionFindFirstOrThrowArgs>(args?: SelectSubset<T, SessionFindFirstOrThrowArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more Sessions 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 {SessionFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Sessions
* const sessions = await prisma.session.findMany()
*
* // Get first 10 Sessions
* const sessions = await prisma.session.findMany({ take: 10 })
*
* // Only select the `sessionToken`
* const sessionWithSessionTokenOnly = await prisma.session.findMany({ select: { sessionToken: true } })
*
*/
findMany<T extends SessionFindManyArgs>(args?: SelectSubset<T, SessionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findMany">>
/**
* Create a Session.
* @param {SessionCreateArgs} args - Arguments to create a Session.
* @example
* // Create one Session
* const Session = await prisma.session.create({
* data: {
* // ... data to create a Session
* }
* })
*
*/
create<T extends SessionCreateArgs>(args: SelectSubset<T, SessionCreateArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many Sessions.
* @param {SessionCreateManyArgs} args - Arguments to create many Sessions.
* @example
* // Create many Sessions
* const session = await prisma.session.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends SessionCreateManyArgs>(args?: SelectSubset<T, SessionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many Sessions and returns the data saved in the database.
* @param {SessionCreateManyAndReturnArgs} args - Arguments to create many Sessions.
* @example
* // Create many Sessions
* const session = await prisma.session.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Sessions and only return the `sessionToken`
* const sessionWithSessionTokenOnly = await prisma.session.createManyAndReturn({
* select: { sessionToken: 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 SessionCreateManyAndReturnArgs>(args?: SelectSubset<T, SessionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a Session.
* @param {SessionDeleteArgs} args - Arguments to delete one Session.
* @example
* // Delete one Session
* const Session = await prisma.session.delete({
* where: {
* // ... filter to delete one Session
* }
* })
*
*/
delete<T extends SessionDeleteArgs>(args: SelectSubset<T, SessionDeleteArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one Session.
* @param {SessionUpdateArgs} args - Arguments to update one Session.
* @example
* // Update one Session
* const session = await prisma.session.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends SessionUpdateArgs>(args: SelectSubset<T, SessionUpdateArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more Sessions.
* @param {SessionDeleteManyArgs} args - Arguments to filter Sessions to delete.
* @example
* // Delete a few Sessions
* const { count } = await prisma.session.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends SessionDeleteManyArgs>(args?: SelectSubset<T, SessionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Sessions.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {SessionUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Sessions
* const session = await prisma.session.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends SessionUpdateManyArgs>(args: SelectSubset<T, SessionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one Session.
* @param {SessionUpsertArgs} args - Arguments to update or create a Session.
* @example
* // Update or create a Session
* const session = await prisma.session.upsert({
* create: {
* // ... data to create a Session
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Session we want to update
* }
* })
*/
upsert<T extends SessionUpsertArgs>(args: SelectSubset<T, SessionUpsertArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of Sessions.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {SessionCountArgs} args - Arguments to filter Sessions to count.
* @example
* // Count the number of Sessions
* const count = await prisma.session.count({
* where: {
* // ... the filter for the Sessions we want to count
* }
* })
**/
count<T extends SessionCountArgs>(
args?: Subset<T, SessionCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], SessionCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Session.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {SessionAggregateArgs} 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 SessionAggregateArgs>(args: Subset<T, SessionAggregateArgs>): Prisma.PrismaPromise<GetSessionAggregateType<T>>
/**
* Group by Session.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {SessionGroupByArgs} 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 SessionGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: SessionGroupByArgs['orderBy'] }
: { orderBy?: SessionGroupByArgs['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, SessionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSessionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the Session model
*/
readonly fields: SessionFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for Session.
* 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__SessionClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the Session model
*/
interface SessionFieldRefs {
readonly sessionToken: FieldRef<"Session", 'String'>
readonly userId: FieldRef<"Session", 'String'>
readonly expires: FieldRef<"Session", 'DateTime'>
readonly createdAt: FieldRef<"Session", 'DateTime'>
readonly updatedAt: FieldRef<"Session", 'DateTime'>
}
// Custom InputTypes
/**
* Session findUnique
*/
export type SessionFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Session
*/
select?: SessionSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: SessionInclude<ExtArgs> | null
/**
* Filter, which Session to fetch.
*/
where: SessionWhereUniqueInput
}
/**
* Session findUniqueOrThrow
*/
export type SessionFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Session
*/
select?: SessionSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: SessionInclude<ExtArgs> | null
/**
* Filter, which Session to fetch.
*/
where: SessionWhereUniqueInput
}
/**
* Session findFirst
*/
export type SessionFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Session
*/
select?: SessionSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: SessionInclude<ExtArgs> | null
/**
* Filter, which Session to fetch.
*/
where?: SessionWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Sessions to fetch.
*/
orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Sessions.
*/
cursor?: SessionWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Sessions from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Sessions.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Sessions.
*/
distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
}
/**
* Session findFirstOrThrow
*/
export type SessionFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Session
*/
select?: SessionSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: SessionInclude<ExtArgs> | null
/**
* Filter, which Session to fetch.
*/
where?: SessionWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Sessions to fetch.
*/
orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Sessions.
*/
cursor?: SessionWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Sessions from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Sessions.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Sessions.
*/
distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
}
/**
* Session findMany
*/
export type SessionFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Session
*/
select?: SessionSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: SessionInclude<ExtArgs> | null
/**
* Filter, which Sessions to fetch.
*/
where?: SessionWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Sessions to fetch.
*/
orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing Sessions.
*/
cursor?: SessionWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Sessions from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Sessions.
*/
skip?: number
distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
}
/**
* Session create
*/
export type SessionCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Session
*/
select?: SessionSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: SessionInclude<ExtArgs> | null
/**
* The data needed to create a Session.
*/
data: XOR<SessionCreateInput, SessionUncheckedCreateInput>
}
/**
* Session createMany
*/
export type SessionCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many Sessions.
*/
data: SessionCreateManyInput | SessionCreateManyInput[]
}
/**
* Session createManyAndReturn
*/
export type SessionCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Session
*/
select?: SessionSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many Sessions.
*/
data: SessionCreateManyInput | SessionCreateManyInput[]
/**
* Choose, which related nodes to fetch as well
*/
include?: SessionIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* Session update
*/
export type SessionUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Session
*/
select?: SessionSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: SessionInclude<ExtArgs> | null
/**
* The data needed to update a Session.
*/
data: XOR<SessionUpdateInput, SessionUncheckedUpdateInput>
/**
* Choose, which Session to update.
*/
where: SessionWhereUniqueInput
}
/**
* Session updateMany
*/
export type SessionUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update Sessions.
*/
data: XOR<SessionUpdateManyMutationInput, SessionUncheckedUpdateManyInput>
/**
* Filter which Sessions to update
*/
where?: SessionWhereInput
}
/**
* Session upsert
*/
export type SessionUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Session
*/
select?: SessionSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: SessionInclude<ExtArgs> | null
/**
* The filter to search for the Session to update in case it exists.
*/
where: SessionWhereUniqueInput
/**
* In case the Session found by the `where` argument doesn't exist, create a new Session with this data.
*/
create: XOR<SessionCreateInput, SessionUncheckedCreateInput>
/**
* In case the Session was found with the provided `where` argument, update it with this data.
*/
update: XOR<SessionUpdateInput, SessionUncheckedUpdateInput>
}
/**
* Session delete
*/
export type SessionDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Session
*/
select?: SessionSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: SessionInclude<ExtArgs> | null
/**
* Filter which Session to delete.
*/
where: SessionWhereUniqueInput
}
/**
* Session deleteMany
*/
export type SessionDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Sessions to delete
*/
where?: SessionWhereInput
}
/**
* Session without action
*/
export type SessionDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Session
*/
select?: SessionSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: SessionInclude<ExtArgs> | null
}
/**
* Model VerificationToken
*/
export type AggregateVerificationToken = {
_count: VerificationTokenCountAggregateOutputType | null
_min: VerificationTokenMinAggregateOutputType | null
_max: VerificationTokenMaxAggregateOutputType | null
}
export type VerificationTokenMinAggregateOutputType = {
identifier: string | null
token: string | null
expires: Date | null
}
export type VerificationTokenMaxAggregateOutputType = {
identifier: string | null
token: string | null
expires: Date | null
}
export type VerificationTokenCountAggregateOutputType = {
identifier: number
token: number
expires: number
_all: number
}
export type VerificationTokenMinAggregateInputType = {
identifier?: true
token?: true
expires?: true
}
export type VerificationTokenMaxAggregateInputType = {
identifier?: true
token?: true
expires?: true
}
export type VerificationTokenCountAggregateInputType = {
identifier?: true
token?: true
expires?: true
_all?: true
}
export type VerificationTokenAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which VerificationToken to aggregate.
*/
where?: VerificationTokenWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of VerificationTokens to fetch.
*/
orderBy?: VerificationTokenOrderByWithRelationInput | VerificationTokenOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: VerificationTokenWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` VerificationTokens from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` VerificationTokens.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned VerificationTokens
**/
_count?: true | VerificationTokenCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: VerificationTokenMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: VerificationTokenMaxAggregateInputType
}
export type GetVerificationTokenAggregateType<T extends VerificationTokenAggregateArgs> = {
[P in keyof T & keyof AggregateVerificationToken]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateVerificationToken[P]>
: GetScalarType<T[P], AggregateVerificationToken[P]>
}
export type VerificationTokenGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: VerificationTokenWhereInput
orderBy?: VerificationTokenOrderByWithAggregationInput | VerificationTokenOrderByWithAggregationInput[]
by: VerificationTokenScalarFieldEnum[] | VerificationTokenScalarFieldEnum
having?: VerificationTokenScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: VerificationTokenCountAggregateInputType | true
_min?: VerificationTokenMinAggregateInputType
_max?: VerificationTokenMaxAggregateInputType
}
export type VerificationTokenGroupByOutputType = {
identifier: string
token: string
expires: Date
_count: VerificationTokenCountAggregateOutputType | null
_min: VerificationTokenMinAggregateOutputType | null
_max: VerificationTokenMaxAggregateOutputType | null
}
type GetVerificationTokenGroupByPayload<T extends VerificationTokenGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<VerificationTokenGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof VerificationTokenGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], VerificationTokenGroupByOutputType[P]>
: GetScalarType<T[P], VerificationTokenGroupByOutputType[P]>
}
>
>
export type VerificationTokenSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
identifier?: boolean
token?: boolean
expires?: boolean
}, ExtArgs["result"]["verificationToken"]>
export type VerificationTokenSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
identifier?: boolean
token?: boolean
expires?: boolean
}, ExtArgs["result"]["verificationToken"]>
export type VerificationTokenSelectScalar = {
identifier?: boolean
token?: boolean
expires?: boolean
}
export type $VerificationTokenPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "VerificationToken"
objects: {}
scalars: $Extensions.GetPayloadResult<{
identifier: string
token: string
expires: Date
}, ExtArgs["result"]["verificationToken"]>
composites: {}
}
type VerificationTokenGetPayload<S extends boolean | null | undefined | VerificationTokenDefaultArgs> = $Result.GetResult<Prisma.$VerificationTokenPayload, S>
type VerificationTokenCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<VerificationTokenFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: VerificationTokenCountAggregateInputType | true
}
export interface VerificationTokenDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['VerificationToken'], meta: { name: 'VerificationToken' } }
/**
* Find zero or one VerificationToken that matches the filter.
* @param {VerificationTokenFindUniqueArgs} args - Arguments to find a VerificationToken
* @example
* // Get one VerificationToken
* const verificationToken = await prisma.verificationToken.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends VerificationTokenFindUniqueArgs>(args: SelectSubset<T, VerificationTokenFindUniqueArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one VerificationToken that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {VerificationTokenFindUniqueOrThrowArgs} args - Arguments to find a VerificationToken
* @example
* // Get one VerificationToken
* const verificationToken = await prisma.verificationToken.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends VerificationTokenFindUniqueOrThrowArgs>(args: SelectSubset<T, VerificationTokenFindUniqueOrThrowArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first VerificationToken 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 {VerificationTokenFindFirstArgs} args - Arguments to find a VerificationToken
* @example
* // Get one VerificationToken
* const verificationToken = await prisma.verificationToken.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends VerificationTokenFindFirstArgs>(args?: SelectSubset<T, VerificationTokenFindFirstArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first VerificationToken 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 {VerificationTokenFindFirstOrThrowArgs} args - Arguments to find a VerificationToken
* @example
* // Get one VerificationToken
* const verificationToken = await prisma.verificationToken.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends VerificationTokenFindFirstOrThrowArgs>(args?: SelectSubset<T, VerificationTokenFindFirstOrThrowArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more VerificationTokens 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 {VerificationTokenFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all VerificationTokens
* const verificationTokens = await prisma.verificationToken.findMany()
*
* // Get first 10 VerificationTokens
* const verificationTokens = await prisma.verificationToken.findMany({ take: 10 })
*
* // Only select the `identifier`
* const verificationTokenWithIdentifierOnly = await prisma.verificationToken.findMany({ select: { identifier: true } })
*
*/
findMany<T extends VerificationTokenFindManyArgs>(args?: SelectSubset<T, VerificationTokenFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "findMany">>
/**
* Create a VerificationToken.
* @param {VerificationTokenCreateArgs} args - Arguments to create a VerificationToken.
* @example
* // Create one VerificationToken
* const VerificationToken = await prisma.verificationToken.create({
* data: {
* // ... data to create a VerificationToken
* }
* })
*
*/
create<T extends VerificationTokenCreateArgs>(args: SelectSubset<T, VerificationTokenCreateArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many VerificationTokens.
* @param {VerificationTokenCreateManyArgs} args - Arguments to create many VerificationTokens.
* @example
* // Create many VerificationTokens
* const verificationToken = await prisma.verificationToken.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends VerificationTokenCreateManyArgs>(args?: SelectSubset<T, VerificationTokenCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many VerificationTokens and returns the data saved in the database.
* @param {VerificationTokenCreateManyAndReturnArgs} args - Arguments to create many VerificationTokens.
* @example
* // Create many VerificationTokens
* const verificationToken = await prisma.verificationToken.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many VerificationTokens and only return the `identifier`
* const verificationTokenWithIdentifierOnly = await prisma.verificationToken.createManyAndReturn({
* select: { identifier: 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 VerificationTokenCreateManyAndReturnArgs>(args?: SelectSubset<T, VerificationTokenCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a VerificationToken.
* @param {VerificationTokenDeleteArgs} args - Arguments to delete one VerificationToken.
* @example
* // Delete one VerificationToken
* const VerificationToken = await prisma.verificationToken.delete({
* where: {
* // ... filter to delete one VerificationToken
* }
* })
*
*/
delete<T extends VerificationTokenDeleteArgs>(args: SelectSubset<T, VerificationTokenDeleteArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one VerificationToken.
* @param {VerificationTokenUpdateArgs} args - Arguments to update one VerificationToken.
* @example
* // Update one VerificationToken
* const verificationToken = await prisma.verificationToken.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends VerificationTokenUpdateArgs>(args: SelectSubset<T, VerificationTokenUpdateArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more VerificationTokens.
* @param {VerificationTokenDeleteManyArgs} args - Arguments to filter VerificationTokens to delete.
* @example
* // Delete a few VerificationTokens
* const { count } = await prisma.verificationToken.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends VerificationTokenDeleteManyArgs>(args?: SelectSubset<T, VerificationTokenDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more VerificationTokens.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {VerificationTokenUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many VerificationTokens
* const verificationToken = await prisma.verificationToken.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends VerificationTokenUpdateManyArgs>(args: SelectSubset<T, VerificationTokenUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one VerificationToken.
* @param {VerificationTokenUpsertArgs} args - Arguments to update or create a VerificationToken.
* @example
* // Update or create a VerificationToken
* const verificationToken = await prisma.verificationToken.upsert({
* create: {
* // ... data to create a VerificationToken
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the VerificationToken we want to update
* }
* })
*/
upsert<T extends VerificationTokenUpsertArgs>(args: SelectSubset<T, VerificationTokenUpsertArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of VerificationTokens.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {VerificationTokenCountArgs} args - Arguments to filter VerificationTokens to count.
* @example
* // Count the number of VerificationTokens
* const count = await prisma.verificationToken.count({
* where: {
* // ... the filter for the VerificationTokens we want to count
* }
* })
**/
count<T extends VerificationTokenCountArgs>(
args?: Subset<T, VerificationTokenCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], VerificationTokenCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a VerificationToken.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {VerificationTokenAggregateArgs} 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 VerificationTokenAggregateArgs>(args: Subset<T, VerificationTokenAggregateArgs>): Prisma.PrismaPromise<GetVerificationTokenAggregateType<T>>
/**
* Group by VerificationToken.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {VerificationTokenGroupByArgs} 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 VerificationTokenGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: VerificationTokenGroupByArgs['orderBy'] }
: { orderBy?: VerificationTokenGroupByArgs['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, VerificationTokenGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetVerificationTokenGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the VerificationToken model
*/
readonly fields: VerificationTokenFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for VerificationToken.
* 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__VerificationTokenClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the VerificationToken model
*/
interface VerificationTokenFieldRefs {
readonly identifier: FieldRef<"VerificationToken", 'String'>
readonly token: FieldRef<"VerificationToken", 'String'>
readonly expires: FieldRef<"VerificationToken", 'DateTime'>
}
// Custom InputTypes
/**
* VerificationToken findUnique
*/
export type VerificationTokenFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the VerificationToken
*/
select?: VerificationTokenSelect<ExtArgs> | null
/**
* Filter, which VerificationToken to fetch.
*/
where: VerificationTokenWhereUniqueInput
}
/**
* VerificationToken findUniqueOrThrow
*/
export type VerificationTokenFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the VerificationToken
*/
select?: VerificationTokenSelect<ExtArgs> | null
/**
* Filter, which VerificationToken to fetch.
*/
where: VerificationTokenWhereUniqueInput
}
/**
* VerificationToken findFirst
*/
export type VerificationTokenFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the VerificationToken
*/
select?: VerificationTokenSelect<ExtArgs> | null
/**
* Filter, which VerificationToken to fetch.
*/
where?: VerificationTokenWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of VerificationTokens to fetch.
*/
orderBy?: VerificationTokenOrderByWithRelationInput | VerificationTokenOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for VerificationTokens.
*/
cursor?: VerificationTokenWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` VerificationTokens from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` VerificationTokens.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of VerificationTokens.
*/
distinct?: VerificationTokenScalarFieldEnum | VerificationTokenScalarFieldEnum[]
}
/**
* VerificationToken findFirstOrThrow
*/
export type VerificationTokenFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the VerificationToken
*/
select?: VerificationTokenSelect<ExtArgs> | null
/**
* Filter, which VerificationToken to fetch.
*/
where?: VerificationTokenWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of VerificationTokens to fetch.
*/
orderBy?: VerificationTokenOrderByWithRelationInput | VerificationTokenOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for VerificationTokens.
*/
cursor?: VerificationTokenWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` VerificationTokens from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` VerificationTokens.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of VerificationTokens.
*/
distinct?: VerificationTokenScalarFieldEnum | VerificationTokenScalarFieldEnum[]
}
/**
* VerificationToken findMany
*/
export type VerificationTokenFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the VerificationToken
*/
select?: VerificationTokenSelect<ExtArgs> | null
/**
* Filter, which VerificationTokens to fetch.
*/
where?: VerificationTokenWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of VerificationTokens to fetch.
*/
orderBy?: VerificationTokenOrderByWithRelationInput | VerificationTokenOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing VerificationTokens.
*/
cursor?: VerificationTokenWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` VerificationTokens from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` VerificationTokens.
*/
skip?: number
distinct?: VerificationTokenScalarFieldEnum | VerificationTokenScalarFieldEnum[]
}
/**
* VerificationToken create
*/
export type VerificationTokenCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the VerificationToken
*/
select?: VerificationTokenSelect<ExtArgs> | null
/**
* The data needed to create a VerificationToken.
*/
data: XOR<VerificationTokenCreateInput, VerificationTokenUncheckedCreateInput>
}
/**
* VerificationToken createMany
*/
export type VerificationTokenCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many VerificationTokens.
*/
data: VerificationTokenCreateManyInput | VerificationTokenCreateManyInput[]
}
/**
* VerificationToken createManyAndReturn
*/
export type VerificationTokenCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the VerificationToken
*/
select?: VerificationTokenSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many VerificationTokens.
*/
data: VerificationTokenCreateManyInput | VerificationTokenCreateManyInput[]
}
/**
* VerificationToken update
*/
export type VerificationTokenUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the VerificationToken
*/
select?: VerificationTokenSelect<ExtArgs> | null
/**
* The data needed to update a VerificationToken.
*/
data: XOR<VerificationTokenUpdateInput, VerificationTokenUncheckedUpdateInput>
/**
* Choose, which VerificationToken to update.
*/
where: VerificationTokenWhereUniqueInput
}
/**
* VerificationToken updateMany
*/
export type VerificationTokenUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update VerificationTokens.
*/
data: XOR<VerificationTokenUpdateManyMutationInput, VerificationTokenUncheckedUpdateManyInput>
/**
* Filter which VerificationTokens to update
*/
where?: VerificationTokenWhereInput
}
/**
* VerificationToken upsert
*/
export type VerificationTokenUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the VerificationToken
*/
select?: VerificationTokenSelect<ExtArgs> | null
/**
* The filter to search for the VerificationToken to update in case it exists.
*/
where: VerificationTokenWhereUniqueInput
/**
* In case the VerificationToken found by the `where` argument doesn't exist, create a new VerificationToken with this data.
*/
create: XOR<VerificationTokenCreateInput, VerificationTokenUncheckedCreateInput>
/**
* In case the VerificationToken was found with the provided `where` argument, update it with this data.
*/
update: XOR<VerificationTokenUpdateInput, VerificationTokenUncheckedUpdateInput>
}
/**
* VerificationToken delete
*/
export type VerificationTokenDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the VerificationToken
*/
select?: VerificationTokenSelect<ExtArgs> | null
/**
* Filter which VerificationToken to delete.
*/
where: VerificationTokenWhereUniqueInput
}
/**
* VerificationToken deleteMany
*/
export type VerificationTokenDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which VerificationTokens to delete
*/
where?: VerificationTokenWhereInput
}
/**
* VerificationToken without action
*/
export type VerificationTokenDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the VerificationToken
*/
select?: VerificationTokenSelect<ExtArgs> | null
}
/**
* Model Label
*/
export type AggregateLabel = {
_count: LabelCountAggregateOutputType | null
_min: LabelMinAggregateOutputType | null
_max: LabelMaxAggregateOutputType | null
}
export type LabelMinAggregateOutputType = {
id: string | null
name: string | null
color: string | null
userId: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type LabelMaxAggregateOutputType = {
id: string | null
name: string | null
color: string | null
userId: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type LabelCountAggregateOutputType = {
id: number
name: number
color: number
userId: number
createdAt: number
updatedAt: number
_all: number
}
export type LabelMinAggregateInputType = {
id?: true
name?: true
color?: true
userId?: true
createdAt?: true
updatedAt?: true
}
export type LabelMaxAggregateInputType = {
id?: true
name?: true
color?: true
userId?: true
createdAt?: true
updatedAt?: true
}
export type LabelCountAggregateInputType = {
id?: true
name?: true
color?: true
userId?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type LabelAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Label to aggregate.
*/
where?: LabelWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Labels to fetch.
*/
orderBy?: LabelOrderByWithRelationInput | LabelOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: LabelWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Labels from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Labels.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned Labels
**/
_count?: true | LabelCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: LabelMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: LabelMaxAggregateInputType
}
export type GetLabelAggregateType<T extends LabelAggregateArgs> = {
[P in keyof T & keyof AggregateLabel]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateLabel[P]>
: GetScalarType<T[P], AggregateLabel[P]>
}
export type LabelGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: LabelWhereInput
orderBy?: LabelOrderByWithAggregationInput | LabelOrderByWithAggregationInput[]
by: LabelScalarFieldEnum[] | LabelScalarFieldEnum
having?: LabelScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: LabelCountAggregateInputType | true
_min?: LabelMinAggregateInputType
_max?: LabelMaxAggregateInputType
}
export type LabelGroupByOutputType = {
id: string
name: string
color: string
userId: string | null
createdAt: Date
updatedAt: Date
_count: LabelCountAggregateOutputType | null
_min: LabelMinAggregateOutputType | null
_max: LabelMaxAggregateOutputType | null
}
type GetLabelGroupByPayload<T extends LabelGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<LabelGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof LabelGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], LabelGroupByOutputType[P]>
: GetScalarType<T[P], LabelGroupByOutputType[P]>
}
>
>
export type LabelSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
name?: boolean
color?: boolean
userId?: boolean
createdAt?: boolean
updatedAt?: boolean
user?: boolean | Label$userArgs<ExtArgs>
}, ExtArgs["result"]["label"]>
export type LabelSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
name?: boolean
color?: boolean
userId?: boolean
createdAt?: boolean
updatedAt?: boolean
user?: boolean | Label$userArgs<ExtArgs>
}, ExtArgs["result"]["label"]>
export type LabelSelectScalar = {
id?: boolean
name?: boolean
color?: boolean
userId?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type LabelInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
user?: boolean | Label$userArgs<ExtArgs>
}
export type LabelIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
user?: boolean | Label$userArgs<ExtArgs>
}
export type $LabelPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "Label"
objects: {
user: Prisma.$UserPayload<ExtArgs> | null
}
scalars: $Extensions.GetPayloadResult<{
id: string
name: string
color: string
userId: string | null
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["label"]>
composites: {}
}
type LabelGetPayload<S extends boolean | null | undefined | LabelDefaultArgs> = $Result.GetResult<Prisma.$LabelPayload, S>
type LabelCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<LabelFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: LabelCountAggregateInputType | true
}
export interface LabelDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Label'], meta: { name: 'Label' } }
/**
* Find zero or one Label that matches the filter.
* @param {LabelFindUniqueArgs} args - Arguments to find a Label
* @example
* // Get one Label
* const label = await prisma.label.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends LabelFindUniqueArgs>(args: SelectSubset<T, LabelFindUniqueArgs<ExtArgs>>): Prisma__LabelClient<$Result.GetResult<Prisma.$LabelPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one Label that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {LabelFindUniqueOrThrowArgs} args - Arguments to find a Label
* @example
* // Get one Label
* const label = await prisma.label.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends LabelFindUniqueOrThrowArgs>(args: SelectSubset<T, LabelFindUniqueOrThrowArgs<ExtArgs>>): Prisma__LabelClient<$Result.GetResult<Prisma.$LabelPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first Label 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 {LabelFindFirstArgs} args - Arguments to find a Label
* @example
* // Get one Label
* const label = await prisma.label.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends LabelFindFirstArgs>(args?: SelectSubset<T, LabelFindFirstArgs<ExtArgs>>): Prisma__LabelClient<$Result.GetResult<Prisma.$LabelPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first Label 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 {LabelFindFirstOrThrowArgs} args - Arguments to find a Label
* @example
* // Get one Label
* const label = await prisma.label.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends LabelFindFirstOrThrowArgs>(args?: SelectSubset<T, LabelFindFirstOrThrowArgs<ExtArgs>>): Prisma__LabelClient<$Result.GetResult<Prisma.$LabelPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more Labels 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 {LabelFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Labels
* const labels = await prisma.label.findMany()
*
* // Get first 10 Labels
* const labels = await prisma.label.findMany({ take: 10 })
*
* // Only select the `id`
* const labelWithIdOnly = await prisma.label.findMany({ select: { id: true } })
*
*/
findMany<T extends LabelFindManyArgs>(args?: SelectSubset<T, LabelFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$LabelPayload<ExtArgs>, T, "findMany">>
/**
* Create a Label.
* @param {LabelCreateArgs} args - Arguments to create a Label.
* @example
* // Create one Label
* const Label = await prisma.label.create({
* data: {
* // ... data to create a Label
* }
* })
*
*/
create<T extends LabelCreateArgs>(args: SelectSubset<T, LabelCreateArgs<ExtArgs>>): Prisma__LabelClient<$Result.GetResult<Prisma.$LabelPayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many Labels.
* @param {LabelCreateManyArgs} args - Arguments to create many Labels.
* @example
* // Create many Labels
* const label = await prisma.label.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends LabelCreateManyArgs>(args?: SelectSubset<T, LabelCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many Labels and returns the data saved in the database.
* @param {LabelCreateManyAndReturnArgs} args - Arguments to create many Labels.
* @example
* // Create many Labels
* const label = await prisma.label.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Labels and only return the `id`
* const labelWithIdOnly = await prisma.label.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 LabelCreateManyAndReturnArgs>(args?: SelectSubset<T, LabelCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$LabelPayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a Label.
* @param {LabelDeleteArgs} args - Arguments to delete one Label.
* @example
* // Delete one Label
* const Label = await prisma.label.delete({
* where: {
* // ... filter to delete one Label
* }
* })
*
*/
delete<T extends LabelDeleteArgs>(args: SelectSubset<T, LabelDeleteArgs<ExtArgs>>): Prisma__LabelClient<$Result.GetResult<Prisma.$LabelPayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one Label.
* @param {LabelUpdateArgs} args - Arguments to update one Label.
* @example
* // Update one Label
* const label = await prisma.label.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends LabelUpdateArgs>(args: SelectSubset<T, LabelUpdateArgs<ExtArgs>>): Prisma__LabelClient<$Result.GetResult<Prisma.$LabelPayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more Labels.
* @param {LabelDeleteManyArgs} args - Arguments to filter Labels to delete.
* @example
* // Delete a few Labels
* const { count } = await prisma.label.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends LabelDeleteManyArgs>(args?: SelectSubset<T, LabelDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Labels.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {LabelUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Labels
* const label = await prisma.label.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends LabelUpdateManyArgs>(args: SelectSubset<T, LabelUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one Label.
* @param {LabelUpsertArgs} args - Arguments to update or create a Label.
* @example
* // Update or create a Label
* const label = await prisma.label.upsert({
* create: {
* // ... data to create a Label
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Label we want to update
* }
* })
*/
upsert<T extends LabelUpsertArgs>(args: SelectSubset<T, LabelUpsertArgs<ExtArgs>>): Prisma__LabelClient<$Result.GetResult<Prisma.$LabelPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of Labels.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {LabelCountArgs} args - Arguments to filter Labels to count.
* @example
* // Count the number of Labels
* const count = await prisma.label.count({
* where: {
* // ... the filter for the Labels we want to count
* }
* })
**/
count<T extends LabelCountArgs>(
args?: Subset<T, LabelCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], LabelCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Label.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {LabelAggregateArgs} 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 LabelAggregateArgs>(args: Subset<T, LabelAggregateArgs>): Prisma.PrismaPromise<GetLabelAggregateType<T>>
/**
* Group by Label.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {LabelGroupByArgs} 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 LabelGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: LabelGroupByArgs['orderBy'] }
: { orderBy?: LabelGroupByArgs['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, LabelGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetLabelGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the Label model
*/
readonly fields: LabelFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for Label.
* 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__LabelClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
user<T extends Label$userArgs<ExtArgs> = {}>(args?: Subset<T, Label$userArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the Label model
*/
interface LabelFieldRefs {
readonly id: FieldRef<"Label", 'String'>
readonly name: FieldRef<"Label", 'String'>
readonly color: FieldRef<"Label", 'String'>
readonly userId: FieldRef<"Label", 'String'>
readonly createdAt: FieldRef<"Label", 'DateTime'>
readonly updatedAt: FieldRef<"Label", 'DateTime'>
}
// Custom InputTypes
/**
* Label findUnique
*/
export type LabelFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Label
*/
select?: LabelSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: LabelInclude<ExtArgs> | null
/**
* Filter, which Label to fetch.
*/
where: LabelWhereUniqueInput
}
/**
* Label findUniqueOrThrow
*/
export type LabelFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Label
*/
select?: LabelSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: LabelInclude<ExtArgs> | null
/**
* Filter, which Label to fetch.
*/
where: LabelWhereUniqueInput
}
/**
* Label findFirst
*/
export type LabelFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Label
*/
select?: LabelSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: LabelInclude<ExtArgs> | null
/**
* Filter, which Label to fetch.
*/
where?: LabelWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Labels to fetch.
*/
orderBy?: LabelOrderByWithRelationInput | LabelOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Labels.
*/
cursor?: LabelWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Labels from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Labels.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Labels.
*/
distinct?: LabelScalarFieldEnum | LabelScalarFieldEnum[]
}
/**
* Label findFirstOrThrow
*/
export type LabelFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Label
*/
select?: LabelSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: LabelInclude<ExtArgs> | null
/**
* Filter, which Label to fetch.
*/
where?: LabelWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Labels to fetch.
*/
orderBy?: LabelOrderByWithRelationInput | LabelOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Labels.
*/
cursor?: LabelWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Labels from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Labels.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Labels.
*/
distinct?: LabelScalarFieldEnum | LabelScalarFieldEnum[]
}
/**
* Label findMany
*/
export type LabelFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Label
*/
select?: LabelSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: LabelInclude<ExtArgs> | null
/**
* Filter, which Labels to fetch.
*/
where?: LabelWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Labels to fetch.
*/
orderBy?: LabelOrderByWithRelationInput | LabelOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing Labels.
*/
cursor?: LabelWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Labels from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Labels.
*/
skip?: number
distinct?: LabelScalarFieldEnum | LabelScalarFieldEnum[]
}
/**
* Label create
*/
export type LabelCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Label
*/
select?: LabelSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: LabelInclude<ExtArgs> | null
/**
* The data needed to create a Label.
*/
data: XOR<LabelCreateInput, LabelUncheckedCreateInput>
}
/**
* Label createMany
*/
export type LabelCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many Labels.
*/
data: LabelCreateManyInput | LabelCreateManyInput[]
}
/**
* Label createManyAndReturn
*/
export type LabelCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Label
*/
select?: LabelSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many Labels.
*/
data: LabelCreateManyInput | LabelCreateManyInput[]
/**
* Choose, which related nodes to fetch as well
*/
include?: LabelIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* Label update
*/
export type LabelUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Label
*/
select?: LabelSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: LabelInclude<ExtArgs> | null
/**
* The data needed to update a Label.
*/
data: XOR<LabelUpdateInput, LabelUncheckedUpdateInput>
/**
* Choose, which Label to update.
*/
where: LabelWhereUniqueInput
}
/**
* Label updateMany
*/
export type LabelUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update Labels.
*/
data: XOR<LabelUpdateManyMutationInput, LabelUncheckedUpdateManyInput>
/**
* Filter which Labels to update
*/
where?: LabelWhereInput
}
/**
* Label upsert
*/
export type LabelUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Label
*/
select?: LabelSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: LabelInclude<ExtArgs> | null
/**
* The filter to search for the Label to update in case it exists.
*/
where: LabelWhereUniqueInput
/**
* In case the Label found by the `where` argument doesn't exist, create a new Label with this data.
*/
create: XOR<LabelCreateInput, LabelUncheckedCreateInput>
/**
* In case the Label was found with the provided `where` argument, update it with this data.
*/
update: XOR<LabelUpdateInput, LabelUncheckedUpdateInput>
}
/**
* Label delete
*/
export type LabelDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Label
*/
select?: LabelSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: LabelInclude<ExtArgs> | null
/**
* Filter which Label to delete.
*/
where: LabelWhereUniqueInput
}
/**
* Label deleteMany
*/
export type LabelDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Labels to delete
*/
where?: LabelWhereInput
}
/**
* Label.user
*/
export type Label$userArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
where?: UserWhereInput
}
/**
* Label without action
*/
export type LabelDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Label
*/
select?: LabelSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: LabelInclude<ExtArgs> | null
}
/**
* Model Note
*/
export type AggregateNote = {
_count: NoteCountAggregateOutputType | null
_avg: NoteAvgAggregateOutputType | null
_sum: NoteSumAggregateOutputType | null
_min: NoteMinAggregateOutputType | null
_max: NoteMaxAggregateOutputType | null
}
export type NoteAvgAggregateOutputType = {
order: number | null
}
export type NoteSumAggregateOutputType = {
order: number | null
}
export type NoteMinAggregateOutputType = {
id: string | null
title: string | null
content: string | null
color: string | null
isPinned: boolean | null
isArchived: boolean | null
type: string | null
checkItems: string | null
labels: string | null
images: string | null
links: string | null
reminder: Date | null
isReminderDone: boolean | null
reminderRecurrence: string | null
reminderLocation: string | null
isMarkdown: boolean | null
size: string | null
embedding: string | null
sharedWith: string | null
userId: string | null
order: number | null
createdAt: Date | null
updatedAt: Date | null
}
export type NoteMaxAggregateOutputType = {
id: string | null
title: string | null
content: string | null
color: string | null
isPinned: boolean | null
isArchived: boolean | null
type: string | null
checkItems: string | null
labels: string | null
images: string | null
links: string | null
reminder: Date | null
isReminderDone: boolean | null
reminderRecurrence: string | null
reminderLocation: string | null
isMarkdown: boolean | null
size: string | null
embedding: string | null
sharedWith: string | null
userId: string | null
order: number | null
createdAt: Date | null
updatedAt: Date | null
}
export type NoteCountAggregateOutputType = {
id: number
title: number
content: number
color: number
isPinned: number
isArchived: number
type: number
checkItems: number
labels: number
images: number
links: number
reminder: number
isReminderDone: number
reminderRecurrence: number
reminderLocation: number
isMarkdown: number
size: number
embedding: number
sharedWith: number
userId: number
order: number
createdAt: number
updatedAt: number
_all: number
}
export type NoteAvgAggregateInputType = {
order?: true
}
export type NoteSumAggregateInputType = {
order?: true
}
export type NoteMinAggregateInputType = {
id?: true
title?: true
content?: true
color?: true
isPinned?: true
isArchived?: true
type?: true
checkItems?: true
labels?: true
images?: true
links?: true
reminder?: true
isReminderDone?: true
reminderRecurrence?: true
reminderLocation?: true
isMarkdown?: true
size?: true
embedding?: true
sharedWith?: true
userId?: true
order?: true
createdAt?: true
updatedAt?: true
}
export type NoteMaxAggregateInputType = {
id?: true
title?: true
content?: true
color?: true
isPinned?: true
isArchived?: true
type?: true
checkItems?: true
labels?: true
images?: true
links?: true
reminder?: true
isReminderDone?: true
reminderRecurrence?: true
reminderLocation?: true
isMarkdown?: true
size?: true
embedding?: true
sharedWith?: true
userId?: true
order?: true
createdAt?: true
updatedAt?: true
}
export type NoteCountAggregateInputType = {
id?: true
title?: true
content?: true
color?: true
isPinned?: true
isArchived?: true
type?: true
checkItems?: true
labels?: true
images?: true
links?: true
reminder?: true
isReminderDone?: true
reminderRecurrence?: true
reminderLocation?: true
isMarkdown?: true
size?: true
embedding?: true
sharedWith?: true
userId?: true
order?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type NoteAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Note to aggregate.
*/
where?: NoteWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Notes to fetch.
*/
orderBy?: NoteOrderByWithRelationInput | NoteOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: NoteWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Notes from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Notes.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned Notes
**/
_count?: true | NoteCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: NoteAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: NoteSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: NoteMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: NoteMaxAggregateInputType
}
export type GetNoteAggregateType<T extends NoteAggregateArgs> = {
[P in keyof T & keyof AggregateNote]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateNote[P]>
: GetScalarType<T[P], AggregateNote[P]>
}
export type NoteGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: NoteWhereInput
orderBy?: NoteOrderByWithAggregationInput | NoteOrderByWithAggregationInput[]
by: NoteScalarFieldEnum[] | NoteScalarFieldEnum
having?: NoteScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: NoteCountAggregateInputType | true
_avg?: NoteAvgAggregateInputType
_sum?: NoteSumAggregateInputType
_min?: NoteMinAggregateInputType
_max?: NoteMaxAggregateInputType
}
export type NoteGroupByOutputType = {
id: string
title: string | null
content: string
color: string
isPinned: boolean
isArchived: boolean
type: string
checkItems: string | null
labels: string | null
images: string | null
links: string | null
reminder: Date | null
isReminderDone: boolean
reminderRecurrence: string | null
reminderLocation: string | null
isMarkdown: boolean
size: string
embedding: string | null
sharedWith: string | null
userId: string | null
order: number
createdAt: Date
updatedAt: Date
_count: NoteCountAggregateOutputType | null
_avg: NoteAvgAggregateOutputType | null
_sum: NoteSumAggregateOutputType | null
_min: NoteMinAggregateOutputType | null
_max: NoteMaxAggregateOutputType | null
}
type GetNoteGroupByPayload<T extends NoteGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<NoteGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof NoteGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], NoteGroupByOutputType[P]>
: GetScalarType<T[P], NoteGroupByOutputType[P]>
}
>
>
export type NoteSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
title?: boolean
content?: boolean
color?: boolean
isPinned?: boolean
isArchived?: boolean
type?: boolean
checkItems?: boolean
labels?: boolean
images?: boolean
links?: boolean
reminder?: boolean
isReminderDone?: boolean
reminderRecurrence?: boolean
reminderLocation?: boolean
isMarkdown?: boolean
size?: boolean
embedding?: boolean
sharedWith?: boolean
userId?: boolean
order?: boolean
createdAt?: boolean
updatedAt?: boolean
user?: boolean | Note$userArgs<ExtArgs>
shares?: boolean | Note$sharesArgs<ExtArgs>
_count?: boolean | NoteCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["note"]>
export type NoteSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
title?: boolean
content?: boolean
color?: boolean
isPinned?: boolean
isArchived?: boolean
type?: boolean
checkItems?: boolean
labels?: boolean
images?: boolean
links?: boolean
reminder?: boolean
isReminderDone?: boolean
reminderRecurrence?: boolean
reminderLocation?: boolean
isMarkdown?: boolean
size?: boolean
embedding?: boolean
sharedWith?: boolean
userId?: boolean
order?: boolean
createdAt?: boolean
updatedAt?: boolean
user?: boolean | Note$userArgs<ExtArgs>
}, ExtArgs["result"]["note"]>
export type NoteSelectScalar = {
id?: boolean
title?: boolean
content?: boolean
color?: boolean
isPinned?: boolean
isArchived?: boolean
type?: boolean
checkItems?: boolean
labels?: boolean
images?: boolean
links?: boolean
reminder?: boolean
isReminderDone?: boolean
reminderRecurrence?: boolean
reminderLocation?: boolean
isMarkdown?: boolean
size?: boolean
embedding?: boolean
sharedWith?: boolean
userId?: boolean
order?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type NoteInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
user?: boolean | Note$userArgs<ExtArgs>
shares?: boolean | Note$sharesArgs<ExtArgs>
_count?: boolean | NoteCountOutputTypeDefaultArgs<ExtArgs>
}
export type NoteIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
user?: boolean | Note$userArgs<ExtArgs>
}
export type $NotePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "Note"
objects: {
user: Prisma.$UserPayload<ExtArgs> | null
shares: Prisma.$NoteSharePayload<ExtArgs>[]
}
scalars: $Extensions.GetPayloadResult<{
id: string
title: string | null
content: string
color: string
isPinned: boolean
isArchived: boolean
type: string
checkItems: string | null
labels: string | null
images: string | null
links: string | null
reminder: Date | null
isReminderDone: boolean
reminderRecurrence: string | null
reminderLocation: string | null
isMarkdown: boolean
size: string
embedding: string | null
sharedWith: string | null
userId: string | null
order: number
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["note"]>
composites: {}
}
type NoteGetPayload<S extends boolean | null | undefined | NoteDefaultArgs> = $Result.GetResult<Prisma.$NotePayload, S>
type NoteCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<NoteFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: NoteCountAggregateInputType | true
}
export interface NoteDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Note'], meta: { name: 'Note' } }
/**
* Find zero or one Note that matches the filter.
* @param {NoteFindUniqueArgs} args - Arguments to find a Note
* @example
* // Get one Note
* const note = await prisma.note.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends NoteFindUniqueArgs>(args: SelectSubset<T, NoteFindUniqueArgs<ExtArgs>>): Prisma__NoteClient<$Result.GetResult<Prisma.$NotePayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one Note that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {NoteFindUniqueOrThrowArgs} args - Arguments to find a Note
* @example
* // Get one Note
* const note = await prisma.note.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends NoteFindUniqueOrThrowArgs>(args: SelectSubset<T, NoteFindUniqueOrThrowArgs<ExtArgs>>): Prisma__NoteClient<$Result.GetResult<Prisma.$NotePayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first Note 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 {NoteFindFirstArgs} args - Arguments to find a Note
* @example
* // Get one Note
* const note = await prisma.note.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends NoteFindFirstArgs>(args?: SelectSubset<T, NoteFindFirstArgs<ExtArgs>>): Prisma__NoteClient<$Result.GetResult<Prisma.$NotePayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first Note 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 {NoteFindFirstOrThrowArgs} args - Arguments to find a Note
* @example
* // Get one Note
* const note = await prisma.note.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends NoteFindFirstOrThrowArgs>(args?: SelectSubset<T, NoteFindFirstOrThrowArgs<ExtArgs>>): Prisma__NoteClient<$Result.GetResult<Prisma.$NotePayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more Notes 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 {NoteFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Notes
* const notes = await prisma.note.findMany()
*
* // Get first 10 Notes
* const notes = await prisma.note.findMany({ take: 10 })
*
* // Only select the `id`
* const noteWithIdOnly = await prisma.note.findMany({ select: { id: true } })
*
*/
findMany<T extends NoteFindManyArgs>(args?: SelectSubset<T, NoteFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$NotePayload<ExtArgs>, T, "findMany">>
/**
* Create a Note.
* @param {NoteCreateArgs} args - Arguments to create a Note.
* @example
* // Create one Note
* const Note = await prisma.note.create({
* data: {
* // ... data to create a Note
* }
* })
*
*/
create<T extends NoteCreateArgs>(args: SelectSubset<T, NoteCreateArgs<ExtArgs>>): Prisma__NoteClient<$Result.GetResult<Prisma.$NotePayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many Notes.
* @param {NoteCreateManyArgs} args - Arguments to create many Notes.
* @example
* // Create many Notes
* const note = await prisma.note.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends NoteCreateManyArgs>(args?: SelectSubset<T, NoteCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many Notes and returns the data saved in the database.
* @param {NoteCreateManyAndReturnArgs} args - Arguments to create many Notes.
* @example
* // Create many Notes
* const note = await prisma.note.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Notes and only return the `id`
* const noteWithIdOnly = await prisma.note.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 NoteCreateManyAndReturnArgs>(args?: SelectSubset<T, NoteCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$NotePayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a Note.
* @param {NoteDeleteArgs} args - Arguments to delete one Note.
* @example
* // Delete one Note
* const Note = await prisma.note.delete({
* where: {
* // ... filter to delete one Note
* }
* })
*
*/
delete<T extends NoteDeleteArgs>(args: SelectSubset<T, NoteDeleteArgs<ExtArgs>>): Prisma__NoteClient<$Result.GetResult<Prisma.$NotePayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one Note.
* @param {NoteUpdateArgs} args - Arguments to update one Note.
* @example
* // Update one Note
* const note = await prisma.note.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends NoteUpdateArgs>(args: SelectSubset<T, NoteUpdateArgs<ExtArgs>>): Prisma__NoteClient<$Result.GetResult<Prisma.$NotePayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more Notes.
* @param {NoteDeleteManyArgs} args - Arguments to filter Notes to delete.
* @example
* // Delete a few Notes
* const { count } = await prisma.note.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends NoteDeleteManyArgs>(args?: SelectSubset<T, NoteDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Notes.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {NoteUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Notes
* const note = await prisma.note.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends NoteUpdateManyArgs>(args: SelectSubset<T, NoteUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one Note.
* @param {NoteUpsertArgs} args - Arguments to update or create a Note.
* @example
* // Update or create a Note
* const note = await prisma.note.upsert({
* create: {
* // ... data to create a Note
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Note we want to update
* }
* })
*/
upsert<T extends NoteUpsertArgs>(args: SelectSubset<T, NoteUpsertArgs<ExtArgs>>): Prisma__NoteClient<$Result.GetResult<Prisma.$NotePayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of Notes.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {NoteCountArgs} args - Arguments to filter Notes to count.
* @example
* // Count the number of Notes
* const count = await prisma.note.count({
* where: {
* // ... the filter for the Notes we want to count
* }
* })
**/
count<T extends NoteCountArgs>(
args?: Subset<T, NoteCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], NoteCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Note.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {NoteAggregateArgs} 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 NoteAggregateArgs>(args: Subset<T, NoteAggregateArgs>): Prisma.PrismaPromise<GetNoteAggregateType<T>>
/**
* Group by Note.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {NoteGroupByArgs} 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 NoteGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: NoteGroupByArgs['orderBy'] }
: { orderBy?: NoteGroupByArgs['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, NoteGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetNoteGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the Note model
*/
readonly fields: NoteFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for Note.
* 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__NoteClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
user<T extends Note$userArgs<ExtArgs> = {}>(args?: Subset<T, Note$userArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
shares<T extends Note$sharesArgs<ExtArgs> = {}>(args?: Subset<T, Note$sharesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$NoteSharePayload<ExtArgs>, T, "findMany"> | Null>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the Note model
*/
interface NoteFieldRefs {
readonly id: FieldRef<"Note", 'String'>
readonly title: FieldRef<"Note", 'String'>
readonly content: FieldRef<"Note", 'String'>
readonly color: FieldRef<"Note", 'String'>
readonly isPinned: FieldRef<"Note", 'Boolean'>
readonly isArchived: FieldRef<"Note", 'Boolean'>
readonly type: FieldRef<"Note", 'String'>
readonly checkItems: FieldRef<"Note", 'String'>
readonly labels: FieldRef<"Note", 'String'>
readonly images: FieldRef<"Note", 'String'>
readonly links: FieldRef<"Note", 'String'>
readonly reminder: FieldRef<"Note", 'DateTime'>
readonly isReminderDone: FieldRef<"Note", 'Boolean'>
readonly reminderRecurrence: FieldRef<"Note", 'String'>
readonly reminderLocation: FieldRef<"Note", 'String'>
readonly isMarkdown: FieldRef<"Note", 'Boolean'>
readonly size: FieldRef<"Note", 'String'>
readonly embedding: FieldRef<"Note", 'String'>
readonly sharedWith: FieldRef<"Note", 'String'>
readonly userId: FieldRef<"Note", 'String'>
readonly order: FieldRef<"Note", 'Int'>
readonly createdAt: FieldRef<"Note", 'DateTime'>
readonly updatedAt: FieldRef<"Note", 'DateTime'>
}
// Custom InputTypes
/**
* Note findUnique
*/
export type NoteFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Note
*/
select?: NoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: NoteInclude<ExtArgs> | null
/**
* Filter, which Note to fetch.
*/
where: NoteWhereUniqueInput
}
/**
* Note findUniqueOrThrow
*/
export type NoteFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Note
*/
select?: NoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: NoteInclude<ExtArgs> | null
/**
* Filter, which Note to fetch.
*/
where: NoteWhereUniqueInput
}
/**
* Note findFirst
*/
export type NoteFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Note
*/
select?: NoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: NoteInclude<ExtArgs> | null
/**
* Filter, which Note to fetch.
*/
where?: NoteWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Notes to fetch.
*/
orderBy?: NoteOrderByWithRelationInput | NoteOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Notes.
*/
cursor?: NoteWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Notes from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Notes.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Notes.
*/
distinct?: NoteScalarFieldEnum | NoteScalarFieldEnum[]
}
/**
* Note findFirstOrThrow
*/
export type NoteFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Note
*/
select?: NoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: NoteInclude<ExtArgs> | null
/**
* Filter, which Note to fetch.
*/
where?: NoteWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Notes to fetch.
*/
orderBy?: NoteOrderByWithRelationInput | NoteOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Notes.
*/
cursor?: NoteWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Notes from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Notes.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Notes.
*/
distinct?: NoteScalarFieldEnum | NoteScalarFieldEnum[]
}
/**
* Note findMany
*/
export type NoteFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Note
*/
select?: NoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: NoteInclude<ExtArgs> | null
/**
* Filter, which Notes to fetch.
*/
where?: NoteWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Notes to fetch.
*/
orderBy?: NoteOrderByWithRelationInput | NoteOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing Notes.
*/
cursor?: NoteWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Notes from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Notes.
*/
skip?: number
distinct?: NoteScalarFieldEnum | NoteScalarFieldEnum[]
}
/**
* Note create
*/
export type NoteCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Note
*/
select?: NoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: NoteInclude<ExtArgs> | null
/**
* The data needed to create a Note.
*/
data: XOR<NoteCreateInput, NoteUncheckedCreateInput>
}
/**
* Note createMany
*/
export type NoteCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many Notes.
*/
data: NoteCreateManyInput | NoteCreateManyInput[]
}
/**
* Note createManyAndReturn
*/
export type NoteCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Note
*/
select?: NoteSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many Notes.
*/
data: NoteCreateManyInput | NoteCreateManyInput[]
/**
* Choose, which related nodes to fetch as well
*/
include?: NoteIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* Note update
*/
export type NoteUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Note
*/
select?: NoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: NoteInclude<ExtArgs> | null
/**
* The data needed to update a Note.
*/
data: XOR<NoteUpdateInput, NoteUncheckedUpdateInput>
/**
* Choose, which Note to update.
*/
where: NoteWhereUniqueInput
}
/**
* Note updateMany
*/
export type NoteUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update Notes.
*/
data: XOR<NoteUpdateManyMutationInput, NoteUncheckedUpdateManyInput>
/**
* Filter which Notes to update
*/
where?: NoteWhereInput
}
/**
* Note upsert
*/
export type NoteUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Note
*/
select?: NoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: NoteInclude<ExtArgs> | null
/**
* The filter to search for the Note to update in case it exists.
*/
where: NoteWhereUniqueInput
/**
* In case the Note found by the `where` argument doesn't exist, create a new Note with this data.
*/
create: XOR<NoteCreateInput, NoteUncheckedCreateInput>
/**
* In case the Note was found with the provided `where` argument, update it with this data.
*/
update: XOR<NoteUpdateInput, NoteUncheckedUpdateInput>
}
/**
* Note delete
*/
export type NoteDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Note
*/
select?: NoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: NoteInclude<ExtArgs> | null
/**
* Filter which Note to delete.
*/
where: NoteWhereUniqueInput
}
/**
* Note deleteMany
*/
export type NoteDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Notes to delete
*/
where?: NoteWhereInput
}
/**
* Note.user
*/
export type Note$userArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: UserSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: UserInclude<ExtArgs> | null
where?: UserWhereInput
}
/**
* Note.shares
*/
export type Note$sharesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the NoteShare
*/
select?: NoteShareSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: NoteShareInclude<ExtArgs> | null
where?: NoteShareWhereInput
orderBy?: NoteShareOrderByWithRelationInput | NoteShareOrderByWithRelationInput[]
cursor?: NoteShareWhereUniqueInput
take?: number
skip?: number
distinct?: NoteShareScalarFieldEnum | NoteShareScalarFieldEnum[]
}
/**
* Note without action
*/
export type NoteDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Note
*/
select?: NoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: NoteInclude<ExtArgs> | null
}
/**
* Model NoteShare
*/
export type AggregateNoteShare = {
_count: NoteShareCountAggregateOutputType | null
_min: NoteShareMinAggregateOutputType | null
_max: NoteShareMaxAggregateOutputType | null
}
export type NoteShareMinAggregateOutputType = {
id: string | null
noteId: string | null
userId: string | null
sharedBy: string | null
status: string | null
permission: string | null
notifiedAt: Date | null
respondedAt: Date | null
createdAt: Date | null
updatedAt: Date | null
}
export type NoteShareMaxAggregateOutputType = {
id: string | null
noteId: string | null
userId: string | null
sharedBy: string | null
status: string | null
permission: string | null
notifiedAt: Date | null
respondedAt: Date | null
createdAt: Date | null
updatedAt: Date | null
}
export type NoteShareCountAggregateOutputType = {
id: number
noteId: number
userId: number
sharedBy: number
status: number
permission: number
notifiedAt: number
respondedAt: number
createdAt: number
updatedAt: number
_all: number
}
export type NoteShareMinAggregateInputType = {
id?: true
noteId?: true
userId?: true
sharedBy?: true
status?: true
permission?: true
notifiedAt?: true
respondedAt?: true
createdAt?: true
updatedAt?: true
}
export type NoteShareMaxAggregateInputType = {
id?: true
noteId?: true
userId?: true
sharedBy?: true
status?: true
permission?: true
notifiedAt?: true
respondedAt?: true
createdAt?: true
updatedAt?: true
}
export type NoteShareCountAggregateInputType = {
id?: true
noteId?: true
userId?: true
sharedBy?: true
status?: true
permission?: true
notifiedAt?: true
respondedAt?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type NoteShareAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which NoteShare to aggregate.
*/
where?: NoteShareWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of NoteShares to fetch.
*/
orderBy?: NoteShareOrderByWithRelationInput | NoteShareOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: NoteShareWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` NoteShares from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` NoteShares.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned NoteShares
**/
_count?: true | NoteShareCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: NoteShareMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: NoteShareMaxAggregateInputType
}
export type GetNoteShareAggregateType<T extends NoteShareAggregateArgs> = {
[P in keyof T & keyof AggregateNoteShare]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateNoteShare[P]>
: GetScalarType<T[P], AggregateNoteShare[P]>
}
export type NoteShareGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: NoteShareWhereInput
orderBy?: NoteShareOrderByWithAggregationInput | NoteShareOrderByWithAggregationInput[]
by: NoteShareScalarFieldEnum[] | NoteShareScalarFieldEnum
having?: NoteShareScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: NoteShareCountAggregateInputType | true
_min?: NoteShareMinAggregateInputType
_max?: NoteShareMaxAggregateInputType
}
export type NoteShareGroupByOutputType = {
id: string
noteId: string
userId: string
sharedBy: string
status: string
permission: string
notifiedAt: Date | null
respondedAt: Date | null
createdAt: Date
updatedAt: Date
_count: NoteShareCountAggregateOutputType | null
_min: NoteShareMinAggregateOutputType | null
_max: NoteShareMaxAggregateOutputType | null
}
type GetNoteShareGroupByPayload<T extends NoteShareGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<NoteShareGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof NoteShareGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], NoteShareGroupByOutputType[P]>
: GetScalarType<T[P], NoteShareGroupByOutputType[P]>
}
>
>
export type NoteShareSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
noteId?: boolean
userId?: boolean
sharedBy?: boolean
status?: boolean
permission?: boolean
notifiedAt?: boolean
respondedAt?: boolean
createdAt?: boolean
updatedAt?: boolean
note?: boolean | NoteDefaultArgs<ExtArgs>
user?: boolean | UserDefaultArgs<ExtArgs>
sharer?: boolean | UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["noteShare"]>
export type NoteShareSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
noteId?: boolean
userId?: boolean
sharedBy?: boolean
status?: boolean
permission?: boolean
notifiedAt?: boolean
respondedAt?: boolean
createdAt?: boolean
updatedAt?: boolean
note?: boolean | NoteDefaultArgs<ExtArgs>
user?: boolean | UserDefaultArgs<ExtArgs>
sharer?: boolean | UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["noteShare"]>
export type NoteShareSelectScalar = {
id?: boolean
noteId?: boolean
userId?: boolean
sharedBy?: boolean
status?: boolean
permission?: boolean
notifiedAt?: boolean
respondedAt?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type NoteShareInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
note?: boolean | NoteDefaultArgs<ExtArgs>
user?: boolean | UserDefaultArgs<ExtArgs>
sharer?: boolean | UserDefaultArgs<ExtArgs>
}
export type NoteShareIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
note?: boolean | NoteDefaultArgs<ExtArgs>
user?: boolean | UserDefaultArgs<ExtArgs>
sharer?: boolean | UserDefaultArgs<ExtArgs>
}
export type $NoteSharePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "NoteShare"
objects: {
note: Prisma.$NotePayload<ExtArgs>
user: Prisma.$UserPayload<ExtArgs>
sharer: Prisma.$UserPayload<ExtArgs>
}
scalars: $Extensions.GetPayloadResult<{
id: string
noteId: string
userId: string
sharedBy: string
status: string
permission: string
notifiedAt: Date | null
respondedAt: Date | null
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["noteShare"]>
composites: {}
}
type NoteShareGetPayload<S extends boolean | null | undefined | NoteShareDefaultArgs> = $Result.GetResult<Prisma.$NoteSharePayload, S>
type NoteShareCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<NoteShareFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: NoteShareCountAggregateInputType | true
}
export interface NoteShareDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['NoteShare'], meta: { name: 'NoteShare' } }
/**
* Find zero or one NoteShare that matches the filter.
* @param {NoteShareFindUniqueArgs} args - Arguments to find a NoteShare
* @example
* // Get one NoteShare
* const noteShare = await prisma.noteShare.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends NoteShareFindUniqueArgs>(args: SelectSubset<T, NoteShareFindUniqueArgs<ExtArgs>>): Prisma__NoteShareClient<$Result.GetResult<Prisma.$NoteSharePayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one NoteShare that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {NoteShareFindUniqueOrThrowArgs} args - Arguments to find a NoteShare
* @example
* // Get one NoteShare
* const noteShare = await prisma.noteShare.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends NoteShareFindUniqueOrThrowArgs>(args: SelectSubset<T, NoteShareFindUniqueOrThrowArgs<ExtArgs>>): Prisma__NoteShareClient<$Result.GetResult<Prisma.$NoteSharePayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first NoteShare 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 {NoteShareFindFirstArgs} args - Arguments to find a NoteShare
* @example
* // Get one NoteShare
* const noteShare = await prisma.noteShare.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends NoteShareFindFirstArgs>(args?: SelectSubset<T, NoteShareFindFirstArgs<ExtArgs>>): Prisma__NoteShareClient<$Result.GetResult<Prisma.$NoteSharePayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first NoteShare 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 {NoteShareFindFirstOrThrowArgs} args - Arguments to find a NoteShare
* @example
* // Get one NoteShare
* const noteShare = await prisma.noteShare.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends NoteShareFindFirstOrThrowArgs>(args?: SelectSubset<T, NoteShareFindFirstOrThrowArgs<ExtArgs>>): Prisma__NoteShareClient<$Result.GetResult<Prisma.$NoteSharePayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more NoteShares 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 {NoteShareFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all NoteShares
* const noteShares = await prisma.noteShare.findMany()
*
* // Get first 10 NoteShares
* const noteShares = await prisma.noteShare.findMany({ take: 10 })
*
* // Only select the `id`
* const noteShareWithIdOnly = await prisma.noteShare.findMany({ select: { id: true } })
*
*/
findMany<T extends NoteShareFindManyArgs>(args?: SelectSubset<T, NoteShareFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$NoteSharePayload<ExtArgs>, T, "findMany">>
/**
* Create a NoteShare.
* @param {NoteShareCreateArgs} args - Arguments to create a NoteShare.
* @example
* // Create one NoteShare
* const NoteShare = await prisma.noteShare.create({
* data: {
* // ... data to create a NoteShare
* }
* })
*
*/
create<T extends NoteShareCreateArgs>(args: SelectSubset<T, NoteShareCreateArgs<ExtArgs>>): Prisma__NoteShareClient<$Result.GetResult<Prisma.$NoteSharePayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many NoteShares.
* @param {NoteShareCreateManyArgs} args - Arguments to create many NoteShares.
* @example
* // Create many NoteShares
* const noteShare = await prisma.noteShare.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends NoteShareCreateManyArgs>(args?: SelectSubset<T, NoteShareCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many NoteShares and returns the data saved in the database.
* @param {NoteShareCreateManyAndReturnArgs} args - Arguments to create many NoteShares.
* @example
* // Create many NoteShares
* const noteShare = await prisma.noteShare.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many NoteShares and only return the `id`
* const noteShareWithIdOnly = await prisma.noteShare.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 NoteShareCreateManyAndReturnArgs>(args?: SelectSubset<T, NoteShareCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$NoteSharePayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a NoteShare.
* @param {NoteShareDeleteArgs} args - Arguments to delete one NoteShare.
* @example
* // Delete one NoteShare
* const NoteShare = await prisma.noteShare.delete({
* where: {
* // ... filter to delete one NoteShare
* }
* })
*
*/
delete<T extends NoteShareDeleteArgs>(args: SelectSubset<T, NoteShareDeleteArgs<ExtArgs>>): Prisma__NoteShareClient<$Result.GetResult<Prisma.$NoteSharePayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one NoteShare.
* @param {NoteShareUpdateArgs} args - Arguments to update one NoteShare.
* @example
* // Update one NoteShare
* const noteShare = await prisma.noteShare.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends NoteShareUpdateArgs>(args: SelectSubset<T, NoteShareUpdateArgs<ExtArgs>>): Prisma__NoteShareClient<$Result.GetResult<Prisma.$NoteSharePayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more NoteShares.
* @param {NoteShareDeleteManyArgs} args - Arguments to filter NoteShares to delete.
* @example
* // Delete a few NoteShares
* const { count } = await prisma.noteShare.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends NoteShareDeleteManyArgs>(args?: SelectSubset<T, NoteShareDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more NoteShares.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {NoteShareUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many NoteShares
* const noteShare = await prisma.noteShare.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends NoteShareUpdateManyArgs>(args: SelectSubset<T, NoteShareUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one NoteShare.
* @param {NoteShareUpsertArgs} args - Arguments to update or create a NoteShare.
* @example
* // Update or create a NoteShare
* const noteShare = await prisma.noteShare.upsert({
* create: {
* // ... data to create a NoteShare
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the NoteShare we want to update
* }
* })
*/
upsert<T extends NoteShareUpsertArgs>(args: SelectSubset<T, NoteShareUpsertArgs<ExtArgs>>): Prisma__NoteShareClient<$Result.GetResult<Prisma.$NoteSharePayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of NoteShares.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {NoteShareCountArgs} args - Arguments to filter NoteShares to count.
* @example
* // Count the number of NoteShares
* const count = await prisma.noteShare.count({
* where: {
* // ... the filter for the NoteShares we want to count
* }
* })
**/
count<T extends NoteShareCountArgs>(
args?: Subset<T, NoteShareCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], NoteShareCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a NoteShare.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {NoteShareAggregateArgs} 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 NoteShareAggregateArgs>(args: Subset<T, NoteShareAggregateArgs>): Prisma.PrismaPromise<GetNoteShareAggregateType<T>>
/**
* Group by NoteShare.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {NoteShareGroupByArgs} 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 NoteShareGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: NoteShareGroupByArgs['orderBy'] }
: { orderBy?: NoteShareGroupByArgs['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, NoteShareGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetNoteShareGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the NoteShare model
*/
readonly fields: NoteShareFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for NoteShare.
* 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__NoteShareClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
note<T extends NoteDefaultArgs<ExtArgs> = {}>(args?: Subset<T, NoteDefaultArgs<ExtArgs>>): Prisma__NoteClient<$Result.GetResult<Prisma.$NotePayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
sharer<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the NoteShare model
*/
interface NoteShareFieldRefs {
readonly id: FieldRef<"NoteShare", 'String'>
readonly noteId: FieldRef<"NoteShare", 'String'>
readonly userId: FieldRef<"NoteShare", 'String'>
readonly sharedBy: FieldRef<"NoteShare", 'String'>
readonly status: FieldRef<"NoteShare", 'String'>
readonly permission: FieldRef<"NoteShare", 'String'>
readonly notifiedAt: FieldRef<"NoteShare", 'DateTime'>
readonly respondedAt: FieldRef<"NoteShare", 'DateTime'>
readonly createdAt: FieldRef<"NoteShare", 'DateTime'>
readonly updatedAt: FieldRef<"NoteShare", 'DateTime'>
}
// Custom InputTypes
/**
* NoteShare findUnique
*/
export type NoteShareFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the NoteShare
*/
select?: NoteShareSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: NoteShareInclude<ExtArgs> | null
/**
* Filter, which NoteShare to fetch.
*/
where: NoteShareWhereUniqueInput
}
/**
* NoteShare findUniqueOrThrow
*/
export type NoteShareFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the NoteShare
*/
select?: NoteShareSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: NoteShareInclude<ExtArgs> | null
/**
* Filter, which NoteShare to fetch.
*/
where: NoteShareWhereUniqueInput
}
/**
* NoteShare findFirst
*/
export type NoteShareFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the NoteShare
*/
select?: NoteShareSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: NoteShareInclude<ExtArgs> | null
/**
* Filter, which NoteShare to fetch.
*/
where?: NoteShareWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of NoteShares to fetch.
*/
orderBy?: NoteShareOrderByWithRelationInput | NoteShareOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for NoteShares.
*/
cursor?: NoteShareWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` NoteShares from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` NoteShares.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of NoteShares.
*/
distinct?: NoteShareScalarFieldEnum | NoteShareScalarFieldEnum[]
}
/**
* NoteShare findFirstOrThrow
*/
export type NoteShareFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the NoteShare
*/
select?: NoteShareSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: NoteShareInclude<ExtArgs> | null
/**
* Filter, which NoteShare to fetch.
*/
where?: NoteShareWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of NoteShares to fetch.
*/
orderBy?: NoteShareOrderByWithRelationInput | NoteShareOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for NoteShares.
*/
cursor?: NoteShareWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` NoteShares from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` NoteShares.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of NoteShares.
*/
distinct?: NoteShareScalarFieldEnum | NoteShareScalarFieldEnum[]
}
/**
* NoteShare findMany
*/
export type NoteShareFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the NoteShare
*/
select?: NoteShareSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: NoteShareInclude<ExtArgs> | null
/**
* Filter, which NoteShares to fetch.
*/
where?: NoteShareWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of NoteShares to fetch.
*/
orderBy?: NoteShareOrderByWithRelationInput | NoteShareOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing NoteShares.
*/
cursor?: NoteShareWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` NoteShares from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` NoteShares.
*/
skip?: number
distinct?: NoteShareScalarFieldEnum | NoteShareScalarFieldEnum[]
}
/**
* NoteShare create
*/
export type NoteShareCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the NoteShare
*/
select?: NoteShareSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: NoteShareInclude<ExtArgs> | null
/**
* The data needed to create a NoteShare.
*/
data: XOR<NoteShareCreateInput, NoteShareUncheckedCreateInput>
}
/**
* NoteShare createMany
*/
export type NoteShareCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many NoteShares.
*/
data: NoteShareCreateManyInput | NoteShareCreateManyInput[]
}
/**
* NoteShare createManyAndReturn
*/
export type NoteShareCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the NoteShare
*/
select?: NoteShareSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many NoteShares.
*/
data: NoteShareCreateManyInput | NoteShareCreateManyInput[]
/**
* Choose, which related nodes to fetch as well
*/
include?: NoteShareIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* NoteShare update
*/
export type NoteShareUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the NoteShare
*/
select?: NoteShareSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: NoteShareInclude<ExtArgs> | null
/**
* The data needed to update a NoteShare.
*/
data: XOR<NoteShareUpdateInput, NoteShareUncheckedUpdateInput>
/**
* Choose, which NoteShare to update.
*/
where: NoteShareWhereUniqueInput
}
/**
* NoteShare updateMany
*/
export type NoteShareUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update NoteShares.
*/
data: XOR<NoteShareUpdateManyMutationInput, NoteShareUncheckedUpdateManyInput>
/**
* Filter which NoteShares to update
*/
where?: NoteShareWhereInput
}
/**
* NoteShare upsert
*/
export type NoteShareUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the NoteShare
*/
select?: NoteShareSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: NoteShareInclude<ExtArgs> | null
/**
* The filter to search for the NoteShare to update in case it exists.
*/
where: NoteShareWhereUniqueInput
/**
* In case the NoteShare found by the `where` argument doesn't exist, create a new NoteShare with this data.
*/
create: XOR<NoteShareCreateInput, NoteShareUncheckedCreateInput>
/**
* In case the NoteShare was found with the provided `where` argument, update it with this data.
*/
update: XOR<NoteShareUpdateInput, NoteShareUncheckedUpdateInput>
}
/**
* NoteShare delete
*/
export type NoteShareDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the NoteShare
*/
select?: NoteShareSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: NoteShareInclude<ExtArgs> | null
/**
* Filter which NoteShare to delete.
*/
where: NoteShareWhereUniqueInput
}
/**
* NoteShare deleteMany
*/
export type NoteShareDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which NoteShares to delete
*/
where?: NoteShareWhereInput
}
/**
* NoteShare without action
*/
export type NoteShareDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the NoteShare
*/
select?: NoteShareSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: NoteShareInclude<ExtArgs> | null
}
/**
* Model SystemConfig
*/
export type AggregateSystemConfig = {
_count: SystemConfigCountAggregateOutputType | null
_min: SystemConfigMinAggregateOutputType | null
_max: SystemConfigMaxAggregateOutputType | null
}
export type SystemConfigMinAggregateOutputType = {
key: string | null
value: string | null
}
export type SystemConfigMaxAggregateOutputType = {
key: string | null
value: string | null
}
export type SystemConfigCountAggregateOutputType = {
key: number
value: number
_all: number
}
export type SystemConfigMinAggregateInputType = {
key?: true
value?: true
}
export type SystemConfigMaxAggregateInputType = {
key?: true
value?: true
}
export type SystemConfigCountAggregateInputType = {
key?: true
value?: true
_all?: true
}
export type SystemConfigAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which SystemConfig to aggregate.
*/
where?: SystemConfigWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of SystemConfigs to fetch.
*/
orderBy?: SystemConfigOrderByWithRelationInput | SystemConfigOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: SystemConfigWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` SystemConfigs from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` SystemConfigs.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned SystemConfigs
**/
_count?: true | SystemConfigCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: SystemConfigMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: SystemConfigMaxAggregateInputType
}
export type GetSystemConfigAggregateType<T extends SystemConfigAggregateArgs> = {
[P in keyof T & keyof AggregateSystemConfig]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateSystemConfig[P]>
: GetScalarType<T[P], AggregateSystemConfig[P]>
}
export type SystemConfigGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: SystemConfigWhereInput
orderBy?: SystemConfigOrderByWithAggregationInput | SystemConfigOrderByWithAggregationInput[]
by: SystemConfigScalarFieldEnum[] | SystemConfigScalarFieldEnum
having?: SystemConfigScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: SystemConfigCountAggregateInputType | true
_min?: SystemConfigMinAggregateInputType
_max?: SystemConfigMaxAggregateInputType
}
export type SystemConfigGroupByOutputType = {
key: string
value: string
_count: SystemConfigCountAggregateOutputType | null
_min: SystemConfigMinAggregateOutputType | null
_max: SystemConfigMaxAggregateOutputType | null
}
type GetSystemConfigGroupByPayload<T extends SystemConfigGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<SystemConfigGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof SystemConfigGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], SystemConfigGroupByOutputType[P]>
: GetScalarType<T[P], SystemConfigGroupByOutputType[P]>
}
>
>
export type SystemConfigSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
key?: boolean
value?: boolean
}, ExtArgs["result"]["systemConfig"]>
export type SystemConfigSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
key?: boolean
value?: boolean
}, ExtArgs["result"]["systemConfig"]>
export type SystemConfigSelectScalar = {
key?: boolean
value?: boolean
}
export type $SystemConfigPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "SystemConfig"
objects: {}
scalars: $Extensions.GetPayloadResult<{
key: string
value: string
}, ExtArgs["result"]["systemConfig"]>
composites: {}
}
type SystemConfigGetPayload<S extends boolean | null | undefined | SystemConfigDefaultArgs> = $Result.GetResult<Prisma.$SystemConfigPayload, S>
type SystemConfigCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<SystemConfigFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: SystemConfigCountAggregateInputType | true
}
export interface SystemConfigDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['SystemConfig'], meta: { name: 'SystemConfig' } }
/**
* Find zero or one SystemConfig that matches the filter.
* @param {SystemConfigFindUniqueArgs} args - Arguments to find a SystemConfig
* @example
* // Get one SystemConfig
* const systemConfig = await prisma.systemConfig.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends SystemConfigFindUniqueArgs>(args: SelectSubset<T, SystemConfigFindUniqueArgs<ExtArgs>>): Prisma__SystemConfigClient<$Result.GetResult<Prisma.$SystemConfigPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one SystemConfig that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {SystemConfigFindUniqueOrThrowArgs} args - Arguments to find a SystemConfig
* @example
* // Get one SystemConfig
* const systemConfig = await prisma.systemConfig.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends SystemConfigFindUniqueOrThrowArgs>(args: SelectSubset<T, SystemConfigFindUniqueOrThrowArgs<ExtArgs>>): Prisma__SystemConfigClient<$Result.GetResult<Prisma.$SystemConfigPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first SystemConfig 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 {SystemConfigFindFirstArgs} args - Arguments to find a SystemConfig
* @example
* // Get one SystemConfig
* const systemConfig = await prisma.systemConfig.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends SystemConfigFindFirstArgs>(args?: SelectSubset<T, SystemConfigFindFirstArgs<ExtArgs>>): Prisma__SystemConfigClient<$Result.GetResult<Prisma.$SystemConfigPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first SystemConfig 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 {SystemConfigFindFirstOrThrowArgs} args - Arguments to find a SystemConfig
* @example
* // Get one SystemConfig
* const systemConfig = await prisma.systemConfig.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends SystemConfigFindFirstOrThrowArgs>(args?: SelectSubset<T, SystemConfigFindFirstOrThrowArgs<ExtArgs>>): Prisma__SystemConfigClient<$Result.GetResult<Prisma.$SystemConfigPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more SystemConfigs 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 {SystemConfigFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all SystemConfigs
* const systemConfigs = await prisma.systemConfig.findMany()
*
* // Get first 10 SystemConfigs
* const systemConfigs = await prisma.systemConfig.findMany({ take: 10 })
*
* // Only select the `key`
* const systemConfigWithKeyOnly = await prisma.systemConfig.findMany({ select: { key: true } })
*
*/
findMany<T extends SystemConfigFindManyArgs>(args?: SelectSubset<T, SystemConfigFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SystemConfigPayload<ExtArgs>, T, "findMany">>
/**
* Create a SystemConfig.
* @param {SystemConfigCreateArgs} args - Arguments to create a SystemConfig.
* @example
* // Create one SystemConfig
* const SystemConfig = await prisma.systemConfig.create({
* data: {
* // ... data to create a SystemConfig
* }
* })
*
*/
create<T extends SystemConfigCreateArgs>(args: SelectSubset<T, SystemConfigCreateArgs<ExtArgs>>): Prisma__SystemConfigClient<$Result.GetResult<Prisma.$SystemConfigPayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many SystemConfigs.
* @param {SystemConfigCreateManyArgs} args - Arguments to create many SystemConfigs.
* @example
* // Create many SystemConfigs
* const systemConfig = await prisma.systemConfig.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends SystemConfigCreateManyArgs>(args?: SelectSubset<T, SystemConfigCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many SystemConfigs and returns the data saved in the database.
* @param {SystemConfigCreateManyAndReturnArgs} args - Arguments to create many SystemConfigs.
* @example
* // Create many SystemConfigs
* const systemConfig = await prisma.systemConfig.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many SystemConfigs and only return the `key`
* const systemConfigWithKeyOnly = await prisma.systemConfig.createManyAndReturn({
* select: { key: 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 SystemConfigCreateManyAndReturnArgs>(args?: SelectSubset<T, SystemConfigCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SystemConfigPayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a SystemConfig.
* @param {SystemConfigDeleteArgs} args - Arguments to delete one SystemConfig.
* @example
* // Delete one SystemConfig
* const SystemConfig = await prisma.systemConfig.delete({
* where: {
* // ... filter to delete one SystemConfig
* }
* })
*
*/
delete<T extends SystemConfigDeleteArgs>(args: SelectSubset<T, SystemConfigDeleteArgs<ExtArgs>>): Prisma__SystemConfigClient<$Result.GetResult<Prisma.$SystemConfigPayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one SystemConfig.
* @param {SystemConfigUpdateArgs} args - Arguments to update one SystemConfig.
* @example
* // Update one SystemConfig
* const systemConfig = await prisma.systemConfig.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends SystemConfigUpdateArgs>(args: SelectSubset<T, SystemConfigUpdateArgs<ExtArgs>>): Prisma__SystemConfigClient<$Result.GetResult<Prisma.$SystemConfigPayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more SystemConfigs.
* @param {SystemConfigDeleteManyArgs} args - Arguments to filter SystemConfigs to delete.
* @example
* // Delete a few SystemConfigs
* const { count } = await prisma.systemConfig.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends SystemConfigDeleteManyArgs>(args?: SelectSubset<T, SystemConfigDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more SystemConfigs.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {SystemConfigUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many SystemConfigs
* const systemConfig = await prisma.systemConfig.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends SystemConfigUpdateManyArgs>(args: SelectSubset<T, SystemConfigUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one SystemConfig.
* @param {SystemConfigUpsertArgs} args - Arguments to update or create a SystemConfig.
* @example
* // Update or create a SystemConfig
* const systemConfig = await prisma.systemConfig.upsert({
* create: {
* // ... data to create a SystemConfig
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the SystemConfig we want to update
* }
* })
*/
upsert<T extends SystemConfigUpsertArgs>(args: SelectSubset<T, SystemConfigUpsertArgs<ExtArgs>>): Prisma__SystemConfigClient<$Result.GetResult<Prisma.$SystemConfigPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of SystemConfigs.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {SystemConfigCountArgs} args - Arguments to filter SystemConfigs to count.
* @example
* // Count the number of SystemConfigs
* const count = await prisma.systemConfig.count({
* where: {
* // ... the filter for the SystemConfigs we want to count
* }
* })
**/
count<T extends SystemConfigCountArgs>(
args?: Subset<T, SystemConfigCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], SystemConfigCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a SystemConfig.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {SystemConfigAggregateArgs} 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 SystemConfigAggregateArgs>(args: Subset<T, SystemConfigAggregateArgs>): Prisma.PrismaPromise<GetSystemConfigAggregateType<T>>
/**
* Group by SystemConfig.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {SystemConfigGroupByArgs} 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 SystemConfigGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: SystemConfigGroupByArgs['orderBy'] }
: { orderBy?: SystemConfigGroupByArgs['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, SystemConfigGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSystemConfigGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the SystemConfig model
*/
readonly fields: SystemConfigFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for SystemConfig.
* 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__SystemConfigClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the SystemConfig model
*/
interface SystemConfigFieldRefs {
readonly key: FieldRef<"SystemConfig", 'String'>
readonly value: FieldRef<"SystemConfig", 'String'>
}
// Custom InputTypes
/**
* SystemConfig findUnique
*/
export type SystemConfigFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SystemConfig
*/
select?: SystemConfigSelect<ExtArgs> | null
/**
* Filter, which SystemConfig to fetch.
*/
where: SystemConfigWhereUniqueInput
}
/**
* SystemConfig findUniqueOrThrow
*/
export type SystemConfigFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SystemConfig
*/
select?: SystemConfigSelect<ExtArgs> | null
/**
* Filter, which SystemConfig to fetch.
*/
where: SystemConfigWhereUniqueInput
}
/**
* SystemConfig findFirst
*/
export type SystemConfigFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SystemConfig
*/
select?: SystemConfigSelect<ExtArgs> | null
/**
* Filter, which SystemConfig to fetch.
*/
where?: SystemConfigWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of SystemConfigs to fetch.
*/
orderBy?: SystemConfigOrderByWithRelationInput | SystemConfigOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for SystemConfigs.
*/
cursor?: SystemConfigWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` SystemConfigs from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` SystemConfigs.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of SystemConfigs.
*/
distinct?: SystemConfigScalarFieldEnum | SystemConfigScalarFieldEnum[]
}
/**
* SystemConfig findFirstOrThrow
*/
export type SystemConfigFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SystemConfig
*/
select?: SystemConfigSelect<ExtArgs> | null
/**
* Filter, which SystemConfig to fetch.
*/
where?: SystemConfigWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of SystemConfigs to fetch.
*/
orderBy?: SystemConfigOrderByWithRelationInput | SystemConfigOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for SystemConfigs.
*/
cursor?: SystemConfigWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` SystemConfigs from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` SystemConfigs.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of SystemConfigs.
*/
distinct?: SystemConfigScalarFieldEnum | SystemConfigScalarFieldEnum[]
}
/**
* SystemConfig findMany
*/
export type SystemConfigFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SystemConfig
*/
select?: SystemConfigSelect<ExtArgs> | null
/**
* Filter, which SystemConfigs to fetch.
*/
where?: SystemConfigWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of SystemConfigs to fetch.
*/
orderBy?: SystemConfigOrderByWithRelationInput | SystemConfigOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing SystemConfigs.
*/
cursor?: SystemConfigWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` SystemConfigs from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` SystemConfigs.
*/
skip?: number
distinct?: SystemConfigScalarFieldEnum | SystemConfigScalarFieldEnum[]
}
/**
* SystemConfig create
*/
export type SystemConfigCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SystemConfig
*/
select?: SystemConfigSelect<ExtArgs> | null
/**
* The data needed to create a SystemConfig.
*/
data: XOR<SystemConfigCreateInput, SystemConfigUncheckedCreateInput>
}
/**
* SystemConfig createMany
*/
export type SystemConfigCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many SystemConfigs.
*/
data: SystemConfigCreateManyInput | SystemConfigCreateManyInput[]
}
/**
* SystemConfig createManyAndReturn
*/
export type SystemConfigCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SystemConfig
*/
select?: SystemConfigSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many SystemConfigs.
*/
data: SystemConfigCreateManyInput | SystemConfigCreateManyInput[]
}
/**
* SystemConfig update
*/
export type SystemConfigUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SystemConfig
*/
select?: SystemConfigSelect<ExtArgs> | null
/**
* The data needed to update a SystemConfig.
*/
data: XOR<SystemConfigUpdateInput, SystemConfigUncheckedUpdateInput>
/**
* Choose, which SystemConfig to update.
*/
where: SystemConfigWhereUniqueInput
}
/**
* SystemConfig updateMany
*/
export type SystemConfigUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update SystemConfigs.
*/
data: XOR<SystemConfigUpdateManyMutationInput, SystemConfigUncheckedUpdateManyInput>
/**
* Filter which SystemConfigs to update
*/
where?: SystemConfigWhereInput
}
/**
* SystemConfig upsert
*/
export type SystemConfigUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SystemConfig
*/
select?: SystemConfigSelect<ExtArgs> | null
/**
* The filter to search for the SystemConfig to update in case it exists.
*/
where: SystemConfigWhereUniqueInput
/**
* In case the SystemConfig found by the `where` argument doesn't exist, create a new SystemConfig with this data.
*/
create: XOR<SystemConfigCreateInput, SystemConfigUncheckedCreateInput>
/**
* In case the SystemConfig was found with the provided `where` argument, update it with this data.
*/
update: XOR<SystemConfigUpdateInput, SystemConfigUncheckedUpdateInput>
}
/**
* SystemConfig delete
*/
export type SystemConfigDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SystemConfig
*/
select?: SystemConfigSelect<ExtArgs> | null
/**
* Filter which SystemConfig to delete.
*/
where: SystemConfigWhereUniqueInput
}
/**
* SystemConfig deleteMany
*/
export type SystemConfigDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which SystemConfigs to delete
*/
where?: SystemConfigWhereInput
}
/**
* SystemConfig without action
*/
export type SystemConfigDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SystemConfig
*/
select?: SystemConfigSelect<ExtArgs> | null
}
/**
* Enums
*/
export const TransactionIsolationLevel: {
Serializable: 'Serializable'
};
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
export const UserScalarFieldEnum: {
id: 'id',
name: 'name',
email: 'email',
emailVerified: 'emailVerified',
password: 'password',
role: 'role',
image: 'image',
theme: 'theme',
resetToken: 'resetToken',
resetTokenExpiry: 'resetTokenExpiry',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
export const AccountScalarFieldEnum: {
userId: 'userId',
type: 'type',
provider: 'provider',
providerAccountId: 'providerAccountId',
refresh_token: 'refresh_token',
access_token: 'access_token',
expires_at: 'expires_at',
token_type: 'token_type',
scope: 'scope',
id_token: 'id_token',
session_state: 'session_state',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
export type AccountScalarFieldEnum = (typeof AccountScalarFieldEnum)[keyof typeof AccountScalarFieldEnum]
export const SessionScalarFieldEnum: {
sessionToken: 'sessionToken',
userId: 'userId',
expires: 'expires',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
export type SessionScalarFieldEnum = (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum]
export const VerificationTokenScalarFieldEnum: {
identifier: 'identifier',
token: 'token',
expires: 'expires'
};
export type VerificationTokenScalarFieldEnum = (typeof VerificationTokenScalarFieldEnum)[keyof typeof VerificationTokenScalarFieldEnum]
export const LabelScalarFieldEnum: {
id: 'id',
name: 'name',
color: 'color',
userId: 'userId',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
export type LabelScalarFieldEnum = (typeof LabelScalarFieldEnum)[keyof typeof LabelScalarFieldEnum]
export const NoteScalarFieldEnum: {
id: 'id',
title: 'title',
content: 'content',
color: 'color',
isPinned: 'isPinned',
isArchived: 'isArchived',
type: 'type',
checkItems: 'checkItems',
labels: 'labels',
images: 'images',
links: 'links',
reminder: 'reminder',
isReminderDone: 'isReminderDone',
reminderRecurrence: 'reminderRecurrence',
reminderLocation: 'reminderLocation',
isMarkdown: 'isMarkdown',
size: 'size',
embedding: 'embedding',
sharedWith: 'sharedWith',
userId: 'userId',
order: 'order',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
export type NoteScalarFieldEnum = (typeof NoteScalarFieldEnum)[keyof typeof NoteScalarFieldEnum]
export const NoteShareScalarFieldEnum: {
id: 'id',
noteId: 'noteId',
userId: 'userId',
sharedBy: 'sharedBy',
status: 'status',
permission: 'permission',
notifiedAt: 'notifiedAt',
respondedAt: 'respondedAt',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
export type NoteShareScalarFieldEnum = (typeof NoteShareScalarFieldEnum)[keyof typeof NoteShareScalarFieldEnum]
export const SystemConfigScalarFieldEnum: {
key: 'key',
value: 'value'
};
export type SystemConfigScalarFieldEnum = (typeof SystemConfigScalarFieldEnum)[keyof typeof SystemConfigScalarFieldEnum]
export const SortOrder: {
asc: 'asc',
desc: 'desc'
};
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
export const NullsOrder: {
first: 'first',
last: 'last'
};
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
/**
* Field references
*/
/**
* Reference to a field of type 'String'
*/
export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'>
/**
* Reference to a field of type 'DateTime'
*/
export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'>
/**
* Reference to a field of type 'Int'
*/
export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>
/**
* Reference to a field of type 'Boolean'
*/
export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'>
/**
* Reference to a field of type 'Float'
*/
export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'>
/**
* Deep Input Types
*/
export type UserWhereInput = {
AND?: UserWhereInput | UserWhereInput[]
OR?: UserWhereInput[]
NOT?: UserWhereInput | UserWhereInput[]
id?: StringFilter<"User"> | string
name?: StringNullableFilter<"User"> | string | null
email?: StringFilter<"User"> | string
emailVerified?: DateTimeNullableFilter<"User"> | Date | string | null
password?: StringNullableFilter<"User"> | string | null
role?: StringFilter<"User"> | string
image?: StringNullableFilter<"User"> | string | null
theme?: StringFilter<"User"> | string
resetToken?: StringNullableFilter<"User"> | string | null
resetTokenExpiry?: DateTimeNullableFilter<"User"> | Date | string | null
createdAt?: DateTimeFilter<"User"> | Date | string
updatedAt?: DateTimeFilter<"User"> | Date | string
accounts?: AccountListRelationFilter
sessions?: SessionListRelationFilter
notes?: NoteListRelationFilter
labels?: LabelListRelationFilter
receivedShares?: NoteShareListRelationFilter
sentShares?: NoteShareListRelationFilter
}
export type UserOrderByWithRelationInput = {
id?: SortOrder
name?: SortOrderInput | SortOrder
email?: SortOrder
emailVerified?: SortOrderInput | SortOrder
password?: SortOrderInput | SortOrder
role?: SortOrder
image?: SortOrderInput | SortOrder
theme?: SortOrder
resetToken?: SortOrderInput | SortOrder
resetTokenExpiry?: SortOrderInput | SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
accounts?: AccountOrderByRelationAggregateInput
sessions?: SessionOrderByRelationAggregateInput
notes?: NoteOrderByRelationAggregateInput
labels?: LabelOrderByRelationAggregateInput
receivedShares?: NoteShareOrderByRelationAggregateInput
sentShares?: NoteShareOrderByRelationAggregateInput
}
export type UserWhereUniqueInput = Prisma.AtLeast<{
id?: string
email?: string
resetToken?: string
AND?: UserWhereInput | UserWhereInput[]
OR?: UserWhereInput[]
NOT?: UserWhereInput | UserWhereInput[]
name?: StringNullableFilter<"User"> | string | null
emailVerified?: DateTimeNullableFilter<"User"> | Date | string | null
password?: StringNullableFilter<"User"> | string | null
role?: StringFilter<"User"> | string
image?: StringNullableFilter<"User"> | string | null
theme?: StringFilter<"User"> | string
resetTokenExpiry?: DateTimeNullableFilter<"User"> | Date | string | null
createdAt?: DateTimeFilter<"User"> | Date | string
updatedAt?: DateTimeFilter<"User"> | Date | string
accounts?: AccountListRelationFilter
sessions?: SessionListRelationFilter
notes?: NoteListRelationFilter
labels?: LabelListRelationFilter
receivedShares?: NoteShareListRelationFilter
sentShares?: NoteShareListRelationFilter
}, "id" | "email" | "resetToken">
export type UserOrderByWithAggregationInput = {
id?: SortOrder
name?: SortOrderInput | SortOrder
email?: SortOrder
emailVerified?: SortOrderInput | SortOrder
password?: SortOrderInput | SortOrder
role?: SortOrder
image?: SortOrderInput | SortOrder
theme?: SortOrder
resetToken?: SortOrderInput | SortOrder
resetTokenExpiry?: SortOrderInput | 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
name?: StringNullableWithAggregatesFilter<"User"> | string | null
email?: StringWithAggregatesFilter<"User"> | string
emailVerified?: DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null
password?: StringNullableWithAggregatesFilter<"User"> | string | null
role?: StringWithAggregatesFilter<"User"> | string
image?: StringNullableWithAggregatesFilter<"User"> | string | null
theme?: StringWithAggregatesFilter<"User"> | string
resetToken?: StringNullableWithAggregatesFilter<"User"> | string | null
resetTokenExpiry?: DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null
createdAt?: DateTimeWithAggregatesFilter<"User"> | Date | string
updatedAt?: DateTimeWithAggregatesFilter<"User"> | Date | string
}
export type AccountWhereInput = {
AND?: AccountWhereInput | AccountWhereInput[]
OR?: AccountWhereInput[]
NOT?: AccountWhereInput | AccountWhereInput[]
userId?: StringFilter<"Account"> | string
type?: StringFilter<"Account"> | string
provider?: StringFilter<"Account"> | string
providerAccountId?: StringFilter<"Account"> | string
refresh_token?: StringNullableFilter<"Account"> | string | null
access_token?: StringNullableFilter<"Account"> | string | null
expires_at?: IntNullableFilter<"Account"> | number | null
token_type?: StringNullableFilter<"Account"> | string | null
scope?: StringNullableFilter<"Account"> | string | null
id_token?: StringNullableFilter<"Account"> | string | null
session_state?: StringNullableFilter<"Account"> | string | null
createdAt?: DateTimeFilter<"Account"> | Date | string
updatedAt?: DateTimeFilter<"Account"> | Date | string
user?: XOR<UserRelationFilter, UserWhereInput>
}
export type AccountOrderByWithRelationInput = {
userId?: SortOrder
type?: SortOrder
provider?: SortOrder
providerAccountId?: SortOrder
refresh_token?: SortOrderInput | SortOrder
access_token?: SortOrderInput | SortOrder
expires_at?: SortOrderInput | SortOrder
token_type?: SortOrderInput | SortOrder
scope?: SortOrderInput | SortOrder
id_token?: SortOrderInput | SortOrder
session_state?: SortOrderInput | SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
user?: UserOrderByWithRelationInput
}
export type AccountWhereUniqueInput = Prisma.AtLeast<{
provider_providerAccountId?: AccountProviderProviderAccountIdCompoundUniqueInput
AND?: AccountWhereInput | AccountWhereInput[]
OR?: AccountWhereInput[]
NOT?: AccountWhereInput | AccountWhereInput[]
userId?: StringFilter<"Account"> | string
type?: StringFilter<"Account"> | string
provider?: StringFilter<"Account"> | string
providerAccountId?: StringFilter<"Account"> | string
refresh_token?: StringNullableFilter<"Account"> | string | null
access_token?: StringNullableFilter<"Account"> | string | null
expires_at?: IntNullableFilter<"Account"> | number | null
token_type?: StringNullableFilter<"Account"> | string | null
scope?: StringNullableFilter<"Account"> | string | null
id_token?: StringNullableFilter<"Account"> | string | null
session_state?: StringNullableFilter<"Account"> | string | null
createdAt?: DateTimeFilter<"Account"> | Date | string
updatedAt?: DateTimeFilter<"Account"> | Date | string
user?: XOR<UserRelationFilter, UserWhereInput>
}, "provider_providerAccountId">
export type AccountOrderByWithAggregationInput = {
userId?: SortOrder
type?: SortOrder
provider?: SortOrder
providerAccountId?: SortOrder
refresh_token?: SortOrderInput | SortOrder
access_token?: SortOrderInput | SortOrder
expires_at?: SortOrderInput | SortOrder
token_type?: SortOrderInput | SortOrder
scope?: SortOrderInput | SortOrder
id_token?: SortOrderInput | SortOrder
session_state?: SortOrderInput | SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
_count?: AccountCountOrderByAggregateInput
_avg?: AccountAvgOrderByAggregateInput
_max?: AccountMaxOrderByAggregateInput
_min?: AccountMinOrderByAggregateInput
_sum?: AccountSumOrderByAggregateInput
}
export type AccountScalarWhereWithAggregatesInput = {
AND?: AccountScalarWhereWithAggregatesInput | AccountScalarWhereWithAggregatesInput[]
OR?: AccountScalarWhereWithAggregatesInput[]
NOT?: AccountScalarWhereWithAggregatesInput | AccountScalarWhereWithAggregatesInput[]
userId?: StringWithAggregatesFilter<"Account"> | string
type?: StringWithAggregatesFilter<"Account"> | string
provider?: StringWithAggregatesFilter<"Account"> | string
providerAccountId?: StringWithAggregatesFilter<"Account"> | string
refresh_token?: StringNullableWithAggregatesFilter<"Account"> | string | null
access_token?: StringNullableWithAggregatesFilter<"Account"> | string | null
expires_at?: IntNullableWithAggregatesFilter<"Account"> | number | null
token_type?: StringNullableWithAggregatesFilter<"Account"> | string | null
scope?: StringNullableWithAggregatesFilter<"Account"> | string | null
id_token?: StringNullableWithAggregatesFilter<"Account"> | string | null
session_state?: StringNullableWithAggregatesFilter<"Account"> | string | null
createdAt?: DateTimeWithAggregatesFilter<"Account"> | Date | string
updatedAt?: DateTimeWithAggregatesFilter<"Account"> | Date | string
}
export type SessionWhereInput = {
AND?: SessionWhereInput | SessionWhereInput[]
OR?: SessionWhereInput[]
NOT?: SessionWhereInput | SessionWhereInput[]
sessionToken?: StringFilter<"Session"> | string
userId?: StringFilter<"Session"> | string
expires?: DateTimeFilter<"Session"> | Date | string
createdAt?: DateTimeFilter<"Session"> | Date | string
updatedAt?: DateTimeFilter<"Session"> | Date | string
user?: XOR<UserRelationFilter, UserWhereInput>
}
export type SessionOrderByWithRelationInput = {
sessionToken?: SortOrder
userId?: SortOrder
expires?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
user?: UserOrderByWithRelationInput
}
export type SessionWhereUniqueInput = Prisma.AtLeast<{
sessionToken?: string
AND?: SessionWhereInput | SessionWhereInput[]
OR?: SessionWhereInput[]
NOT?: SessionWhereInput | SessionWhereInput[]
userId?: StringFilter<"Session"> | string
expires?: DateTimeFilter<"Session"> | Date | string
createdAt?: DateTimeFilter<"Session"> | Date | string
updatedAt?: DateTimeFilter<"Session"> | Date | string
user?: XOR<UserRelationFilter, UserWhereInput>
}, "sessionToken">
export type SessionOrderByWithAggregationInput = {
sessionToken?: SortOrder
userId?: SortOrder
expires?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
_count?: SessionCountOrderByAggregateInput
_max?: SessionMaxOrderByAggregateInput
_min?: SessionMinOrderByAggregateInput
}
export type SessionScalarWhereWithAggregatesInput = {
AND?: SessionScalarWhereWithAggregatesInput | SessionScalarWhereWithAggregatesInput[]
OR?: SessionScalarWhereWithAggregatesInput[]
NOT?: SessionScalarWhereWithAggregatesInput | SessionScalarWhereWithAggregatesInput[]
sessionToken?: StringWithAggregatesFilter<"Session"> | string
userId?: StringWithAggregatesFilter<"Session"> | string
expires?: DateTimeWithAggregatesFilter<"Session"> | Date | string
createdAt?: DateTimeWithAggregatesFilter<"Session"> | Date | string
updatedAt?: DateTimeWithAggregatesFilter<"Session"> | Date | string
}
export type VerificationTokenWhereInput = {
AND?: VerificationTokenWhereInput | VerificationTokenWhereInput[]
OR?: VerificationTokenWhereInput[]
NOT?: VerificationTokenWhereInput | VerificationTokenWhereInput[]
identifier?: StringFilter<"VerificationToken"> | string
token?: StringFilter<"VerificationToken"> | string
expires?: DateTimeFilter<"VerificationToken"> | Date | string
}
export type VerificationTokenOrderByWithRelationInput = {
identifier?: SortOrder
token?: SortOrder
expires?: SortOrder
}
export type VerificationTokenWhereUniqueInput = Prisma.AtLeast<{
identifier_token?: VerificationTokenIdentifierTokenCompoundUniqueInput
AND?: VerificationTokenWhereInput | VerificationTokenWhereInput[]
OR?: VerificationTokenWhereInput[]
NOT?: VerificationTokenWhereInput | VerificationTokenWhereInput[]
identifier?: StringFilter<"VerificationToken"> | string
token?: StringFilter<"VerificationToken"> | string
expires?: DateTimeFilter<"VerificationToken"> | Date | string
}, "identifier_token">
export type VerificationTokenOrderByWithAggregationInput = {
identifier?: SortOrder
token?: SortOrder
expires?: SortOrder
_count?: VerificationTokenCountOrderByAggregateInput
_max?: VerificationTokenMaxOrderByAggregateInput
_min?: VerificationTokenMinOrderByAggregateInput
}
export type VerificationTokenScalarWhereWithAggregatesInput = {
AND?: VerificationTokenScalarWhereWithAggregatesInput | VerificationTokenScalarWhereWithAggregatesInput[]
OR?: VerificationTokenScalarWhereWithAggregatesInput[]
NOT?: VerificationTokenScalarWhereWithAggregatesInput | VerificationTokenScalarWhereWithAggregatesInput[]
identifier?: StringWithAggregatesFilter<"VerificationToken"> | string
token?: StringWithAggregatesFilter<"VerificationToken"> | string
expires?: DateTimeWithAggregatesFilter<"VerificationToken"> | Date | string
}
export type LabelWhereInput = {
AND?: LabelWhereInput | LabelWhereInput[]
OR?: LabelWhereInput[]
NOT?: LabelWhereInput | LabelWhereInput[]
id?: StringFilter<"Label"> | string
name?: StringFilter<"Label"> | string
color?: StringFilter<"Label"> | string
userId?: StringNullableFilter<"Label"> | string | null
createdAt?: DateTimeFilter<"Label"> | Date | string
updatedAt?: DateTimeFilter<"Label"> | Date | string
user?: XOR<UserNullableRelationFilter, UserWhereInput> | null
}
export type LabelOrderByWithRelationInput = {
id?: SortOrder
name?: SortOrder
color?: SortOrder
userId?: SortOrderInput | SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
user?: UserOrderByWithRelationInput
}
export type LabelWhereUniqueInput = Prisma.AtLeast<{
id?: string
name_userId?: LabelNameUserIdCompoundUniqueInput
AND?: LabelWhereInput | LabelWhereInput[]
OR?: LabelWhereInput[]
NOT?: LabelWhereInput | LabelWhereInput[]
name?: StringFilter<"Label"> | string
color?: StringFilter<"Label"> | string
userId?: StringNullableFilter<"Label"> | string | null
createdAt?: DateTimeFilter<"Label"> | Date | string
updatedAt?: DateTimeFilter<"Label"> | Date | string
user?: XOR<UserNullableRelationFilter, UserWhereInput> | null
}, "id" | "name_userId">
export type LabelOrderByWithAggregationInput = {
id?: SortOrder
name?: SortOrder
color?: SortOrder
userId?: SortOrderInput | SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
_count?: LabelCountOrderByAggregateInput
_max?: LabelMaxOrderByAggregateInput
_min?: LabelMinOrderByAggregateInput
}
export type LabelScalarWhereWithAggregatesInput = {
AND?: LabelScalarWhereWithAggregatesInput | LabelScalarWhereWithAggregatesInput[]
OR?: LabelScalarWhereWithAggregatesInput[]
NOT?: LabelScalarWhereWithAggregatesInput | LabelScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"Label"> | string
name?: StringWithAggregatesFilter<"Label"> | string
color?: StringWithAggregatesFilter<"Label"> | string
userId?: StringNullableWithAggregatesFilter<"Label"> | string | null
createdAt?: DateTimeWithAggregatesFilter<"Label"> | Date | string
updatedAt?: DateTimeWithAggregatesFilter<"Label"> | Date | string
}
export type NoteWhereInput = {
AND?: NoteWhereInput | NoteWhereInput[]
OR?: NoteWhereInput[]
NOT?: NoteWhereInput | NoteWhereInput[]
id?: StringFilter<"Note"> | string
title?: StringNullableFilter<"Note"> | string | null
content?: StringFilter<"Note"> | string
color?: StringFilter<"Note"> | string
isPinned?: BoolFilter<"Note"> | boolean
isArchived?: BoolFilter<"Note"> | boolean
type?: StringFilter<"Note"> | string
checkItems?: StringNullableFilter<"Note"> | string | null
labels?: StringNullableFilter<"Note"> | string | null
images?: StringNullableFilter<"Note"> | string | null
links?: StringNullableFilter<"Note"> | string | null
reminder?: DateTimeNullableFilter<"Note"> | Date | string | null
isReminderDone?: BoolFilter<"Note"> | boolean
reminderRecurrence?: StringNullableFilter<"Note"> | string | null
reminderLocation?: StringNullableFilter<"Note"> | string | null
isMarkdown?: BoolFilter<"Note"> | boolean
size?: StringFilter<"Note"> | string
embedding?: StringNullableFilter<"Note"> | string | null
sharedWith?: StringNullableFilter<"Note"> | string | null
userId?: StringNullableFilter<"Note"> | string | null
order?: IntFilter<"Note"> | number
createdAt?: DateTimeFilter<"Note"> | Date | string
updatedAt?: DateTimeFilter<"Note"> | Date | string
user?: XOR<UserNullableRelationFilter, UserWhereInput> | null
shares?: NoteShareListRelationFilter
}
export type NoteOrderByWithRelationInput = {
id?: SortOrder
title?: SortOrderInput | SortOrder
content?: SortOrder
color?: SortOrder
isPinned?: SortOrder
isArchived?: SortOrder
type?: SortOrder
checkItems?: SortOrderInput | SortOrder
labels?: SortOrderInput | SortOrder
images?: SortOrderInput | SortOrder
links?: SortOrderInput | SortOrder
reminder?: SortOrderInput | SortOrder
isReminderDone?: SortOrder
reminderRecurrence?: SortOrderInput | SortOrder
reminderLocation?: SortOrderInput | SortOrder
isMarkdown?: SortOrder
size?: SortOrder
embedding?: SortOrderInput | SortOrder
sharedWith?: SortOrderInput | SortOrder
userId?: SortOrderInput | SortOrder
order?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
user?: UserOrderByWithRelationInput
shares?: NoteShareOrderByRelationAggregateInput
}
export type NoteWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: NoteWhereInput | NoteWhereInput[]
OR?: NoteWhereInput[]
NOT?: NoteWhereInput | NoteWhereInput[]
title?: StringNullableFilter<"Note"> | string | null
content?: StringFilter<"Note"> | string
color?: StringFilter<"Note"> | string
isPinned?: BoolFilter<"Note"> | boolean
isArchived?: BoolFilter<"Note"> | boolean
type?: StringFilter<"Note"> | string
checkItems?: StringNullableFilter<"Note"> | string | null
labels?: StringNullableFilter<"Note"> | string | null
images?: StringNullableFilter<"Note"> | string | null
links?: StringNullableFilter<"Note"> | string | null
reminder?: DateTimeNullableFilter<"Note"> | Date | string | null
isReminderDone?: BoolFilter<"Note"> | boolean
reminderRecurrence?: StringNullableFilter<"Note"> | string | null
reminderLocation?: StringNullableFilter<"Note"> | string | null
isMarkdown?: BoolFilter<"Note"> | boolean
size?: StringFilter<"Note"> | string
embedding?: StringNullableFilter<"Note"> | string | null
sharedWith?: StringNullableFilter<"Note"> | string | null
userId?: StringNullableFilter<"Note"> | string | null
order?: IntFilter<"Note"> | number
createdAt?: DateTimeFilter<"Note"> | Date | string
updatedAt?: DateTimeFilter<"Note"> | Date | string
user?: XOR<UserNullableRelationFilter, UserWhereInput> | null
shares?: NoteShareListRelationFilter
}, "id">
export type NoteOrderByWithAggregationInput = {
id?: SortOrder
title?: SortOrderInput | SortOrder
content?: SortOrder
color?: SortOrder
isPinned?: SortOrder
isArchived?: SortOrder
type?: SortOrder
checkItems?: SortOrderInput | SortOrder
labels?: SortOrderInput | SortOrder
images?: SortOrderInput | SortOrder
links?: SortOrderInput | SortOrder
reminder?: SortOrderInput | SortOrder
isReminderDone?: SortOrder
reminderRecurrence?: SortOrderInput | SortOrder
reminderLocation?: SortOrderInput | SortOrder
isMarkdown?: SortOrder
size?: SortOrder
embedding?: SortOrderInput | SortOrder
sharedWith?: SortOrderInput | SortOrder
userId?: SortOrderInput | SortOrder
order?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
_count?: NoteCountOrderByAggregateInput
_avg?: NoteAvgOrderByAggregateInput
_max?: NoteMaxOrderByAggregateInput
_min?: NoteMinOrderByAggregateInput
_sum?: NoteSumOrderByAggregateInput
}
export type NoteScalarWhereWithAggregatesInput = {
AND?: NoteScalarWhereWithAggregatesInput | NoteScalarWhereWithAggregatesInput[]
OR?: NoteScalarWhereWithAggregatesInput[]
NOT?: NoteScalarWhereWithAggregatesInput | NoteScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"Note"> | string
title?: StringNullableWithAggregatesFilter<"Note"> | string | null
content?: StringWithAggregatesFilter<"Note"> | string
color?: StringWithAggregatesFilter<"Note"> | string
isPinned?: BoolWithAggregatesFilter<"Note"> | boolean
isArchived?: BoolWithAggregatesFilter<"Note"> | boolean
type?: StringWithAggregatesFilter<"Note"> | string
checkItems?: StringNullableWithAggregatesFilter<"Note"> | string | null
labels?: StringNullableWithAggregatesFilter<"Note"> | string | null
images?: StringNullableWithAggregatesFilter<"Note"> | string | null
links?: StringNullableWithAggregatesFilter<"Note"> | string | null
reminder?: DateTimeNullableWithAggregatesFilter<"Note"> | Date | string | null
isReminderDone?: BoolWithAggregatesFilter<"Note"> | boolean
reminderRecurrence?: StringNullableWithAggregatesFilter<"Note"> | string | null
reminderLocation?: StringNullableWithAggregatesFilter<"Note"> | string | null
isMarkdown?: BoolWithAggregatesFilter<"Note"> | boolean
size?: StringWithAggregatesFilter<"Note"> | string
embedding?: StringNullableWithAggregatesFilter<"Note"> | string | null
sharedWith?: StringNullableWithAggregatesFilter<"Note"> | string | null
userId?: StringNullableWithAggregatesFilter<"Note"> | string | null
order?: IntWithAggregatesFilter<"Note"> | number
createdAt?: DateTimeWithAggregatesFilter<"Note"> | Date | string
updatedAt?: DateTimeWithAggregatesFilter<"Note"> | Date | string
}
export type NoteShareWhereInput = {
AND?: NoteShareWhereInput | NoteShareWhereInput[]
OR?: NoteShareWhereInput[]
NOT?: NoteShareWhereInput | NoteShareWhereInput[]
id?: StringFilter<"NoteShare"> | string
noteId?: StringFilter<"NoteShare"> | string
userId?: StringFilter<"NoteShare"> | string
sharedBy?: StringFilter<"NoteShare"> | string
status?: StringFilter<"NoteShare"> | string
permission?: StringFilter<"NoteShare"> | string
notifiedAt?: DateTimeNullableFilter<"NoteShare"> | Date | string | null
respondedAt?: DateTimeNullableFilter<"NoteShare"> | Date | string | null
createdAt?: DateTimeFilter<"NoteShare"> | Date | string
updatedAt?: DateTimeFilter<"NoteShare"> | Date | string
note?: XOR<NoteRelationFilter, NoteWhereInput>
user?: XOR<UserRelationFilter, UserWhereInput>
sharer?: XOR<UserRelationFilter, UserWhereInput>
}
export type NoteShareOrderByWithRelationInput = {
id?: SortOrder
noteId?: SortOrder
userId?: SortOrder
sharedBy?: SortOrder
status?: SortOrder
permission?: SortOrder
notifiedAt?: SortOrderInput | SortOrder
respondedAt?: SortOrderInput | SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
note?: NoteOrderByWithRelationInput
user?: UserOrderByWithRelationInput
sharer?: UserOrderByWithRelationInput
}
export type NoteShareWhereUniqueInput = Prisma.AtLeast<{
id?: string
noteId_userId?: NoteShareNoteIdUserIdCompoundUniqueInput
AND?: NoteShareWhereInput | NoteShareWhereInput[]
OR?: NoteShareWhereInput[]
NOT?: NoteShareWhereInput | NoteShareWhereInput[]
noteId?: StringFilter<"NoteShare"> | string
userId?: StringFilter<"NoteShare"> | string
sharedBy?: StringFilter<"NoteShare"> | string
status?: StringFilter<"NoteShare"> | string
permission?: StringFilter<"NoteShare"> | string
notifiedAt?: DateTimeNullableFilter<"NoteShare"> | Date | string | null
respondedAt?: DateTimeNullableFilter<"NoteShare"> | Date | string | null
createdAt?: DateTimeFilter<"NoteShare"> | Date | string
updatedAt?: DateTimeFilter<"NoteShare"> | Date | string
note?: XOR<NoteRelationFilter, NoteWhereInput>
user?: XOR<UserRelationFilter, UserWhereInput>
sharer?: XOR<UserRelationFilter, UserWhereInput>
}, "id" | "noteId_userId">
export type NoteShareOrderByWithAggregationInput = {
id?: SortOrder
noteId?: SortOrder
userId?: SortOrder
sharedBy?: SortOrder
status?: SortOrder
permission?: SortOrder
notifiedAt?: SortOrderInput | SortOrder
respondedAt?: SortOrderInput | SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
_count?: NoteShareCountOrderByAggregateInput
_max?: NoteShareMaxOrderByAggregateInput
_min?: NoteShareMinOrderByAggregateInput
}
export type NoteShareScalarWhereWithAggregatesInput = {
AND?: NoteShareScalarWhereWithAggregatesInput | NoteShareScalarWhereWithAggregatesInput[]
OR?: NoteShareScalarWhereWithAggregatesInput[]
NOT?: NoteShareScalarWhereWithAggregatesInput | NoteShareScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"NoteShare"> | string
noteId?: StringWithAggregatesFilter<"NoteShare"> | string
userId?: StringWithAggregatesFilter<"NoteShare"> | string
sharedBy?: StringWithAggregatesFilter<"NoteShare"> | string
status?: StringWithAggregatesFilter<"NoteShare"> | string
permission?: StringWithAggregatesFilter<"NoteShare"> | string
notifiedAt?: DateTimeNullableWithAggregatesFilter<"NoteShare"> | Date | string | null
respondedAt?: DateTimeNullableWithAggregatesFilter<"NoteShare"> | Date | string | null
createdAt?: DateTimeWithAggregatesFilter<"NoteShare"> | Date | string
updatedAt?: DateTimeWithAggregatesFilter<"NoteShare"> | Date | string
}
export type SystemConfigWhereInput = {
AND?: SystemConfigWhereInput | SystemConfigWhereInput[]
OR?: SystemConfigWhereInput[]
NOT?: SystemConfigWhereInput | SystemConfigWhereInput[]
key?: StringFilter<"SystemConfig"> | string
value?: StringFilter<"SystemConfig"> | string
}
export type SystemConfigOrderByWithRelationInput = {
key?: SortOrder
value?: SortOrder
}
export type SystemConfigWhereUniqueInput = Prisma.AtLeast<{
key?: string
AND?: SystemConfigWhereInput | SystemConfigWhereInput[]
OR?: SystemConfigWhereInput[]
NOT?: SystemConfigWhereInput | SystemConfigWhereInput[]
value?: StringFilter<"SystemConfig"> | string
}, "key">
export type SystemConfigOrderByWithAggregationInput = {
key?: SortOrder
value?: SortOrder
_count?: SystemConfigCountOrderByAggregateInput
_max?: SystemConfigMaxOrderByAggregateInput
_min?: SystemConfigMinOrderByAggregateInput
}
export type SystemConfigScalarWhereWithAggregatesInput = {
AND?: SystemConfigScalarWhereWithAggregatesInput | SystemConfigScalarWhereWithAggregatesInput[]
OR?: SystemConfigScalarWhereWithAggregatesInput[]
NOT?: SystemConfigScalarWhereWithAggregatesInput | SystemConfigScalarWhereWithAggregatesInput[]
key?: StringWithAggregatesFilter<"SystemConfig"> | string
value?: StringWithAggregatesFilter<"SystemConfig"> | string
}
export type UserCreateInput = {
id?: string
name?: string | null
email: string
emailVerified?: Date | string | null
password?: string | null
role?: string
image?: string | null
theme?: string
resetToken?: string | null
resetTokenExpiry?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
accounts?: AccountCreateNestedManyWithoutUserInput
sessions?: SessionCreateNestedManyWithoutUserInput
notes?: NoteCreateNestedManyWithoutUserInput
labels?: LabelCreateNestedManyWithoutUserInput
receivedShares?: NoteShareCreateNestedManyWithoutUserInput
sentShares?: NoteShareCreateNestedManyWithoutSharerInput
}
export type UserUncheckedCreateInput = {
id?: string
name?: string | null
email: string
emailVerified?: Date | string | null
password?: string | null
role?: string
image?: string | null
theme?: string
resetToken?: string | null
resetTokenExpiry?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
accounts?: AccountUncheckedCreateNestedManyWithoutUserInput
sessions?: SessionUncheckedCreateNestedManyWithoutUserInput
notes?: NoteUncheckedCreateNestedManyWithoutUserInput
labels?: LabelUncheckedCreateNestedManyWithoutUserInput
receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput
sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput
}
export type UserUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
name?: NullableStringFieldUpdateOperationsInput | string | null
email?: StringFieldUpdateOperationsInput | string
emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
password?: NullableStringFieldUpdateOperationsInput | string | null
role?: StringFieldUpdateOperationsInput | string
image?: NullableStringFieldUpdateOperationsInput | string | null
theme?: StringFieldUpdateOperationsInput | string
resetToken?: NullableStringFieldUpdateOperationsInput | string | null
resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
accounts?: AccountUpdateManyWithoutUserNestedInput
sessions?: SessionUpdateManyWithoutUserNestedInput
notes?: NoteUpdateManyWithoutUserNestedInput
labels?: LabelUpdateManyWithoutUserNestedInput
receivedShares?: NoteShareUpdateManyWithoutUserNestedInput
sentShares?: NoteShareUpdateManyWithoutSharerNestedInput
}
export type UserUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
name?: NullableStringFieldUpdateOperationsInput | string | null
email?: StringFieldUpdateOperationsInput | string
emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
password?: NullableStringFieldUpdateOperationsInput | string | null
role?: StringFieldUpdateOperationsInput | string
image?: NullableStringFieldUpdateOperationsInput | string | null
theme?: StringFieldUpdateOperationsInput | string
resetToken?: NullableStringFieldUpdateOperationsInput | string | null
resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput
sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput
notes?: NoteUncheckedUpdateManyWithoutUserNestedInput
labels?: LabelUncheckedUpdateManyWithoutUserNestedInput
receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput
sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput
}
export type UserCreateManyInput = {
id?: string
name?: string | null
email: string
emailVerified?: Date | string | null
password?: string | null
role?: string
image?: string | null
theme?: string
resetToken?: string | null
resetTokenExpiry?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type UserUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
name?: NullableStringFieldUpdateOperationsInput | string | null
email?: StringFieldUpdateOperationsInput | string
emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
password?: NullableStringFieldUpdateOperationsInput | string | null
role?: StringFieldUpdateOperationsInput | string
image?: NullableStringFieldUpdateOperationsInput | string | null
theme?: StringFieldUpdateOperationsInput | string
resetToken?: NullableStringFieldUpdateOperationsInput | string | null
resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type UserUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
name?: NullableStringFieldUpdateOperationsInput | string | null
email?: StringFieldUpdateOperationsInput | string
emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
password?: NullableStringFieldUpdateOperationsInput | string | null
role?: StringFieldUpdateOperationsInput | string
image?: NullableStringFieldUpdateOperationsInput | string | null
theme?: StringFieldUpdateOperationsInput | string
resetToken?: NullableStringFieldUpdateOperationsInput | string | null
resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type AccountCreateInput = {
type: string
provider: string
providerAccountId: string
refresh_token?: string | null
access_token?: string | null
expires_at?: number | null
token_type?: string | null
scope?: string | null
id_token?: string | null
session_state?: string | null
createdAt?: Date | string
updatedAt?: Date | string
user: UserCreateNestedOneWithoutAccountsInput
}
export type AccountUncheckedCreateInput = {
userId: string
type: string
provider: string
providerAccountId: string
refresh_token?: string | null
access_token?: string | null
expires_at?: number | null
token_type?: string | null
scope?: string | null
id_token?: string | null
session_state?: string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type AccountUpdateInput = {
type?: StringFieldUpdateOperationsInput | string
provider?: StringFieldUpdateOperationsInput | string
providerAccountId?: StringFieldUpdateOperationsInput | string
refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
access_token?: NullableStringFieldUpdateOperationsInput | string | null
expires_at?: NullableIntFieldUpdateOperationsInput | number | null
token_type?: NullableStringFieldUpdateOperationsInput | string | null
scope?: NullableStringFieldUpdateOperationsInput | string | null
id_token?: NullableStringFieldUpdateOperationsInput | string | null
session_state?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
user?: UserUpdateOneRequiredWithoutAccountsNestedInput
}
export type AccountUncheckedUpdateInput = {
userId?: StringFieldUpdateOperationsInput | string
type?: StringFieldUpdateOperationsInput | string
provider?: StringFieldUpdateOperationsInput | string
providerAccountId?: StringFieldUpdateOperationsInput | string
refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
access_token?: NullableStringFieldUpdateOperationsInput | string | null
expires_at?: NullableIntFieldUpdateOperationsInput | number | null
token_type?: NullableStringFieldUpdateOperationsInput | string | null
scope?: NullableStringFieldUpdateOperationsInput | string | null
id_token?: NullableStringFieldUpdateOperationsInput | string | null
session_state?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type AccountCreateManyInput = {
userId: string
type: string
provider: string
providerAccountId: string
refresh_token?: string | null
access_token?: string | null
expires_at?: number | null
token_type?: string | null
scope?: string | null
id_token?: string | null
session_state?: string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type AccountUpdateManyMutationInput = {
type?: StringFieldUpdateOperationsInput | string
provider?: StringFieldUpdateOperationsInput | string
providerAccountId?: StringFieldUpdateOperationsInput | string
refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
access_token?: NullableStringFieldUpdateOperationsInput | string | null
expires_at?: NullableIntFieldUpdateOperationsInput | number | null
token_type?: NullableStringFieldUpdateOperationsInput | string | null
scope?: NullableStringFieldUpdateOperationsInput | string | null
id_token?: NullableStringFieldUpdateOperationsInput | string | null
session_state?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type AccountUncheckedUpdateManyInput = {
userId?: StringFieldUpdateOperationsInput | string
type?: StringFieldUpdateOperationsInput | string
provider?: StringFieldUpdateOperationsInput | string
providerAccountId?: StringFieldUpdateOperationsInput | string
refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
access_token?: NullableStringFieldUpdateOperationsInput | string | null
expires_at?: NullableIntFieldUpdateOperationsInput | number | null
token_type?: NullableStringFieldUpdateOperationsInput | string | null
scope?: NullableStringFieldUpdateOperationsInput | string | null
id_token?: NullableStringFieldUpdateOperationsInput | string | null
session_state?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type SessionCreateInput = {
sessionToken: string
expires: Date | string
createdAt?: Date | string
updatedAt?: Date | string
user: UserCreateNestedOneWithoutSessionsInput
}
export type SessionUncheckedCreateInput = {
sessionToken: string
userId: string
expires: Date | string
createdAt?: Date | string
updatedAt?: Date | string
}
export type SessionUpdateInput = {
sessionToken?: StringFieldUpdateOperationsInput | string
expires?: DateTimeFieldUpdateOperationsInput | Date | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
user?: UserUpdateOneRequiredWithoutSessionsNestedInput
}
export type SessionUncheckedUpdateInput = {
sessionToken?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
expires?: DateTimeFieldUpdateOperationsInput | Date | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type SessionCreateManyInput = {
sessionToken: string
userId: string
expires: Date | string
createdAt?: Date | string
updatedAt?: Date | string
}
export type SessionUpdateManyMutationInput = {
sessionToken?: StringFieldUpdateOperationsInput | string
expires?: DateTimeFieldUpdateOperationsInput | Date | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type SessionUncheckedUpdateManyInput = {
sessionToken?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
expires?: DateTimeFieldUpdateOperationsInput | Date | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type VerificationTokenCreateInput = {
identifier: string
token: string
expires: Date | string
}
export type VerificationTokenUncheckedCreateInput = {
identifier: string
token: string
expires: Date | string
}
export type VerificationTokenUpdateInput = {
identifier?: StringFieldUpdateOperationsInput | string
token?: StringFieldUpdateOperationsInput | string
expires?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type VerificationTokenUncheckedUpdateInput = {
identifier?: StringFieldUpdateOperationsInput | string
token?: StringFieldUpdateOperationsInput | string
expires?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type VerificationTokenCreateManyInput = {
identifier: string
token: string
expires: Date | string
}
export type VerificationTokenUpdateManyMutationInput = {
identifier?: StringFieldUpdateOperationsInput | string
token?: StringFieldUpdateOperationsInput | string
expires?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type VerificationTokenUncheckedUpdateManyInput = {
identifier?: StringFieldUpdateOperationsInput | string
token?: StringFieldUpdateOperationsInput | string
expires?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type LabelCreateInput = {
id?: string
name: string
color?: string
createdAt?: Date | string
updatedAt?: Date | string
user?: UserCreateNestedOneWithoutLabelsInput
}
export type LabelUncheckedCreateInput = {
id?: string
name: string
color?: string
userId?: string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type LabelUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
color?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
user?: UserUpdateOneWithoutLabelsNestedInput
}
export type LabelUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
color?: StringFieldUpdateOperationsInput | string
userId?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type LabelCreateManyInput = {
id?: string
name: string
color?: string
userId?: string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type LabelUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
color?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type LabelUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
color?: StringFieldUpdateOperationsInput | string
userId?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type NoteCreateInput = {
id?: string
title?: string | null
content: string
color?: string
isPinned?: boolean
isArchived?: boolean
type?: string
checkItems?: string | null
labels?: string | null
images?: string | null
links?: string | null
reminder?: Date | string | null
isReminderDone?: boolean
reminderRecurrence?: string | null
reminderLocation?: string | null
isMarkdown?: boolean
size?: string
embedding?: string | null
sharedWith?: string | null
order?: number
createdAt?: Date | string
updatedAt?: Date | string
user?: UserCreateNestedOneWithoutNotesInput
shares?: NoteShareCreateNestedManyWithoutNoteInput
}
export type NoteUncheckedCreateInput = {
id?: string
title?: string | null
content: string
color?: string
isPinned?: boolean
isArchived?: boolean
type?: string
checkItems?: string | null
labels?: string | null
images?: string | null
links?: string | null
reminder?: Date | string | null
isReminderDone?: boolean
reminderRecurrence?: string | null
reminderLocation?: string | null
isMarkdown?: boolean
size?: string
embedding?: string | null
sharedWith?: string | null
userId?: string | null
order?: number
createdAt?: Date | string
updatedAt?: Date | string
shares?: NoteShareUncheckedCreateNestedManyWithoutNoteInput
}
export type NoteUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
title?: NullableStringFieldUpdateOperationsInput | string | null
content?: StringFieldUpdateOperationsInput | string
color?: StringFieldUpdateOperationsInput | string
isPinned?: BoolFieldUpdateOperationsInput | boolean
isArchived?: BoolFieldUpdateOperationsInput | boolean
type?: StringFieldUpdateOperationsInput | string
checkItems?: NullableStringFieldUpdateOperationsInput | string | null
labels?: NullableStringFieldUpdateOperationsInput | string | null
images?: NullableStringFieldUpdateOperationsInput | string | null
links?: NullableStringFieldUpdateOperationsInput | string | null
reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
isReminderDone?: BoolFieldUpdateOperationsInput | boolean
reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null
reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null
isMarkdown?: BoolFieldUpdateOperationsInput | boolean
size?: StringFieldUpdateOperationsInput | string
embedding?: NullableStringFieldUpdateOperationsInput | string | null
sharedWith?: NullableStringFieldUpdateOperationsInput | string | null
order?: IntFieldUpdateOperationsInput | number
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
user?: UserUpdateOneWithoutNotesNestedInput
shares?: NoteShareUpdateManyWithoutNoteNestedInput
}
export type NoteUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
title?: NullableStringFieldUpdateOperationsInput | string | null
content?: StringFieldUpdateOperationsInput | string
color?: StringFieldUpdateOperationsInput | string
isPinned?: BoolFieldUpdateOperationsInput | boolean
isArchived?: BoolFieldUpdateOperationsInput | boolean
type?: StringFieldUpdateOperationsInput | string
checkItems?: NullableStringFieldUpdateOperationsInput | string | null
labels?: NullableStringFieldUpdateOperationsInput | string | null
images?: NullableStringFieldUpdateOperationsInput | string | null
links?: NullableStringFieldUpdateOperationsInput | string | null
reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
isReminderDone?: BoolFieldUpdateOperationsInput | boolean
reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null
reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null
isMarkdown?: BoolFieldUpdateOperationsInput | boolean
size?: StringFieldUpdateOperationsInput | string
embedding?: NullableStringFieldUpdateOperationsInput | string | null
sharedWith?: NullableStringFieldUpdateOperationsInput | string | null
userId?: NullableStringFieldUpdateOperationsInput | string | null
order?: IntFieldUpdateOperationsInput | number
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
shares?: NoteShareUncheckedUpdateManyWithoutNoteNestedInput
}
export type NoteCreateManyInput = {
id?: string
title?: string | null
content: string
color?: string
isPinned?: boolean
isArchived?: boolean
type?: string
checkItems?: string | null
labels?: string | null
images?: string | null
links?: string | null
reminder?: Date | string | null
isReminderDone?: boolean
reminderRecurrence?: string | null
reminderLocation?: string | null
isMarkdown?: boolean
size?: string
embedding?: string | null
sharedWith?: string | null
userId?: string | null
order?: number
createdAt?: Date | string
updatedAt?: Date | string
}
export type NoteUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
title?: NullableStringFieldUpdateOperationsInput | string | null
content?: StringFieldUpdateOperationsInput | string
color?: StringFieldUpdateOperationsInput | string
isPinned?: BoolFieldUpdateOperationsInput | boolean
isArchived?: BoolFieldUpdateOperationsInput | boolean
type?: StringFieldUpdateOperationsInput | string
checkItems?: NullableStringFieldUpdateOperationsInput | string | null
labels?: NullableStringFieldUpdateOperationsInput | string | null
images?: NullableStringFieldUpdateOperationsInput | string | null
links?: NullableStringFieldUpdateOperationsInput | string | null
reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
isReminderDone?: BoolFieldUpdateOperationsInput | boolean
reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null
reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null
isMarkdown?: BoolFieldUpdateOperationsInput | boolean
size?: StringFieldUpdateOperationsInput | string
embedding?: NullableStringFieldUpdateOperationsInput | string | null
sharedWith?: NullableStringFieldUpdateOperationsInput | string | null
order?: IntFieldUpdateOperationsInput | number
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type NoteUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
title?: NullableStringFieldUpdateOperationsInput | string | null
content?: StringFieldUpdateOperationsInput | string
color?: StringFieldUpdateOperationsInput | string
isPinned?: BoolFieldUpdateOperationsInput | boolean
isArchived?: BoolFieldUpdateOperationsInput | boolean
type?: StringFieldUpdateOperationsInput | string
checkItems?: NullableStringFieldUpdateOperationsInput | string | null
labels?: NullableStringFieldUpdateOperationsInput | string | null
images?: NullableStringFieldUpdateOperationsInput | string | null
links?: NullableStringFieldUpdateOperationsInput | string | null
reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
isReminderDone?: BoolFieldUpdateOperationsInput | boolean
reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null
reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null
isMarkdown?: BoolFieldUpdateOperationsInput | boolean
size?: StringFieldUpdateOperationsInput | string
embedding?: NullableStringFieldUpdateOperationsInput | string | null
sharedWith?: NullableStringFieldUpdateOperationsInput | string | null
userId?: NullableStringFieldUpdateOperationsInput | string | null
order?: IntFieldUpdateOperationsInput | number
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type NoteShareCreateInput = {
id?: string
status?: string
permission?: string
notifiedAt?: Date | string | null
respondedAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
note: NoteCreateNestedOneWithoutSharesInput
user: UserCreateNestedOneWithoutReceivedSharesInput
sharer: UserCreateNestedOneWithoutSentSharesInput
}
export type NoteShareUncheckedCreateInput = {
id?: string
noteId: string
userId: string
sharedBy: string
status?: string
permission?: string
notifiedAt?: Date | string | null
respondedAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type NoteShareUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
status?: StringFieldUpdateOperationsInput | string
permission?: StringFieldUpdateOperationsInput | string
notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
note?: NoteUpdateOneRequiredWithoutSharesNestedInput
user?: UserUpdateOneRequiredWithoutReceivedSharesNestedInput
sharer?: UserUpdateOneRequiredWithoutSentSharesNestedInput
}
export type NoteShareUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
noteId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
sharedBy?: StringFieldUpdateOperationsInput | string
status?: StringFieldUpdateOperationsInput | string
permission?: StringFieldUpdateOperationsInput | string
notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type NoteShareCreateManyInput = {
id?: string
noteId: string
userId: string
sharedBy: string
status?: string
permission?: string
notifiedAt?: Date | string | null
respondedAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type NoteShareUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
status?: StringFieldUpdateOperationsInput | string
permission?: StringFieldUpdateOperationsInput | string
notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type NoteShareUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
noteId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
sharedBy?: StringFieldUpdateOperationsInput | string
status?: StringFieldUpdateOperationsInput | string
permission?: StringFieldUpdateOperationsInput | string
notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type SystemConfigCreateInput = {
key: string
value: string
}
export type SystemConfigUncheckedCreateInput = {
key: string
value: string
}
export type SystemConfigUpdateInput = {
key?: StringFieldUpdateOperationsInput | string
value?: StringFieldUpdateOperationsInput | string
}
export type SystemConfigUncheckedUpdateInput = {
key?: StringFieldUpdateOperationsInput | string
value?: StringFieldUpdateOperationsInput | string
}
export type SystemConfigCreateManyInput = {
key: string
value: string
}
export type SystemConfigUpdateManyMutationInput = {
key?: StringFieldUpdateOperationsInput | string
value?: StringFieldUpdateOperationsInput | string
}
export type SystemConfigUncheckedUpdateManyInput = {
key?: StringFieldUpdateOperationsInput | string
value?: StringFieldUpdateOperationsInput | string
}
export type StringFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel>
in?: string[]
notIn?: string[]
lt?: string | StringFieldRefInput<$PrismaModel>
lte?: string | StringFieldRefInput<$PrismaModel>
gt?: string | StringFieldRefInput<$PrismaModel>
gte?: string | StringFieldRefInput<$PrismaModel>
contains?: string | StringFieldRefInput<$PrismaModel>
startsWith?: string | StringFieldRefInput<$PrismaModel>
endsWith?: string | StringFieldRefInput<$PrismaModel>
not?: NestedStringFilter<$PrismaModel> | string
}
export type StringNullableFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel> | null
in?: string[] | null
notIn?: string[] | null
lt?: string | StringFieldRefInput<$PrismaModel>
lte?: string | StringFieldRefInput<$PrismaModel>
gt?: string | StringFieldRefInput<$PrismaModel>
gte?: string | StringFieldRefInput<$PrismaModel>
contains?: string | StringFieldRefInput<$PrismaModel>
startsWith?: string | StringFieldRefInput<$PrismaModel>
endsWith?: string | StringFieldRefInput<$PrismaModel>
not?: NestedStringNullableFilter<$PrismaModel> | string | null
}
export type DateTimeNullableFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
in?: Date[] | string[] | null
notIn?: Date[] | string[] | null
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
}
export type DateTimeFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
in?: Date[] | string[]
notIn?: Date[] | string[]
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
not?: NestedDateTimeFilter<$PrismaModel> | Date | string
}
export type AccountListRelationFilter = {
every?: AccountWhereInput
some?: AccountWhereInput
none?: AccountWhereInput
}
export type SessionListRelationFilter = {
every?: SessionWhereInput
some?: SessionWhereInput
none?: SessionWhereInput
}
export type NoteListRelationFilter = {
every?: NoteWhereInput
some?: NoteWhereInput
none?: NoteWhereInput
}
export type LabelListRelationFilter = {
every?: LabelWhereInput
some?: LabelWhereInput
none?: LabelWhereInput
}
export type NoteShareListRelationFilter = {
every?: NoteShareWhereInput
some?: NoteShareWhereInput
none?: NoteShareWhereInput
}
export type SortOrderInput = {
sort: SortOrder
nulls?: NullsOrder
}
export type AccountOrderByRelationAggregateInput = {
_count?: SortOrder
}
export type SessionOrderByRelationAggregateInput = {
_count?: SortOrder
}
export type NoteOrderByRelationAggregateInput = {
_count?: SortOrder
}
export type LabelOrderByRelationAggregateInput = {
_count?: SortOrder
}
export type NoteShareOrderByRelationAggregateInput = {
_count?: SortOrder
}
export type UserCountOrderByAggregateInput = {
id?: SortOrder
name?: SortOrder
email?: SortOrder
emailVerified?: SortOrder
password?: SortOrder
role?: SortOrder
image?: SortOrder
theme?: SortOrder
resetToken?: SortOrder
resetTokenExpiry?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type UserMaxOrderByAggregateInput = {
id?: SortOrder
name?: SortOrder
email?: SortOrder
emailVerified?: SortOrder
password?: SortOrder
role?: SortOrder
image?: SortOrder
theme?: SortOrder
resetToken?: SortOrder
resetTokenExpiry?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type UserMinOrderByAggregateInput = {
id?: SortOrder
name?: SortOrder
email?: SortOrder
emailVerified?: SortOrder
password?: SortOrder
role?: SortOrder
image?: SortOrder
theme?: SortOrder
resetToken?: SortOrder
resetTokenExpiry?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type StringWithAggregatesFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel>
in?: string[]
notIn?: string[]
lt?: string | StringFieldRefInput<$PrismaModel>
lte?: string | StringFieldRefInput<$PrismaModel>
gt?: string | StringFieldRefInput<$PrismaModel>
gte?: string | StringFieldRefInput<$PrismaModel>
contains?: string | StringFieldRefInput<$PrismaModel>
startsWith?: string | StringFieldRefInput<$PrismaModel>
endsWith?: string | StringFieldRefInput<$PrismaModel>
not?: NestedStringWithAggregatesFilter<$PrismaModel> | string
_count?: NestedIntFilter<$PrismaModel>
_min?: NestedStringFilter<$PrismaModel>
_max?: NestedStringFilter<$PrismaModel>
}
export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel> | null
in?: string[] | null
notIn?: string[] | null
lt?: string | StringFieldRefInput<$PrismaModel>
lte?: string | StringFieldRefInput<$PrismaModel>
gt?: string | StringFieldRefInput<$PrismaModel>
gte?: string | StringFieldRefInput<$PrismaModel>
contains?: string | StringFieldRefInput<$PrismaModel>
startsWith?: string | StringFieldRefInput<$PrismaModel>
endsWith?: string | StringFieldRefInput<$PrismaModel>
not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
_count?: NestedIntNullableFilter<$PrismaModel>
_min?: NestedStringNullableFilter<$PrismaModel>
_max?: NestedStringNullableFilter<$PrismaModel>
}
export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
in?: Date[] | string[] | null
notIn?: Date[] | string[] | null
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null
_count?: NestedIntNullableFilter<$PrismaModel>
_min?: NestedDateTimeNullableFilter<$PrismaModel>
_max?: NestedDateTimeNullableFilter<$PrismaModel>
}
export type DateTimeWithAggregatesFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
in?: Date[] | string[]
notIn?: Date[] | string[]
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
_count?: NestedIntFilter<$PrismaModel>
_min?: NestedDateTimeFilter<$PrismaModel>
_max?: NestedDateTimeFilter<$PrismaModel>
}
export type IntNullableFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel> | null
in?: number[] | null
notIn?: number[] | null
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntNullableFilter<$PrismaModel> | number | null
}
export type UserRelationFilter = {
is?: UserWhereInput
isNot?: UserWhereInput
}
export type AccountProviderProviderAccountIdCompoundUniqueInput = {
provider: string
providerAccountId: string
}
export type AccountCountOrderByAggregateInput = {
userId?: SortOrder
type?: SortOrder
provider?: SortOrder
providerAccountId?: SortOrder
refresh_token?: SortOrder
access_token?: SortOrder
expires_at?: SortOrder
token_type?: SortOrder
scope?: SortOrder
id_token?: SortOrder
session_state?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type AccountAvgOrderByAggregateInput = {
expires_at?: SortOrder
}
export type AccountMaxOrderByAggregateInput = {
userId?: SortOrder
type?: SortOrder
provider?: SortOrder
providerAccountId?: SortOrder
refresh_token?: SortOrder
access_token?: SortOrder
expires_at?: SortOrder
token_type?: SortOrder
scope?: SortOrder
id_token?: SortOrder
session_state?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type AccountMinOrderByAggregateInput = {
userId?: SortOrder
type?: SortOrder
provider?: SortOrder
providerAccountId?: SortOrder
refresh_token?: SortOrder
access_token?: SortOrder
expires_at?: SortOrder
token_type?: SortOrder
scope?: SortOrder
id_token?: SortOrder
session_state?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type AccountSumOrderByAggregateInput = {
expires_at?: SortOrder
}
export type IntNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel> | null
in?: number[] | null
notIn?: number[] | null
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null
_count?: NestedIntNullableFilter<$PrismaModel>
_avg?: NestedFloatNullableFilter<$PrismaModel>
_sum?: NestedIntNullableFilter<$PrismaModel>
_min?: NestedIntNullableFilter<$PrismaModel>
_max?: NestedIntNullableFilter<$PrismaModel>
}
export type SessionCountOrderByAggregateInput = {
sessionToken?: SortOrder
userId?: SortOrder
expires?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type SessionMaxOrderByAggregateInput = {
sessionToken?: SortOrder
userId?: SortOrder
expires?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type SessionMinOrderByAggregateInput = {
sessionToken?: SortOrder
userId?: SortOrder
expires?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type VerificationTokenIdentifierTokenCompoundUniqueInput = {
identifier: string
token: string
}
export type VerificationTokenCountOrderByAggregateInput = {
identifier?: SortOrder
token?: SortOrder
expires?: SortOrder
}
export type VerificationTokenMaxOrderByAggregateInput = {
identifier?: SortOrder
token?: SortOrder
expires?: SortOrder
}
export type VerificationTokenMinOrderByAggregateInput = {
identifier?: SortOrder
token?: SortOrder
expires?: SortOrder
}
export type UserNullableRelationFilter = {
is?: UserWhereInput | null
isNot?: UserWhereInput | null
}
export type LabelNameUserIdCompoundUniqueInput = {
name: string
userId: string
}
export type LabelCountOrderByAggregateInput = {
id?: SortOrder
name?: SortOrder
color?: SortOrder
userId?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type LabelMaxOrderByAggregateInput = {
id?: SortOrder
name?: SortOrder
color?: SortOrder
userId?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type LabelMinOrderByAggregateInput = {
id?: SortOrder
name?: SortOrder
color?: SortOrder
userId?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type BoolFilter<$PrismaModel = never> = {
equals?: boolean | BooleanFieldRefInput<$PrismaModel>
not?: NestedBoolFilter<$PrismaModel> | boolean
}
export type IntFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel>
in?: number[]
notIn?: number[]
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntFilter<$PrismaModel> | number
}
export type NoteCountOrderByAggregateInput = {
id?: SortOrder
title?: SortOrder
content?: SortOrder
color?: SortOrder
isPinned?: SortOrder
isArchived?: SortOrder
type?: SortOrder
checkItems?: SortOrder
labels?: SortOrder
images?: SortOrder
links?: SortOrder
reminder?: SortOrder
isReminderDone?: SortOrder
reminderRecurrence?: SortOrder
reminderLocation?: SortOrder
isMarkdown?: SortOrder
size?: SortOrder
embedding?: SortOrder
sharedWith?: SortOrder
userId?: SortOrder
order?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type NoteAvgOrderByAggregateInput = {
order?: SortOrder
}
export type NoteMaxOrderByAggregateInput = {
id?: SortOrder
title?: SortOrder
content?: SortOrder
color?: SortOrder
isPinned?: SortOrder
isArchived?: SortOrder
type?: SortOrder
checkItems?: SortOrder
labels?: SortOrder
images?: SortOrder
links?: SortOrder
reminder?: SortOrder
isReminderDone?: SortOrder
reminderRecurrence?: SortOrder
reminderLocation?: SortOrder
isMarkdown?: SortOrder
size?: SortOrder
embedding?: SortOrder
sharedWith?: SortOrder
userId?: SortOrder
order?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type NoteMinOrderByAggregateInput = {
id?: SortOrder
title?: SortOrder
content?: SortOrder
color?: SortOrder
isPinned?: SortOrder
isArchived?: SortOrder
type?: SortOrder
checkItems?: SortOrder
labels?: SortOrder
images?: SortOrder
links?: SortOrder
reminder?: SortOrder
isReminderDone?: SortOrder
reminderRecurrence?: SortOrder
reminderLocation?: SortOrder
isMarkdown?: SortOrder
size?: SortOrder
embedding?: SortOrder
sharedWith?: SortOrder
userId?: SortOrder
order?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type NoteSumOrderByAggregateInput = {
order?: 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 IntWithAggregatesFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel>
in?: number[]
notIn?: number[]
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntWithAggregatesFilter<$PrismaModel> | number
_count?: NestedIntFilter<$PrismaModel>
_avg?: NestedFloatFilter<$PrismaModel>
_sum?: NestedIntFilter<$PrismaModel>
_min?: NestedIntFilter<$PrismaModel>
_max?: NestedIntFilter<$PrismaModel>
}
export type NoteRelationFilter = {
is?: NoteWhereInput
isNot?: NoteWhereInput
}
export type NoteShareNoteIdUserIdCompoundUniqueInput = {
noteId: string
userId: string
}
export type NoteShareCountOrderByAggregateInput = {
id?: SortOrder
noteId?: SortOrder
userId?: SortOrder
sharedBy?: SortOrder
status?: SortOrder
permission?: SortOrder
notifiedAt?: SortOrder
respondedAt?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type NoteShareMaxOrderByAggregateInput = {
id?: SortOrder
noteId?: SortOrder
userId?: SortOrder
sharedBy?: SortOrder
status?: SortOrder
permission?: SortOrder
notifiedAt?: SortOrder
respondedAt?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type NoteShareMinOrderByAggregateInput = {
id?: SortOrder
noteId?: SortOrder
userId?: SortOrder
sharedBy?: SortOrder
status?: SortOrder
permission?: SortOrder
notifiedAt?: SortOrder
respondedAt?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type SystemConfigCountOrderByAggregateInput = {
key?: SortOrder
value?: SortOrder
}
export type SystemConfigMaxOrderByAggregateInput = {
key?: SortOrder
value?: SortOrder
}
export type SystemConfigMinOrderByAggregateInput = {
key?: SortOrder
value?: SortOrder
}
export type AccountCreateNestedManyWithoutUserInput = {
create?: XOR<AccountCreateWithoutUserInput, AccountUncheckedCreateWithoutUserInput> | AccountCreateWithoutUserInput[] | AccountUncheckedCreateWithoutUserInput[]
connectOrCreate?: AccountCreateOrConnectWithoutUserInput | AccountCreateOrConnectWithoutUserInput[]
createMany?: AccountCreateManyUserInputEnvelope
connect?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
}
export type SessionCreateNestedManyWithoutUserInput = {
create?: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput> | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[]
connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[]
createMany?: SessionCreateManyUserInputEnvelope
connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
}
export type NoteCreateNestedManyWithoutUserInput = {
create?: XOR<NoteCreateWithoutUserInput, NoteUncheckedCreateWithoutUserInput> | NoteCreateWithoutUserInput[] | NoteUncheckedCreateWithoutUserInput[]
connectOrCreate?: NoteCreateOrConnectWithoutUserInput | NoteCreateOrConnectWithoutUserInput[]
createMany?: NoteCreateManyUserInputEnvelope
connect?: NoteWhereUniqueInput | NoteWhereUniqueInput[]
}
export type LabelCreateNestedManyWithoutUserInput = {
create?: XOR<LabelCreateWithoutUserInput, LabelUncheckedCreateWithoutUserInput> | LabelCreateWithoutUserInput[] | LabelUncheckedCreateWithoutUserInput[]
connectOrCreate?: LabelCreateOrConnectWithoutUserInput | LabelCreateOrConnectWithoutUserInput[]
createMany?: LabelCreateManyUserInputEnvelope
connect?: LabelWhereUniqueInput | LabelWhereUniqueInput[]
}
export type NoteShareCreateNestedManyWithoutUserInput = {
create?: XOR<NoteShareCreateWithoutUserInput, NoteShareUncheckedCreateWithoutUserInput> | NoteShareCreateWithoutUserInput[] | NoteShareUncheckedCreateWithoutUserInput[]
connectOrCreate?: NoteShareCreateOrConnectWithoutUserInput | NoteShareCreateOrConnectWithoutUserInput[]
createMany?: NoteShareCreateManyUserInputEnvelope
connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
}
export type NoteShareCreateNestedManyWithoutSharerInput = {
create?: XOR<NoteShareCreateWithoutSharerInput, NoteShareUncheckedCreateWithoutSharerInput> | NoteShareCreateWithoutSharerInput[] | NoteShareUncheckedCreateWithoutSharerInput[]
connectOrCreate?: NoteShareCreateOrConnectWithoutSharerInput | NoteShareCreateOrConnectWithoutSharerInput[]
createMany?: NoteShareCreateManySharerInputEnvelope
connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
}
export type AccountUncheckedCreateNestedManyWithoutUserInput = {
create?: XOR<AccountCreateWithoutUserInput, AccountUncheckedCreateWithoutUserInput> | AccountCreateWithoutUserInput[] | AccountUncheckedCreateWithoutUserInput[]
connectOrCreate?: AccountCreateOrConnectWithoutUserInput | AccountCreateOrConnectWithoutUserInput[]
createMany?: AccountCreateManyUserInputEnvelope
connect?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
}
export type SessionUncheckedCreateNestedManyWithoutUserInput = {
create?: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput> | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[]
connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[]
createMany?: SessionCreateManyUserInputEnvelope
connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
}
export type NoteUncheckedCreateNestedManyWithoutUserInput = {
create?: XOR<NoteCreateWithoutUserInput, NoteUncheckedCreateWithoutUserInput> | NoteCreateWithoutUserInput[] | NoteUncheckedCreateWithoutUserInput[]
connectOrCreate?: NoteCreateOrConnectWithoutUserInput | NoteCreateOrConnectWithoutUserInput[]
createMany?: NoteCreateManyUserInputEnvelope
connect?: NoteWhereUniqueInput | NoteWhereUniqueInput[]
}
export type LabelUncheckedCreateNestedManyWithoutUserInput = {
create?: XOR<LabelCreateWithoutUserInput, LabelUncheckedCreateWithoutUserInput> | LabelCreateWithoutUserInput[] | LabelUncheckedCreateWithoutUserInput[]
connectOrCreate?: LabelCreateOrConnectWithoutUserInput | LabelCreateOrConnectWithoutUserInput[]
createMany?: LabelCreateManyUserInputEnvelope
connect?: LabelWhereUniqueInput | LabelWhereUniqueInput[]
}
export type NoteShareUncheckedCreateNestedManyWithoutUserInput = {
create?: XOR<NoteShareCreateWithoutUserInput, NoteShareUncheckedCreateWithoutUserInput> | NoteShareCreateWithoutUserInput[] | NoteShareUncheckedCreateWithoutUserInput[]
connectOrCreate?: NoteShareCreateOrConnectWithoutUserInput | NoteShareCreateOrConnectWithoutUserInput[]
createMany?: NoteShareCreateManyUserInputEnvelope
connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
}
export type NoteShareUncheckedCreateNestedManyWithoutSharerInput = {
create?: XOR<NoteShareCreateWithoutSharerInput, NoteShareUncheckedCreateWithoutSharerInput> | NoteShareCreateWithoutSharerInput[] | NoteShareUncheckedCreateWithoutSharerInput[]
connectOrCreate?: NoteShareCreateOrConnectWithoutSharerInput | NoteShareCreateOrConnectWithoutSharerInput[]
createMany?: NoteShareCreateManySharerInputEnvelope
connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
}
export type StringFieldUpdateOperationsInput = {
set?: string
}
export type NullableStringFieldUpdateOperationsInput = {
set?: string | null
}
export type NullableDateTimeFieldUpdateOperationsInput = {
set?: Date | string | null
}
export type DateTimeFieldUpdateOperationsInput = {
set?: Date | string
}
export type AccountUpdateManyWithoutUserNestedInput = {
create?: XOR<AccountCreateWithoutUserInput, AccountUncheckedCreateWithoutUserInput> | AccountCreateWithoutUserInput[] | AccountUncheckedCreateWithoutUserInput[]
connectOrCreate?: AccountCreateOrConnectWithoutUserInput | AccountCreateOrConnectWithoutUserInput[]
upsert?: AccountUpsertWithWhereUniqueWithoutUserInput | AccountUpsertWithWhereUniqueWithoutUserInput[]
createMany?: AccountCreateManyUserInputEnvelope
set?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
disconnect?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
delete?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
connect?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
update?: AccountUpdateWithWhereUniqueWithoutUserInput | AccountUpdateWithWhereUniqueWithoutUserInput[]
updateMany?: AccountUpdateManyWithWhereWithoutUserInput | AccountUpdateManyWithWhereWithoutUserInput[]
deleteMany?: AccountScalarWhereInput | AccountScalarWhereInput[]
}
export type SessionUpdateManyWithoutUserNestedInput = {
create?: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput> | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[]
connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[]
upsert?: SessionUpsertWithWhereUniqueWithoutUserInput | SessionUpsertWithWhereUniqueWithoutUserInput[]
createMany?: SessionCreateManyUserInputEnvelope
set?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
disconnect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
delete?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
update?: SessionUpdateWithWhereUniqueWithoutUserInput | SessionUpdateWithWhereUniqueWithoutUserInput[]
updateMany?: SessionUpdateManyWithWhereWithoutUserInput | SessionUpdateManyWithWhereWithoutUserInput[]
deleteMany?: SessionScalarWhereInput | SessionScalarWhereInput[]
}
export type NoteUpdateManyWithoutUserNestedInput = {
create?: XOR<NoteCreateWithoutUserInput, NoteUncheckedCreateWithoutUserInput> | NoteCreateWithoutUserInput[] | NoteUncheckedCreateWithoutUserInput[]
connectOrCreate?: NoteCreateOrConnectWithoutUserInput | NoteCreateOrConnectWithoutUserInput[]
upsert?: NoteUpsertWithWhereUniqueWithoutUserInput | NoteUpsertWithWhereUniqueWithoutUserInput[]
createMany?: NoteCreateManyUserInputEnvelope
set?: NoteWhereUniqueInput | NoteWhereUniqueInput[]
disconnect?: NoteWhereUniqueInput | NoteWhereUniqueInput[]
delete?: NoteWhereUniqueInput | NoteWhereUniqueInput[]
connect?: NoteWhereUniqueInput | NoteWhereUniqueInput[]
update?: NoteUpdateWithWhereUniqueWithoutUserInput | NoteUpdateWithWhereUniqueWithoutUserInput[]
updateMany?: NoteUpdateManyWithWhereWithoutUserInput | NoteUpdateManyWithWhereWithoutUserInput[]
deleteMany?: NoteScalarWhereInput | NoteScalarWhereInput[]
}
export type LabelUpdateManyWithoutUserNestedInput = {
create?: XOR<LabelCreateWithoutUserInput, LabelUncheckedCreateWithoutUserInput> | LabelCreateWithoutUserInput[] | LabelUncheckedCreateWithoutUserInput[]
connectOrCreate?: LabelCreateOrConnectWithoutUserInput | LabelCreateOrConnectWithoutUserInput[]
upsert?: LabelUpsertWithWhereUniqueWithoutUserInput | LabelUpsertWithWhereUniqueWithoutUserInput[]
createMany?: LabelCreateManyUserInputEnvelope
set?: LabelWhereUniqueInput | LabelWhereUniqueInput[]
disconnect?: LabelWhereUniqueInput | LabelWhereUniqueInput[]
delete?: LabelWhereUniqueInput | LabelWhereUniqueInput[]
connect?: LabelWhereUniqueInput | LabelWhereUniqueInput[]
update?: LabelUpdateWithWhereUniqueWithoutUserInput | LabelUpdateWithWhereUniqueWithoutUserInput[]
updateMany?: LabelUpdateManyWithWhereWithoutUserInput | LabelUpdateManyWithWhereWithoutUserInput[]
deleteMany?: LabelScalarWhereInput | LabelScalarWhereInput[]
}
export type NoteShareUpdateManyWithoutUserNestedInput = {
create?: XOR<NoteShareCreateWithoutUserInput, NoteShareUncheckedCreateWithoutUserInput> | NoteShareCreateWithoutUserInput[] | NoteShareUncheckedCreateWithoutUserInput[]
connectOrCreate?: NoteShareCreateOrConnectWithoutUserInput | NoteShareCreateOrConnectWithoutUserInput[]
upsert?: NoteShareUpsertWithWhereUniqueWithoutUserInput | NoteShareUpsertWithWhereUniqueWithoutUserInput[]
createMany?: NoteShareCreateManyUserInputEnvelope
set?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
disconnect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
delete?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
update?: NoteShareUpdateWithWhereUniqueWithoutUserInput | NoteShareUpdateWithWhereUniqueWithoutUserInput[]
updateMany?: NoteShareUpdateManyWithWhereWithoutUserInput | NoteShareUpdateManyWithWhereWithoutUserInput[]
deleteMany?: NoteShareScalarWhereInput | NoteShareScalarWhereInput[]
}
export type NoteShareUpdateManyWithoutSharerNestedInput = {
create?: XOR<NoteShareCreateWithoutSharerInput, NoteShareUncheckedCreateWithoutSharerInput> | NoteShareCreateWithoutSharerInput[] | NoteShareUncheckedCreateWithoutSharerInput[]
connectOrCreate?: NoteShareCreateOrConnectWithoutSharerInput | NoteShareCreateOrConnectWithoutSharerInput[]
upsert?: NoteShareUpsertWithWhereUniqueWithoutSharerInput | NoteShareUpsertWithWhereUniqueWithoutSharerInput[]
createMany?: NoteShareCreateManySharerInputEnvelope
set?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
disconnect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
delete?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
update?: NoteShareUpdateWithWhereUniqueWithoutSharerInput | NoteShareUpdateWithWhereUniqueWithoutSharerInput[]
updateMany?: NoteShareUpdateManyWithWhereWithoutSharerInput | NoteShareUpdateManyWithWhereWithoutSharerInput[]
deleteMany?: NoteShareScalarWhereInput | NoteShareScalarWhereInput[]
}
export type AccountUncheckedUpdateManyWithoutUserNestedInput = {
create?: XOR<AccountCreateWithoutUserInput, AccountUncheckedCreateWithoutUserInput> | AccountCreateWithoutUserInput[] | AccountUncheckedCreateWithoutUserInput[]
connectOrCreate?: AccountCreateOrConnectWithoutUserInput | AccountCreateOrConnectWithoutUserInput[]
upsert?: AccountUpsertWithWhereUniqueWithoutUserInput | AccountUpsertWithWhereUniqueWithoutUserInput[]
createMany?: AccountCreateManyUserInputEnvelope
set?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
disconnect?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
delete?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
connect?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
update?: AccountUpdateWithWhereUniqueWithoutUserInput | AccountUpdateWithWhereUniqueWithoutUserInput[]
updateMany?: AccountUpdateManyWithWhereWithoutUserInput | AccountUpdateManyWithWhereWithoutUserInput[]
deleteMany?: AccountScalarWhereInput | AccountScalarWhereInput[]
}
export type SessionUncheckedUpdateManyWithoutUserNestedInput = {
create?: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput> | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[]
connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[]
upsert?: SessionUpsertWithWhereUniqueWithoutUserInput | SessionUpsertWithWhereUniqueWithoutUserInput[]
createMany?: SessionCreateManyUserInputEnvelope
set?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
disconnect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
delete?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
update?: SessionUpdateWithWhereUniqueWithoutUserInput | SessionUpdateWithWhereUniqueWithoutUserInput[]
updateMany?: SessionUpdateManyWithWhereWithoutUserInput | SessionUpdateManyWithWhereWithoutUserInput[]
deleteMany?: SessionScalarWhereInput | SessionScalarWhereInput[]
}
export type NoteUncheckedUpdateManyWithoutUserNestedInput = {
create?: XOR<NoteCreateWithoutUserInput, NoteUncheckedCreateWithoutUserInput> | NoteCreateWithoutUserInput[] | NoteUncheckedCreateWithoutUserInput[]
connectOrCreate?: NoteCreateOrConnectWithoutUserInput | NoteCreateOrConnectWithoutUserInput[]
upsert?: NoteUpsertWithWhereUniqueWithoutUserInput | NoteUpsertWithWhereUniqueWithoutUserInput[]
createMany?: NoteCreateManyUserInputEnvelope
set?: NoteWhereUniqueInput | NoteWhereUniqueInput[]
disconnect?: NoteWhereUniqueInput | NoteWhereUniqueInput[]
delete?: NoteWhereUniqueInput | NoteWhereUniqueInput[]
connect?: NoteWhereUniqueInput | NoteWhereUniqueInput[]
update?: NoteUpdateWithWhereUniqueWithoutUserInput | NoteUpdateWithWhereUniqueWithoutUserInput[]
updateMany?: NoteUpdateManyWithWhereWithoutUserInput | NoteUpdateManyWithWhereWithoutUserInput[]
deleteMany?: NoteScalarWhereInput | NoteScalarWhereInput[]
}
export type LabelUncheckedUpdateManyWithoutUserNestedInput = {
create?: XOR<LabelCreateWithoutUserInput, LabelUncheckedCreateWithoutUserInput> | LabelCreateWithoutUserInput[] | LabelUncheckedCreateWithoutUserInput[]
connectOrCreate?: LabelCreateOrConnectWithoutUserInput | LabelCreateOrConnectWithoutUserInput[]
upsert?: LabelUpsertWithWhereUniqueWithoutUserInput | LabelUpsertWithWhereUniqueWithoutUserInput[]
createMany?: LabelCreateManyUserInputEnvelope
set?: LabelWhereUniqueInput | LabelWhereUniqueInput[]
disconnect?: LabelWhereUniqueInput | LabelWhereUniqueInput[]
delete?: LabelWhereUniqueInput | LabelWhereUniqueInput[]
connect?: LabelWhereUniqueInput | LabelWhereUniqueInput[]
update?: LabelUpdateWithWhereUniqueWithoutUserInput | LabelUpdateWithWhereUniqueWithoutUserInput[]
updateMany?: LabelUpdateManyWithWhereWithoutUserInput | LabelUpdateManyWithWhereWithoutUserInput[]
deleteMany?: LabelScalarWhereInput | LabelScalarWhereInput[]
}
export type NoteShareUncheckedUpdateManyWithoutUserNestedInput = {
create?: XOR<NoteShareCreateWithoutUserInput, NoteShareUncheckedCreateWithoutUserInput> | NoteShareCreateWithoutUserInput[] | NoteShareUncheckedCreateWithoutUserInput[]
connectOrCreate?: NoteShareCreateOrConnectWithoutUserInput | NoteShareCreateOrConnectWithoutUserInput[]
upsert?: NoteShareUpsertWithWhereUniqueWithoutUserInput | NoteShareUpsertWithWhereUniqueWithoutUserInput[]
createMany?: NoteShareCreateManyUserInputEnvelope
set?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
disconnect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
delete?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
update?: NoteShareUpdateWithWhereUniqueWithoutUserInput | NoteShareUpdateWithWhereUniqueWithoutUserInput[]
updateMany?: NoteShareUpdateManyWithWhereWithoutUserInput | NoteShareUpdateManyWithWhereWithoutUserInput[]
deleteMany?: NoteShareScalarWhereInput | NoteShareScalarWhereInput[]
}
export type NoteShareUncheckedUpdateManyWithoutSharerNestedInput = {
create?: XOR<NoteShareCreateWithoutSharerInput, NoteShareUncheckedCreateWithoutSharerInput> | NoteShareCreateWithoutSharerInput[] | NoteShareUncheckedCreateWithoutSharerInput[]
connectOrCreate?: NoteShareCreateOrConnectWithoutSharerInput | NoteShareCreateOrConnectWithoutSharerInput[]
upsert?: NoteShareUpsertWithWhereUniqueWithoutSharerInput | NoteShareUpsertWithWhereUniqueWithoutSharerInput[]
createMany?: NoteShareCreateManySharerInputEnvelope
set?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
disconnect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
delete?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
update?: NoteShareUpdateWithWhereUniqueWithoutSharerInput | NoteShareUpdateWithWhereUniqueWithoutSharerInput[]
updateMany?: NoteShareUpdateManyWithWhereWithoutSharerInput | NoteShareUpdateManyWithWhereWithoutSharerInput[]
deleteMany?: NoteShareScalarWhereInput | NoteShareScalarWhereInput[]
}
export type UserCreateNestedOneWithoutAccountsInput = {
create?: XOR<UserCreateWithoutAccountsInput, UserUncheckedCreateWithoutAccountsInput>
connectOrCreate?: UserCreateOrConnectWithoutAccountsInput
connect?: UserWhereUniqueInput
}
export type NullableIntFieldUpdateOperationsInput = {
set?: number | null
increment?: number
decrement?: number
multiply?: number
divide?: number
}
export type UserUpdateOneRequiredWithoutAccountsNestedInput = {
create?: XOR<UserCreateWithoutAccountsInput, UserUncheckedCreateWithoutAccountsInput>
connectOrCreate?: UserCreateOrConnectWithoutAccountsInput
upsert?: UserUpsertWithoutAccountsInput
connect?: UserWhereUniqueInput
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutAccountsInput, UserUpdateWithoutAccountsInput>, UserUncheckedUpdateWithoutAccountsInput>
}
export type UserCreateNestedOneWithoutSessionsInput = {
create?: XOR<UserCreateWithoutSessionsInput, UserUncheckedCreateWithoutSessionsInput>
connectOrCreate?: UserCreateOrConnectWithoutSessionsInput
connect?: UserWhereUniqueInput
}
export type UserUpdateOneRequiredWithoutSessionsNestedInput = {
create?: XOR<UserCreateWithoutSessionsInput, UserUncheckedCreateWithoutSessionsInput>
connectOrCreate?: UserCreateOrConnectWithoutSessionsInput
upsert?: UserUpsertWithoutSessionsInput
connect?: UserWhereUniqueInput
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutSessionsInput, UserUpdateWithoutSessionsInput>, UserUncheckedUpdateWithoutSessionsInput>
}
export type UserCreateNestedOneWithoutLabelsInput = {
create?: XOR<UserCreateWithoutLabelsInput, UserUncheckedCreateWithoutLabelsInput>
connectOrCreate?: UserCreateOrConnectWithoutLabelsInput
connect?: UserWhereUniqueInput
}
export type UserUpdateOneWithoutLabelsNestedInput = {
create?: XOR<UserCreateWithoutLabelsInput, UserUncheckedCreateWithoutLabelsInput>
connectOrCreate?: UserCreateOrConnectWithoutLabelsInput
upsert?: UserUpsertWithoutLabelsInput
disconnect?: UserWhereInput | boolean
delete?: UserWhereInput | boolean
connect?: UserWhereUniqueInput
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutLabelsInput, UserUpdateWithoutLabelsInput>, UserUncheckedUpdateWithoutLabelsInput>
}
export type UserCreateNestedOneWithoutNotesInput = {
create?: XOR<UserCreateWithoutNotesInput, UserUncheckedCreateWithoutNotesInput>
connectOrCreate?: UserCreateOrConnectWithoutNotesInput
connect?: UserWhereUniqueInput
}
export type NoteShareCreateNestedManyWithoutNoteInput = {
create?: XOR<NoteShareCreateWithoutNoteInput, NoteShareUncheckedCreateWithoutNoteInput> | NoteShareCreateWithoutNoteInput[] | NoteShareUncheckedCreateWithoutNoteInput[]
connectOrCreate?: NoteShareCreateOrConnectWithoutNoteInput | NoteShareCreateOrConnectWithoutNoteInput[]
createMany?: NoteShareCreateManyNoteInputEnvelope
connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
}
export type NoteShareUncheckedCreateNestedManyWithoutNoteInput = {
create?: XOR<NoteShareCreateWithoutNoteInput, NoteShareUncheckedCreateWithoutNoteInput> | NoteShareCreateWithoutNoteInput[] | NoteShareUncheckedCreateWithoutNoteInput[]
connectOrCreate?: NoteShareCreateOrConnectWithoutNoteInput | NoteShareCreateOrConnectWithoutNoteInput[]
createMany?: NoteShareCreateManyNoteInputEnvelope
connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
}
export type BoolFieldUpdateOperationsInput = {
set?: boolean
}
export type IntFieldUpdateOperationsInput = {
set?: number
increment?: number
decrement?: number
multiply?: number
divide?: number
}
export type UserUpdateOneWithoutNotesNestedInput = {
create?: XOR<UserCreateWithoutNotesInput, UserUncheckedCreateWithoutNotesInput>
connectOrCreate?: UserCreateOrConnectWithoutNotesInput
upsert?: UserUpsertWithoutNotesInput
disconnect?: UserWhereInput | boolean
delete?: UserWhereInput | boolean
connect?: UserWhereUniqueInput
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutNotesInput, UserUpdateWithoutNotesInput>, UserUncheckedUpdateWithoutNotesInput>
}
export type NoteShareUpdateManyWithoutNoteNestedInput = {
create?: XOR<NoteShareCreateWithoutNoteInput, NoteShareUncheckedCreateWithoutNoteInput> | NoteShareCreateWithoutNoteInput[] | NoteShareUncheckedCreateWithoutNoteInput[]
connectOrCreate?: NoteShareCreateOrConnectWithoutNoteInput | NoteShareCreateOrConnectWithoutNoteInput[]
upsert?: NoteShareUpsertWithWhereUniqueWithoutNoteInput | NoteShareUpsertWithWhereUniqueWithoutNoteInput[]
createMany?: NoteShareCreateManyNoteInputEnvelope
set?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
disconnect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
delete?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
update?: NoteShareUpdateWithWhereUniqueWithoutNoteInput | NoteShareUpdateWithWhereUniqueWithoutNoteInput[]
updateMany?: NoteShareUpdateManyWithWhereWithoutNoteInput | NoteShareUpdateManyWithWhereWithoutNoteInput[]
deleteMany?: NoteShareScalarWhereInput | NoteShareScalarWhereInput[]
}
export type NoteShareUncheckedUpdateManyWithoutNoteNestedInput = {
create?: XOR<NoteShareCreateWithoutNoteInput, NoteShareUncheckedCreateWithoutNoteInput> | NoteShareCreateWithoutNoteInput[] | NoteShareUncheckedCreateWithoutNoteInput[]
connectOrCreate?: NoteShareCreateOrConnectWithoutNoteInput | NoteShareCreateOrConnectWithoutNoteInput[]
upsert?: NoteShareUpsertWithWhereUniqueWithoutNoteInput | NoteShareUpsertWithWhereUniqueWithoutNoteInput[]
createMany?: NoteShareCreateManyNoteInputEnvelope
set?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
disconnect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
delete?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
update?: NoteShareUpdateWithWhereUniqueWithoutNoteInput | NoteShareUpdateWithWhereUniqueWithoutNoteInput[]
updateMany?: NoteShareUpdateManyWithWhereWithoutNoteInput | NoteShareUpdateManyWithWhereWithoutNoteInput[]
deleteMany?: NoteShareScalarWhereInput | NoteShareScalarWhereInput[]
}
export type NoteCreateNestedOneWithoutSharesInput = {
create?: XOR<NoteCreateWithoutSharesInput, NoteUncheckedCreateWithoutSharesInput>
connectOrCreate?: NoteCreateOrConnectWithoutSharesInput
connect?: NoteWhereUniqueInput
}
export type UserCreateNestedOneWithoutReceivedSharesInput = {
create?: XOR<UserCreateWithoutReceivedSharesInput, UserUncheckedCreateWithoutReceivedSharesInput>
connectOrCreate?: UserCreateOrConnectWithoutReceivedSharesInput
connect?: UserWhereUniqueInput
}
export type UserCreateNestedOneWithoutSentSharesInput = {
create?: XOR<UserCreateWithoutSentSharesInput, UserUncheckedCreateWithoutSentSharesInput>
connectOrCreate?: UserCreateOrConnectWithoutSentSharesInput
connect?: UserWhereUniqueInput
}
export type NoteUpdateOneRequiredWithoutSharesNestedInput = {
create?: XOR<NoteCreateWithoutSharesInput, NoteUncheckedCreateWithoutSharesInput>
connectOrCreate?: NoteCreateOrConnectWithoutSharesInput
upsert?: NoteUpsertWithoutSharesInput
connect?: NoteWhereUniqueInput
update?: XOR<XOR<NoteUpdateToOneWithWhereWithoutSharesInput, NoteUpdateWithoutSharesInput>, NoteUncheckedUpdateWithoutSharesInput>
}
export type UserUpdateOneRequiredWithoutReceivedSharesNestedInput = {
create?: XOR<UserCreateWithoutReceivedSharesInput, UserUncheckedCreateWithoutReceivedSharesInput>
connectOrCreate?: UserCreateOrConnectWithoutReceivedSharesInput
upsert?: UserUpsertWithoutReceivedSharesInput
connect?: UserWhereUniqueInput
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutReceivedSharesInput, UserUpdateWithoutReceivedSharesInput>, UserUncheckedUpdateWithoutReceivedSharesInput>
}
export type UserUpdateOneRequiredWithoutSentSharesNestedInput = {
create?: XOR<UserCreateWithoutSentSharesInput, UserUncheckedCreateWithoutSentSharesInput>
connectOrCreate?: UserCreateOrConnectWithoutSentSharesInput
upsert?: UserUpsertWithoutSentSharesInput
connect?: UserWhereUniqueInput
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutSentSharesInput, UserUpdateWithoutSentSharesInput>, UserUncheckedUpdateWithoutSentSharesInput>
}
export type NestedStringFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel>
in?: string[]
notIn?: string[]
lt?: string | StringFieldRefInput<$PrismaModel>
lte?: string | StringFieldRefInput<$PrismaModel>
gt?: string | StringFieldRefInput<$PrismaModel>
gte?: string | StringFieldRefInput<$PrismaModel>
contains?: string | StringFieldRefInput<$PrismaModel>
startsWith?: string | StringFieldRefInput<$PrismaModel>
endsWith?: string | StringFieldRefInput<$PrismaModel>
not?: NestedStringFilter<$PrismaModel> | string
}
export type NestedStringNullableFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel> | null
in?: string[] | null
notIn?: string[] | null
lt?: string | StringFieldRefInput<$PrismaModel>
lte?: string | StringFieldRefInput<$PrismaModel>
gt?: string | StringFieldRefInput<$PrismaModel>
gte?: string | StringFieldRefInput<$PrismaModel>
contains?: string | StringFieldRefInput<$PrismaModel>
startsWith?: string | StringFieldRefInput<$PrismaModel>
endsWith?: string | StringFieldRefInput<$PrismaModel>
not?: NestedStringNullableFilter<$PrismaModel> | string | null
}
export type NestedDateTimeNullableFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
in?: Date[] | string[] | null
notIn?: Date[] | string[] | null
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
}
export type NestedDateTimeFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
in?: Date[] | string[]
notIn?: Date[] | string[]
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
not?: NestedDateTimeFilter<$PrismaModel> | Date | string
}
export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel>
in?: string[]
notIn?: string[]
lt?: string | StringFieldRefInput<$PrismaModel>
lte?: string | StringFieldRefInput<$PrismaModel>
gt?: string | StringFieldRefInput<$PrismaModel>
gte?: string | StringFieldRefInput<$PrismaModel>
contains?: string | StringFieldRefInput<$PrismaModel>
startsWith?: string | StringFieldRefInput<$PrismaModel>
endsWith?: string | StringFieldRefInput<$PrismaModel>
not?: NestedStringWithAggregatesFilter<$PrismaModel> | string
_count?: NestedIntFilter<$PrismaModel>
_min?: NestedStringFilter<$PrismaModel>
_max?: NestedStringFilter<$PrismaModel>
}
export type NestedIntFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel>
in?: number[]
notIn?: number[]
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntFilter<$PrismaModel> | number
}
export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel> | null
in?: string[] | null
notIn?: string[] | null
lt?: string | StringFieldRefInput<$PrismaModel>
lte?: string | StringFieldRefInput<$PrismaModel>
gt?: string | StringFieldRefInput<$PrismaModel>
gte?: string | StringFieldRefInput<$PrismaModel>
contains?: string | StringFieldRefInput<$PrismaModel>
startsWith?: string | StringFieldRefInput<$PrismaModel>
endsWith?: string | StringFieldRefInput<$PrismaModel>
not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
_count?: NestedIntNullableFilter<$PrismaModel>
_min?: NestedStringNullableFilter<$PrismaModel>
_max?: NestedStringNullableFilter<$PrismaModel>
}
export type NestedIntNullableFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel> | null
in?: number[] | null
notIn?: number[] | null
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntNullableFilter<$PrismaModel> | number | null
}
export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
in?: Date[] | string[] | null
notIn?: Date[] | string[] | null
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null
_count?: NestedIntNullableFilter<$PrismaModel>
_min?: NestedDateTimeNullableFilter<$PrismaModel>
_max?: NestedDateTimeNullableFilter<$PrismaModel>
}
export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
in?: Date[] | string[]
notIn?: Date[] | string[]
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
_count?: NestedIntFilter<$PrismaModel>
_min?: NestedDateTimeFilter<$PrismaModel>
_max?: NestedDateTimeFilter<$PrismaModel>
}
export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel> | null
in?: number[] | null
notIn?: number[] | null
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null
_count?: NestedIntNullableFilter<$PrismaModel>
_avg?: NestedFloatNullableFilter<$PrismaModel>
_sum?: NestedIntNullableFilter<$PrismaModel>
_min?: NestedIntNullableFilter<$PrismaModel>
_max?: NestedIntNullableFilter<$PrismaModel>
}
export type NestedFloatNullableFilter<$PrismaModel = never> = {
equals?: number | FloatFieldRefInput<$PrismaModel> | null
in?: number[] | null
notIn?: number[] | null
lt?: number | FloatFieldRefInput<$PrismaModel>
lte?: number | FloatFieldRefInput<$PrismaModel>
gt?: number | FloatFieldRefInput<$PrismaModel>
gte?: number | FloatFieldRefInput<$PrismaModel>
not?: NestedFloatNullableFilter<$PrismaModel> | number | null
}
export type 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 NestedIntWithAggregatesFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel>
in?: number[]
notIn?: number[]
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntWithAggregatesFilter<$PrismaModel> | number
_count?: NestedIntFilter<$PrismaModel>
_avg?: NestedFloatFilter<$PrismaModel>
_sum?: NestedIntFilter<$PrismaModel>
_min?: NestedIntFilter<$PrismaModel>
_max?: NestedIntFilter<$PrismaModel>
}
export type NestedFloatFilter<$PrismaModel = never> = {
equals?: number | FloatFieldRefInput<$PrismaModel>
in?: number[]
notIn?: number[]
lt?: number | FloatFieldRefInput<$PrismaModel>
lte?: number | FloatFieldRefInput<$PrismaModel>
gt?: number | FloatFieldRefInput<$PrismaModel>
gte?: number | FloatFieldRefInput<$PrismaModel>
not?: NestedFloatFilter<$PrismaModel> | number
}
export type AccountCreateWithoutUserInput = {
type: string
provider: string
providerAccountId: string
refresh_token?: string | null
access_token?: string | null
expires_at?: number | null
token_type?: string | null
scope?: string | null
id_token?: string | null
session_state?: string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type AccountUncheckedCreateWithoutUserInput = {
type: string
provider: string
providerAccountId: string
refresh_token?: string | null
access_token?: string | null
expires_at?: number | null
token_type?: string | null
scope?: string | null
id_token?: string | null
session_state?: string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type AccountCreateOrConnectWithoutUserInput = {
where: AccountWhereUniqueInput
create: XOR<AccountCreateWithoutUserInput, AccountUncheckedCreateWithoutUserInput>
}
export type AccountCreateManyUserInputEnvelope = {
data: AccountCreateManyUserInput | AccountCreateManyUserInput[]
}
export type SessionCreateWithoutUserInput = {
sessionToken: string
expires: Date | string
createdAt?: Date | string
updatedAt?: Date | string
}
export type SessionUncheckedCreateWithoutUserInput = {
sessionToken: string
expires: Date | string
createdAt?: Date | string
updatedAt?: Date | string
}
export type SessionCreateOrConnectWithoutUserInput = {
where: SessionWhereUniqueInput
create: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput>
}
export type SessionCreateManyUserInputEnvelope = {
data: SessionCreateManyUserInput | SessionCreateManyUserInput[]
}
export type NoteCreateWithoutUserInput = {
id?: string
title?: string | null
content: string
color?: string
isPinned?: boolean
isArchived?: boolean
type?: string
checkItems?: string | null
labels?: string | null
images?: string | null
links?: string | null
reminder?: Date | string | null
isReminderDone?: boolean
reminderRecurrence?: string | null
reminderLocation?: string | null
isMarkdown?: boolean
size?: string
embedding?: string | null
sharedWith?: string | null
order?: number
createdAt?: Date | string
updatedAt?: Date | string
shares?: NoteShareCreateNestedManyWithoutNoteInput
}
export type NoteUncheckedCreateWithoutUserInput = {
id?: string
title?: string | null
content: string
color?: string
isPinned?: boolean
isArchived?: boolean
type?: string
checkItems?: string | null
labels?: string | null
images?: string | null
links?: string | null
reminder?: Date | string | null
isReminderDone?: boolean
reminderRecurrence?: string | null
reminderLocation?: string | null
isMarkdown?: boolean
size?: string
embedding?: string | null
sharedWith?: string | null
order?: number
createdAt?: Date | string
updatedAt?: Date | string
shares?: NoteShareUncheckedCreateNestedManyWithoutNoteInput
}
export type NoteCreateOrConnectWithoutUserInput = {
where: NoteWhereUniqueInput
create: XOR<NoteCreateWithoutUserInput, NoteUncheckedCreateWithoutUserInput>
}
export type NoteCreateManyUserInputEnvelope = {
data: NoteCreateManyUserInput | NoteCreateManyUserInput[]
}
export type LabelCreateWithoutUserInput = {
id?: string
name: string
color?: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type LabelUncheckedCreateWithoutUserInput = {
id?: string
name: string
color?: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type LabelCreateOrConnectWithoutUserInput = {
where: LabelWhereUniqueInput
create: XOR<LabelCreateWithoutUserInput, LabelUncheckedCreateWithoutUserInput>
}
export type LabelCreateManyUserInputEnvelope = {
data: LabelCreateManyUserInput | LabelCreateManyUserInput[]
}
export type NoteShareCreateWithoutUserInput = {
id?: string
status?: string
permission?: string
notifiedAt?: Date | string | null
respondedAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
note: NoteCreateNestedOneWithoutSharesInput
sharer: UserCreateNestedOneWithoutSentSharesInput
}
export type NoteShareUncheckedCreateWithoutUserInput = {
id?: string
noteId: string
sharedBy: string
status?: string
permission?: string
notifiedAt?: Date | string | null
respondedAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type NoteShareCreateOrConnectWithoutUserInput = {
where: NoteShareWhereUniqueInput
create: XOR<NoteShareCreateWithoutUserInput, NoteShareUncheckedCreateWithoutUserInput>
}
export type NoteShareCreateManyUserInputEnvelope = {
data: NoteShareCreateManyUserInput | NoteShareCreateManyUserInput[]
}
export type NoteShareCreateWithoutSharerInput = {
id?: string
status?: string
permission?: string
notifiedAt?: Date | string | null
respondedAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
note: NoteCreateNestedOneWithoutSharesInput
user: UserCreateNestedOneWithoutReceivedSharesInput
}
export type NoteShareUncheckedCreateWithoutSharerInput = {
id?: string
noteId: string
userId: string
status?: string
permission?: string
notifiedAt?: Date | string | null
respondedAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type NoteShareCreateOrConnectWithoutSharerInput = {
where: NoteShareWhereUniqueInput
create: XOR<NoteShareCreateWithoutSharerInput, NoteShareUncheckedCreateWithoutSharerInput>
}
export type NoteShareCreateManySharerInputEnvelope = {
data: NoteShareCreateManySharerInput | NoteShareCreateManySharerInput[]
}
export type AccountUpsertWithWhereUniqueWithoutUserInput = {
where: AccountWhereUniqueInput
update: XOR<AccountUpdateWithoutUserInput, AccountUncheckedUpdateWithoutUserInput>
create: XOR<AccountCreateWithoutUserInput, AccountUncheckedCreateWithoutUserInput>
}
export type AccountUpdateWithWhereUniqueWithoutUserInput = {
where: AccountWhereUniqueInput
data: XOR<AccountUpdateWithoutUserInput, AccountUncheckedUpdateWithoutUserInput>
}
export type AccountUpdateManyWithWhereWithoutUserInput = {
where: AccountScalarWhereInput
data: XOR<AccountUpdateManyMutationInput, AccountUncheckedUpdateManyWithoutUserInput>
}
export type AccountScalarWhereInput = {
AND?: AccountScalarWhereInput | AccountScalarWhereInput[]
OR?: AccountScalarWhereInput[]
NOT?: AccountScalarWhereInput | AccountScalarWhereInput[]
userId?: StringFilter<"Account"> | string
type?: StringFilter<"Account"> | string
provider?: StringFilter<"Account"> | string
providerAccountId?: StringFilter<"Account"> | string
refresh_token?: StringNullableFilter<"Account"> | string | null
access_token?: StringNullableFilter<"Account"> | string | null
expires_at?: IntNullableFilter<"Account"> | number | null
token_type?: StringNullableFilter<"Account"> | string | null
scope?: StringNullableFilter<"Account"> | string | null
id_token?: StringNullableFilter<"Account"> | string | null
session_state?: StringNullableFilter<"Account"> | string | null
createdAt?: DateTimeFilter<"Account"> | Date | string
updatedAt?: DateTimeFilter<"Account"> | Date | string
}
export type SessionUpsertWithWhereUniqueWithoutUserInput = {
where: SessionWhereUniqueInput
update: XOR<SessionUpdateWithoutUserInput, SessionUncheckedUpdateWithoutUserInput>
create: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput>
}
export type SessionUpdateWithWhereUniqueWithoutUserInput = {
where: SessionWhereUniqueInput
data: XOR<SessionUpdateWithoutUserInput, SessionUncheckedUpdateWithoutUserInput>
}
export type SessionUpdateManyWithWhereWithoutUserInput = {
where: SessionScalarWhereInput
data: XOR<SessionUpdateManyMutationInput, SessionUncheckedUpdateManyWithoutUserInput>
}
export type SessionScalarWhereInput = {
AND?: SessionScalarWhereInput | SessionScalarWhereInput[]
OR?: SessionScalarWhereInput[]
NOT?: SessionScalarWhereInput | SessionScalarWhereInput[]
sessionToken?: StringFilter<"Session"> | string
userId?: StringFilter<"Session"> | string
expires?: DateTimeFilter<"Session"> | Date | string
createdAt?: DateTimeFilter<"Session"> | Date | string
updatedAt?: DateTimeFilter<"Session"> | Date | string
}
export type NoteUpsertWithWhereUniqueWithoutUserInput = {
where: NoteWhereUniqueInput
update: XOR<NoteUpdateWithoutUserInput, NoteUncheckedUpdateWithoutUserInput>
create: XOR<NoteCreateWithoutUserInput, NoteUncheckedCreateWithoutUserInput>
}
export type NoteUpdateWithWhereUniqueWithoutUserInput = {
where: NoteWhereUniqueInput
data: XOR<NoteUpdateWithoutUserInput, NoteUncheckedUpdateWithoutUserInput>
}
export type NoteUpdateManyWithWhereWithoutUserInput = {
where: NoteScalarWhereInput
data: XOR<NoteUpdateManyMutationInput, NoteUncheckedUpdateManyWithoutUserInput>
}
export type NoteScalarWhereInput = {
AND?: NoteScalarWhereInput | NoteScalarWhereInput[]
OR?: NoteScalarWhereInput[]
NOT?: NoteScalarWhereInput | NoteScalarWhereInput[]
id?: StringFilter<"Note"> | string
title?: StringNullableFilter<"Note"> | string | null
content?: StringFilter<"Note"> | string
color?: StringFilter<"Note"> | string
isPinned?: BoolFilter<"Note"> | boolean
isArchived?: BoolFilter<"Note"> | boolean
type?: StringFilter<"Note"> | string
checkItems?: StringNullableFilter<"Note"> | string | null
labels?: StringNullableFilter<"Note"> | string | null
images?: StringNullableFilter<"Note"> | string | null
links?: StringNullableFilter<"Note"> | string | null
reminder?: DateTimeNullableFilter<"Note"> | Date | string | null
isReminderDone?: BoolFilter<"Note"> | boolean
reminderRecurrence?: StringNullableFilter<"Note"> | string | null
reminderLocation?: StringNullableFilter<"Note"> | string | null
isMarkdown?: BoolFilter<"Note"> | boolean
size?: StringFilter<"Note"> | string
embedding?: StringNullableFilter<"Note"> | string | null
sharedWith?: StringNullableFilter<"Note"> | string | null
userId?: StringNullableFilter<"Note"> | string | null
order?: IntFilter<"Note"> | number
createdAt?: DateTimeFilter<"Note"> | Date | string
updatedAt?: DateTimeFilter<"Note"> | Date | string
}
export type LabelUpsertWithWhereUniqueWithoutUserInput = {
where: LabelWhereUniqueInput
update: XOR<LabelUpdateWithoutUserInput, LabelUncheckedUpdateWithoutUserInput>
create: XOR<LabelCreateWithoutUserInput, LabelUncheckedCreateWithoutUserInput>
}
export type LabelUpdateWithWhereUniqueWithoutUserInput = {
where: LabelWhereUniqueInput
data: XOR<LabelUpdateWithoutUserInput, LabelUncheckedUpdateWithoutUserInput>
}
export type LabelUpdateManyWithWhereWithoutUserInput = {
where: LabelScalarWhereInput
data: XOR<LabelUpdateManyMutationInput, LabelUncheckedUpdateManyWithoutUserInput>
}
export type LabelScalarWhereInput = {
AND?: LabelScalarWhereInput | LabelScalarWhereInput[]
OR?: LabelScalarWhereInput[]
NOT?: LabelScalarWhereInput | LabelScalarWhereInput[]
id?: StringFilter<"Label"> | string
name?: StringFilter<"Label"> | string
color?: StringFilter<"Label"> | string
userId?: StringNullableFilter<"Label"> | string | null
createdAt?: DateTimeFilter<"Label"> | Date | string
updatedAt?: DateTimeFilter<"Label"> | Date | string
}
export type NoteShareUpsertWithWhereUniqueWithoutUserInput = {
where: NoteShareWhereUniqueInput
update: XOR<NoteShareUpdateWithoutUserInput, NoteShareUncheckedUpdateWithoutUserInput>
create: XOR<NoteShareCreateWithoutUserInput, NoteShareUncheckedCreateWithoutUserInput>
}
export type NoteShareUpdateWithWhereUniqueWithoutUserInput = {
where: NoteShareWhereUniqueInput
data: XOR<NoteShareUpdateWithoutUserInput, NoteShareUncheckedUpdateWithoutUserInput>
}
export type NoteShareUpdateManyWithWhereWithoutUserInput = {
where: NoteShareScalarWhereInput
data: XOR<NoteShareUpdateManyMutationInput, NoteShareUncheckedUpdateManyWithoutUserInput>
}
export type NoteShareScalarWhereInput = {
AND?: NoteShareScalarWhereInput | NoteShareScalarWhereInput[]
OR?: NoteShareScalarWhereInput[]
NOT?: NoteShareScalarWhereInput | NoteShareScalarWhereInput[]
id?: StringFilter<"NoteShare"> | string
noteId?: StringFilter<"NoteShare"> | string
userId?: StringFilter<"NoteShare"> | string
sharedBy?: StringFilter<"NoteShare"> | string
status?: StringFilter<"NoteShare"> | string
permission?: StringFilter<"NoteShare"> | string
notifiedAt?: DateTimeNullableFilter<"NoteShare"> | Date | string | null
respondedAt?: DateTimeNullableFilter<"NoteShare"> | Date | string | null
createdAt?: DateTimeFilter<"NoteShare"> | Date | string
updatedAt?: DateTimeFilter<"NoteShare"> | Date | string
}
export type NoteShareUpsertWithWhereUniqueWithoutSharerInput = {
where: NoteShareWhereUniqueInput
update: XOR<NoteShareUpdateWithoutSharerInput, NoteShareUncheckedUpdateWithoutSharerInput>
create: XOR<NoteShareCreateWithoutSharerInput, NoteShareUncheckedCreateWithoutSharerInput>
}
export type NoteShareUpdateWithWhereUniqueWithoutSharerInput = {
where: NoteShareWhereUniqueInput
data: XOR<NoteShareUpdateWithoutSharerInput, NoteShareUncheckedUpdateWithoutSharerInput>
}
export type NoteShareUpdateManyWithWhereWithoutSharerInput = {
where: NoteShareScalarWhereInput
data: XOR<NoteShareUpdateManyMutationInput, NoteShareUncheckedUpdateManyWithoutSharerInput>
}
export type UserCreateWithoutAccountsInput = {
id?: string
name?: string | null
email: string
emailVerified?: Date | string | null
password?: string | null
role?: string
image?: string | null
theme?: string
resetToken?: string | null
resetTokenExpiry?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
sessions?: SessionCreateNestedManyWithoutUserInput
notes?: NoteCreateNestedManyWithoutUserInput
labels?: LabelCreateNestedManyWithoutUserInput
receivedShares?: NoteShareCreateNestedManyWithoutUserInput
sentShares?: NoteShareCreateNestedManyWithoutSharerInput
}
export type UserUncheckedCreateWithoutAccountsInput = {
id?: string
name?: string | null
email: string
emailVerified?: Date | string | null
password?: string | null
role?: string
image?: string | null
theme?: string
resetToken?: string | null
resetTokenExpiry?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
sessions?: SessionUncheckedCreateNestedManyWithoutUserInput
notes?: NoteUncheckedCreateNestedManyWithoutUserInput
labels?: LabelUncheckedCreateNestedManyWithoutUserInput
receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput
sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput
}
export type UserCreateOrConnectWithoutAccountsInput = {
where: UserWhereUniqueInput
create: XOR<UserCreateWithoutAccountsInput, UserUncheckedCreateWithoutAccountsInput>
}
export type UserUpsertWithoutAccountsInput = {
update: XOR<UserUpdateWithoutAccountsInput, UserUncheckedUpdateWithoutAccountsInput>
create: XOR<UserCreateWithoutAccountsInput, UserUncheckedCreateWithoutAccountsInput>
where?: UserWhereInput
}
export type UserUpdateToOneWithWhereWithoutAccountsInput = {
where?: UserWhereInput
data: XOR<UserUpdateWithoutAccountsInput, UserUncheckedUpdateWithoutAccountsInput>
}
export type UserUpdateWithoutAccountsInput = {
id?: StringFieldUpdateOperationsInput | string
name?: NullableStringFieldUpdateOperationsInput | string | null
email?: StringFieldUpdateOperationsInput | string
emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
password?: NullableStringFieldUpdateOperationsInput | string | null
role?: StringFieldUpdateOperationsInput | string
image?: NullableStringFieldUpdateOperationsInput | string | null
theme?: StringFieldUpdateOperationsInput | string
resetToken?: NullableStringFieldUpdateOperationsInput | string | null
resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
sessions?: SessionUpdateManyWithoutUserNestedInput
notes?: NoteUpdateManyWithoutUserNestedInput
labels?: LabelUpdateManyWithoutUserNestedInput
receivedShares?: NoteShareUpdateManyWithoutUserNestedInput
sentShares?: NoteShareUpdateManyWithoutSharerNestedInput
}
export type UserUncheckedUpdateWithoutAccountsInput = {
id?: StringFieldUpdateOperationsInput | string
name?: NullableStringFieldUpdateOperationsInput | string | null
email?: StringFieldUpdateOperationsInput | string
emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
password?: NullableStringFieldUpdateOperationsInput | string | null
role?: StringFieldUpdateOperationsInput | string
image?: NullableStringFieldUpdateOperationsInput | string | null
theme?: StringFieldUpdateOperationsInput | string
resetToken?: NullableStringFieldUpdateOperationsInput | string | null
resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput
notes?: NoteUncheckedUpdateManyWithoutUserNestedInput
labels?: LabelUncheckedUpdateManyWithoutUserNestedInput
receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput
sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput
}
export type UserCreateWithoutSessionsInput = {
id?: string
name?: string | null
email: string
emailVerified?: Date | string | null
password?: string | null
role?: string
image?: string | null
theme?: string
resetToken?: string | null
resetTokenExpiry?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
accounts?: AccountCreateNestedManyWithoutUserInput
notes?: NoteCreateNestedManyWithoutUserInput
labels?: LabelCreateNestedManyWithoutUserInput
receivedShares?: NoteShareCreateNestedManyWithoutUserInput
sentShares?: NoteShareCreateNestedManyWithoutSharerInput
}
export type UserUncheckedCreateWithoutSessionsInput = {
id?: string
name?: string | null
email: string
emailVerified?: Date | string | null
password?: string | null
role?: string
image?: string | null
theme?: string
resetToken?: string | null
resetTokenExpiry?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
accounts?: AccountUncheckedCreateNestedManyWithoutUserInput
notes?: NoteUncheckedCreateNestedManyWithoutUserInput
labels?: LabelUncheckedCreateNestedManyWithoutUserInput
receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput
sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput
}
export type UserCreateOrConnectWithoutSessionsInput = {
where: UserWhereUniqueInput
create: XOR<UserCreateWithoutSessionsInput, UserUncheckedCreateWithoutSessionsInput>
}
export type UserUpsertWithoutSessionsInput = {
update: XOR<UserUpdateWithoutSessionsInput, UserUncheckedUpdateWithoutSessionsInput>
create: XOR<UserCreateWithoutSessionsInput, UserUncheckedCreateWithoutSessionsInput>
where?: UserWhereInput
}
export type UserUpdateToOneWithWhereWithoutSessionsInput = {
where?: UserWhereInput
data: XOR<UserUpdateWithoutSessionsInput, UserUncheckedUpdateWithoutSessionsInput>
}
export type UserUpdateWithoutSessionsInput = {
id?: StringFieldUpdateOperationsInput | string
name?: NullableStringFieldUpdateOperationsInput | string | null
email?: StringFieldUpdateOperationsInput | string
emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
password?: NullableStringFieldUpdateOperationsInput | string | null
role?: StringFieldUpdateOperationsInput | string
image?: NullableStringFieldUpdateOperationsInput | string | null
theme?: StringFieldUpdateOperationsInput | string
resetToken?: NullableStringFieldUpdateOperationsInput | string | null
resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
accounts?: AccountUpdateManyWithoutUserNestedInput
notes?: NoteUpdateManyWithoutUserNestedInput
labels?: LabelUpdateManyWithoutUserNestedInput
receivedShares?: NoteShareUpdateManyWithoutUserNestedInput
sentShares?: NoteShareUpdateManyWithoutSharerNestedInput
}
export type UserUncheckedUpdateWithoutSessionsInput = {
id?: StringFieldUpdateOperationsInput | string
name?: NullableStringFieldUpdateOperationsInput | string | null
email?: StringFieldUpdateOperationsInput | string
emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
password?: NullableStringFieldUpdateOperationsInput | string | null
role?: StringFieldUpdateOperationsInput | string
image?: NullableStringFieldUpdateOperationsInput | string | null
theme?: StringFieldUpdateOperationsInput | string
resetToken?: NullableStringFieldUpdateOperationsInput | string | null
resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput
notes?: NoteUncheckedUpdateManyWithoutUserNestedInput
labels?: LabelUncheckedUpdateManyWithoutUserNestedInput
receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput
sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput
}
export type UserCreateWithoutLabelsInput = {
id?: string
name?: string | null
email: string
emailVerified?: Date | string | null
password?: string | null
role?: string
image?: string | null
theme?: string
resetToken?: string | null
resetTokenExpiry?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
accounts?: AccountCreateNestedManyWithoutUserInput
sessions?: SessionCreateNestedManyWithoutUserInput
notes?: NoteCreateNestedManyWithoutUserInput
receivedShares?: NoteShareCreateNestedManyWithoutUserInput
sentShares?: NoteShareCreateNestedManyWithoutSharerInput
}
export type UserUncheckedCreateWithoutLabelsInput = {
id?: string
name?: string | null
email: string
emailVerified?: Date | string | null
password?: string | null
role?: string
image?: string | null
theme?: string
resetToken?: string | null
resetTokenExpiry?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
accounts?: AccountUncheckedCreateNestedManyWithoutUserInput
sessions?: SessionUncheckedCreateNestedManyWithoutUserInput
notes?: NoteUncheckedCreateNestedManyWithoutUserInput
receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput
sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput
}
export type UserCreateOrConnectWithoutLabelsInput = {
where: UserWhereUniqueInput
create: XOR<UserCreateWithoutLabelsInput, UserUncheckedCreateWithoutLabelsInput>
}
export type UserUpsertWithoutLabelsInput = {
update: XOR<UserUpdateWithoutLabelsInput, UserUncheckedUpdateWithoutLabelsInput>
create: XOR<UserCreateWithoutLabelsInput, UserUncheckedCreateWithoutLabelsInput>
where?: UserWhereInput
}
export type UserUpdateToOneWithWhereWithoutLabelsInput = {
where?: UserWhereInput
data: XOR<UserUpdateWithoutLabelsInput, UserUncheckedUpdateWithoutLabelsInput>
}
export type UserUpdateWithoutLabelsInput = {
id?: StringFieldUpdateOperationsInput | string
name?: NullableStringFieldUpdateOperationsInput | string | null
email?: StringFieldUpdateOperationsInput | string
emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
password?: NullableStringFieldUpdateOperationsInput | string | null
role?: StringFieldUpdateOperationsInput | string
image?: NullableStringFieldUpdateOperationsInput | string | null
theme?: StringFieldUpdateOperationsInput | string
resetToken?: NullableStringFieldUpdateOperationsInput | string | null
resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
accounts?: AccountUpdateManyWithoutUserNestedInput
sessions?: SessionUpdateManyWithoutUserNestedInput
notes?: NoteUpdateManyWithoutUserNestedInput
receivedShares?: NoteShareUpdateManyWithoutUserNestedInput
sentShares?: NoteShareUpdateManyWithoutSharerNestedInput
}
export type UserUncheckedUpdateWithoutLabelsInput = {
id?: StringFieldUpdateOperationsInput | string
name?: NullableStringFieldUpdateOperationsInput | string | null
email?: StringFieldUpdateOperationsInput | string
emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
password?: NullableStringFieldUpdateOperationsInput | string | null
role?: StringFieldUpdateOperationsInput | string
image?: NullableStringFieldUpdateOperationsInput | string | null
theme?: StringFieldUpdateOperationsInput | string
resetToken?: NullableStringFieldUpdateOperationsInput | string | null
resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput
sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput
notes?: NoteUncheckedUpdateManyWithoutUserNestedInput
receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput
sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput
}
export type UserCreateWithoutNotesInput = {
id?: string
name?: string | null
email: string
emailVerified?: Date | string | null
password?: string | null
role?: string
image?: string | null
theme?: string
resetToken?: string | null
resetTokenExpiry?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
accounts?: AccountCreateNestedManyWithoutUserInput
sessions?: SessionCreateNestedManyWithoutUserInput
labels?: LabelCreateNestedManyWithoutUserInput
receivedShares?: NoteShareCreateNestedManyWithoutUserInput
sentShares?: NoteShareCreateNestedManyWithoutSharerInput
}
export type UserUncheckedCreateWithoutNotesInput = {
id?: string
name?: string | null
email: string
emailVerified?: Date | string | null
password?: string | null
role?: string
image?: string | null
theme?: string
resetToken?: string | null
resetTokenExpiry?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
accounts?: AccountUncheckedCreateNestedManyWithoutUserInput
sessions?: SessionUncheckedCreateNestedManyWithoutUserInput
labels?: LabelUncheckedCreateNestedManyWithoutUserInput
receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput
sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput
}
export type UserCreateOrConnectWithoutNotesInput = {
where: UserWhereUniqueInput
create: XOR<UserCreateWithoutNotesInput, UserUncheckedCreateWithoutNotesInput>
}
export type NoteShareCreateWithoutNoteInput = {
id?: string
status?: string
permission?: string
notifiedAt?: Date | string | null
respondedAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
user: UserCreateNestedOneWithoutReceivedSharesInput
sharer: UserCreateNestedOneWithoutSentSharesInput
}
export type NoteShareUncheckedCreateWithoutNoteInput = {
id?: string
userId: string
sharedBy: string
status?: string
permission?: string
notifiedAt?: Date | string | null
respondedAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type NoteShareCreateOrConnectWithoutNoteInput = {
where: NoteShareWhereUniqueInput
create: XOR<NoteShareCreateWithoutNoteInput, NoteShareUncheckedCreateWithoutNoteInput>
}
export type NoteShareCreateManyNoteInputEnvelope = {
data: NoteShareCreateManyNoteInput | NoteShareCreateManyNoteInput[]
}
export type UserUpsertWithoutNotesInput = {
update: XOR<UserUpdateWithoutNotesInput, UserUncheckedUpdateWithoutNotesInput>
create: XOR<UserCreateWithoutNotesInput, UserUncheckedCreateWithoutNotesInput>
where?: UserWhereInput
}
export type UserUpdateToOneWithWhereWithoutNotesInput = {
where?: UserWhereInput
data: XOR<UserUpdateWithoutNotesInput, UserUncheckedUpdateWithoutNotesInput>
}
export type UserUpdateWithoutNotesInput = {
id?: StringFieldUpdateOperationsInput | string
name?: NullableStringFieldUpdateOperationsInput | string | null
email?: StringFieldUpdateOperationsInput | string
emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
password?: NullableStringFieldUpdateOperationsInput | string | null
role?: StringFieldUpdateOperationsInput | string
image?: NullableStringFieldUpdateOperationsInput | string | null
theme?: StringFieldUpdateOperationsInput | string
resetToken?: NullableStringFieldUpdateOperationsInput | string | null
resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
accounts?: AccountUpdateManyWithoutUserNestedInput
sessions?: SessionUpdateManyWithoutUserNestedInput
labels?: LabelUpdateManyWithoutUserNestedInput
receivedShares?: NoteShareUpdateManyWithoutUserNestedInput
sentShares?: NoteShareUpdateManyWithoutSharerNestedInput
}
export type UserUncheckedUpdateWithoutNotesInput = {
id?: StringFieldUpdateOperationsInput | string
name?: NullableStringFieldUpdateOperationsInput | string | null
email?: StringFieldUpdateOperationsInput | string
emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
password?: NullableStringFieldUpdateOperationsInput | string | null
role?: StringFieldUpdateOperationsInput | string
image?: NullableStringFieldUpdateOperationsInput | string | null
theme?: StringFieldUpdateOperationsInput | string
resetToken?: NullableStringFieldUpdateOperationsInput | string | null
resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput
sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput
labels?: LabelUncheckedUpdateManyWithoutUserNestedInput
receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput
sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput
}
export type NoteShareUpsertWithWhereUniqueWithoutNoteInput = {
where: NoteShareWhereUniqueInput
update: XOR<NoteShareUpdateWithoutNoteInput, NoteShareUncheckedUpdateWithoutNoteInput>
create: XOR<NoteShareCreateWithoutNoteInput, NoteShareUncheckedCreateWithoutNoteInput>
}
export type NoteShareUpdateWithWhereUniqueWithoutNoteInput = {
where: NoteShareWhereUniqueInput
data: XOR<NoteShareUpdateWithoutNoteInput, NoteShareUncheckedUpdateWithoutNoteInput>
}
export type NoteShareUpdateManyWithWhereWithoutNoteInput = {
where: NoteShareScalarWhereInput
data: XOR<NoteShareUpdateManyMutationInput, NoteShareUncheckedUpdateManyWithoutNoteInput>
}
export type NoteCreateWithoutSharesInput = {
id?: string
title?: string | null
content: string
color?: string
isPinned?: boolean
isArchived?: boolean
type?: string
checkItems?: string | null
labels?: string | null
images?: string | null
links?: string | null
reminder?: Date | string | null
isReminderDone?: boolean
reminderRecurrence?: string | null
reminderLocation?: string | null
isMarkdown?: boolean
size?: string
embedding?: string | null
sharedWith?: string | null
order?: number
createdAt?: Date | string
updatedAt?: Date | string
user?: UserCreateNestedOneWithoutNotesInput
}
export type NoteUncheckedCreateWithoutSharesInput = {
id?: string
title?: string | null
content: string
color?: string
isPinned?: boolean
isArchived?: boolean
type?: string
checkItems?: string | null
labels?: string | null
images?: string | null
links?: string | null
reminder?: Date | string | null
isReminderDone?: boolean
reminderRecurrence?: string | null
reminderLocation?: string | null
isMarkdown?: boolean
size?: string
embedding?: string | null
sharedWith?: string | null
userId?: string | null
order?: number
createdAt?: Date | string
updatedAt?: Date | string
}
export type NoteCreateOrConnectWithoutSharesInput = {
where: NoteWhereUniqueInput
create: XOR<NoteCreateWithoutSharesInput, NoteUncheckedCreateWithoutSharesInput>
}
export type UserCreateWithoutReceivedSharesInput = {
id?: string
name?: string | null
email: string
emailVerified?: Date | string | null
password?: string | null
role?: string
image?: string | null
theme?: string
resetToken?: string | null
resetTokenExpiry?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
accounts?: AccountCreateNestedManyWithoutUserInput
sessions?: SessionCreateNestedManyWithoutUserInput
notes?: NoteCreateNestedManyWithoutUserInput
labels?: LabelCreateNestedManyWithoutUserInput
sentShares?: NoteShareCreateNestedManyWithoutSharerInput
}
export type UserUncheckedCreateWithoutReceivedSharesInput = {
id?: string
name?: string | null
email: string
emailVerified?: Date | string | null
password?: string | null
role?: string
image?: string | null
theme?: string
resetToken?: string | null
resetTokenExpiry?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
accounts?: AccountUncheckedCreateNestedManyWithoutUserInput
sessions?: SessionUncheckedCreateNestedManyWithoutUserInput
notes?: NoteUncheckedCreateNestedManyWithoutUserInput
labels?: LabelUncheckedCreateNestedManyWithoutUserInput
sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput
}
export type UserCreateOrConnectWithoutReceivedSharesInput = {
where: UserWhereUniqueInput
create: XOR<UserCreateWithoutReceivedSharesInput, UserUncheckedCreateWithoutReceivedSharesInput>
}
export type UserCreateWithoutSentSharesInput = {
id?: string
name?: string | null
email: string
emailVerified?: Date | string | null
password?: string | null
role?: string
image?: string | null
theme?: string
resetToken?: string | null
resetTokenExpiry?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
accounts?: AccountCreateNestedManyWithoutUserInput
sessions?: SessionCreateNestedManyWithoutUserInput
notes?: NoteCreateNestedManyWithoutUserInput
labels?: LabelCreateNestedManyWithoutUserInput
receivedShares?: NoteShareCreateNestedManyWithoutUserInput
}
export type UserUncheckedCreateWithoutSentSharesInput = {
id?: string
name?: string | null
email: string
emailVerified?: Date | string | null
password?: string | null
role?: string
image?: string | null
theme?: string
resetToken?: string | null
resetTokenExpiry?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
accounts?: AccountUncheckedCreateNestedManyWithoutUserInput
sessions?: SessionUncheckedCreateNestedManyWithoutUserInput
notes?: NoteUncheckedCreateNestedManyWithoutUserInput
labels?: LabelUncheckedCreateNestedManyWithoutUserInput
receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput
}
export type UserCreateOrConnectWithoutSentSharesInput = {
where: UserWhereUniqueInput
create: XOR<UserCreateWithoutSentSharesInput, UserUncheckedCreateWithoutSentSharesInput>
}
export type NoteUpsertWithoutSharesInput = {
update: XOR<NoteUpdateWithoutSharesInput, NoteUncheckedUpdateWithoutSharesInput>
create: XOR<NoteCreateWithoutSharesInput, NoteUncheckedCreateWithoutSharesInput>
where?: NoteWhereInput
}
export type NoteUpdateToOneWithWhereWithoutSharesInput = {
where?: NoteWhereInput
data: XOR<NoteUpdateWithoutSharesInput, NoteUncheckedUpdateWithoutSharesInput>
}
export type NoteUpdateWithoutSharesInput = {
id?: StringFieldUpdateOperationsInput | string
title?: NullableStringFieldUpdateOperationsInput | string | null
content?: StringFieldUpdateOperationsInput | string
color?: StringFieldUpdateOperationsInput | string
isPinned?: BoolFieldUpdateOperationsInput | boolean
isArchived?: BoolFieldUpdateOperationsInput | boolean
type?: StringFieldUpdateOperationsInput | string
checkItems?: NullableStringFieldUpdateOperationsInput | string | null
labels?: NullableStringFieldUpdateOperationsInput | string | null
images?: NullableStringFieldUpdateOperationsInput | string | null
links?: NullableStringFieldUpdateOperationsInput | string | null
reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
isReminderDone?: BoolFieldUpdateOperationsInput | boolean
reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null
reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null
isMarkdown?: BoolFieldUpdateOperationsInput | boolean
size?: StringFieldUpdateOperationsInput | string
embedding?: NullableStringFieldUpdateOperationsInput | string | null
sharedWith?: NullableStringFieldUpdateOperationsInput | string | null
order?: IntFieldUpdateOperationsInput | number
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
user?: UserUpdateOneWithoutNotesNestedInput
}
export type NoteUncheckedUpdateWithoutSharesInput = {
id?: StringFieldUpdateOperationsInput | string
title?: NullableStringFieldUpdateOperationsInput | string | null
content?: StringFieldUpdateOperationsInput | string
color?: StringFieldUpdateOperationsInput | string
isPinned?: BoolFieldUpdateOperationsInput | boolean
isArchived?: BoolFieldUpdateOperationsInput | boolean
type?: StringFieldUpdateOperationsInput | string
checkItems?: NullableStringFieldUpdateOperationsInput | string | null
labels?: NullableStringFieldUpdateOperationsInput | string | null
images?: NullableStringFieldUpdateOperationsInput | string | null
links?: NullableStringFieldUpdateOperationsInput | string | null
reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
isReminderDone?: BoolFieldUpdateOperationsInput | boolean
reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null
reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null
isMarkdown?: BoolFieldUpdateOperationsInput | boolean
size?: StringFieldUpdateOperationsInput | string
embedding?: NullableStringFieldUpdateOperationsInput | string | null
sharedWith?: NullableStringFieldUpdateOperationsInput | string | null
userId?: NullableStringFieldUpdateOperationsInput | string | null
order?: IntFieldUpdateOperationsInput | number
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type UserUpsertWithoutReceivedSharesInput = {
update: XOR<UserUpdateWithoutReceivedSharesInput, UserUncheckedUpdateWithoutReceivedSharesInput>
create: XOR<UserCreateWithoutReceivedSharesInput, UserUncheckedCreateWithoutReceivedSharesInput>
where?: UserWhereInput
}
export type UserUpdateToOneWithWhereWithoutReceivedSharesInput = {
where?: UserWhereInput
data: XOR<UserUpdateWithoutReceivedSharesInput, UserUncheckedUpdateWithoutReceivedSharesInput>
}
export type UserUpdateWithoutReceivedSharesInput = {
id?: StringFieldUpdateOperationsInput | string
name?: NullableStringFieldUpdateOperationsInput | string | null
email?: StringFieldUpdateOperationsInput | string
emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
password?: NullableStringFieldUpdateOperationsInput | string | null
role?: StringFieldUpdateOperationsInput | string
image?: NullableStringFieldUpdateOperationsInput | string | null
theme?: StringFieldUpdateOperationsInput | string
resetToken?: NullableStringFieldUpdateOperationsInput | string | null
resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
accounts?: AccountUpdateManyWithoutUserNestedInput
sessions?: SessionUpdateManyWithoutUserNestedInput
notes?: NoteUpdateManyWithoutUserNestedInput
labels?: LabelUpdateManyWithoutUserNestedInput
sentShares?: NoteShareUpdateManyWithoutSharerNestedInput
}
export type UserUncheckedUpdateWithoutReceivedSharesInput = {
id?: StringFieldUpdateOperationsInput | string
name?: NullableStringFieldUpdateOperationsInput | string | null
email?: StringFieldUpdateOperationsInput | string
emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
password?: NullableStringFieldUpdateOperationsInput | string | null
role?: StringFieldUpdateOperationsInput | string
image?: NullableStringFieldUpdateOperationsInput | string | null
theme?: StringFieldUpdateOperationsInput | string
resetToken?: NullableStringFieldUpdateOperationsInput | string | null
resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput
sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput
notes?: NoteUncheckedUpdateManyWithoutUserNestedInput
labels?: LabelUncheckedUpdateManyWithoutUserNestedInput
sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput
}
export type UserUpsertWithoutSentSharesInput = {
update: XOR<UserUpdateWithoutSentSharesInput, UserUncheckedUpdateWithoutSentSharesInput>
create: XOR<UserCreateWithoutSentSharesInput, UserUncheckedCreateWithoutSentSharesInput>
where?: UserWhereInput
}
export type UserUpdateToOneWithWhereWithoutSentSharesInput = {
where?: UserWhereInput
data: XOR<UserUpdateWithoutSentSharesInput, UserUncheckedUpdateWithoutSentSharesInput>
}
export type UserUpdateWithoutSentSharesInput = {
id?: StringFieldUpdateOperationsInput | string
name?: NullableStringFieldUpdateOperationsInput | string | null
email?: StringFieldUpdateOperationsInput | string
emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
password?: NullableStringFieldUpdateOperationsInput | string | null
role?: StringFieldUpdateOperationsInput | string
image?: NullableStringFieldUpdateOperationsInput | string | null
theme?: StringFieldUpdateOperationsInput | string
resetToken?: NullableStringFieldUpdateOperationsInput | string | null
resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
accounts?: AccountUpdateManyWithoutUserNestedInput
sessions?: SessionUpdateManyWithoutUserNestedInput
notes?: NoteUpdateManyWithoutUserNestedInput
labels?: LabelUpdateManyWithoutUserNestedInput
receivedShares?: NoteShareUpdateManyWithoutUserNestedInput
}
export type UserUncheckedUpdateWithoutSentSharesInput = {
id?: StringFieldUpdateOperationsInput | string
name?: NullableStringFieldUpdateOperationsInput | string | null
email?: StringFieldUpdateOperationsInput | string
emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
password?: NullableStringFieldUpdateOperationsInput | string | null
role?: StringFieldUpdateOperationsInput | string
image?: NullableStringFieldUpdateOperationsInput | string | null
theme?: StringFieldUpdateOperationsInput | string
resetToken?: NullableStringFieldUpdateOperationsInput | string | null
resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput
sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput
notes?: NoteUncheckedUpdateManyWithoutUserNestedInput
labels?: LabelUncheckedUpdateManyWithoutUserNestedInput
receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput
}
export type AccountCreateManyUserInput = {
type: string
provider: string
providerAccountId: string
refresh_token?: string | null
access_token?: string | null
expires_at?: number | null
token_type?: string | null
scope?: string | null
id_token?: string | null
session_state?: string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type SessionCreateManyUserInput = {
sessionToken: string
expires: Date | string
createdAt?: Date | string
updatedAt?: Date | string
}
export type NoteCreateManyUserInput = {
id?: string
title?: string | null
content: string
color?: string
isPinned?: boolean
isArchived?: boolean
type?: string
checkItems?: string | null
labels?: string | null
images?: string | null
links?: string | null
reminder?: Date | string | null
isReminderDone?: boolean
reminderRecurrence?: string | null
reminderLocation?: string | null
isMarkdown?: boolean
size?: string
embedding?: string | null
sharedWith?: string | null
order?: number
createdAt?: Date | string
updatedAt?: Date | string
}
export type LabelCreateManyUserInput = {
id?: string
name: string
color?: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type NoteShareCreateManyUserInput = {
id?: string
noteId: string
sharedBy: string
status?: string
permission?: string
notifiedAt?: Date | string | null
respondedAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type NoteShareCreateManySharerInput = {
id?: string
noteId: string
userId: string
status?: string
permission?: string
notifiedAt?: Date | string | null
respondedAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type AccountUpdateWithoutUserInput = {
type?: StringFieldUpdateOperationsInput | string
provider?: StringFieldUpdateOperationsInput | string
providerAccountId?: StringFieldUpdateOperationsInput | string
refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
access_token?: NullableStringFieldUpdateOperationsInput | string | null
expires_at?: NullableIntFieldUpdateOperationsInput | number | null
token_type?: NullableStringFieldUpdateOperationsInput | string | null
scope?: NullableStringFieldUpdateOperationsInput | string | null
id_token?: NullableStringFieldUpdateOperationsInput | string | null
session_state?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type AccountUncheckedUpdateWithoutUserInput = {
type?: StringFieldUpdateOperationsInput | string
provider?: StringFieldUpdateOperationsInput | string
providerAccountId?: StringFieldUpdateOperationsInput | string
refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
access_token?: NullableStringFieldUpdateOperationsInput | string | null
expires_at?: NullableIntFieldUpdateOperationsInput | number | null
token_type?: NullableStringFieldUpdateOperationsInput | string | null
scope?: NullableStringFieldUpdateOperationsInput | string | null
id_token?: NullableStringFieldUpdateOperationsInput | string | null
session_state?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type AccountUncheckedUpdateManyWithoutUserInput = {
type?: StringFieldUpdateOperationsInput | string
provider?: StringFieldUpdateOperationsInput | string
providerAccountId?: StringFieldUpdateOperationsInput | string
refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
access_token?: NullableStringFieldUpdateOperationsInput | string | null
expires_at?: NullableIntFieldUpdateOperationsInput | number | null
token_type?: NullableStringFieldUpdateOperationsInput | string | null
scope?: NullableStringFieldUpdateOperationsInput | string | null
id_token?: NullableStringFieldUpdateOperationsInput | string | null
session_state?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type SessionUpdateWithoutUserInput = {
sessionToken?: StringFieldUpdateOperationsInput | string
expires?: DateTimeFieldUpdateOperationsInput | Date | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type SessionUncheckedUpdateWithoutUserInput = {
sessionToken?: StringFieldUpdateOperationsInput | string
expires?: DateTimeFieldUpdateOperationsInput | Date | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type SessionUncheckedUpdateManyWithoutUserInput = {
sessionToken?: StringFieldUpdateOperationsInput | string
expires?: DateTimeFieldUpdateOperationsInput | Date | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type NoteUpdateWithoutUserInput = {
id?: StringFieldUpdateOperationsInput | string
title?: NullableStringFieldUpdateOperationsInput | string | null
content?: StringFieldUpdateOperationsInput | string
color?: StringFieldUpdateOperationsInput | string
isPinned?: BoolFieldUpdateOperationsInput | boolean
isArchived?: BoolFieldUpdateOperationsInput | boolean
type?: StringFieldUpdateOperationsInput | string
checkItems?: NullableStringFieldUpdateOperationsInput | string | null
labels?: NullableStringFieldUpdateOperationsInput | string | null
images?: NullableStringFieldUpdateOperationsInput | string | null
links?: NullableStringFieldUpdateOperationsInput | string | null
reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
isReminderDone?: BoolFieldUpdateOperationsInput | boolean
reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null
reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null
isMarkdown?: BoolFieldUpdateOperationsInput | boolean
size?: StringFieldUpdateOperationsInput | string
embedding?: NullableStringFieldUpdateOperationsInput | string | null
sharedWith?: NullableStringFieldUpdateOperationsInput | string | null
order?: IntFieldUpdateOperationsInput | number
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
shares?: NoteShareUpdateManyWithoutNoteNestedInput
}
export type NoteUncheckedUpdateWithoutUserInput = {
id?: StringFieldUpdateOperationsInput | string
title?: NullableStringFieldUpdateOperationsInput | string | null
content?: StringFieldUpdateOperationsInput | string
color?: StringFieldUpdateOperationsInput | string
isPinned?: BoolFieldUpdateOperationsInput | boolean
isArchived?: BoolFieldUpdateOperationsInput | boolean
type?: StringFieldUpdateOperationsInput | string
checkItems?: NullableStringFieldUpdateOperationsInput | string | null
labels?: NullableStringFieldUpdateOperationsInput | string | null
images?: NullableStringFieldUpdateOperationsInput | string | null
links?: NullableStringFieldUpdateOperationsInput | string | null
reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
isReminderDone?: BoolFieldUpdateOperationsInput | boolean
reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null
reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null
isMarkdown?: BoolFieldUpdateOperationsInput | boolean
size?: StringFieldUpdateOperationsInput | string
embedding?: NullableStringFieldUpdateOperationsInput | string | null
sharedWith?: NullableStringFieldUpdateOperationsInput | string | null
order?: IntFieldUpdateOperationsInput | number
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
shares?: NoteShareUncheckedUpdateManyWithoutNoteNestedInput
}
export type NoteUncheckedUpdateManyWithoutUserInput = {
id?: StringFieldUpdateOperationsInput | string
title?: NullableStringFieldUpdateOperationsInput | string | null
content?: StringFieldUpdateOperationsInput | string
color?: StringFieldUpdateOperationsInput | string
isPinned?: BoolFieldUpdateOperationsInput | boolean
isArchived?: BoolFieldUpdateOperationsInput | boolean
type?: StringFieldUpdateOperationsInput | string
checkItems?: NullableStringFieldUpdateOperationsInput | string | null
labels?: NullableStringFieldUpdateOperationsInput | string | null
images?: NullableStringFieldUpdateOperationsInput | string | null
links?: NullableStringFieldUpdateOperationsInput | string | null
reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
isReminderDone?: BoolFieldUpdateOperationsInput | boolean
reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null
reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null
isMarkdown?: BoolFieldUpdateOperationsInput | boolean
size?: StringFieldUpdateOperationsInput | string
embedding?: NullableStringFieldUpdateOperationsInput | string | null
sharedWith?: NullableStringFieldUpdateOperationsInput | string | null
order?: IntFieldUpdateOperationsInput | number
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type LabelUpdateWithoutUserInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
color?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type LabelUncheckedUpdateWithoutUserInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
color?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type LabelUncheckedUpdateManyWithoutUserInput = {
id?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
color?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type NoteShareUpdateWithoutUserInput = {
id?: StringFieldUpdateOperationsInput | string
status?: StringFieldUpdateOperationsInput | string
permission?: StringFieldUpdateOperationsInput | string
notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
note?: NoteUpdateOneRequiredWithoutSharesNestedInput
sharer?: UserUpdateOneRequiredWithoutSentSharesNestedInput
}
export type NoteShareUncheckedUpdateWithoutUserInput = {
id?: StringFieldUpdateOperationsInput | string
noteId?: StringFieldUpdateOperationsInput | string
sharedBy?: StringFieldUpdateOperationsInput | string
status?: StringFieldUpdateOperationsInput | string
permission?: StringFieldUpdateOperationsInput | string
notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type NoteShareUncheckedUpdateManyWithoutUserInput = {
id?: StringFieldUpdateOperationsInput | string
noteId?: StringFieldUpdateOperationsInput | string
sharedBy?: StringFieldUpdateOperationsInput | string
status?: StringFieldUpdateOperationsInput | string
permission?: StringFieldUpdateOperationsInput | string
notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type NoteShareUpdateWithoutSharerInput = {
id?: StringFieldUpdateOperationsInput | string
status?: StringFieldUpdateOperationsInput | string
permission?: StringFieldUpdateOperationsInput | string
notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
note?: NoteUpdateOneRequiredWithoutSharesNestedInput
user?: UserUpdateOneRequiredWithoutReceivedSharesNestedInput
}
export type NoteShareUncheckedUpdateWithoutSharerInput = {
id?: StringFieldUpdateOperationsInput | string
noteId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
status?: StringFieldUpdateOperationsInput | string
permission?: StringFieldUpdateOperationsInput | string
notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type NoteShareUncheckedUpdateManyWithoutSharerInput = {
id?: StringFieldUpdateOperationsInput | string
noteId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
status?: StringFieldUpdateOperationsInput | string
permission?: StringFieldUpdateOperationsInput | string
notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type NoteShareCreateManyNoteInput = {
id?: string
userId: string
sharedBy: string
status?: string
permission?: string
notifiedAt?: Date | string | null
respondedAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type NoteShareUpdateWithoutNoteInput = {
id?: StringFieldUpdateOperationsInput | string
status?: StringFieldUpdateOperationsInput | string
permission?: StringFieldUpdateOperationsInput | string
notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
user?: UserUpdateOneRequiredWithoutReceivedSharesNestedInput
sharer?: UserUpdateOneRequiredWithoutSentSharesNestedInput
}
export type NoteShareUncheckedUpdateWithoutNoteInput = {
id?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
sharedBy?: StringFieldUpdateOperationsInput | string
status?: StringFieldUpdateOperationsInput | string
permission?: StringFieldUpdateOperationsInput | string
notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type NoteShareUncheckedUpdateManyWithoutNoteInput = {
id?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
sharedBy?: StringFieldUpdateOperationsInput | string
status?: StringFieldUpdateOperationsInput | string
permission?: StringFieldUpdateOperationsInput | string
notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
/**
* Aliases for legacy arg types
*/
/**
* @deprecated Use UserCountOutputTypeDefaultArgs instead
*/
export type UserCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = UserCountOutputTypeDefaultArgs<ExtArgs>
/**
* @deprecated Use NoteCountOutputTypeDefaultArgs instead
*/
export type NoteCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = NoteCountOutputTypeDefaultArgs<ExtArgs>
/**
* @deprecated Use UserDefaultArgs instead
*/
export type UserArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = UserDefaultArgs<ExtArgs>
/**
* @deprecated Use AccountDefaultArgs instead
*/
export type AccountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = AccountDefaultArgs<ExtArgs>
/**
* @deprecated Use SessionDefaultArgs instead
*/
export type SessionArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = SessionDefaultArgs<ExtArgs>
/**
* @deprecated Use VerificationTokenDefaultArgs instead
*/
export type VerificationTokenArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = VerificationTokenDefaultArgs<ExtArgs>
/**
* @deprecated Use LabelDefaultArgs instead
*/
export type LabelArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = LabelDefaultArgs<ExtArgs>
/**
* @deprecated Use NoteDefaultArgs instead
*/
export type NoteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = NoteDefaultArgs<ExtArgs>
/**
* @deprecated Use NoteShareDefaultArgs instead
*/
export type NoteShareArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = NoteShareDefaultArgs<ExtArgs>
/**
* @deprecated Use SystemConfigDefaultArgs instead
*/
export type SystemConfigArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = SystemConfigDefaultArgs<ExtArgs>
/**
* Batch Payload for updateMany & deleteMany & createMany
*/
export type BatchPayload = {
count: number
}
/**
* DMMF
*/
export const dmmf: runtime.BaseDMMF
}