/** * Client **/ import * as runtime from '@prisma/client/runtime/library.js'; import $Types = runtime.Types // general types import $Public = runtime.Types.Public import $Utils = runtime.Types.Utils import $Extensions = runtime.Types.Extensions import $Result = runtime.Types.Result export type PrismaPromise = $Public.PrismaPromise /** * Model Article * */ export type Article = $Result.DefaultSelection /** * Model Translation * */ export type Translation = $Result.DefaultSelection /** * ## Prisma Client ʲˢ * * Type-safe database client for TypeScript & Node.js * @example * ``` * const prisma = new PrismaClient() * // Fetch zero or more Articles * const articles = await prisma.article.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.GetEvents : never : never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs > { [K: symbol]: { types: Prisma.TypeMap['other'] } /** * ## Prisma Client ʲˢ * * Type-safe database client for TypeScript & Node.js * @example * ``` * const prisma = new PrismaClient() * // Fetch zero or more Articles * const articles = await prisma.article.findMany() * ``` * * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client). */ constructor(optionsArg ?: Prisma.Subset); $on(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient; /** * Connect with the database */ $connect(): $Utils.JsPromise; /** * Disconnect from the database */ $disconnect(): $Utils.JsPromise; /** * 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(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise; /** * 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(query: string, ...values: any[]): Prisma.PrismaPromise; /** * 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(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise; /** * 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(query: string, ...values: any[]): Prisma.PrismaPromise; /** * 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

[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise> $transaction(fn: (prisma: Omit) => $Utils.JsPromise, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise $extends: $Extensions.ExtendsHook<"extends", Prisma.TypeMapCb, ExtArgs, $Utils.Call, { extArgs: ExtArgs }>> /** * `prisma.article`: Exposes CRUD operations for the **Article** model. * Example usage: * ```ts * // Fetch zero or more Articles * const articles = await prisma.article.findMany() * ``` */ get article(): Prisma.ArticleDelegate; /** * `prisma.translation`: Exposes CRUD operations for the **Translation** model. * Example usage: * ```ts * // Fetch zero or more Translations * const translations = await prisma.translation.findMany() * ``` */ get translation(): Prisma.TranslationDelegate; } export namespace Prisma { export import DMMF = runtime.DMMF export type PrismaPromise = $Public.PrismaPromise /** * Validator */ export import validator = runtime.Public.validator /** * Prisma Errors */ export import PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError export import PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError export import PrismaClientRustPanicError = runtime.PrismaClientRustPanicError export import PrismaClientInitializationError = runtime.PrismaClientInitializationError export import PrismaClientValidationError = runtime.PrismaClientValidationError /** * Re-export of sql-template-tag */ export import sql = runtime.sqltag export import empty = runtime.empty export import join = runtime.join export import raw = runtime.raw export import Sql = runtime.Sql /** * Decimal.js */ export import Decimal = runtime.Decimal export type DecimalJsLike = runtime.DecimalJsLike /** * Metrics */ export type Metrics = runtime.Metrics export type Metric = runtime.Metric export type MetricHistogram = runtime.MetricHistogram export type MetricHistogramBucket = runtime.MetricHistogramBucket /** * Extensions */ export import Extension = $Extensions.UserArgs export import getExtensionContext = runtime.Extensions.getExtensionContext export import Args = $Public.Args export import Payload = $Public.Payload export import Result = $Public.Result export import Exact = $Public.Exact /** * Prisma Client JS version: 6.5.0 * Query Engine version: 173f8d54f8d52e692c7e27e72a88314ec7aeff60 */ 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 ? U : T; /** * Get the return type of a function which returns a Promise. */ export type PromiseReturnType $Utils.JsPromise> = PromiseType> /** * From T, pick a set of properties whose keys are in the union K */ type Prisma__Pick = { [P in K]: T[P]; }; export type Enumerable = T | Array; export type RequiredKeys = { [K in keyof T]-?: {} extends Prisma__Pick ? never : K }[keyof T] export type TruthyKeys = keyof { [K in keyof T as T[K] extends false | undefined | null ? never : K]: K } export type TrueKeys = TruthyKeys>> /** * Subset * @desc From `T` pick properties that exist in `U`. Simple version of Intersection */ export type Subset = { [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 = { [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 = { [key in keyof T]: key extends keyof U ? T[key] : never } & K type Without = { [P in Exclude]?: 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 extends object ? U extends object ? (Without & U) | (Without & T) : U : T /** * Is T a Record? */ type IsObject = T extends Array ? 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 Array ? U : T /** * From ts-toolbelt */ type __Either = Omit & { // Merge all but K [P in K]: Prisma__Pick // With K possibilities }[K] type EitherStrict = Strict<__Either> type EitherLoose = ComputeRaw<__Either> type _Either< O extends object, K extends Key, strict extends Boolean > = { 1: EitherStrict 0: EitherLoose }[strict] type Either< O extends object, K extends Key, strict extends Boolean = 1 > = O extends unknown ? _Either : never export type Union = any type PatchUndefined = { [K in keyof O]: O[K] extends undefined ? At : O[K] } & {} /** Helper Types for "Merge" **/ export type IntersectOf = ( U extends unknown ? (k: U) => void : never ) extends (k: infer I) => void ? I : never export type Overwrite = { [K in keyof O]: K extends keyof O1 ? O1[K] : O[K]; } & {}; type _Merge = IntersectOf; }>>; type Key = string | number | symbol; type AtBasic = K extends keyof O ? O[K] : never; type AtStrict = O[K & keyof O]; type AtLoose = O extends unknown ? AtStrict : never; export type At = { 1: AtStrict; 0: AtLoose; }[strict]; export type ComputeRaw = A extends Function ? A : { [K in keyof A]: A[K]; } & {}; export type OptionalFlat = { [K in keyof O]?: O[K]; } & {}; type _Record = { [P in K]: T; }; // cause typescript not to expand types and preserve names type NoExpand = T extends unknown ? T : never; // this type assumes the passed object is entirely optional type AtLeast = NoExpand< O extends unknown ? | (K extends keyof O ? { [P in K]: O[P] } & O : O) | {[P in keyof O as P extends K ? P : never]-?: O[P]} & O : never>; type _Strict = U extends unknown ? U & OptionalFlat<_Record, keyof U>, never>> : never; export type Strict = ComputeRaw<_Strict>; /** End Helper Types for "Merge" **/ export type Merge = ComputeRaw<_Merge>>; /** A [[Boolean]] */ export type Boolean = True | False // /** // 1 // */ export type True = 1 /** 0 */ export type False = 0 export type Not = { 0: 1 1: 0 }[B] export type Extends = [A1] extends [never] ? 0 // anything `never` is false : A1 extends A2 ? 1 : 0 export type Has = Not< Extends, U1> > export type Or = { 0: { 0: 0 1: 1 } 1: { 0: 1 1: 1 } }[B1][B2] export type Keys = U extends unknown ? keyof U : never type Cast = A extends B ? A : B; export const type: unique symbol; /** * Used by group by */ export type GetScalarType = O extends object ? { [P in keyof T]: P extends keyof O ? O[P] : never } : never type FieldPaths< T, U = Omit > = IsObject extends True ? U : T type GetHavingFields = { [K in keyof T]: Or< Or, 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 extends object ? Merge> : never> : never : {} extends FieldPaths ? never : K }[keyof T] /** * Convert tuple to union */ type _TupleToUnion = T extends (infer E)[] ? E : never type TupleToUnion = _TupleToUnion type MaybeTupleToUnion = T extends any[] ? TupleToUnion : T /** * Like `Pick`, but additionally can also accept an array of keys */ type PickEnumerable | keyof T> = Prisma__Pick> /** * Exclude all keys with underscores */ type ExcludeUnderscoreKeys = T extends `_${string}` ? never : T export type FieldRef = runtime.FieldRef type FieldRefInputType = Model extends never ? never : FieldRef export const ModelName: { Article: 'Article', Translation: 'Translation' }; export type ModelName = (typeof ModelName)[keyof typeof ModelName] export type Datasources = { db?: Datasource } interface TypeMapCb extends $Utils.Fn<{extArgs: $Extensions.InternalArgs }, $Utils.Record> { returns: Prisma.TypeMap } export type TypeMap = { globalOmitOptions: { omit: GlobalOmitOptions } meta: { modelProps: "article" | "translation" txIsolationLevel: Prisma.TransactionIsolationLevel } model: { Article: { payload: Prisma.$ArticlePayload fields: Prisma.ArticleFieldRefs operations: { findUnique: { args: Prisma.ArticleFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.ArticleFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.ArticleFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.ArticleFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.ArticleFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.ArticleCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.ArticleCreateManyArgs result: BatchPayload } delete: { args: Prisma.ArticleDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.ArticleUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.ArticleDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.ArticleUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.ArticleUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.ArticleAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.ArticleGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.ArticleCountArgs result: $Utils.Optional | number } } } Translation: { payload: Prisma.$TranslationPayload fields: Prisma.TranslationFieldRefs operations: { findUnique: { args: Prisma.TranslationFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.TranslationFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.TranslationFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.TranslationFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.TranslationFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.TranslationCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.TranslationCreateManyArgs result: BatchPayload } delete: { args: Prisma.TranslationDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.TranslationUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.TranslationDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.TranslationUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.TranslationUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.TranslationAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.TranslationGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.TranslationCountArgs result: $Utils.Optional | number } } } } } & { other: { payload: any operations: { $executeRaw: { args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]], result: any } $executeRawUnsafe: { args: [query: string, ...values: any[]], result: any } $queryRaw: { args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]], result: any } $queryRawUnsafe: { args: [query: string, ...values: any[]], result: any } } } } export const defineExtension: $Extensions.ExtendsHook<"define", Prisma.TypeMapCb, $Extensions.DefaultArgs> export type DefaultPrismaClient = PrismaClient export type ErrorFormat = 'pretty' | 'colorless' | 'minimal' export interface PrismaClientOptions { /** * Overwrites the datasource url from your schema.prisma file */ datasources?: Datasources /** * Overwrites the datasource url from your schema.prisma file */ datasourceUrl?: string /** * @default "colorless" */ errorFormat?: ErrorFormat /** * @example * ``` * // Defaults to stdout * log: ['query', 'info', 'warn', 'error'] * * // Emit as events * log: [ * { emit: 'stdout', level: 'query' }, * { emit: 'stdout', level: 'info' }, * { emit: 'stdout', level: 'warn' } * { emit: 'stdout', level: 'error' } * ] * ``` * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option). */ log?: (LogLevel | LogDefinition)[] /** * The default values for transactionOptions * maxWait ?= 2000 * timeout ?= 5000 */ transactionOptions?: { maxWait?: number timeout?: number isolationLevel?: Prisma.TransactionIsolationLevel } /** * Global configuration for omitting model fields by default. * * @example * ``` * const prisma = new PrismaClient({ * omit: { * user: { * password: true * } * } * }) * ``` */ omit?: Prisma.GlobalOmitConfig } export type GlobalOmitConfig = { article?: ArticleOmit translation?: TranslationOmit } /* Types for Logging */ export type LogLevel = 'info' | 'query' | 'warn' | 'error' export type LogDefinition = { level: LogLevel emit: 'stdout' | 'event' } export type GetLogType = T extends LogDefinition ? T['emit'] extends 'event' ? T['level'] : never : never export type GetEvents = T extends Array ? GetLogType | GetLogType | GetLogType | GetLogType : never export type QueryEvent = { timestamp: Date query: string params: string duration: number target: string } export type LogEvent = { timestamp: Date message: string target: string } /* End Types for Logging */ export type PrismaAction = | 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'findFirst' | 'findFirstOrThrow' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'updateManyAndReturn' | 'upsert' | 'delete' | 'deleteMany' | 'executeRaw' | 'queryRaw' | 'aggregate' | 'count' | 'runCommandRaw' | 'findRaw' | 'groupBy' /** * These options are being passed into the middleware as "params" */ export type MiddlewareParams = { model?: ModelName action: PrismaAction args: any dataPath: string[] runInTransaction: boolean } /** * The `T` type makes sure, that the `return proceed` is not forgotten in the middleware implementation */ export type Middleware = ( params: MiddlewareParams, next: (params: MiddlewareParams) => $Utils.JsPromise, ) => $Utils.JsPromise // tested in getLogLevel.test.ts export function getLogLevel(log: Array): LogLevel | undefined; /** * `PrismaClient` proxy available in interactive transactions. */ export type TransactionClient = Omit export type Datasource = { url?: string } /** * Count Types */ /** * Count Type ArticleCountOutputType */ export type ArticleCountOutputType = { translations: number } export type ArticleCountOutputTypeSelect = { translations?: boolean | ArticleCountOutputTypeCountTranslationsArgs } // Custom InputTypes /** * ArticleCountOutputType without action */ export type ArticleCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the ArticleCountOutputType */ select?: ArticleCountOutputTypeSelect | null } /** * ArticleCountOutputType without action */ export type ArticleCountOutputTypeCountTranslationsArgs = { where?: TranslationWhereInput } /** * Models */ /** * Model Article */ export type AggregateArticle = { _count: ArticleCountAggregateOutputType | null _avg: ArticleAvgAggregateOutputType | null _sum: ArticleSumAggregateOutputType | null _min: ArticleMinAggregateOutputType | null _max: ArticleMaxAggregateOutputType | null } export type ArticleAvgAggregateOutputType = { id: number | null } export type ArticleSumAggregateOutputType = { id: number | null } export type ArticleMinAggregateOutputType = { id: number | null title: string | null content: string | null } export type ArticleMaxAggregateOutputType = { id: number | null title: string | null content: string | null } export type ArticleCountAggregateOutputType = { id: number title: number content: number _all: number } export type ArticleAvgAggregateInputType = { id?: true } export type ArticleSumAggregateInputType = { id?: true } export type ArticleMinAggregateInputType = { id?: true title?: true content?: true } export type ArticleMaxAggregateInputType = { id?: true title?: true content?: true } export type ArticleCountAggregateInputType = { id?: true title?: true content?: true _all?: true } export type ArticleAggregateArgs = { /** * Filter which Article to aggregate. */ where?: ArticleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Articles to fetch. */ orderBy?: ArticleOrderByWithRelationInput | ArticleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: ArticleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Articles from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Articles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Articles **/ _count?: true | ArticleCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: ArticleAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: ArticleSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ArticleMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ArticleMaxAggregateInputType } export type GetArticleAggregateType = { [P in keyof T & keyof AggregateArticle]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type ArticleGroupByArgs = { where?: ArticleWhereInput orderBy?: ArticleOrderByWithAggregationInput | ArticleOrderByWithAggregationInput[] by: ArticleScalarFieldEnum[] | ArticleScalarFieldEnum having?: ArticleScalarWhereWithAggregatesInput take?: number skip?: number _count?: ArticleCountAggregateInputType | true _avg?: ArticleAvgAggregateInputType _sum?: ArticleSumAggregateInputType _min?: ArticleMinAggregateInputType _max?: ArticleMaxAggregateInputType } export type ArticleGroupByOutputType = { id: number title: string content: string _count: ArticleCountAggregateOutputType | null _avg: ArticleAvgAggregateOutputType | null _sum: ArticleSumAggregateOutputType | null _min: ArticleMinAggregateOutputType | null _max: ArticleMaxAggregateOutputType | null } type GetArticleGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof ArticleGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type ArticleSelect = $Extensions.GetSelect<{ id?: boolean title?: boolean content?: boolean translations?: boolean | Article$translationsArgs _count?: boolean | ArticleCountOutputTypeDefaultArgs }, ExtArgs["result"]["article"]> export type ArticleSelectScalar = { id?: boolean title?: boolean content?: boolean } export type ArticleOmit = $Extensions.GetOmit<"id" | "title" | "content", ExtArgs["result"]["article"]> export type ArticleInclude = { translations?: boolean | Article$translationsArgs _count?: boolean | ArticleCountOutputTypeDefaultArgs } export type $ArticlePayload = { name: "Article" objects: { translations: Prisma.$TranslationPayload[] } scalars: $Extensions.GetPayloadResult<{ id: number title: string content: string }, ExtArgs["result"]["article"]> composites: {} } type ArticleGetPayload = $Result.GetResult type ArticleCountArgs = Omit & { select?: ArticleCountAggregateInputType | true } export interface ArticleDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Article'], meta: { name: 'Article' } } /** * Find zero or one Article that matches the filter. * @param {ArticleFindUniqueArgs} args - Arguments to find a Article * @example * // Get one Article * const article = await prisma.article.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__ArticleClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Article that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ArticleFindUniqueOrThrowArgs} args - Arguments to find a Article * @example * // Get one Article * const article = await prisma.article.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__ArticleClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Article 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 {ArticleFindFirstArgs} args - Arguments to find a Article * @example * // Get one Article * const article = await prisma.article.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__ArticleClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Article 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 {ArticleFindFirstOrThrowArgs} args - Arguments to find a Article * @example * // Get one Article * const article = await prisma.article.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__ArticleClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Articles 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 {ArticleFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Articles * const articles = await prisma.article.findMany() * * // Get first 10 Articles * const articles = await prisma.article.findMany({ take: 10 }) * * // Only select the `id` * const articleWithIdOnly = await prisma.article.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Article. * @param {ArticleCreateArgs} args - Arguments to create a Article. * @example * // Create one Article * const Article = await prisma.article.create({ * data: { * // ... data to create a Article * } * }) * */ create(args: SelectSubset>): Prisma__ArticleClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Articles. * @param {ArticleCreateManyArgs} args - Arguments to create many Articles. * @example * // Create many Articles * const article = await prisma.article.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a Article. * @param {ArticleDeleteArgs} args - Arguments to delete one Article. * @example * // Delete one Article * const Article = await prisma.article.delete({ * where: { * // ... filter to delete one Article * } * }) * */ delete(args: SelectSubset>): Prisma__ArticleClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Article. * @param {ArticleUpdateArgs} args - Arguments to update one Article. * @example * // Update one Article * const article = await prisma.article.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__ArticleClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Articles. * @param {ArticleDeleteManyArgs} args - Arguments to filter Articles to delete. * @example * // Delete a few Articles * const { count } = await prisma.article.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Articles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ArticleUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Articles * const article = await prisma.article.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Article. * @param {ArticleUpsertArgs} args - Arguments to update or create a Article. * @example * // Update or create a Article * const article = await prisma.article.upsert({ * create: { * // ... data to create a Article * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Article we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__ArticleClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Articles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ArticleCountArgs} args - Arguments to filter Articles to count. * @example * // Count the number of Articles * const count = await prisma.article.count({ * where: { * // ... the filter for the Articles we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a Article. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ArticleAggregateArgs} 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(args: Subset): Prisma.PrismaPromise> /** * Group by Article. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ArticleGroupByArgs} 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 ArticleGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: ArticleGroupByArgs['orderBy'] } : { orderBy?: ArticleGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, 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 ? 'orderBy' extends Keys ? 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 ? 'orderBy' extends Keys ? 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 & InputErrors): {} extends InputErrors ? GetArticleGroupByPayload : Prisma.PrismaPromise /** * Fields of the Article model */ readonly fields: ArticleFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Article. * 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__ArticleClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" translations = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * 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 } /** * Fields of the Article model */ interface ArticleFieldRefs { readonly id: FieldRef<"Article", 'Int'> readonly title: FieldRef<"Article", 'String'> readonly content: FieldRef<"Article", 'String'> } // Custom InputTypes /** * Article findUnique */ export type ArticleFindUniqueArgs = { /** * Select specific fields to fetch from the Article */ select?: ArticleSelect | null /** * Omit specific fields from the Article */ omit?: ArticleOmit | null /** * Choose, which related nodes to fetch as well */ include?: ArticleInclude | null /** * Filter, which Article to fetch. */ where: ArticleWhereUniqueInput } /** * Article findUniqueOrThrow */ export type ArticleFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Article */ select?: ArticleSelect | null /** * Omit specific fields from the Article */ omit?: ArticleOmit | null /** * Choose, which related nodes to fetch as well */ include?: ArticleInclude | null /** * Filter, which Article to fetch. */ where: ArticleWhereUniqueInput } /** * Article findFirst */ export type ArticleFindFirstArgs = { /** * Select specific fields to fetch from the Article */ select?: ArticleSelect | null /** * Omit specific fields from the Article */ omit?: ArticleOmit | null /** * Choose, which related nodes to fetch as well */ include?: ArticleInclude | null /** * Filter, which Article to fetch. */ where?: ArticleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Articles to fetch. */ orderBy?: ArticleOrderByWithRelationInput | ArticleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Articles. */ cursor?: ArticleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Articles from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Articles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Articles. */ distinct?: ArticleScalarFieldEnum | ArticleScalarFieldEnum[] } /** * Article findFirstOrThrow */ export type ArticleFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Article */ select?: ArticleSelect | null /** * Omit specific fields from the Article */ omit?: ArticleOmit | null /** * Choose, which related nodes to fetch as well */ include?: ArticleInclude | null /** * Filter, which Article to fetch. */ where?: ArticleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Articles to fetch. */ orderBy?: ArticleOrderByWithRelationInput | ArticleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Articles. */ cursor?: ArticleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Articles from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Articles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Articles. */ distinct?: ArticleScalarFieldEnum | ArticleScalarFieldEnum[] } /** * Article findMany */ export type ArticleFindManyArgs = { /** * Select specific fields to fetch from the Article */ select?: ArticleSelect | null /** * Omit specific fields from the Article */ omit?: ArticleOmit | null /** * Choose, which related nodes to fetch as well */ include?: ArticleInclude | null /** * Filter, which Articles to fetch. */ where?: ArticleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Articles to fetch. */ orderBy?: ArticleOrderByWithRelationInput | ArticleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Articles. */ cursor?: ArticleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Articles from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Articles. */ skip?: number distinct?: ArticleScalarFieldEnum | ArticleScalarFieldEnum[] } /** * Article create */ export type ArticleCreateArgs = { /** * Select specific fields to fetch from the Article */ select?: ArticleSelect | null /** * Omit specific fields from the Article */ omit?: ArticleOmit | null /** * Choose, which related nodes to fetch as well */ include?: ArticleInclude | null /** * The data needed to create a Article. */ data: XOR } /** * Article createMany */ export type ArticleCreateManyArgs = { /** * The data used to create many Articles. */ data: ArticleCreateManyInput | ArticleCreateManyInput[] skipDuplicates?: boolean } /** * Article update */ export type ArticleUpdateArgs = { /** * Select specific fields to fetch from the Article */ select?: ArticleSelect | null /** * Omit specific fields from the Article */ omit?: ArticleOmit | null /** * Choose, which related nodes to fetch as well */ include?: ArticleInclude | null /** * The data needed to update a Article. */ data: XOR /** * Choose, which Article to update. */ where: ArticleWhereUniqueInput } /** * Article updateMany */ export type ArticleUpdateManyArgs = { /** * The data used to update Articles. */ data: XOR /** * Filter which Articles to update */ where?: ArticleWhereInput /** * Limit how many Articles to update. */ limit?: number } /** * Article upsert */ export type ArticleUpsertArgs = { /** * Select specific fields to fetch from the Article */ select?: ArticleSelect | null /** * Omit specific fields from the Article */ omit?: ArticleOmit | null /** * Choose, which related nodes to fetch as well */ include?: ArticleInclude | null /** * The filter to search for the Article to update in case it exists. */ where: ArticleWhereUniqueInput /** * In case the Article found by the `where` argument doesn't exist, create a new Article with this data. */ create: XOR /** * In case the Article was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Article delete */ export type ArticleDeleteArgs = { /** * Select specific fields to fetch from the Article */ select?: ArticleSelect | null /** * Omit specific fields from the Article */ omit?: ArticleOmit | null /** * Choose, which related nodes to fetch as well */ include?: ArticleInclude | null /** * Filter which Article to delete. */ where: ArticleWhereUniqueInput } /** * Article deleteMany */ export type ArticleDeleteManyArgs = { /** * Filter which Articles to delete */ where?: ArticleWhereInput /** * Limit how many Articles to delete. */ limit?: number } /** * Article.translations */ export type Article$translationsArgs = { /** * Select specific fields to fetch from the Translation */ select?: TranslationSelect | null /** * Omit specific fields from the Translation */ omit?: TranslationOmit | null /** * Choose, which related nodes to fetch as well */ include?: TranslationInclude | null where?: TranslationWhereInput orderBy?: TranslationOrderByWithRelationInput | TranslationOrderByWithRelationInput[] cursor?: TranslationWhereUniqueInput take?: number skip?: number distinct?: TranslationScalarFieldEnum | TranslationScalarFieldEnum[] } /** * Article without action */ export type ArticleDefaultArgs = { /** * Select specific fields to fetch from the Article */ select?: ArticleSelect | null /** * Omit specific fields from the Article */ omit?: ArticleOmit | null /** * Choose, which related nodes to fetch as well */ include?: ArticleInclude | null } /** * Model Translation */ export type AggregateTranslation = { _count: TranslationCountAggregateOutputType | null _avg: TranslationAvgAggregateOutputType | null _sum: TranslationSumAggregateOutputType | null _min: TranslationMinAggregateOutputType | null _max: TranslationMaxAggregateOutputType | null } export type TranslationAvgAggregateOutputType = { id: number | null articleId: number | null } export type TranslationSumAggregateOutputType = { id: number | null articleId: number | null } export type TranslationMinAggregateOutputType = { id: number | null language: string | null title: string | null content: string | null articleId: number | null } export type TranslationMaxAggregateOutputType = { id: number | null language: string | null title: string | null content: string | null articleId: number | null } export type TranslationCountAggregateOutputType = { id: number language: number title: number content: number articleId: number _all: number } export type TranslationAvgAggregateInputType = { id?: true articleId?: true } export type TranslationSumAggregateInputType = { id?: true articleId?: true } export type TranslationMinAggregateInputType = { id?: true language?: true title?: true content?: true articleId?: true } export type TranslationMaxAggregateInputType = { id?: true language?: true title?: true content?: true articleId?: true } export type TranslationCountAggregateInputType = { id?: true language?: true title?: true content?: true articleId?: true _all?: true } export type TranslationAggregateArgs = { /** * Filter which Translation to aggregate. */ where?: TranslationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Translations to fetch. */ orderBy?: TranslationOrderByWithRelationInput | TranslationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: TranslationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Translations from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Translations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Translations **/ _count?: true | TranslationCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: TranslationAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: TranslationSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: TranslationMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: TranslationMaxAggregateInputType } export type GetTranslationAggregateType = { [P in keyof T & keyof AggregateTranslation]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type TranslationGroupByArgs = { where?: TranslationWhereInput orderBy?: TranslationOrderByWithAggregationInput | TranslationOrderByWithAggregationInput[] by: TranslationScalarFieldEnum[] | TranslationScalarFieldEnum having?: TranslationScalarWhereWithAggregatesInput take?: number skip?: number _count?: TranslationCountAggregateInputType | true _avg?: TranslationAvgAggregateInputType _sum?: TranslationSumAggregateInputType _min?: TranslationMinAggregateInputType _max?: TranslationMaxAggregateInputType } export type TranslationGroupByOutputType = { id: number language: string title: string content: string articleId: number _count: TranslationCountAggregateOutputType | null _avg: TranslationAvgAggregateOutputType | null _sum: TranslationSumAggregateOutputType | null _min: TranslationMinAggregateOutputType | null _max: TranslationMaxAggregateOutputType | null } type GetTranslationGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof TranslationGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type TranslationSelect = $Extensions.GetSelect<{ id?: boolean language?: boolean title?: boolean content?: boolean articleId?: boolean article?: boolean | ArticleDefaultArgs }, ExtArgs["result"]["translation"]> export type TranslationSelectScalar = { id?: boolean language?: boolean title?: boolean content?: boolean articleId?: boolean } export type TranslationOmit = $Extensions.GetOmit<"id" | "language" | "title" | "content" | "articleId", ExtArgs["result"]["translation"]> export type TranslationInclude = { article?: boolean | ArticleDefaultArgs } export type $TranslationPayload = { name: "Translation" objects: { article: Prisma.$ArticlePayload } scalars: $Extensions.GetPayloadResult<{ id: number language: string title: string content: string articleId: number }, ExtArgs["result"]["translation"]> composites: {} } type TranslationGetPayload = $Result.GetResult type TranslationCountArgs = Omit & { select?: TranslationCountAggregateInputType | true } export interface TranslationDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Translation'], meta: { name: 'Translation' } } /** * Find zero or one Translation that matches the filter. * @param {TranslationFindUniqueArgs} args - Arguments to find a Translation * @example * // Get one Translation * const translation = await prisma.translation.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__TranslationClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Translation that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {TranslationFindUniqueOrThrowArgs} args - Arguments to find a Translation * @example * // Get one Translation * const translation = await prisma.translation.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__TranslationClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Translation 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 {TranslationFindFirstArgs} args - Arguments to find a Translation * @example * // Get one Translation * const translation = await prisma.translation.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__TranslationClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Translation 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 {TranslationFindFirstOrThrowArgs} args - Arguments to find a Translation * @example * // Get one Translation * const translation = await prisma.translation.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__TranslationClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Translations 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 {TranslationFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Translations * const translations = await prisma.translation.findMany() * * // Get first 10 Translations * const translations = await prisma.translation.findMany({ take: 10 }) * * // Only select the `id` * const translationWithIdOnly = await prisma.translation.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Translation. * @param {TranslationCreateArgs} args - Arguments to create a Translation. * @example * // Create one Translation * const Translation = await prisma.translation.create({ * data: { * // ... data to create a Translation * } * }) * */ create(args: SelectSubset>): Prisma__TranslationClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Translations. * @param {TranslationCreateManyArgs} args - Arguments to create many Translations. * @example * // Create many Translations * const translation = await prisma.translation.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Delete a Translation. * @param {TranslationDeleteArgs} args - Arguments to delete one Translation. * @example * // Delete one Translation * const Translation = await prisma.translation.delete({ * where: { * // ... filter to delete one Translation * } * }) * */ delete(args: SelectSubset>): Prisma__TranslationClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Translation. * @param {TranslationUpdateArgs} args - Arguments to update one Translation. * @example * // Update one Translation * const translation = await prisma.translation.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__TranslationClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Translations. * @param {TranslationDeleteManyArgs} args - Arguments to filter Translations to delete. * @example * // Delete a few Translations * const { count } = await prisma.translation.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Translations. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TranslationUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Translations * const translation = await prisma.translation.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Translation. * @param {TranslationUpsertArgs} args - Arguments to update or create a Translation. * @example * // Update or create a Translation * const translation = await prisma.translation.upsert({ * create: { * // ... data to create a Translation * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Translation we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__TranslationClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Translations. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TranslationCountArgs} args - Arguments to filter Translations to count. * @example * // Count the number of Translations * const count = await prisma.translation.count({ * where: { * // ... the filter for the Translations we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a Translation. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TranslationAggregateArgs} 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(args: Subset): Prisma.PrismaPromise> /** * Group by Translation. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TranslationGroupByArgs} 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 TranslationGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: TranslationGroupByArgs['orderBy'] } : { orderBy?: TranslationGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, 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 ? 'orderBy' extends Keys ? 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 ? 'orderBy' extends Keys ? 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 & InputErrors): {} extends InputErrors ? GetTranslationGroupByPayload : Prisma.PrismaPromise /** * Fields of the Translation model */ readonly fields: TranslationFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Translation. * 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__TranslationClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" article = {}>(args?: Subset>): Prisma__ArticleClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * 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 } /** * Fields of the Translation model */ interface TranslationFieldRefs { readonly id: FieldRef<"Translation", 'Int'> readonly language: FieldRef<"Translation", 'String'> readonly title: FieldRef<"Translation", 'String'> readonly content: FieldRef<"Translation", 'String'> readonly articleId: FieldRef<"Translation", 'Int'> } // Custom InputTypes /** * Translation findUnique */ export type TranslationFindUniqueArgs = { /** * Select specific fields to fetch from the Translation */ select?: TranslationSelect | null /** * Omit specific fields from the Translation */ omit?: TranslationOmit | null /** * Choose, which related nodes to fetch as well */ include?: TranslationInclude | null /** * Filter, which Translation to fetch. */ where: TranslationWhereUniqueInput } /** * Translation findUniqueOrThrow */ export type TranslationFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Translation */ select?: TranslationSelect | null /** * Omit specific fields from the Translation */ omit?: TranslationOmit | null /** * Choose, which related nodes to fetch as well */ include?: TranslationInclude | null /** * Filter, which Translation to fetch. */ where: TranslationWhereUniqueInput } /** * Translation findFirst */ export type TranslationFindFirstArgs = { /** * Select specific fields to fetch from the Translation */ select?: TranslationSelect | null /** * Omit specific fields from the Translation */ omit?: TranslationOmit | null /** * Choose, which related nodes to fetch as well */ include?: TranslationInclude | null /** * Filter, which Translation to fetch. */ where?: TranslationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Translations to fetch. */ orderBy?: TranslationOrderByWithRelationInput | TranslationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Translations. */ cursor?: TranslationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Translations from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Translations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Translations. */ distinct?: TranslationScalarFieldEnum | TranslationScalarFieldEnum[] } /** * Translation findFirstOrThrow */ export type TranslationFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Translation */ select?: TranslationSelect | null /** * Omit specific fields from the Translation */ omit?: TranslationOmit | null /** * Choose, which related nodes to fetch as well */ include?: TranslationInclude | null /** * Filter, which Translation to fetch. */ where?: TranslationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Translations to fetch. */ orderBy?: TranslationOrderByWithRelationInput | TranslationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Translations. */ cursor?: TranslationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Translations from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Translations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Translations. */ distinct?: TranslationScalarFieldEnum | TranslationScalarFieldEnum[] } /** * Translation findMany */ export type TranslationFindManyArgs = { /** * Select specific fields to fetch from the Translation */ select?: TranslationSelect | null /** * Omit specific fields from the Translation */ omit?: TranslationOmit | null /** * Choose, which related nodes to fetch as well */ include?: TranslationInclude | null /** * Filter, which Translations to fetch. */ where?: TranslationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Translations to fetch. */ orderBy?: TranslationOrderByWithRelationInput | TranslationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Translations. */ cursor?: TranslationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Translations from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Translations. */ skip?: number distinct?: TranslationScalarFieldEnum | TranslationScalarFieldEnum[] } /** * Translation create */ export type TranslationCreateArgs = { /** * Select specific fields to fetch from the Translation */ select?: TranslationSelect | null /** * Omit specific fields from the Translation */ omit?: TranslationOmit | null /** * Choose, which related nodes to fetch as well */ include?: TranslationInclude | null /** * The data needed to create a Translation. */ data: XOR } /** * Translation createMany */ export type TranslationCreateManyArgs = { /** * The data used to create many Translations. */ data: TranslationCreateManyInput | TranslationCreateManyInput[] skipDuplicates?: boolean } /** * Translation update */ export type TranslationUpdateArgs = { /** * Select specific fields to fetch from the Translation */ select?: TranslationSelect | null /** * Omit specific fields from the Translation */ omit?: TranslationOmit | null /** * Choose, which related nodes to fetch as well */ include?: TranslationInclude | null /** * The data needed to update a Translation. */ data: XOR /** * Choose, which Translation to update. */ where: TranslationWhereUniqueInput } /** * Translation updateMany */ export type TranslationUpdateManyArgs = { /** * The data used to update Translations. */ data: XOR /** * Filter which Translations to update */ where?: TranslationWhereInput /** * Limit how many Translations to update. */ limit?: number } /** * Translation upsert */ export type TranslationUpsertArgs = { /** * Select specific fields to fetch from the Translation */ select?: TranslationSelect | null /** * Omit specific fields from the Translation */ omit?: TranslationOmit | null /** * Choose, which related nodes to fetch as well */ include?: TranslationInclude | null /** * The filter to search for the Translation to update in case it exists. */ where: TranslationWhereUniqueInput /** * In case the Translation found by the `where` argument doesn't exist, create a new Translation with this data. */ create: XOR /** * In case the Translation was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Translation delete */ export type TranslationDeleteArgs = { /** * Select specific fields to fetch from the Translation */ select?: TranslationSelect | null /** * Omit specific fields from the Translation */ omit?: TranslationOmit | null /** * Choose, which related nodes to fetch as well */ include?: TranslationInclude | null /** * Filter which Translation to delete. */ where: TranslationWhereUniqueInput } /** * Translation deleteMany */ export type TranslationDeleteManyArgs = { /** * Filter which Translations to delete */ where?: TranslationWhereInput /** * Limit how many Translations to delete. */ limit?: number } /** * Translation without action */ export type TranslationDefaultArgs = { /** * Select specific fields to fetch from the Translation */ select?: TranslationSelect | null /** * Omit specific fields from the Translation */ omit?: TranslationOmit | null /** * Choose, which related nodes to fetch as well */ include?: TranslationInclude | null } /** * Enums */ export const TransactionIsolationLevel: { ReadUncommitted: 'ReadUncommitted', ReadCommitted: 'ReadCommitted', RepeatableRead: 'RepeatableRead', Serializable: 'Serializable' }; export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] export const ArticleScalarFieldEnum: { id: 'id', title: 'title', content: 'content' }; export type ArticleScalarFieldEnum = (typeof ArticleScalarFieldEnum)[keyof typeof ArticleScalarFieldEnum] export const TranslationScalarFieldEnum: { id: 'id', language: 'language', title: 'title', content: 'content', articleId: 'articleId' }; export type TranslationScalarFieldEnum = (typeof TranslationScalarFieldEnum)[keyof typeof TranslationScalarFieldEnum] export const SortOrder: { asc: 'asc', desc: 'desc' }; export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] export const ArticleOrderByRelevanceFieldEnum: { title: 'title', content: 'content' }; export type ArticleOrderByRelevanceFieldEnum = (typeof ArticleOrderByRelevanceFieldEnum)[keyof typeof ArticleOrderByRelevanceFieldEnum] export const TranslationOrderByRelevanceFieldEnum: { language: 'language', title: 'title', content: 'content' }; export type TranslationOrderByRelevanceFieldEnum = (typeof TranslationOrderByRelevanceFieldEnum)[keyof typeof TranslationOrderByRelevanceFieldEnum] /** * Field references */ /** * Reference to a field of type 'Int' */ export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'> /** * Reference to a field of type 'String' */ export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'> /** * Reference to a field of type 'Float' */ export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'> /** * Deep Input Types */ export type ArticleWhereInput = { AND?: ArticleWhereInput | ArticleWhereInput[] OR?: ArticleWhereInput[] NOT?: ArticleWhereInput | ArticleWhereInput[] id?: IntFilter<"Article"> | number title?: StringFilter<"Article"> | string content?: StringFilter<"Article"> | string translations?: TranslationListRelationFilter } export type ArticleOrderByWithRelationInput = { id?: SortOrder title?: SortOrder content?: SortOrder translations?: TranslationOrderByRelationAggregateInput _relevance?: ArticleOrderByRelevanceInput } export type ArticleWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: ArticleWhereInput | ArticleWhereInput[] OR?: ArticleWhereInput[] NOT?: ArticleWhereInput | ArticleWhereInput[] title?: StringFilter<"Article"> | string content?: StringFilter<"Article"> | string translations?: TranslationListRelationFilter }, "id"> export type ArticleOrderByWithAggregationInput = { id?: SortOrder title?: SortOrder content?: SortOrder _count?: ArticleCountOrderByAggregateInput _avg?: ArticleAvgOrderByAggregateInput _max?: ArticleMaxOrderByAggregateInput _min?: ArticleMinOrderByAggregateInput _sum?: ArticleSumOrderByAggregateInput } export type ArticleScalarWhereWithAggregatesInput = { AND?: ArticleScalarWhereWithAggregatesInput | ArticleScalarWhereWithAggregatesInput[] OR?: ArticleScalarWhereWithAggregatesInput[] NOT?: ArticleScalarWhereWithAggregatesInput | ArticleScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"Article"> | number title?: StringWithAggregatesFilter<"Article"> | string content?: StringWithAggregatesFilter<"Article"> | string } export type TranslationWhereInput = { AND?: TranslationWhereInput | TranslationWhereInput[] OR?: TranslationWhereInput[] NOT?: TranslationWhereInput | TranslationWhereInput[] id?: IntFilter<"Translation"> | number language?: StringFilter<"Translation"> | string title?: StringFilter<"Translation"> | string content?: StringFilter<"Translation"> | string articleId?: IntFilter<"Translation"> | number article?: XOR } export type TranslationOrderByWithRelationInput = { id?: SortOrder language?: SortOrder title?: SortOrder content?: SortOrder articleId?: SortOrder article?: ArticleOrderByWithRelationInput _relevance?: TranslationOrderByRelevanceInput } export type TranslationWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: TranslationWhereInput | TranslationWhereInput[] OR?: TranslationWhereInput[] NOT?: TranslationWhereInput | TranslationWhereInput[] language?: StringFilter<"Translation"> | string title?: StringFilter<"Translation"> | string content?: StringFilter<"Translation"> | string articleId?: IntFilter<"Translation"> | number article?: XOR }, "id"> export type TranslationOrderByWithAggregationInput = { id?: SortOrder language?: SortOrder title?: SortOrder content?: SortOrder articleId?: SortOrder _count?: TranslationCountOrderByAggregateInput _avg?: TranslationAvgOrderByAggregateInput _max?: TranslationMaxOrderByAggregateInput _min?: TranslationMinOrderByAggregateInput _sum?: TranslationSumOrderByAggregateInput } export type TranslationScalarWhereWithAggregatesInput = { AND?: TranslationScalarWhereWithAggregatesInput | TranslationScalarWhereWithAggregatesInput[] OR?: TranslationScalarWhereWithAggregatesInput[] NOT?: TranslationScalarWhereWithAggregatesInput | TranslationScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"Translation"> | number language?: StringWithAggregatesFilter<"Translation"> | string title?: StringWithAggregatesFilter<"Translation"> | string content?: StringWithAggregatesFilter<"Translation"> | string articleId?: IntWithAggregatesFilter<"Translation"> | number } export type ArticleCreateInput = { title: string content: string translations?: TranslationCreateNestedManyWithoutArticleInput } export type ArticleUncheckedCreateInput = { id?: number title: string content: string translations?: TranslationUncheckedCreateNestedManyWithoutArticleInput } export type ArticleUpdateInput = { title?: StringFieldUpdateOperationsInput | string content?: StringFieldUpdateOperationsInput | string translations?: TranslationUpdateManyWithoutArticleNestedInput } export type ArticleUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string content?: StringFieldUpdateOperationsInput | string translations?: TranslationUncheckedUpdateManyWithoutArticleNestedInput } export type ArticleCreateManyInput = { id?: number title: string content: string } export type ArticleUpdateManyMutationInput = { title?: StringFieldUpdateOperationsInput | string content?: StringFieldUpdateOperationsInput | string } export type ArticleUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string content?: StringFieldUpdateOperationsInput | string } export type TranslationCreateInput = { language: string title: string content: string article: ArticleCreateNestedOneWithoutTranslationsInput } export type TranslationUncheckedCreateInput = { id?: number language: string title: string content: string articleId: number } export type TranslationUpdateInput = { language?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string content?: StringFieldUpdateOperationsInput | string article?: ArticleUpdateOneRequiredWithoutTranslationsNestedInput } export type TranslationUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number language?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string content?: StringFieldUpdateOperationsInput | string articleId?: IntFieldUpdateOperationsInput | number } export type TranslationCreateManyInput = { id?: number language: string title: string content: string articleId: number } export type TranslationUpdateManyMutationInput = { language?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string content?: StringFieldUpdateOperationsInput | string } export type TranslationUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number language?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string content?: StringFieldUpdateOperationsInput | string articleId?: IntFieldUpdateOperationsInput | number } export type IntFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] notIn?: number[] lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntFilter<$PrismaModel> | number } export type StringFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] notIn?: string[] lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> search?: string not?: NestedStringFilter<$PrismaModel> | string } export type TranslationListRelationFilter = { every?: TranslationWhereInput some?: TranslationWhereInput none?: TranslationWhereInput } export type TranslationOrderByRelationAggregateInput = { _count?: SortOrder } export type ArticleOrderByRelevanceInput = { fields: ArticleOrderByRelevanceFieldEnum | ArticleOrderByRelevanceFieldEnum[] sort: SortOrder search: string } export type ArticleCountOrderByAggregateInput = { id?: SortOrder title?: SortOrder content?: SortOrder } export type ArticleAvgOrderByAggregateInput = { id?: SortOrder } export type ArticleMaxOrderByAggregateInput = { id?: SortOrder title?: SortOrder content?: SortOrder } export type ArticleMinOrderByAggregateInput = { id?: SortOrder title?: SortOrder content?: SortOrder } export type ArticleSumOrderByAggregateInput = { id?: SortOrder } export type IntWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] notIn?: number[] lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntWithAggregatesFilter<$PrismaModel> | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedIntFilter<$PrismaModel> _min?: NestedIntFilter<$PrismaModel> _max?: NestedIntFilter<$PrismaModel> } export type StringWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] notIn?: string[] lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> search?: string not?: NestedStringWithAggregatesFilter<$PrismaModel> | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedStringFilter<$PrismaModel> _max?: NestedStringFilter<$PrismaModel> } export type ArticleScalarRelationFilter = { is?: ArticleWhereInput isNot?: ArticleWhereInput } export type TranslationOrderByRelevanceInput = { fields: TranslationOrderByRelevanceFieldEnum | TranslationOrderByRelevanceFieldEnum[] sort: SortOrder search: string } export type TranslationCountOrderByAggregateInput = { id?: SortOrder language?: SortOrder title?: SortOrder content?: SortOrder articleId?: SortOrder } export type TranslationAvgOrderByAggregateInput = { id?: SortOrder articleId?: SortOrder } export type TranslationMaxOrderByAggregateInput = { id?: SortOrder language?: SortOrder title?: SortOrder content?: SortOrder articleId?: SortOrder } export type TranslationMinOrderByAggregateInput = { id?: SortOrder language?: SortOrder title?: SortOrder content?: SortOrder articleId?: SortOrder } export type TranslationSumOrderByAggregateInput = { id?: SortOrder articleId?: SortOrder } export type TranslationCreateNestedManyWithoutArticleInput = { create?: XOR | TranslationCreateWithoutArticleInput[] | TranslationUncheckedCreateWithoutArticleInput[] connectOrCreate?: TranslationCreateOrConnectWithoutArticleInput | TranslationCreateOrConnectWithoutArticleInput[] createMany?: TranslationCreateManyArticleInputEnvelope connect?: TranslationWhereUniqueInput | TranslationWhereUniqueInput[] } export type TranslationUncheckedCreateNestedManyWithoutArticleInput = { create?: XOR | TranslationCreateWithoutArticleInput[] | TranslationUncheckedCreateWithoutArticleInput[] connectOrCreate?: TranslationCreateOrConnectWithoutArticleInput | TranslationCreateOrConnectWithoutArticleInput[] createMany?: TranslationCreateManyArticleInputEnvelope connect?: TranslationWhereUniqueInput | TranslationWhereUniqueInput[] } export type StringFieldUpdateOperationsInput = { set?: string } export type TranslationUpdateManyWithoutArticleNestedInput = { create?: XOR | TranslationCreateWithoutArticleInput[] | TranslationUncheckedCreateWithoutArticleInput[] connectOrCreate?: TranslationCreateOrConnectWithoutArticleInput | TranslationCreateOrConnectWithoutArticleInput[] upsert?: TranslationUpsertWithWhereUniqueWithoutArticleInput | TranslationUpsertWithWhereUniqueWithoutArticleInput[] createMany?: TranslationCreateManyArticleInputEnvelope set?: TranslationWhereUniqueInput | TranslationWhereUniqueInput[] disconnect?: TranslationWhereUniqueInput | TranslationWhereUniqueInput[] delete?: TranslationWhereUniqueInput | TranslationWhereUniqueInput[] connect?: TranslationWhereUniqueInput | TranslationWhereUniqueInput[] update?: TranslationUpdateWithWhereUniqueWithoutArticleInput | TranslationUpdateWithWhereUniqueWithoutArticleInput[] updateMany?: TranslationUpdateManyWithWhereWithoutArticleInput | TranslationUpdateManyWithWhereWithoutArticleInput[] deleteMany?: TranslationScalarWhereInput | TranslationScalarWhereInput[] } export type IntFieldUpdateOperationsInput = { set?: number increment?: number decrement?: number multiply?: number divide?: number } export type TranslationUncheckedUpdateManyWithoutArticleNestedInput = { create?: XOR | TranslationCreateWithoutArticleInput[] | TranslationUncheckedCreateWithoutArticleInput[] connectOrCreate?: TranslationCreateOrConnectWithoutArticleInput | TranslationCreateOrConnectWithoutArticleInput[] upsert?: TranslationUpsertWithWhereUniqueWithoutArticleInput | TranslationUpsertWithWhereUniqueWithoutArticleInput[] createMany?: TranslationCreateManyArticleInputEnvelope set?: TranslationWhereUniqueInput | TranslationWhereUniqueInput[] disconnect?: TranslationWhereUniqueInput | TranslationWhereUniqueInput[] delete?: TranslationWhereUniqueInput | TranslationWhereUniqueInput[] connect?: TranslationWhereUniqueInput | TranslationWhereUniqueInput[] update?: TranslationUpdateWithWhereUniqueWithoutArticleInput | TranslationUpdateWithWhereUniqueWithoutArticleInput[] updateMany?: TranslationUpdateManyWithWhereWithoutArticleInput | TranslationUpdateManyWithWhereWithoutArticleInput[] deleteMany?: TranslationScalarWhereInput | TranslationScalarWhereInput[] } export type ArticleCreateNestedOneWithoutTranslationsInput = { create?: XOR connectOrCreate?: ArticleCreateOrConnectWithoutTranslationsInput connect?: ArticleWhereUniqueInput } export type ArticleUpdateOneRequiredWithoutTranslationsNestedInput = { create?: XOR connectOrCreate?: ArticleCreateOrConnectWithoutTranslationsInput upsert?: ArticleUpsertWithoutTranslationsInput connect?: ArticleWhereUniqueInput update?: XOR, ArticleUncheckedUpdateWithoutTranslationsInput> } export type NestedIntFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] notIn?: number[] lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntFilter<$PrismaModel> | number } export type NestedStringFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] notIn?: string[] lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> search?: string not?: NestedStringFilter<$PrismaModel> | string } export type NestedIntWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] notIn?: number[] lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntWithAggregatesFilter<$PrismaModel> | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedIntFilter<$PrismaModel> _min?: NestedIntFilter<$PrismaModel> _max?: NestedIntFilter<$PrismaModel> } export type NestedFloatFilter<$PrismaModel = never> = { equals?: number | FloatFieldRefInput<$PrismaModel> in?: number[] notIn?: number[] lt?: number | FloatFieldRefInput<$PrismaModel> lte?: number | FloatFieldRefInput<$PrismaModel> gt?: number | FloatFieldRefInput<$PrismaModel> gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatFilter<$PrismaModel> | number } export type NestedStringWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] notIn?: string[] lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> search?: string not?: NestedStringWithAggregatesFilter<$PrismaModel> | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedStringFilter<$PrismaModel> _max?: NestedStringFilter<$PrismaModel> } export type TranslationCreateWithoutArticleInput = { language: string title: string content: string } export type TranslationUncheckedCreateWithoutArticleInput = { id?: number language: string title: string content: string } export type TranslationCreateOrConnectWithoutArticleInput = { where: TranslationWhereUniqueInput create: XOR } export type TranslationCreateManyArticleInputEnvelope = { data: TranslationCreateManyArticleInput | TranslationCreateManyArticleInput[] skipDuplicates?: boolean } export type TranslationUpsertWithWhereUniqueWithoutArticleInput = { where: TranslationWhereUniqueInput update: XOR create: XOR } export type TranslationUpdateWithWhereUniqueWithoutArticleInput = { where: TranslationWhereUniqueInput data: XOR } export type TranslationUpdateManyWithWhereWithoutArticleInput = { where: TranslationScalarWhereInput data: XOR } export type TranslationScalarWhereInput = { AND?: TranslationScalarWhereInput | TranslationScalarWhereInput[] OR?: TranslationScalarWhereInput[] NOT?: TranslationScalarWhereInput | TranslationScalarWhereInput[] id?: IntFilter<"Translation"> | number language?: StringFilter<"Translation"> | string title?: StringFilter<"Translation"> | string content?: StringFilter<"Translation"> | string articleId?: IntFilter<"Translation"> | number } export type ArticleCreateWithoutTranslationsInput = { title: string content: string } export type ArticleUncheckedCreateWithoutTranslationsInput = { id?: number title: string content: string } export type ArticleCreateOrConnectWithoutTranslationsInput = { where: ArticleWhereUniqueInput create: XOR } export type ArticleUpsertWithoutTranslationsInput = { update: XOR create: XOR where?: ArticleWhereInput } export type ArticleUpdateToOneWithWhereWithoutTranslationsInput = { where?: ArticleWhereInput data: XOR } export type ArticleUpdateWithoutTranslationsInput = { title?: StringFieldUpdateOperationsInput | string content?: StringFieldUpdateOperationsInput | string } export type ArticleUncheckedUpdateWithoutTranslationsInput = { id?: IntFieldUpdateOperationsInput | number title?: StringFieldUpdateOperationsInput | string content?: StringFieldUpdateOperationsInput | string } export type TranslationCreateManyArticleInput = { id?: number language: string title: string content: string } export type TranslationUpdateWithoutArticleInput = { language?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string content?: StringFieldUpdateOperationsInput | string } export type TranslationUncheckedUpdateWithoutArticleInput = { id?: IntFieldUpdateOperationsInput | number language?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string content?: StringFieldUpdateOperationsInput | string } export type TranslationUncheckedUpdateManyWithoutArticleInput = { id?: IntFieldUpdateOperationsInput | number language?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string content?: StringFieldUpdateOperationsInput | string } /** * Batch Payload for updateMany & deleteMany & createMany */ export type BatchPayload = { count: number } /** * DMMF */ export const dmmf: runtime.BaseDMMF }