Skip to main content
Glama

News Aggregator API

index.d.ts525 kB
/** * 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 Article * */ export type Article = $Result.DefaultSelection<Prisma.$ArticlePayload> /** * Model UserArticle * */ export type UserArticle = $Result.DefaultSelection<Prisma.$UserArticlePayload> /** * Model User * */ export type User = $Result.DefaultSelection<Prisma.$UserPayload> /** * Model Topic * */ export type Topic = $Result.DefaultSelection<Prisma.$TopicPayload> /** * Model ArticleTopic * */ export type ArticleTopic = $Result.DefaultSelection<Prisma.$ArticleTopicPayload> /** * Model Entity * */ export type Entity = $Result.DefaultSelection<Prisma.$EntityPayload> /** * Model ArticleEntity * */ export type ArticleEntity = $Result.DefaultSelection<Prisma.$ArticleEntityPayload> /** * Model SavedSearch * */ export type SavedSearch = $Result.DefaultSelection<Prisma.$SavedSearchPayload> /** * ## 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.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 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<ClientOptions, Prisma.PrismaClientOptions>); $on<V extends U>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient; /** * 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<ClientOptions>, ExtArgs, $Utils.Call<Prisma.TypeMapCb<ClientOptions>, { 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<ExtArgs, ClientOptions>; /** * `prisma.userArticle`: Exposes CRUD operations for the **UserArticle** model. * Example usage: * ```ts * // Fetch zero or more UserArticles * const userArticles = await prisma.userArticle.findMany() * ``` */ get userArticle(): Prisma.UserArticleDelegate<ExtArgs, ClientOptions>; /** * `prisma.user`: Exposes CRUD operations for the **User** model. * Example usage: * ```ts * // Fetch zero or more Users * const users = await prisma.user.findMany() * ``` */ get user(): Prisma.UserDelegate<ExtArgs, ClientOptions>; /** * `prisma.topic`: Exposes CRUD operations for the **Topic** model. * Example usage: * ```ts * // Fetch zero or more Topics * const topics = await prisma.topic.findMany() * ``` */ get topic(): Prisma.TopicDelegate<ExtArgs, ClientOptions>; /** * `prisma.articleTopic`: Exposes CRUD operations for the **ArticleTopic** model. * Example usage: * ```ts * // Fetch zero or more ArticleTopics * const articleTopics = await prisma.articleTopic.findMany() * ``` */ get articleTopic(): Prisma.ArticleTopicDelegate<ExtArgs, ClientOptions>; /** * `prisma.entity`: Exposes CRUD operations for the **Entity** model. * Example usage: * ```ts * // Fetch zero or more Entities * const entities = await prisma.entity.findMany() * ``` */ get entity(): Prisma.EntityDelegate<ExtArgs, ClientOptions>; /** * `prisma.articleEntity`: Exposes CRUD operations for the **ArticleEntity** model. * Example usage: * ```ts * // Fetch zero or more ArticleEntities * const articleEntities = await prisma.articleEntity.findMany() * ``` */ get articleEntity(): Prisma.ArticleEntityDelegate<ExtArgs, ClientOptions>; /** * `prisma.savedSearch`: Exposes CRUD operations for the **SavedSearch** model. * Example usage: * ```ts * // Fetch zero or more SavedSearches * const savedSearches = await prisma.savedSearch.findMany() * ``` */ get savedSearch(): Prisma.SavedSearchDelegate<ExtArgs, ClientOptions>; } export namespace Prisma { export import DMMF = runtime.DMMF export type PrismaPromise<T> = $Public.PrismaPromise<T> /** * Validator */ export import validator = runtime.Public.validator /** * Prisma Errors */ export import PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError export import PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError export import PrismaClientRustPanicError = runtime.PrismaClientRustPanicError export import PrismaClientInitializationError = runtime.PrismaClientInitializationError export import PrismaClientValidationError = runtime.PrismaClientValidationError /** * Re-export of sql-template-tag */ export import sql = runtime.sqltag export import empty = runtime.empty export import join = runtime.join export import raw = runtime.raw export import Sql = runtime.Sql /** * Decimal.js */ export import Decimal = runtime.Decimal export type DecimalJsLike = runtime.DecimalJsLike /** * Metrics */ export type Metrics = runtime.Metrics export type Metric<T> = runtime.Metric<T> export type MetricHistogram = runtime.MetricHistogram export type MetricHistogramBucket = runtime.MetricHistogramBucket /** * Extensions */ export import Extension = $Extensions.UserArgs export import getExtensionContext = runtime.Extensions.getExtensionContext export import Args = $Public.Args export import Payload = $Public.Payload export import Result = $Public.Result export import Exact = $Public.Exact /** * Prisma Client JS version: 6.8.2 * Query Engine version: 2060c79ba17c6bb9f5823312b6f6b7f4a845738e */ 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 ? P : 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: { Article: 'Article', UserArticle: 'UserArticle', User: 'User', Topic: 'Topic', ArticleTopic: 'ArticleTopic', Entity: 'Entity', ArticleEntity: 'ArticleEntity', SavedSearch: 'SavedSearch' }; export type ModelName = (typeof ModelName)[keyof typeof ModelName] export type Datasources = { db?: Datasource } interface TypeMapCb<ClientOptions = {}> extends $Utils.Fn<{extArgs: $Extensions.InternalArgs }, $Utils.Record<string, any>> { returns: Prisma.TypeMap<this['params']['extArgs'], ClientOptions extends { omit: infer OmitOptions } ? OmitOptions : {}> } export type TypeMap<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> = { globalOmitOptions: { omit: GlobalOmitOptions } meta: { modelProps: "article" | "userArticle" | "user" | "topic" | "articleTopic" | "entity" | "articleEntity" | "savedSearch" txIsolationLevel: Prisma.TransactionIsolationLevel } model: { Article: { payload: Prisma.$ArticlePayload<ExtArgs> fields: Prisma.ArticleFieldRefs operations: { findUnique: { args: Prisma.ArticleFindUniqueArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$ArticlePayload> | null } findUniqueOrThrow: { args: Prisma.ArticleFindUniqueOrThrowArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$ArticlePayload> } findFirst: { args: Prisma.ArticleFindFirstArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$ArticlePayload> | null } findFirstOrThrow: { args: Prisma.ArticleFindFirstOrThrowArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$ArticlePayload> } findMany: { args: Prisma.ArticleFindManyArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$ArticlePayload>[] } create: { args: Prisma.ArticleCreateArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$ArticlePayload> } createMany: { args: Prisma.ArticleCreateManyArgs<ExtArgs> result: BatchPayload } createManyAndReturn: { args: Prisma.ArticleCreateManyAndReturnArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$ArticlePayload>[] } delete: { args: Prisma.ArticleDeleteArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$ArticlePayload> } update: { args: Prisma.ArticleUpdateArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$ArticlePayload> } deleteMany: { args: Prisma.ArticleDeleteManyArgs<ExtArgs> result: BatchPayload } updateMany: { args: Prisma.ArticleUpdateManyArgs<ExtArgs> result: BatchPayload } updateManyAndReturn: { args: Prisma.ArticleUpdateManyAndReturnArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$ArticlePayload>[] } upsert: { args: Prisma.ArticleUpsertArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$ArticlePayload> } aggregate: { args: Prisma.ArticleAggregateArgs<ExtArgs> result: $Utils.Optional<AggregateArticle> } groupBy: { args: Prisma.ArticleGroupByArgs<ExtArgs> result: $Utils.Optional<ArticleGroupByOutputType>[] } count: { args: Prisma.ArticleCountArgs<ExtArgs> result: $Utils.Optional<ArticleCountAggregateOutputType> | number } } } UserArticle: { payload: Prisma.$UserArticlePayload<ExtArgs> fields: Prisma.UserArticleFieldRefs operations: { findUnique: { args: Prisma.UserArticleFindUniqueArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$UserArticlePayload> | null } findUniqueOrThrow: { args: Prisma.UserArticleFindUniqueOrThrowArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$UserArticlePayload> } findFirst: { args: Prisma.UserArticleFindFirstArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$UserArticlePayload> | null } findFirstOrThrow: { args: Prisma.UserArticleFindFirstOrThrowArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$UserArticlePayload> } findMany: { args: Prisma.UserArticleFindManyArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$UserArticlePayload>[] } create: { args: Prisma.UserArticleCreateArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$UserArticlePayload> } createMany: { args: Prisma.UserArticleCreateManyArgs<ExtArgs> result: BatchPayload } createManyAndReturn: { args: Prisma.UserArticleCreateManyAndReturnArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$UserArticlePayload>[] } delete: { args: Prisma.UserArticleDeleteArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$UserArticlePayload> } update: { args: Prisma.UserArticleUpdateArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$UserArticlePayload> } deleteMany: { args: Prisma.UserArticleDeleteManyArgs<ExtArgs> result: BatchPayload } updateMany: { args: Prisma.UserArticleUpdateManyArgs<ExtArgs> result: BatchPayload } updateManyAndReturn: { args: Prisma.UserArticleUpdateManyAndReturnArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$UserArticlePayload>[] } upsert: { args: Prisma.UserArticleUpsertArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$UserArticlePayload> } aggregate: { args: Prisma.UserArticleAggregateArgs<ExtArgs> result: $Utils.Optional<AggregateUserArticle> } groupBy: { args: Prisma.UserArticleGroupByArgs<ExtArgs> result: $Utils.Optional<UserArticleGroupByOutputType>[] } count: { args: Prisma.UserArticleCountArgs<ExtArgs> result: $Utils.Optional<UserArticleCountAggregateOutputType> | number } } } User: { payload: Prisma.$UserPayload<ExtArgs> fields: Prisma.UserFieldRefs operations: { findUnique: { args: Prisma.UserFindUniqueArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$UserPayload> | null } findUniqueOrThrow: { args: Prisma.UserFindUniqueOrThrowArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$UserPayload> } findFirst: { args: Prisma.UserFindFirstArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$UserPayload> | null } findFirstOrThrow: { args: Prisma.UserFindFirstOrThrowArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$UserPayload> } findMany: { args: Prisma.UserFindManyArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$UserPayload>[] } create: { args: Prisma.UserCreateArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$UserPayload> } createMany: { args: Prisma.UserCreateManyArgs<ExtArgs> result: BatchPayload } createManyAndReturn: { args: Prisma.UserCreateManyAndReturnArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$UserPayload>[] } delete: { args: Prisma.UserDeleteArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$UserPayload> } update: { args: Prisma.UserUpdateArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$UserPayload> } deleteMany: { args: Prisma.UserDeleteManyArgs<ExtArgs> result: BatchPayload } updateMany: { args: Prisma.UserUpdateManyArgs<ExtArgs> result: BatchPayload } updateManyAndReturn: { args: Prisma.UserUpdateManyAndReturnArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$UserPayload>[] } upsert: { args: Prisma.UserUpsertArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$UserPayload> } aggregate: { args: Prisma.UserAggregateArgs<ExtArgs> result: $Utils.Optional<AggregateUser> } groupBy: { args: Prisma.UserGroupByArgs<ExtArgs> result: $Utils.Optional<UserGroupByOutputType>[] } count: { args: Prisma.UserCountArgs<ExtArgs> result: $Utils.Optional<UserCountAggregateOutputType> | number } } } Topic: { payload: Prisma.$TopicPayload<ExtArgs> fields: Prisma.TopicFieldRefs operations: { findUnique: { args: Prisma.TopicFindUniqueArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$TopicPayload> | null } findUniqueOrThrow: { args: Prisma.TopicFindUniqueOrThrowArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$TopicPayload> } findFirst: { args: Prisma.TopicFindFirstArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$TopicPayload> | null } findFirstOrThrow: { args: Prisma.TopicFindFirstOrThrowArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$TopicPayload> } findMany: { args: Prisma.TopicFindManyArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$TopicPayload>[] } create: { args: Prisma.TopicCreateArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$TopicPayload> } createMany: { args: Prisma.TopicCreateManyArgs<ExtArgs> result: BatchPayload } createManyAndReturn: { args: Prisma.TopicCreateManyAndReturnArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$TopicPayload>[] } delete: { args: Prisma.TopicDeleteArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$TopicPayload> } update: { args: Prisma.TopicUpdateArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$TopicPayload> } deleteMany: { args: Prisma.TopicDeleteManyArgs<ExtArgs> result: BatchPayload } updateMany: { args: Prisma.TopicUpdateManyArgs<ExtArgs> result: BatchPayload } updateManyAndReturn: { args: Prisma.TopicUpdateManyAndReturnArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$TopicPayload>[] } upsert: { args: Prisma.TopicUpsertArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$TopicPayload> } aggregate: { args: Prisma.TopicAggregateArgs<ExtArgs> result: $Utils.Optional<AggregateTopic> } groupBy: { args: Prisma.TopicGroupByArgs<ExtArgs> result: $Utils.Optional<TopicGroupByOutputType>[] } count: { args: Prisma.TopicCountArgs<ExtArgs> result: $Utils.Optional<TopicCountAggregateOutputType> | number } } } ArticleTopic: { payload: Prisma.$ArticleTopicPayload<ExtArgs> fields: Prisma.ArticleTopicFieldRefs operations: { findUnique: { args: Prisma.ArticleTopicFindUniqueArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$ArticleTopicPayload> | null } findUniqueOrThrow: { args: Prisma.ArticleTopicFindUniqueOrThrowArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$ArticleTopicPayload> } findFirst: { args: Prisma.ArticleTopicFindFirstArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$ArticleTopicPayload> | null } findFirstOrThrow: { args: Prisma.ArticleTopicFindFirstOrThrowArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$ArticleTopicPayload> } findMany: { args: Prisma.ArticleTopicFindManyArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$ArticleTopicPayload>[] } create: { args: Prisma.ArticleTopicCreateArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$ArticleTopicPayload> } createMany: { args: Prisma.ArticleTopicCreateManyArgs<ExtArgs> result: BatchPayload } createManyAndReturn: { args: Prisma.ArticleTopicCreateManyAndReturnArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$ArticleTopicPayload>[] } delete: { args: Prisma.ArticleTopicDeleteArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$ArticleTopicPayload> } update: { args: Prisma.ArticleTopicUpdateArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$ArticleTopicPayload> } deleteMany: { args: Prisma.ArticleTopicDeleteManyArgs<ExtArgs> result: BatchPayload } updateMany: { args: Prisma.ArticleTopicUpdateManyArgs<ExtArgs> result: BatchPayload } updateManyAndReturn: { args: Prisma.ArticleTopicUpdateManyAndReturnArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$ArticleTopicPayload>[] } upsert: { args: Prisma.ArticleTopicUpsertArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$ArticleTopicPayload> } aggregate: { args: Prisma.ArticleTopicAggregateArgs<ExtArgs> result: $Utils.Optional<AggregateArticleTopic> } groupBy: { args: Prisma.ArticleTopicGroupByArgs<ExtArgs> result: $Utils.Optional<ArticleTopicGroupByOutputType>[] } count: { args: Prisma.ArticleTopicCountArgs<ExtArgs> result: $Utils.Optional<ArticleTopicCountAggregateOutputType> | number } } } Entity: { payload: Prisma.$EntityPayload<ExtArgs> fields: Prisma.EntityFieldRefs operations: { findUnique: { args: Prisma.EntityFindUniqueArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$EntityPayload> | null } findUniqueOrThrow: { args: Prisma.EntityFindUniqueOrThrowArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$EntityPayload> } findFirst: { args: Prisma.EntityFindFirstArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$EntityPayload> | null } findFirstOrThrow: { args: Prisma.EntityFindFirstOrThrowArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$EntityPayload> } findMany: { args: Prisma.EntityFindManyArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$EntityPayload>[] } create: { args: Prisma.EntityCreateArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$EntityPayload> } createMany: { args: Prisma.EntityCreateManyArgs<ExtArgs> result: BatchPayload } createManyAndReturn: { args: Prisma.EntityCreateManyAndReturnArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$EntityPayload>[] } delete: { args: Prisma.EntityDeleteArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$EntityPayload> } update: { args: Prisma.EntityUpdateArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$EntityPayload> } deleteMany: { args: Prisma.EntityDeleteManyArgs<ExtArgs> result: BatchPayload } updateMany: { args: Prisma.EntityUpdateManyArgs<ExtArgs> result: BatchPayload } updateManyAndReturn: { args: Prisma.EntityUpdateManyAndReturnArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$EntityPayload>[] } upsert: { args: Prisma.EntityUpsertArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$EntityPayload> } aggregate: { args: Prisma.EntityAggregateArgs<ExtArgs> result: $Utils.Optional<AggregateEntity> } groupBy: { args: Prisma.EntityGroupByArgs<ExtArgs> result: $Utils.Optional<EntityGroupByOutputType>[] } count: { args: Prisma.EntityCountArgs<ExtArgs> result: $Utils.Optional<EntityCountAggregateOutputType> | number } } } ArticleEntity: { payload: Prisma.$ArticleEntityPayload<ExtArgs> fields: Prisma.ArticleEntityFieldRefs operations: { findUnique: { args: Prisma.ArticleEntityFindUniqueArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$ArticleEntityPayload> | null } findUniqueOrThrow: { args: Prisma.ArticleEntityFindUniqueOrThrowArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$ArticleEntityPayload> } findFirst: { args: Prisma.ArticleEntityFindFirstArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$ArticleEntityPayload> | null } findFirstOrThrow: { args: Prisma.ArticleEntityFindFirstOrThrowArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$ArticleEntityPayload> } findMany: { args: Prisma.ArticleEntityFindManyArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$ArticleEntityPayload>[] } create: { args: Prisma.ArticleEntityCreateArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$ArticleEntityPayload> } createMany: { args: Prisma.ArticleEntityCreateManyArgs<ExtArgs> result: BatchPayload } createManyAndReturn: { args: Prisma.ArticleEntityCreateManyAndReturnArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$ArticleEntityPayload>[] } delete: { args: Prisma.ArticleEntityDeleteArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$ArticleEntityPayload> } update: { args: Prisma.ArticleEntityUpdateArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$ArticleEntityPayload> } deleteMany: { args: Prisma.ArticleEntityDeleteManyArgs<ExtArgs> result: BatchPayload } updateMany: { args: Prisma.ArticleEntityUpdateManyArgs<ExtArgs> result: BatchPayload } updateManyAndReturn: { args: Prisma.ArticleEntityUpdateManyAndReturnArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$ArticleEntityPayload>[] } upsert: { args: Prisma.ArticleEntityUpsertArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$ArticleEntityPayload> } aggregate: { args: Prisma.ArticleEntityAggregateArgs<ExtArgs> result: $Utils.Optional<AggregateArticleEntity> } groupBy: { args: Prisma.ArticleEntityGroupByArgs<ExtArgs> result: $Utils.Optional<ArticleEntityGroupByOutputType>[] } count: { args: Prisma.ArticleEntityCountArgs<ExtArgs> result: $Utils.Optional<ArticleEntityCountAggregateOutputType> | number } } } SavedSearch: { payload: Prisma.$SavedSearchPayload<ExtArgs> fields: Prisma.SavedSearchFieldRefs operations: { findUnique: { args: Prisma.SavedSearchFindUniqueArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$SavedSearchPayload> | null } findUniqueOrThrow: { args: Prisma.SavedSearchFindUniqueOrThrowArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$SavedSearchPayload> } findFirst: { args: Prisma.SavedSearchFindFirstArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$SavedSearchPayload> | null } findFirstOrThrow: { args: Prisma.SavedSearchFindFirstOrThrowArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$SavedSearchPayload> } findMany: { args: Prisma.SavedSearchFindManyArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$SavedSearchPayload>[] } create: { args: Prisma.SavedSearchCreateArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$SavedSearchPayload> } createMany: { args: Prisma.SavedSearchCreateManyArgs<ExtArgs> result: BatchPayload } createManyAndReturn: { args: Prisma.SavedSearchCreateManyAndReturnArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$SavedSearchPayload>[] } delete: { args: Prisma.SavedSearchDeleteArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$SavedSearchPayload> } update: { args: Prisma.SavedSearchUpdateArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$SavedSearchPayload> } deleteMany: { args: Prisma.SavedSearchDeleteManyArgs<ExtArgs> result: BatchPayload } updateMany: { args: Prisma.SavedSearchUpdateManyArgs<ExtArgs> result: BatchPayload } updateManyAndReturn: { args: Prisma.SavedSearchUpdateManyAndReturnArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$SavedSearchPayload>[] } upsert: { args: Prisma.SavedSearchUpsertArgs<ExtArgs> result: $Utils.PayloadToResult<Prisma.$SavedSearchPayload> } aggregate: { args: Prisma.SavedSearchAggregateArgs<ExtArgs> result: $Utils.Optional<AggregateSavedSearch> } groupBy: { args: Prisma.SavedSearchGroupByArgs<ExtArgs> result: $Utils.Optional<SavedSearchGroupByOutputType>[] } count: { args: Prisma.SavedSearchCountArgs<ExtArgs> result: $Utils.Optional<SavedSearchCountAggregateOutputType> | 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 userArticle?: UserArticleOmit user?: UserOmit topic?: TopicOmit articleTopic?: ArticleTopicOmit entity?: EntityOmit articleEntity?: ArticleEntityOmit savedSearch?: SavedSearchOmit } /* Types for Logging */ export type LogLevel = 'info' | 'query' | 'warn' | 'error' export type LogDefinition = { level: LogLevel emit: 'stdout' | 'event' } export type GetLogType<T extends LogLevel | LogDefinition> = T extends LogDefinition ? T['emit'] extends 'event' ? T['level'] : never : never export type GetEvents<T extends any> = T extends Array<LogLevel | LogDefinition> ? GetLogType<T[0]> | GetLogType<T[1]> | GetLogType<T[2]> | GetLogType<T[3]> : never export type QueryEvent = { timestamp: Date query: string params: string duration: number target: string } export type LogEvent = { timestamp: Date message: string target: string } /* End Types for Logging */ export type PrismaAction = | 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'findFirst' | 'findFirstOrThrow' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'updateManyAndReturn' | 'upsert' | 'delete' | 'deleteMany' | 'executeRaw' | 'queryRaw' | 'aggregate' | 'count' | 'runCommandRaw' | 'findRaw' | 'groupBy' /** * These options are being passed into the middleware as "params" */ export type MiddlewareParams = { model?: ModelName action: PrismaAction args: any dataPath: string[] runInTransaction: boolean } /** * The `T` type makes sure, that the `return proceed` is not forgotten in the middleware implementation */ export type Middleware<T = any> = ( params: MiddlewareParams, next: (params: MiddlewareParams) => $Utils.JsPromise<T>, ) => $Utils.JsPromise<T> // tested in getLogLevel.test.ts export function getLogLevel(log: Array<LogLevel | LogDefinition>): LogLevel | undefined; /** * `PrismaClient` proxy available in interactive transactions. */ export type TransactionClient = Omit<Prisma.DefaultPrismaClient, runtime.ITXClientDenyList> export type Datasource = { url?: string } /** * Count Types */ /** * Count Type ArticleCountOutputType */ export type ArticleCountOutputType = { userArticles: number topics: number entities: number } export type ArticleCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { userArticles?: boolean | ArticleCountOutputTypeCountUserArticlesArgs topics?: boolean | ArticleCountOutputTypeCountTopicsArgs entities?: boolean | ArticleCountOutputTypeCountEntitiesArgs } // Custom InputTypes /** * ArticleCountOutputType without action */ export type ArticleCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the ArticleCountOutputType */ select?: ArticleCountOutputTypeSelect<ExtArgs> | null } /** * ArticleCountOutputType without action */ export type ArticleCountOutputTypeCountUserArticlesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { where?: UserArticleWhereInput } /** * ArticleCountOutputType without action */ export type ArticleCountOutputTypeCountTopicsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { where?: ArticleTopicWhereInput } /** * ArticleCountOutputType without action */ export type ArticleCountOutputTypeCountEntitiesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { where?: ArticleEntityWhereInput } /** * Count Type UserCountOutputType */ export type UserCountOutputType = { userArticles: number searches: number } export type UserCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { userArticles?: boolean | UserCountOutputTypeCountUserArticlesArgs searches?: boolean | UserCountOutputTypeCountSearchesArgs } // 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 UserCountOutputTypeCountUserArticlesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { where?: UserArticleWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountSearchesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { where?: SavedSearchWhereInput } /** * Count Type TopicCountOutputType */ export type TopicCountOutputType = { articles: number } export type TopicCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { articles?: boolean | TopicCountOutputTypeCountArticlesArgs } // Custom InputTypes /** * TopicCountOutputType without action */ export type TopicCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the TopicCountOutputType */ select?: TopicCountOutputTypeSelect<ExtArgs> | null } /** * TopicCountOutputType without action */ export type TopicCountOutputTypeCountArticlesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { where?: ArticleTopicWhereInput } /** * Count Type EntityCountOutputType */ export type EntityCountOutputType = { articles: number } export type EntityCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { articles?: boolean | EntityCountOutputTypeCountArticlesArgs } // Custom InputTypes /** * EntityCountOutputType without action */ export type EntityCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the EntityCountOutputType */ select?: EntityCountOutputTypeSelect<ExtArgs> | null } /** * EntityCountOutputType without action */ export type EntityCountOutputTypeCountArticlesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { where?: ArticleEntityWhereInput } /** * 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 readCount: number | null relevanceScore: number | null sentiment: number | null } export type ArticleSumAggregateOutputType = { id: number | null readCount: number | null relevanceScore: number | null sentiment: number | null } export type ArticleMinAggregateOutputType = { id: number | null uuid: string | null title: string | null description: string | null url: string | null imageUrl: string | null source: string | null publishedAt: Date | null categories: string | null language: string | null createdAt: Date | null updatedAt: Date | null readCount: number | null relevanceScore: number | null sentiment: number | null } export type ArticleMaxAggregateOutputType = { id: number | null uuid: string | null title: string | null description: string | null url: string | null imageUrl: string | null source: string | null publishedAt: Date | null categories: string | null language: string | null createdAt: Date | null updatedAt: Date | null readCount: number | null relevanceScore: number | null sentiment: number | null } export type ArticleCountAggregateOutputType = { id: number uuid: number title: number description: number url: number imageUrl: number source: number publishedAt: number categories: number language: number createdAt: number updatedAt: number readCount: number relevanceScore: number sentiment: number _all: number } export type ArticleAvgAggregateInputType = { id?: true readCount?: true relevanceScore?: true sentiment?: true } export type ArticleSumAggregateInputType = { id?: true readCount?: true relevanceScore?: true sentiment?: true } export type ArticleMinAggregateInputType = { id?: true uuid?: true title?: true description?: true url?: true imageUrl?: true source?: true publishedAt?: true categories?: true language?: true createdAt?: true updatedAt?: true readCount?: true relevanceScore?: true sentiment?: true } export type ArticleMaxAggregateInputType = { id?: true uuid?: true title?: true description?: true url?: true imageUrl?: true source?: true publishedAt?: true categories?: true language?: true createdAt?: true updatedAt?: true readCount?: true relevanceScore?: true sentiment?: true } export type ArticleCountAggregateInputType = { id?: true uuid?: true title?: true description?: true url?: true imageUrl?: true source?: true publishedAt?: true categories?: true language?: true createdAt?: true updatedAt?: true readCount?: true relevanceScore?: true sentiment?: true _all?: true } export type ArticleAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * 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<T extends ArticleAggregateArgs> = { [P in keyof T & keyof AggregateArticle]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType<T[P], AggregateArticle[P]> : GetScalarType<T[P], AggregateArticle[P]> } export type ArticleGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { 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 uuid: string title: string description: string | null url: string imageUrl: string | null source: string publishedAt: Date categories: string language: string createdAt: Date updatedAt: Date readCount: number relevanceScore: number | null sentiment: number | null _count: ArticleCountAggregateOutputType | null _avg: ArticleAvgAggregateOutputType | null _sum: ArticleSumAggregateOutputType | null _min: ArticleMinAggregateOutputType | null _max: ArticleMaxAggregateOutputType | null } type GetArticleGroupByPayload<T extends ArticleGroupByArgs> = Prisma.PrismaPromise< Array< PickEnumerable<ArticleGroupByOutputType, T['by']> & { [P in ((keyof T) & (keyof ArticleGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType<T[P], ArticleGroupByOutputType[P]> : GetScalarType<T[P], ArticleGroupByOutputType[P]> } > > export type ArticleSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ id?: boolean uuid?: boolean title?: boolean description?: boolean url?: boolean imageUrl?: boolean source?: boolean publishedAt?: boolean categories?: boolean language?: boolean createdAt?: boolean updatedAt?: boolean readCount?: boolean relevanceScore?: boolean sentiment?: boolean userArticles?: boolean | Article$userArticlesArgs<ExtArgs> topics?: boolean | Article$topicsArgs<ExtArgs> entities?: boolean | Article$entitiesArgs<ExtArgs> _count?: boolean | ArticleCountOutputTypeDefaultArgs<ExtArgs> }, ExtArgs["result"]["article"]> export type ArticleSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ id?: boolean uuid?: boolean title?: boolean description?: boolean url?: boolean imageUrl?: boolean source?: boolean publishedAt?: boolean categories?: boolean language?: boolean createdAt?: boolean updatedAt?: boolean readCount?: boolean relevanceScore?: boolean sentiment?: boolean }, ExtArgs["result"]["article"]> export type ArticleSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ id?: boolean uuid?: boolean title?: boolean description?: boolean url?: boolean imageUrl?: boolean source?: boolean publishedAt?: boolean categories?: boolean language?: boolean createdAt?: boolean updatedAt?: boolean readCount?: boolean relevanceScore?: boolean sentiment?: boolean }, ExtArgs["result"]["article"]> export type ArticleSelectScalar = { id?: boolean uuid?: boolean title?: boolean description?: boolean url?: boolean imageUrl?: boolean source?: boolean publishedAt?: boolean categories?: boolean language?: boolean createdAt?: boolean updatedAt?: boolean readCount?: boolean relevanceScore?: boolean sentiment?: boolean } export type ArticleOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "uuid" | "title" | "description" | "url" | "imageUrl" | "source" | "publishedAt" | "categories" | "language" | "createdAt" | "updatedAt" | "readCount" | "relevanceScore" | "sentiment", ExtArgs["result"]["article"]> export type ArticleInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { userArticles?: boolean | Article$userArticlesArgs<ExtArgs> topics?: boolean | Article$topicsArgs<ExtArgs> entities?: boolean | Article$entitiesArgs<ExtArgs> _count?: boolean | ArticleCountOutputTypeDefaultArgs<ExtArgs> } export type ArticleIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {} export type ArticleIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {} export type $ArticlePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { name: "Article" objects: { userArticles: Prisma.$UserArticlePayload<ExtArgs>[] topics: Prisma.$ArticleTopicPayload<ExtArgs>[] entities: Prisma.$ArticleEntityPayload<ExtArgs>[] } scalars: $Extensions.GetPayloadResult<{ id: number uuid: string title: string description: string | null url: string imageUrl: string | null source: string publishedAt: Date categories: string language: string createdAt: Date updatedAt: Date readCount: number relevanceScore: number | null sentiment: number | null }, ExtArgs["result"]["article"]> composites: {} } type ArticleGetPayload<S extends boolean | null | undefined | ArticleDefaultArgs> = $Result.GetResult<Prisma.$ArticlePayload, S> type ArticleCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = Omit<ArticleFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & { select?: ArticleCountAggregateInputType | true } export interface ArticleDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> { [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends ArticleFindUniqueArgs>(args: SelectSubset<T, ArticleFindUniqueArgs<ExtArgs>>): Prisma__ArticleClient<$Result.GetResult<Prisma.$ArticlePayload<ExtArgs>, 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<T extends ArticleFindUniqueOrThrowArgs>(args: SelectSubset<T, ArticleFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ArticleClient<$Result.GetResult<Prisma.$ArticlePayload<ExtArgs>, 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<T extends ArticleFindFirstArgs>(args?: SelectSubset<T, ArticleFindFirstArgs<ExtArgs>>): Prisma__ArticleClient<$Result.GetResult<Prisma.$ArticlePayload<ExtArgs>, 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<T extends ArticleFindFirstOrThrowArgs>(args?: SelectSubset<T, ArticleFindFirstOrThrowArgs<ExtArgs>>): Prisma__ArticleClient<$Result.GetResult<Prisma.$ArticlePayload<ExtArgs>, 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<T extends ArticleFindManyArgs>(args?: SelectSubset<T, ArticleFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ArticlePayload<ExtArgs>, 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<T extends ArticleCreateArgs>(args: SelectSubset<T, ArticleCreateArgs<ExtArgs>>): Prisma__ArticleClient<$Result.GetResult<Prisma.$ArticlePayload<ExtArgs>, 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<T extends ArticleCreateManyArgs>(args?: SelectSubset<T, ArticleCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> /** * Create many Articles and returns the data saved in the database. * @param {ArticleCreateManyAndReturnArgs} args - Arguments to create many Articles. * @example * // Create many Articles * const article = await prisma.article.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Articles and only return the `id` * const articleWithIdOnly = await prisma.article.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 ArticleCreateManyAndReturnArgs>(args?: SelectSubset<T, ArticleCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ArticlePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>> /** * 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<T extends ArticleDeleteArgs>(args: SelectSubset<T, ArticleDeleteArgs<ExtArgs>>): Prisma__ArticleClient<$Result.GetResult<Prisma.$ArticlePayload<ExtArgs>, 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<T extends ArticleUpdateArgs>(args: SelectSubset<T, ArticleUpdateArgs<ExtArgs>>): Prisma__ArticleClient<$Result.GetResult<Prisma.$ArticlePayload<ExtArgs>, 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<T extends ArticleDeleteManyArgs>(args?: SelectSubset<T, ArticleDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> /** * 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<T extends ArticleUpdateManyArgs>(args: SelectSubset<T, ArticleUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> /** * Update zero or more Articles and returns the data updated in the database. * @param {ArticleUpdateManyAndReturnArgs} args - Arguments to update many Articles. * @example * // Update many Articles * const article = await prisma.article.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Articles and only return the `id` * const articleWithIdOnly = await prisma.article.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn<T extends ArticleUpdateManyAndReturnArgs>(args: SelectSubset<T, ArticleUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ArticlePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>> /** * 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<T extends ArticleUpsertArgs>(args: SelectSubset<T, ArticleUpsertArgs<ExtArgs>>): Prisma__ArticleClient<$Result.GetResult<Prisma.$ArticlePayload<ExtArgs>, 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<T extends ArticleCountArgs>( args?: Subset<T, ArticleCountArgs>, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType<T['select'], ArticleCountAggregateOutputType> : 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<T extends ArticleAggregateArgs>(args: Subset<T, ArticleAggregateArgs>): Prisma.PrismaPromise<GetArticleAggregateType<T>> /** * 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<T>>, Extends<'take', Keys<T>> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: ArticleGroupByArgs['orderBy'] } : { orderBy?: ArticleGroupByArgs['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, ArticleGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetArticleGroupByPayload<T> : Prisma.PrismaPromise<InputErrors> /** * 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<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> { readonly [Symbol.toStringTag]: "PrismaPromise" userArticles<T extends Article$userArticlesArgs<ExtArgs> = {}>(args?: Subset<T, Article$userArticlesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserArticlePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null> topics<T extends Article$topicsArgs<ExtArgs> = {}>(args?: Subset<T, Article$topicsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ArticleTopicPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null> entities<T extends Article$entitiesArgs<ExtArgs> = {}>(args?: Subset<T, Article$entitiesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ArticleEntityPayload<ExtArgs>, 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<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 Article model */ interface ArticleFieldRefs { readonly id: FieldRef<"Article", 'Int'> readonly uuid: FieldRef<"Article", 'String'> readonly title: FieldRef<"Article", 'String'> readonly description: FieldRef<"Article", 'String'> readonly url: FieldRef<"Article", 'String'> readonly imageUrl: FieldRef<"Article", 'String'> readonly source: FieldRef<"Article", 'String'> readonly publishedAt: FieldRef<"Article", 'DateTime'> readonly categories: FieldRef<"Article", 'String'> readonly language: FieldRef<"Article", 'String'> readonly createdAt: FieldRef<"Article", 'DateTime'> readonly updatedAt: FieldRef<"Article", 'DateTime'> readonly readCount: FieldRef<"Article", 'Int'> readonly relevanceScore: FieldRef<"Article", 'Float'> readonly sentiment: FieldRef<"Article", 'Float'> } // Custom InputTypes /** * Article findUnique */ export type ArticleFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the Article */ select?: ArticleSelect<ExtArgs> | null /** * Omit specific fields from the Article */ omit?: ArticleOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: ArticleInclude<ExtArgs> | null /** * Filter, which Article to fetch. */ where: ArticleWhereUniqueInput } /** * Article findUniqueOrThrow */ export type ArticleFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the Article */ select?: ArticleSelect<ExtArgs> | null /** * Omit specific fields from the Article */ omit?: ArticleOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: ArticleInclude<ExtArgs> | null /** * Filter, which Article to fetch. */ where: ArticleWhereUniqueInput } /** * Article findFirst */ export type ArticleFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the Article */ select?: ArticleSelect<ExtArgs> | null /** * Omit specific fields from the Article */ omit?: ArticleOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: ArticleInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the Article */ select?: ArticleSelect<ExtArgs> | null /** * Omit specific fields from the Article */ omit?: ArticleOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: ArticleInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the Article */ select?: ArticleSelect<ExtArgs> | null /** * Omit specific fields from the Article */ omit?: ArticleOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: ArticleInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the Article */ select?: ArticleSelect<ExtArgs> | null /** * Omit specific fields from the Article */ omit?: ArticleOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: ArticleInclude<ExtArgs> | null /** * The data needed to create a Article. */ data: XOR<ArticleCreateInput, ArticleUncheckedCreateInput> } /** * Article createMany */ export type ArticleCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * The data used to create many Articles. */ data: ArticleCreateManyInput | ArticleCreateManyInput[] } /** * Article createManyAndReturn */ export type ArticleCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the Article */ select?: ArticleSelectCreateManyAndReturn<ExtArgs> | null /** * Omit specific fields from the Article */ omit?: ArticleOmit<ExtArgs> | null /** * The data used to create many Articles. */ data: ArticleCreateManyInput | ArticleCreateManyInput[] } /** * Article update */ export type ArticleUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the Article */ select?: ArticleSelect<ExtArgs> | null /** * Omit specific fields from the Article */ omit?: ArticleOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: ArticleInclude<ExtArgs> | null /** * The data needed to update a Article. */ data: XOR<ArticleUpdateInput, ArticleUncheckedUpdateInput> /** * Choose, which Article to update. */ where: ArticleWhereUniqueInput } /** * Article updateMany */ export type ArticleUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * The data used to update Articles. */ data: XOR<ArticleUpdateManyMutationInput, ArticleUncheckedUpdateManyInput> /** * Filter which Articles to update */ where?: ArticleWhereInput /** * Limit how many Articles to update. */ limit?: number } /** * Article updateManyAndReturn */ export type ArticleUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the Article */ select?: ArticleSelectUpdateManyAndReturn<ExtArgs> | null /** * Omit specific fields from the Article */ omit?: ArticleOmit<ExtArgs> | null /** * The data used to update Articles. */ data: XOR<ArticleUpdateManyMutationInput, ArticleUncheckedUpdateManyInput> /** * Filter which Articles to update */ where?: ArticleWhereInput /** * Limit how many Articles to update. */ limit?: number } /** * Article upsert */ export type ArticleUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the Article */ select?: ArticleSelect<ExtArgs> | null /** * Omit specific fields from the Article */ omit?: ArticleOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: ArticleInclude<ExtArgs> | 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<ArticleCreateInput, ArticleUncheckedCreateInput> /** * In case the Article was found with the provided `where` argument, update it with this data. */ update: XOR<ArticleUpdateInput, ArticleUncheckedUpdateInput> } /** * Article delete */ export type ArticleDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the Article */ select?: ArticleSelect<ExtArgs> | null /** * Omit specific fields from the Article */ omit?: ArticleOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: ArticleInclude<ExtArgs> | null /** * Filter which Article to delete. */ where: ArticleWhereUniqueInput } /** * Article deleteMany */ export type ArticleDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Filter which Articles to delete */ where?: ArticleWhereInput /** * Limit how many Articles to delete. */ limit?: number } /** * Article.userArticles */ export type Article$userArticlesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the UserArticle */ select?: UserArticleSelect<ExtArgs> | null /** * Omit specific fields from the UserArticle */ omit?: UserArticleOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: UserArticleInclude<ExtArgs> | null where?: UserArticleWhereInput orderBy?: UserArticleOrderByWithRelationInput | UserArticleOrderByWithRelationInput[] cursor?: UserArticleWhereUniqueInput take?: number skip?: number distinct?: UserArticleScalarFieldEnum | UserArticleScalarFieldEnum[] } /** * Article.topics */ export type Article$topicsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the ArticleTopic */ select?: ArticleTopicSelect<ExtArgs> | null /** * Omit specific fields from the ArticleTopic */ omit?: ArticleTopicOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: ArticleTopicInclude<ExtArgs> | null where?: ArticleTopicWhereInput orderBy?: ArticleTopicOrderByWithRelationInput | ArticleTopicOrderByWithRelationInput[] cursor?: ArticleTopicWhereUniqueInput take?: number skip?: number distinct?: ArticleTopicScalarFieldEnum | ArticleTopicScalarFieldEnum[] } /** * Article.entities */ export type Article$entitiesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the ArticleEntity */ select?: ArticleEntitySelect<ExtArgs> | null /** * Omit specific fields from the ArticleEntity */ omit?: ArticleEntityOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: ArticleEntityInclude<ExtArgs> | null where?: ArticleEntityWhereInput orderBy?: ArticleEntityOrderByWithRelationInput | ArticleEntityOrderByWithRelationInput[] cursor?: ArticleEntityWhereUniqueInput take?: number skip?: number distinct?: ArticleEntityScalarFieldEnum | ArticleEntityScalarFieldEnum[] } /** * Article without action */ export type ArticleDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the Article */ select?: ArticleSelect<ExtArgs> | null /** * Omit specific fields from the Article */ omit?: ArticleOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: ArticleInclude<ExtArgs> | null } /** * Model UserArticle */ export type AggregateUserArticle = { _count: UserArticleCountAggregateOutputType | null _avg: UserArticleAvgAggregateOutputType | null _sum: UserArticleSumAggregateOutputType | null _min: UserArticleMinAggregateOutputType | null _max: UserArticleMaxAggregateOutputType | null } export type UserArticleAvgAggregateOutputType = { id: number | null userId: number | null articleId: number | null } export type UserArticleSumAggregateOutputType = { id: number | null userId: number | null articleId: number | null } export type UserArticleMinAggregateOutputType = { id: number | null userId: number | null articleId: number | null isBookmarked: boolean | null isRead: boolean | null createdAt: Date | null updatedAt: Date | null readAt: Date | null } export type UserArticleMaxAggregateOutputType = { id: number | null userId: number | null articleId: number | null isBookmarked: boolean | null isRead: boolean | null createdAt: Date | null updatedAt: Date | null readAt: Date | null } export type UserArticleCountAggregateOutputType = { id: number userId: number articleId: number isBookmarked: number isRead: number createdAt: number updatedAt: number readAt: number _all: number } export type UserArticleAvgAggregateInputType = { id?: true userId?: true articleId?: true } export type UserArticleSumAggregateInputType = { id?: true userId?: true articleId?: true } export type UserArticleMinAggregateInputType = { id?: true userId?: true articleId?: true isBookmarked?: true isRead?: true createdAt?: true updatedAt?: true readAt?: true } export type UserArticleMaxAggregateInputType = { id?: true userId?: true articleId?: true isBookmarked?: true isRead?: true createdAt?: true updatedAt?: true readAt?: true } export type UserArticleCountAggregateInputType = { id?: true userId?: true articleId?: true isBookmarked?: true isRead?: true createdAt?: true updatedAt?: true readAt?: true _all?: true } export type UserArticleAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Filter which UserArticle to aggregate. */ where?: UserArticleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of UserArticles to fetch. */ orderBy?: UserArticleOrderByWithRelationInput | UserArticleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: UserArticleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` UserArticles 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` UserArticles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned UserArticles **/ _count?: true | UserArticleCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: UserArticleAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: UserArticleSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: UserArticleMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: UserArticleMaxAggregateInputType } export type GetUserArticleAggregateType<T extends UserArticleAggregateArgs> = { [P in keyof T & keyof AggregateUserArticle]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType<T[P], AggregateUserArticle[P]> : GetScalarType<T[P], AggregateUserArticle[P]> } export type UserArticleGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { where?: UserArticleWhereInput orderBy?: UserArticleOrderByWithAggregationInput | UserArticleOrderByWithAggregationInput[] by: UserArticleScalarFieldEnum[] | UserArticleScalarFieldEnum having?: UserArticleScalarWhereWithAggregatesInput take?: number skip?: number _count?: UserArticleCountAggregateInputType | true _avg?: UserArticleAvgAggregateInputType _sum?: UserArticleSumAggregateInputType _min?: UserArticleMinAggregateInputType _max?: UserArticleMaxAggregateInputType } export type UserArticleGroupByOutputType = { id: number userId: number articleId: number isBookmarked: boolean isRead: boolean createdAt: Date updatedAt: Date readAt: Date | null _count: UserArticleCountAggregateOutputType | null _avg: UserArticleAvgAggregateOutputType | null _sum: UserArticleSumAggregateOutputType | null _min: UserArticleMinAggregateOutputType | null _max: UserArticleMaxAggregateOutputType | null } type GetUserArticleGroupByPayload<T extends UserArticleGroupByArgs> = Prisma.PrismaPromise< Array< PickEnumerable<UserArticleGroupByOutputType, T['by']> & { [P in ((keyof T) & (keyof UserArticleGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType<T[P], UserArticleGroupByOutputType[P]> : GetScalarType<T[P], UserArticleGroupByOutputType[P]> } > > export type UserArticleSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ id?: boolean userId?: boolean articleId?: boolean isBookmarked?: boolean isRead?: boolean createdAt?: boolean updatedAt?: boolean readAt?: boolean article?: boolean | ArticleDefaultArgs<ExtArgs> user?: boolean | UserDefaultArgs<ExtArgs> }, ExtArgs["result"]["userArticle"]> export type UserArticleSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ id?: boolean userId?: boolean articleId?: boolean isBookmarked?: boolean isRead?: boolean createdAt?: boolean updatedAt?: boolean readAt?: boolean article?: boolean | ArticleDefaultArgs<ExtArgs> user?: boolean | UserDefaultArgs<ExtArgs> }, ExtArgs["result"]["userArticle"]> export type UserArticleSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ id?: boolean userId?: boolean articleId?: boolean isBookmarked?: boolean isRead?: boolean createdAt?: boolean updatedAt?: boolean readAt?: boolean article?: boolean | ArticleDefaultArgs<ExtArgs> user?: boolean | UserDefaultArgs<ExtArgs> }, ExtArgs["result"]["userArticle"]> export type UserArticleSelectScalar = { id?: boolean userId?: boolean articleId?: boolean isBookmarked?: boolean isRead?: boolean createdAt?: boolean updatedAt?: boolean readAt?: boolean } export type UserArticleOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "userId" | "articleId" | "isBookmarked" | "isRead" | "createdAt" | "updatedAt" | "readAt", ExtArgs["result"]["userArticle"]> export type UserArticleInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { article?: boolean | ArticleDefaultArgs<ExtArgs> user?: boolean | UserDefaultArgs<ExtArgs> } export type UserArticleIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { article?: boolean | ArticleDefaultArgs<ExtArgs> user?: boolean | UserDefaultArgs<ExtArgs> } export type UserArticleIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { article?: boolean | ArticleDefaultArgs<ExtArgs> user?: boolean | UserDefaultArgs<ExtArgs> } export type $UserArticlePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { name: "UserArticle" objects: { article: Prisma.$ArticlePayload<ExtArgs> user: Prisma.$UserPayload<ExtArgs> } scalars: $Extensions.GetPayloadResult<{ id: number userId: number articleId: number isBookmarked: boolean isRead: boolean createdAt: Date updatedAt: Date readAt: Date | null }, ExtArgs["result"]["userArticle"]> composites: {} } type UserArticleGetPayload<S extends boolean | null | undefined | UserArticleDefaultArgs> = $Result.GetResult<Prisma.$UserArticlePayload, S> type UserArticleCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = Omit<UserArticleFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & { select?: UserArticleCountAggregateInputType | true } export interface UserArticleDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> { [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['UserArticle'], meta: { name: 'UserArticle' } } /** * Find zero or one UserArticle that matches the filter. * @param {UserArticleFindUniqueArgs} args - Arguments to find a UserArticle * @example * // Get one UserArticle * const userArticle = await prisma.userArticle.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique<T extends UserArticleFindUniqueArgs>(args: SelectSubset<T, UserArticleFindUniqueArgs<ExtArgs>>): Prisma__UserArticleClient<$Result.GetResult<Prisma.$UserArticlePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one UserArticle that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {UserArticleFindUniqueOrThrowArgs} args - Arguments to find a UserArticle * @example * // Get one UserArticle * const userArticle = await prisma.userArticle.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow<T extends UserArticleFindUniqueOrThrowArgs>(args: SelectSubset<T, UserArticleFindUniqueOrThrowArgs<ExtArgs>>): Prisma__UserArticleClient<$Result.GetResult<Prisma.$UserArticlePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first UserArticle 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 {UserArticleFindFirstArgs} args - Arguments to find a UserArticle * @example * // Get one UserArticle * const userArticle = await prisma.userArticle.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst<T extends UserArticleFindFirstArgs>(args?: SelectSubset<T, UserArticleFindFirstArgs<ExtArgs>>): Prisma__UserArticleClient<$Result.GetResult<Prisma.$UserArticlePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first UserArticle 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 {UserArticleFindFirstOrThrowArgs} args - Arguments to find a UserArticle * @example * // Get one UserArticle * const userArticle = await prisma.userArticle.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow<T extends UserArticleFindFirstOrThrowArgs>(args?: SelectSubset<T, UserArticleFindFirstOrThrowArgs<ExtArgs>>): Prisma__UserArticleClient<$Result.GetResult<Prisma.$UserArticlePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more UserArticles 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 {UserArticleFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all UserArticles * const userArticles = await prisma.userArticle.findMany() * * // Get first 10 UserArticles * const userArticles = await prisma.userArticle.findMany({ take: 10 }) * * // Only select the `id` * const userArticleWithIdOnly = await prisma.userArticle.findMany({ select: { id: true } }) * */ findMany<T extends UserArticleFindManyArgs>(args?: SelectSubset<T, UserArticleFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserArticlePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>> /** * Create a UserArticle. * @param {UserArticleCreateArgs} args - Arguments to create a UserArticle. * @example * // Create one UserArticle * const UserArticle = await prisma.userArticle.create({ * data: { * // ... data to create a UserArticle * } * }) * */ create<T extends UserArticleCreateArgs>(args: SelectSubset<T, UserArticleCreateArgs<ExtArgs>>): Prisma__UserArticleClient<$Result.GetResult<Prisma.$UserArticlePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many UserArticles. * @param {UserArticleCreateManyArgs} args - Arguments to create many UserArticles. * @example * // Create many UserArticles * const userArticle = await prisma.userArticle.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany<T extends UserArticleCreateManyArgs>(args?: SelectSubset<T, UserArticleCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> /** * Create many UserArticles and returns the data saved in the database. * @param {UserArticleCreateManyAndReturnArgs} args - Arguments to create many UserArticles. * @example * // Create many UserArticles * const userArticle = await prisma.userArticle.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many UserArticles and only return the `id` * const userArticleWithIdOnly = await prisma.userArticle.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 UserArticleCreateManyAndReturnArgs>(args?: SelectSubset<T, UserArticleCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserArticlePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a UserArticle. * @param {UserArticleDeleteArgs} args - Arguments to delete one UserArticle. * @example * // Delete one UserArticle * const UserArticle = await prisma.userArticle.delete({ * where: { * // ... filter to delete one UserArticle * } * }) * */ delete<T extends UserArticleDeleteArgs>(args: SelectSubset<T, UserArticleDeleteArgs<ExtArgs>>): Prisma__UserArticleClient<$Result.GetResult<Prisma.$UserArticlePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one UserArticle. * @param {UserArticleUpdateArgs} args - Arguments to update one UserArticle. * @example * // Update one UserArticle * const userArticle = await prisma.userArticle.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update<T extends UserArticleUpdateArgs>(args: SelectSubset<T, UserArticleUpdateArgs<ExtArgs>>): Prisma__UserArticleClient<$Result.GetResult<Prisma.$UserArticlePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more UserArticles. * @param {UserArticleDeleteManyArgs} args - Arguments to filter UserArticles to delete. * @example * // Delete a few UserArticles * const { count } = await prisma.userArticle.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany<T extends UserArticleDeleteManyArgs>(args?: SelectSubset<T, UserArticleDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> /** * Update zero or more UserArticles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserArticleUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many UserArticles * const userArticle = await prisma.userArticle.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany<T extends UserArticleUpdateManyArgs>(args: SelectSubset<T, UserArticleUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> /** * Update zero or more UserArticles and returns the data updated in the database. * @param {UserArticleUpdateManyAndReturnArgs} args - Arguments to update many UserArticles. * @example * // Update many UserArticles * const userArticle = await prisma.userArticle.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more UserArticles and only return the `id` * const userArticleWithIdOnly = await prisma.userArticle.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn<T extends UserArticleUpdateManyAndReturnArgs>(args: SelectSubset<T, UserArticleUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserArticlePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one UserArticle. * @param {UserArticleUpsertArgs} args - Arguments to update or create a UserArticle. * @example * // Update or create a UserArticle * const userArticle = await prisma.userArticle.upsert({ * create: { * // ... data to create a UserArticle * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the UserArticle we want to update * } * }) */ upsert<T extends UserArticleUpsertArgs>(args: SelectSubset<T, UserArticleUpsertArgs<ExtArgs>>): Prisma__UserArticleClient<$Result.GetResult<Prisma.$UserArticlePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of UserArticles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserArticleCountArgs} args - Arguments to filter UserArticles to count. * @example * // Count the number of UserArticles * const count = await prisma.userArticle.count({ * where: { * // ... the filter for the UserArticles we want to count * } * }) **/ count<T extends UserArticleCountArgs>( args?: Subset<T, UserArticleCountArgs>, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType<T['select'], UserArticleCountAggregateOutputType> : number > /** * Allows you to perform aggregations operations on a UserArticle. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserArticleAggregateArgs} 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 UserArticleAggregateArgs>(args: Subset<T, UserArticleAggregateArgs>): Prisma.PrismaPromise<GetUserArticleAggregateType<T>> /** * Group by UserArticle. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserArticleGroupByArgs} 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 UserArticleGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys<T>>, Extends<'take', Keys<T>> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: UserArticleGroupByArgs['orderBy'] } : { orderBy?: UserArticleGroupByArgs['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, UserArticleGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUserArticleGroupByPayload<T> : Prisma.PrismaPromise<InputErrors> /** * Fields of the UserArticle model */ readonly fields: UserArticleFieldRefs; } /** * The delegate class that acts as a "Promise-like" for UserArticle. * 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__UserArticleClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> { readonly [Symbol.toStringTag]: "PrismaPromise" article<T extends ArticleDefaultArgs<ExtArgs> = {}>(args?: Subset<T, ArticleDefaultArgs<ExtArgs>>): Prisma__ArticleClient<$Result.GetResult<Prisma.$ArticlePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, 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<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 UserArticle model */ interface UserArticleFieldRefs { readonly id: FieldRef<"UserArticle", 'Int'> readonly userId: FieldRef<"UserArticle", 'Int'> readonly articleId: FieldRef<"UserArticle", 'Int'> readonly isBookmarked: FieldRef<"UserArticle", 'Boolean'> readonly isRead: FieldRef<"UserArticle", 'Boolean'> readonly createdAt: FieldRef<"UserArticle", 'DateTime'> readonly updatedAt: FieldRef<"UserArticle", 'DateTime'> readonly readAt: FieldRef<"UserArticle", 'DateTime'> } // Custom InputTypes /** * UserArticle findUnique */ export type UserArticleFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the UserArticle */ select?: UserArticleSelect<ExtArgs> | null /** * Omit specific fields from the UserArticle */ omit?: UserArticleOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: UserArticleInclude<ExtArgs> | null /** * Filter, which UserArticle to fetch. */ where: UserArticleWhereUniqueInput } /** * UserArticle findUniqueOrThrow */ export type UserArticleFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the UserArticle */ select?: UserArticleSelect<ExtArgs> | null /** * Omit specific fields from the UserArticle */ omit?: UserArticleOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: UserArticleInclude<ExtArgs> | null /** * Filter, which UserArticle to fetch. */ where: UserArticleWhereUniqueInput } /** * UserArticle findFirst */ export type UserArticleFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the UserArticle */ select?: UserArticleSelect<ExtArgs> | null /** * Omit specific fields from the UserArticle */ omit?: UserArticleOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: UserArticleInclude<ExtArgs> | null /** * Filter, which UserArticle to fetch. */ where?: UserArticleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of UserArticles to fetch. */ orderBy?: UserArticleOrderByWithRelationInput | UserArticleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for UserArticles. */ cursor?: UserArticleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` UserArticles 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` UserArticles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of UserArticles. */ distinct?: UserArticleScalarFieldEnum | UserArticleScalarFieldEnum[] } /** * UserArticle findFirstOrThrow */ export type UserArticleFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the UserArticle */ select?: UserArticleSelect<ExtArgs> | null /** * Omit specific fields from the UserArticle */ omit?: UserArticleOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: UserArticleInclude<ExtArgs> | null /** * Filter, which UserArticle to fetch. */ where?: UserArticleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of UserArticles to fetch. */ orderBy?: UserArticleOrderByWithRelationInput | UserArticleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for UserArticles. */ cursor?: UserArticleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` UserArticles 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` UserArticles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of UserArticles. */ distinct?: UserArticleScalarFieldEnum | UserArticleScalarFieldEnum[] } /** * UserArticle findMany */ export type UserArticleFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the UserArticle */ select?: UserArticleSelect<ExtArgs> | null /** * Omit specific fields from the UserArticle */ omit?: UserArticleOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: UserArticleInclude<ExtArgs> | null /** * Filter, which UserArticles to fetch. */ where?: UserArticleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of UserArticles to fetch. */ orderBy?: UserArticleOrderByWithRelationInput | UserArticleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing UserArticles. */ cursor?: UserArticleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` UserArticles 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` UserArticles. */ skip?: number distinct?: UserArticleScalarFieldEnum | UserArticleScalarFieldEnum[] } /** * UserArticle create */ export type UserArticleCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the UserArticle */ select?: UserArticleSelect<ExtArgs> | null /** * Omit specific fields from the UserArticle */ omit?: UserArticleOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: UserArticleInclude<ExtArgs> | null /** * The data needed to create a UserArticle. */ data: XOR<UserArticleCreateInput, UserArticleUncheckedCreateInput> } /** * UserArticle createMany */ export type UserArticleCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * The data used to create many UserArticles. */ data: UserArticleCreateManyInput | UserArticleCreateManyInput[] } /** * UserArticle createManyAndReturn */ export type UserArticleCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the UserArticle */ select?: UserArticleSelectCreateManyAndReturn<ExtArgs> | null /** * Omit specific fields from the UserArticle */ omit?: UserArticleOmit<ExtArgs> | null /** * The data used to create many UserArticles. */ data: UserArticleCreateManyInput | UserArticleCreateManyInput[] /** * Choose, which related nodes to fetch as well */ include?: UserArticleIncludeCreateManyAndReturn<ExtArgs> | null } /** * UserArticle update */ export type UserArticleUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the UserArticle */ select?: UserArticleSelect<ExtArgs> | null /** * Omit specific fields from the UserArticle */ omit?: UserArticleOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: UserArticleInclude<ExtArgs> | null /** * The data needed to update a UserArticle. */ data: XOR<UserArticleUpdateInput, UserArticleUncheckedUpdateInput> /** * Choose, which UserArticle to update. */ where: UserArticleWhereUniqueInput } /** * UserArticle updateMany */ export type UserArticleUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * The data used to update UserArticles. */ data: XOR<UserArticleUpdateManyMutationInput, UserArticleUncheckedUpdateManyInput> /** * Filter which UserArticles to update */ where?: UserArticleWhereInput /** * Limit how many UserArticles to update. */ limit?: number } /** * UserArticle updateManyAndReturn */ export type UserArticleUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the UserArticle */ select?: UserArticleSelectUpdateManyAndReturn<ExtArgs> | null /** * Omit specific fields from the UserArticle */ omit?: UserArticleOmit<ExtArgs> | null /** * The data used to update UserArticles. */ data: XOR<UserArticleUpdateManyMutationInput, UserArticleUncheckedUpdateManyInput> /** * Filter which UserArticles to update */ where?: UserArticleWhereInput /** * Limit how many UserArticles to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: UserArticleIncludeUpdateManyAndReturn<ExtArgs> | null } /** * UserArticle upsert */ export type UserArticleUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the UserArticle */ select?: UserArticleSelect<ExtArgs> | null /** * Omit specific fields from the UserArticle */ omit?: UserArticleOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: UserArticleInclude<ExtArgs> | null /** * The filter to search for the UserArticle to update in case it exists. */ where: UserArticleWhereUniqueInput /** * In case the UserArticle found by the `where` argument doesn't exist, create a new UserArticle with this data. */ create: XOR<UserArticleCreateInput, UserArticleUncheckedCreateInput> /** * In case the UserArticle was found with the provided `where` argument, update it with this data. */ update: XOR<UserArticleUpdateInput, UserArticleUncheckedUpdateInput> } /** * UserArticle delete */ export type UserArticleDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the UserArticle */ select?: UserArticleSelect<ExtArgs> | null /** * Omit specific fields from the UserArticle */ omit?: UserArticleOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: UserArticleInclude<ExtArgs> | null /** * Filter which UserArticle to delete. */ where: UserArticleWhereUniqueInput } /** * UserArticle deleteMany */ export type UserArticleDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Filter which UserArticles to delete */ where?: UserArticleWhereInput /** * Limit how many UserArticles to delete. */ limit?: number } /** * UserArticle without action */ export type UserArticleDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the UserArticle */ select?: UserArticleSelect<ExtArgs> | null /** * Omit specific fields from the UserArticle */ omit?: UserArticleOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: UserArticleInclude<ExtArgs> | null } /** * Model User */ export type AggregateUser = { _count: UserCountAggregateOutputType | null _avg: UserAvgAggregateOutputType | null _sum: UserSumAggregateOutputType | null _min: UserMinAggregateOutputType | null _max: UserMaxAggregateOutputType | null } export type UserAvgAggregateOutputType = { id: number | null } export type UserSumAggregateOutputType = { id: number | null } export type UserMinAggregateOutputType = { id: number | null email: string | null name: string | null passwordHash: string | null createdAt: Date | null updatedAt: Date | null lastLoginAt: Date | null preferredCategories: string | null preferredSources: string | null preferredLanguage: string | null } export type UserMaxAggregateOutputType = { id: number | null email: string | null name: string | null passwordHash: string | null createdAt: Date | null updatedAt: Date | null lastLoginAt: Date | null preferredCategories: string | null preferredSources: string | null preferredLanguage: string | null } export type UserCountAggregateOutputType = { id: number email: number name: number passwordHash: number createdAt: number updatedAt: number lastLoginAt: number preferredCategories: number preferredSources: number preferredLanguage: number _all: number } export type UserAvgAggregateInputType = { id?: true } export type UserSumAggregateInputType = { id?: true } export type UserMinAggregateInputType = { id?: true email?: true name?: true passwordHash?: true createdAt?: true updatedAt?: true lastLoginAt?: true preferredCategories?: true preferredSources?: true preferredLanguage?: true } export type UserMaxAggregateInputType = { id?: true email?: true name?: true passwordHash?: true createdAt?: true updatedAt?: true lastLoginAt?: true preferredCategories?: true preferredSources?: true preferredLanguage?: true } export type UserCountAggregateInputType = { id?: true email?: true name?: true passwordHash?: true createdAt?: true updatedAt?: true lastLoginAt?: true preferredCategories?: true preferredSources?: true preferredLanguage?: 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 average **/ _avg?: UserAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: UserSumAggregateInputType /** * {@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 _avg?: UserAvgAggregateInputType _sum?: UserSumAggregateInputType _min?: UserMinAggregateInputType _max?: UserMaxAggregateInputType } export type UserGroupByOutputType = { id: number email: string name: string | null passwordHash: string createdAt: Date updatedAt: Date lastLoginAt: Date | null preferredCategories: string | null preferredSources: string | null preferredLanguage: string _count: UserCountAggregateOutputType | null _avg: UserAvgAggregateOutputType | null _sum: UserSumAggregateOutputType | null _min: UserMinAggregateOutputType | null _max: UserMaxAggregateOutputType | null } type GetUserGroupByPayload<T extends UserGroupByArgs> = Prisma.PrismaPromise< Array< PickEnumerable<UserGroupByOutputType, T['by']> & { [P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType<T[P], UserGroupByOutputType[P]> : GetScalarType<T[P], UserGroupByOutputType[P]> } > > export type UserSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ id?: boolean email?: boolean name?: boolean passwordHash?: boolean createdAt?: boolean updatedAt?: boolean lastLoginAt?: boolean preferredCategories?: boolean preferredSources?: boolean preferredLanguage?: boolean userArticles?: boolean | User$userArticlesArgs<ExtArgs> searches?: boolean | User$searchesArgs<ExtArgs> _count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs> }, ExtArgs["result"]["user"]> export type UserSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ id?: boolean email?: boolean name?: boolean passwordHash?: boolean createdAt?: boolean updatedAt?: boolean lastLoginAt?: boolean preferredCategories?: boolean preferredSources?: boolean preferredLanguage?: boolean }, ExtArgs["result"]["user"]> export type UserSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ id?: boolean email?: boolean name?: boolean passwordHash?: boolean createdAt?: boolean updatedAt?: boolean lastLoginAt?: boolean preferredCategories?: boolean preferredSources?: boolean preferredLanguage?: boolean }, ExtArgs["result"]["user"]> export type UserSelectScalar = { id?: boolean email?: boolean name?: boolean passwordHash?: boolean createdAt?: boolean updatedAt?: boolean lastLoginAt?: boolean preferredCategories?: boolean preferredSources?: boolean preferredLanguage?: boolean } export type UserOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "email" | "name" | "passwordHash" | "createdAt" | "updatedAt" | "lastLoginAt" | "preferredCategories" | "preferredSources" | "preferredLanguage", ExtArgs["result"]["user"]> export type UserInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { userArticles?: boolean | User$userArticlesArgs<ExtArgs> searches?: boolean | User$searchesArgs<ExtArgs> _count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs> } export type UserIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {} export type UserIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {} export type $UserPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { name: "User" objects: { userArticles: Prisma.$UserArticlePayload<ExtArgs>[] searches: Prisma.$SavedSearchPayload<ExtArgs>[] } scalars: $Extensions.GetPayloadResult<{ id: number email: string name: string | null passwordHash: string createdAt: Date updatedAt: Date lastLoginAt: Date | null preferredCategories: string | null preferredSources: string | null preferredLanguage: string }, ExtArgs["result"]["user"]> composites: {} } type UserGetPayload<S extends boolean | null | undefined | UserDefaultArgs> = $Result.GetResult<Prisma.$UserPayload, S> type UserCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = Omit<UserFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & { select?: UserCountAggregateInputType | true } export interface UserDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> { [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", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * 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", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * 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", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * 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", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * 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", GlobalOmitOptions>> /** * 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", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * 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", GlobalOmitOptions>> /** * 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", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * 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", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Users. * @param {UserDeleteManyArgs} args - Arguments to filter Users to delete. * @example * // Delete a few Users * const { count } = await prisma.user.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany<T extends UserDeleteManyArgs>(args?: SelectSubset<T, UserDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> /** * Update zero or more Users. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Users * const user = await prisma.user.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany<T extends UserUpdateManyArgs>(args: SelectSubset<T, UserUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> /** * Update zero or more Users and returns the data updated in the database. * @param {UserUpdateManyAndReturnArgs} args - Arguments to update many Users. * @example * // Update many Users * const user = await prisma.user.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Users and only return the `id` * const userWithIdOnly = await prisma.user.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn<T extends UserUpdateManyAndReturnArgs>(args: SelectSubset<T, UserUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>> /** * 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", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * 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, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> { readonly [Symbol.toStringTag]: "PrismaPromise" userArticles<T extends User$userArticlesArgs<ExtArgs> = {}>(args?: Subset<T, User$userArticlesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserArticlePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null> searches<T extends User$searchesArgs<ExtArgs> = {}>(args?: Subset<T, User$searchesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SavedSearchPayload<ExtArgs>, 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<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", 'Int'> readonly email: FieldRef<"User", 'String'> readonly name: FieldRef<"User", 'String'> readonly passwordHash: FieldRef<"User", 'String'> readonly createdAt: FieldRef<"User", 'DateTime'> readonly updatedAt: FieldRef<"User", 'DateTime'> readonly lastLoginAt: FieldRef<"User", 'DateTime'> readonly preferredCategories: FieldRef<"User", 'String'> readonly preferredSources: FieldRef<"User", 'String'> readonly preferredLanguage: FieldRef<"User", 'String'> } // Custom InputTypes /** * User findUnique */ export type UserFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the User */ select?: UserSelect<ExtArgs> | null /** * Omit specific fields from the User */ omit?: UserOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude<ExtArgs> | null /** * Filter, which User to fetch. */ where: UserWhereUniqueInput } /** * User findUniqueOrThrow */ export type UserFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the User */ select?: UserSelect<ExtArgs> | null /** * Omit specific fields from the User */ omit?: UserOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude<ExtArgs> | null /** * Filter, which User to fetch. */ where: UserWhereUniqueInput } /** * User findFirst */ export type UserFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the User */ select?: UserSelect<ExtArgs> | null /** * Omit specific fields from the User */ omit?: UserOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude<ExtArgs> | null /** * Filter, which User to fetch. */ where?: UserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Users. */ cursor?: UserWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Users from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Users. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Users. */ distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] } /** * User findFirstOrThrow */ export type UserFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the User */ select?: UserSelect<ExtArgs> | null /** * Omit specific fields from the User */ omit?: UserOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude<ExtArgs> | null /** * Filter, which User to fetch. */ where?: UserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Users. */ cursor?: UserWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Users from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Users. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Users. */ distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] } /** * User findMany */ export type UserFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the User */ select?: UserSelect<ExtArgs> | null /** * Omit specific fields from the User */ omit?: UserOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude<ExtArgs> | null /** * Filter, which Users to fetch. */ where?: UserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Users. */ cursor?: UserWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Users from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Users. */ skip?: number distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] } /** * User create */ export type UserCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the User */ select?: UserSelect<ExtArgs> | null /** * Omit specific fields from the User */ omit?: UserOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude<ExtArgs> | null /** * The data needed to create a User. */ data: XOR<UserCreateInput, UserUncheckedCreateInput> } /** * User createMany */ export type UserCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * The data used to create many Users. */ data: UserCreateManyInput | UserCreateManyInput[] } /** * User createManyAndReturn */ export type UserCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the User */ select?: UserSelectCreateManyAndReturn<ExtArgs> | null /** * Omit specific fields from the User */ omit?: UserOmit<ExtArgs> | null /** * The data used to create many Users. */ data: UserCreateManyInput | UserCreateManyInput[] } /** * User update */ export type UserUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the User */ select?: UserSelect<ExtArgs> | null /** * Omit specific fields from the User */ omit?: UserOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude<ExtArgs> | null /** * The data needed to update a User. */ data: XOR<UserUpdateInput, UserUncheckedUpdateInput> /** * Choose, which User to update. */ where: UserWhereUniqueInput } /** * User updateMany */ export type UserUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * The data used to update Users. */ data: XOR<UserUpdateManyMutationInput, UserUncheckedUpdateManyInput> /** * Filter which Users to update */ where?: UserWhereInput /** * Limit how many Users to update. */ limit?: number } /** * User updateManyAndReturn */ export type UserUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the User */ select?: UserSelectUpdateManyAndReturn<ExtArgs> | null /** * Omit specific fields from the User */ omit?: UserOmit<ExtArgs> | null /** * The data used to update Users. */ data: XOR<UserUpdateManyMutationInput, UserUncheckedUpdateManyInput> /** * Filter which Users to update */ where?: UserWhereInput /** * Limit how many Users to update. */ limit?: number } /** * User upsert */ export type UserUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the User */ select?: UserSelect<ExtArgs> | null /** * Omit specific fields from the User */ omit?: UserOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude<ExtArgs> | null /** * The filter to search for the User to update in case it exists. */ where: UserWhereUniqueInput /** * In case the User found by the `where` argument doesn't exist, create a new User with this data. */ create: XOR<UserCreateInput, UserUncheckedCreateInput> /** * In case the User was found with the provided `where` argument, update it with this data. */ update: XOR<UserUpdateInput, UserUncheckedUpdateInput> } /** * User delete */ export type UserDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the User */ select?: UserSelect<ExtArgs> | null /** * Omit specific fields from the User */ omit?: UserOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude<ExtArgs> | null /** * Filter which User to delete. */ where: UserWhereUniqueInput } /** * User deleteMany */ export type UserDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Filter which Users to delete */ where?: UserWhereInput /** * Limit how many Users to delete. */ limit?: number } /** * User.userArticles */ export type User$userArticlesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the UserArticle */ select?: UserArticleSelect<ExtArgs> | null /** * Omit specific fields from the UserArticle */ omit?: UserArticleOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: UserArticleInclude<ExtArgs> | null where?: UserArticleWhereInput orderBy?: UserArticleOrderByWithRelationInput | UserArticleOrderByWithRelationInput[] cursor?: UserArticleWhereUniqueInput take?: number skip?: number distinct?: UserArticleScalarFieldEnum | UserArticleScalarFieldEnum[] } /** * User.searches */ export type User$searchesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the SavedSearch */ select?: SavedSearchSelect<ExtArgs> | null /** * Omit specific fields from the SavedSearch */ omit?: SavedSearchOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: SavedSearchInclude<ExtArgs> | null where?: SavedSearchWhereInput orderBy?: SavedSearchOrderByWithRelationInput | SavedSearchOrderByWithRelationInput[] cursor?: SavedSearchWhereUniqueInput take?: number skip?: number distinct?: SavedSearchScalarFieldEnum | SavedSearchScalarFieldEnum[] } /** * User without action */ export type UserDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the User */ select?: UserSelect<ExtArgs> | null /** * Omit specific fields from the User */ omit?: UserOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude<ExtArgs> | null } /** * Model Topic */ export type AggregateTopic = { _count: TopicCountAggregateOutputType | null _avg: TopicAvgAggregateOutputType | null _sum: TopicSumAggregateOutputType | null _min: TopicMinAggregateOutputType | null _max: TopicMaxAggregateOutputType | null } export type TopicAvgAggregateOutputType = { id: number | null articleCount: number | null } export type TopicSumAggregateOutputType = { id: number | null articleCount: number | null } export type TopicMinAggregateOutputType = { id: number | null name: string | null articleCount: number | null createdAt: Date | null updatedAt: Date | null } export type TopicMaxAggregateOutputType = { id: number | null name: string | null articleCount: number | null createdAt: Date | null updatedAt: Date | null } export type TopicCountAggregateOutputType = { id: number name: number articleCount: number createdAt: number updatedAt: number _all: number } export type TopicAvgAggregateInputType = { id?: true articleCount?: true } export type TopicSumAggregateInputType = { id?: true articleCount?: true } export type TopicMinAggregateInputType = { id?: true name?: true articleCount?: true createdAt?: true updatedAt?: true } export type TopicMaxAggregateInputType = { id?: true name?: true articleCount?: true createdAt?: true updatedAt?: true } export type TopicCountAggregateInputType = { id?: true name?: true articleCount?: true createdAt?: true updatedAt?: true _all?: true } export type TopicAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Filter which Topic to aggregate. */ where?: TopicWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Topics to fetch. */ orderBy?: TopicOrderByWithRelationInput | TopicOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: TopicWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Topics 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` Topics. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Topics **/ _count?: true | TopicCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: TopicAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: TopicSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: TopicMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: TopicMaxAggregateInputType } export type GetTopicAggregateType<T extends TopicAggregateArgs> = { [P in keyof T & keyof AggregateTopic]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType<T[P], AggregateTopic[P]> : GetScalarType<T[P], AggregateTopic[P]> } export type TopicGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { where?: TopicWhereInput orderBy?: TopicOrderByWithAggregationInput | TopicOrderByWithAggregationInput[] by: TopicScalarFieldEnum[] | TopicScalarFieldEnum having?: TopicScalarWhereWithAggregatesInput take?: number skip?: number _count?: TopicCountAggregateInputType | true _avg?: TopicAvgAggregateInputType _sum?: TopicSumAggregateInputType _min?: TopicMinAggregateInputType _max?: TopicMaxAggregateInputType } export type TopicGroupByOutputType = { id: number name: string articleCount: number createdAt: Date updatedAt: Date _count: TopicCountAggregateOutputType | null _avg: TopicAvgAggregateOutputType | null _sum: TopicSumAggregateOutputType | null _min: TopicMinAggregateOutputType | null _max: TopicMaxAggregateOutputType | null } type GetTopicGroupByPayload<T extends TopicGroupByArgs> = Prisma.PrismaPromise< Array< PickEnumerable<TopicGroupByOutputType, T['by']> & { [P in ((keyof T) & (keyof TopicGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType<T[P], TopicGroupByOutputType[P]> : GetScalarType<T[P], TopicGroupByOutputType[P]> } > > export type TopicSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ id?: boolean name?: boolean articleCount?: boolean createdAt?: boolean updatedAt?: boolean articles?: boolean | Topic$articlesArgs<ExtArgs> _count?: boolean | TopicCountOutputTypeDefaultArgs<ExtArgs> }, ExtArgs["result"]["topic"]> export type TopicSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ id?: boolean name?: boolean articleCount?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["topic"]> export type TopicSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ id?: boolean name?: boolean articleCount?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["topic"]> export type TopicSelectScalar = { id?: boolean name?: boolean articleCount?: boolean createdAt?: boolean updatedAt?: boolean } export type TopicOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "name" | "articleCount" | "createdAt" | "updatedAt", ExtArgs["result"]["topic"]> export type TopicInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { articles?: boolean | Topic$articlesArgs<ExtArgs> _count?: boolean | TopicCountOutputTypeDefaultArgs<ExtArgs> } export type TopicIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {} export type TopicIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {} export type $TopicPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { name: "Topic" objects: { articles: Prisma.$ArticleTopicPayload<ExtArgs>[] } scalars: $Extensions.GetPayloadResult<{ id: number name: string articleCount: number createdAt: Date updatedAt: Date }, ExtArgs["result"]["topic"]> composites: {} } type TopicGetPayload<S extends boolean | null | undefined | TopicDefaultArgs> = $Result.GetResult<Prisma.$TopicPayload, S> type TopicCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = Omit<TopicFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & { select?: TopicCountAggregateInputType | true } export interface TopicDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> { [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Topic'], meta: { name: 'Topic' } } /** * Find zero or one Topic that matches the filter. * @param {TopicFindUniqueArgs} args - Arguments to find a Topic * @example * // Get one Topic * const topic = await prisma.topic.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique<T extends TopicFindUniqueArgs>(args: SelectSubset<T, TopicFindUniqueArgs<ExtArgs>>): Prisma__TopicClient<$Result.GetResult<Prisma.$TopicPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Topic that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {TopicFindUniqueOrThrowArgs} args - Arguments to find a Topic * @example * // Get one Topic * const topic = await prisma.topic.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow<T extends TopicFindUniqueOrThrowArgs>(args: SelectSubset<T, TopicFindUniqueOrThrowArgs<ExtArgs>>): Prisma__TopicClient<$Result.GetResult<Prisma.$TopicPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Topic 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 {TopicFindFirstArgs} args - Arguments to find a Topic * @example * // Get one Topic * const topic = await prisma.topic.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst<T extends TopicFindFirstArgs>(args?: SelectSubset<T, TopicFindFirstArgs<ExtArgs>>): Prisma__TopicClient<$Result.GetResult<Prisma.$TopicPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Topic 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 {TopicFindFirstOrThrowArgs} args - Arguments to find a Topic * @example * // Get one Topic * const topic = await prisma.topic.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow<T extends TopicFindFirstOrThrowArgs>(args?: SelectSubset<T, TopicFindFirstOrThrowArgs<ExtArgs>>): Prisma__TopicClient<$Result.GetResult<Prisma.$TopicPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Topics 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 {TopicFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Topics * const topics = await prisma.topic.findMany() * * // Get first 10 Topics * const topics = await prisma.topic.findMany({ take: 10 }) * * // Only select the `id` * const topicWithIdOnly = await prisma.topic.findMany({ select: { id: true } }) * */ findMany<T extends TopicFindManyArgs>(args?: SelectSubset<T, TopicFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$TopicPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>> /** * Create a Topic. * @param {TopicCreateArgs} args - Arguments to create a Topic. * @example * // Create one Topic * const Topic = await prisma.topic.create({ * data: { * // ... data to create a Topic * } * }) * */ create<T extends TopicCreateArgs>(args: SelectSubset<T, TopicCreateArgs<ExtArgs>>): Prisma__TopicClient<$Result.GetResult<Prisma.$TopicPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Topics. * @param {TopicCreateManyArgs} args - Arguments to create many Topics. * @example * // Create many Topics * const topic = await prisma.topic.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany<T extends TopicCreateManyArgs>(args?: SelectSubset<T, TopicCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> /** * Create many Topics and returns the data saved in the database. * @param {TopicCreateManyAndReturnArgs} args - Arguments to create many Topics. * @example * // Create many Topics * const topic = await prisma.topic.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Topics and only return the `id` * const topicWithIdOnly = await prisma.topic.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 TopicCreateManyAndReturnArgs>(args?: SelectSubset<T, TopicCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$TopicPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Topic. * @param {TopicDeleteArgs} args - Arguments to delete one Topic. * @example * // Delete one Topic * const Topic = await prisma.topic.delete({ * where: { * // ... filter to delete one Topic * } * }) * */ delete<T extends TopicDeleteArgs>(args: SelectSubset<T, TopicDeleteArgs<ExtArgs>>): Prisma__TopicClient<$Result.GetResult<Prisma.$TopicPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Topic. * @param {TopicUpdateArgs} args - Arguments to update one Topic. * @example * // Update one Topic * const topic = await prisma.topic.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update<T extends TopicUpdateArgs>(args: SelectSubset<T, TopicUpdateArgs<ExtArgs>>): Prisma__TopicClient<$Result.GetResult<Prisma.$TopicPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Topics. * @param {TopicDeleteManyArgs} args - Arguments to filter Topics to delete. * @example * // Delete a few Topics * const { count } = await prisma.topic.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany<T extends TopicDeleteManyArgs>(args?: SelectSubset<T, TopicDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> /** * Update zero or more Topics. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TopicUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Topics * const topic = await prisma.topic.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany<T extends TopicUpdateManyArgs>(args: SelectSubset<T, TopicUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> /** * Update zero or more Topics and returns the data updated in the database. * @param {TopicUpdateManyAndReturnArgs} args - Arguments to update many Topics. * @example * // Update many Topics * const topic = await prisma.topic.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Topics and only return the `id` * const topicWithIdOnly = await prisma.topic.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn<T extends TopicUpdateManyAndReturnArgs>(args: SelectSubset<T, TopicUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$TopicPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Topic. * @param {TopicUpsertArgs} args - Arguments to update or create a Topic. * @example * // Update or create a Topic * const topic = await prisma.topic.upsert({ * create: { * // ... data to create a Topic * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Topic we want to update * } * }) */ upsert<T extends TopicUpsertArgs>(args: SelectSubset<T, TopicUpsertArgs<ExtArgs>>): Prisma__TopicClient<$Result.GetResult<Prisma.$TopicPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Topics. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TopicCountArgs} args - Arguments to filter Topics to count. * @example * // Count the number of Topics * const count = await prisma.topic.count({ * where: { * // ... the filter for the Topics we want to count * } * }) **/ count<T extends TopicCountArgs>( args?: Subset<T, TopicCountArgs>, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType<T['select'], TopicCountAggregateOutputType> : number > /** * Allows you to perform aggregations operations on a Topic. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TopicAggregateArgs} 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 TopicAggregateArgs>(args: Subset<T, TopicAggregateArgs>): Prisma.PrismaPromise<GetTopicAggregateType<T>> /** * Group by Topic. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TopicGroupByArgs} 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 TopicGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys<T>>, Extends<'take', Keys<T>> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: TopicGroupByArgs['orderBy'] } : { orderBy?: TopicGroupByArgs['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, TopicGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTopicGroupByPayload<T> : Prisma.PrismaPromise<InputErrors> /** * Fields of the Topic model */ readonly fields: TopicFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Topic. * 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__TopicClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> { readonly [Symbol.toStringTag]: "PrismaPromise" articles<T extends Topic$articlesArgs<ExtArgs> = {}>(args?: Subset<T, Topic$articlesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ArticleTopicPayload<ExtArgs>, 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<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 Topic model */ interface TopicFieldRefs { readonly id: FieldRef<"Topic", 'Int'> readonly name: FieldRef<"Topic", 'String'> readonly articleCount: FieldRef<"Topic", 'Int'> readonly createdAt: FieldRef<"Topic", 'DateTime'> readonly updatedAt: FieldRef<"Topic", 'DateTime'> } // Custom InputTypes /** * Topic findUnique */ export type TopicFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the Topic */ select?: TopicSelect<ExtArgs> | null /** * Omit specific fields from the Topic */ omit?: TopicOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: TopicInclude<ExtArgs> | null /** * Filter, which Topic to fetch. */ where: TopicWhereUniqueInput } /** * Topic findUniqueOrThrow */ export type TopicFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the Topic */ select?: TopicSelect<ExtArgs> | null /** * Omit specific fields from the Topic */ omit?: TopicOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: TopicInclude<ExtArgs> | null /** * Filter, which Topic to fetch. */ where: TopicWhereUniqueInput } /** * Topic findFirst */ export type TopicFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the Topic */ select?: TopicSelect<ExtArgs> | null /** * Omit specific fields from the Topic */ omit?: TopicOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: TopicInclude<ExtArgs> | null /** * Filter, which Topic to fetch. */ where?: TopicWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Topics to fetch. */ orderBy?: TopicOrderByWithRelationInput | TopicOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Topics. */ cursor?: TopicWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Topics 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` Topics. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Topics. */ distinct?: TopicScalarFieldEnum | TopicScalarFieldEnum[] } /** * Topic findFirstOrThrow */ export type TopicFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the Topic */ select?: TopicSelect<ExtArgs> | null /** * Omit specific fields from the Topic */ omit?: TopicOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: TopicInclude<ExtArgs> | null /** * Filter, which Topic to fetch. */ where?: TopicWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Topics to fetch. */ orderBy?: TopicOrderByWithRelationInput | TopicOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Topics. */ cursor?: TopicWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Topics 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` Topics. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Topics. */ distinct?: TopicScalarFieldEnum | TopicScalarFieldEnum[] } /** * Topic findMany */ export type TopicFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the Topic */ select?: TopicSelect<ExtArgs> | null /** * Omit specific fields from the Topic */ omit?: TopicOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: TopicInclude<ExtArgs> | null /** * Filter, which Topics to fetch. */ where?: TopicWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Topics to fetch. */ orderBy?: TopicOrderByWithRelationInput | TopicOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Topics. */ cursor?: TopicWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Topics 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` Topics. */ skip?: number distinct?: TopicScalarFieldEnum | TopicScalarFieldEnum[] } /** * Topic create */ export type TopicCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the Topic */ select?: TopicSelect<ExtArgs> | null /** * Omit specific fields from the Topic */ omit?: TopicOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: TopicInclude<ExtArgs> | null /** * The data needed to create a Topic. */ data: XOR<TopicCreateInput, TopicUncheckedCreateInput> } /** * Topic createMany */ export type TopicCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * The data used to create many Topics. */ data: TopicCreateManyInput | TopicCreateManyInput[] } /** * Topic createManyAndReturn */ export type TopicCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the Topic */ select?: TopicSelectCreateManyAndReturn<ExtArgs> | null /** * Omit specific fields from the Topic */ omit?: TopicOmit<ExtArgs> | null /** * The data used to create many Topics. */ data: TopicCreateManyInput | TopicCreateManyInput[] } /** * Topic update */ export type TopicUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the Topic */ select?: TopicSelect<ExtArgs> | null /** * Omit specific fields from the Topic */ omit?: TopicOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: TopicInclude<ExtArgs> | null /** * The data needed to update a Topic. */ data: XOR<TopicUpdateInput, TopicUncheckedUpdateInput> /** * Choose, which Topic to update. */ where: TopicWhereUniqueInput } /** * Topic updateMany */ export type TopicUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * The data used to update Topics. */ data: XOR<TopicUpdateManyMutationInput, TopicUncheckedUpdateManyInput> /** * Filter which Topics to update */ where?: TopicWhereInput /** * Limit how many Topics to update. */ limit?: number } /** * Topic updateManyAndReturn */ export type TopicUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the Topic */ select?: TopicSelectUpdateManyAndReturn<ExtArgs> | null /** * Omit specific fields from the Topic */ omit?: TopicOmit<ExtArgs> | null /** * The data used to update Topics. */ data: XOR<TopicUpdateManyMutationInput, TopicUncheckedUpdateManyInput> /** * Filter which Topics to update */ where?: TopicWhereInput /** * Limit how many Topics to update. */ limit?: number } /** * Topic upsert */ export type TopicUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the Topic */ select?: TopicSelect<ExtArgs> | null /** * Omit specific fields from the Topic */ omit?: TopicOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: TopicInclude<ExtArgs> | null /** * The filter to search for the Topic to update in case it exists. */ where: TopicWhereUniqueInput /** * In case the Topic found by the `where` argument doesn't exist, create a new Topic with this data. */ create: XOR<TopicCreateInput, TopicUncheckedCreateInput> /** * In case the Topic was found with the provided `where` argument, update it with this data. */ update: XOR<TopicUpdateInput, TopicUncheckedUpdateInput> } /** * Topic delete */ export type TopicDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the Topic */ select?: TopicSelect<ExtArgs> | null /** * Omit specific fields from the Topic */ omit?: TopicOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: TopicInclude<ExtArgs> | null /** * Filter which Topic to delete. */ where: TopicWhereUniqueInput } /** * Topic deleteMany */ export type TopicDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Filter which Topics to delete */ where?: TopicWhereInput /** * Limit how many Topics to delete. */ limit?: number } /** * Topic.articles */ export type Topic$articlesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the ArticleTopic */ select?: ArticleTopicSelect<ExtArgs> | null /** * Omit specific fields from the ArticleTopic */ omit?: ArticleTopicOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: ArticleTopicInclude<ExtArgs> | null where?: ArticleTopicWhereInput orderBy?: ArticleTopicOrderByWithRelationInput | ArticleTopicOrderByWithRelationInput[] cursor?: ArticleTopicWhereUniqueInput take?: number skip?: number distinct?: ArticleTopicScalarFieldEnum | ArticleTopicScalarFieldEnum[] } /** * Topic without action */ export type TopicDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the Topic */ select?: TopicSelect<ExtArgs> | null /** * Omit specific fields from the Topic */ omit?: TopicOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: TopicInclude<ExtArgs> | null } /** * Model ArticleTopic */ export type AggregateArticleTopic = { _count: ArticleTopicCountAggregateOutputType | null _avg: ArticleTopicAvgAggregateOutputType | null _sum: ArticleTopicSumAggregateOutputType | null _min: ArticleTopicMinAggregateOutputType | null _max: ArticleTopicMaxAggregateOutputType | null } export type ArticleTopicAvgAggregateOutputType = { id: number | null articleId: number | null topicId: number | null confidence: number | null } export type ArticleTopicSumAggregateOutputType = { id: number | null articleId: number | null topicId: number | null confidence: number | null } export type ArticleTopicMinAggregateOutputType = { id: number | null articleId: number | null topicId: number | null confidence: number | null createdAt: Date | null } export type ArticleTopicMaxAggregateOutputType = { id: number | null articleId: number | null topicId: number | null confidence: number | null createdAt: Date | null } export type ArticleTopicCountAggregateOutputType = { id: number articleId: number topicId: number confidence: number createdAt: number _all: number } export type ArticleTopicAvgAggregateInputType = { id?: true articleId?: true topicId?: true confidence?: true } export type ArticleTopicSumAggregateInputType = { id?: true articleId?: true topicId?: true confidence?: true } export type ArticleTopicMinAggregateInputType = { id?: true articleId?: true topicId?: true confidence?: true createdAt?: true } export type ArticleTopicMaxAggregateInputType = { id?: true articleId?: true topicId?: true confidence?: true createdAt?: true } export type ArticleTopicCountAggregateInputType = { id?: true articleId?: true topicId?: true confidence?: true createdAt?: true _all?: true } export type ArticleTopicAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Filter which ArticleTopic to aggregate. */ where?: ArticleTopicWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ArticleTopics to fetch. */ orderBy?: ArticleTopicOrderByWithRelationInput | ArticleTopicOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: ArticleTopicWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ArticleTopics 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` ArticleTopics. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned ArticleTopics **/ _count?: true | ArticleTopicCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: ArticleTopicAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: ArticleTopicSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ArticleTopicMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ArticleTopicMaxAggregateInputType } export type GetArticleTopicAggregateType<T extends ArticleTopicAggregateArgs> = { [P in keyof T & keyof AggregateArticleTopic]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType<T[P], AggregateArticleTopic[P]> : GetScalarType<T[P], AggregateArticleTopic[P]> } export type ArticleTopicGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { where?: ArticleTopicWhereInput orderBy?: ArticleTopicOrderByWithAggregationInput | ArticleTopicOrderByWithAggregationInput[] by: ArticleTopicScalarFieldEnum[] | ArticleTopicScalarFieldEnum having?: ArticleTopicScalarWhereWithAggregatesInput take?: number skip?: number _count?: ArticleTopicCountAggregateInputType | true _avg?: ArticleTopicAvgAggregateInputType _sum?: ArticleTopicSumAggregateInputType _min?: ArticleTopicMinAggregateInputType _max?: ArticleTopicMaxAggregateInputType } export type ArticleTopicGroupByOutputType = { id: number articleId: number topicId: number confidence: number createdAt: Date _count: ArticleTopicCountAggregateOutputType | null _avg: ArticleTopicAvgAggregateOutputType | null _sum: ArticleTopicSumAggregateOutputType | null _min: ArticleTopicMinAggregateOutputType | null _max: ArticleTopicMaxAggregateOutputType | null } type GetArticleTopicGroupByPayload<T extends ArticleTopicGroupByArgs> = Prisma.PrismaPromise< Array< PickEnumerable<ArticleTopicGroupByOutputType, T['by']> & { [P in ((keyof T) & (keyof ArticleTopicGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType<T[P], ArticleTopicGroupByOutputType[P]> : GetScalarType<T[P], ArticleTopicGroupByOutputType[P]> } > > export type ArticleTopicSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ id?: boolean articleId?: boolean topicId?: boolean confidence?: boolean createdAt?: boolean article?: boolean | ArticleDefaultArgs<ExtArgs> topic?: boolean | TopicDefaultArgs<ExtArgs> }, ExtArgs["result"]["articleTopic"]> export type ArticleTopicSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ id?: boolean articleId?: boolean topicId?: boolean confidence?: boolean createdAt?: boolean article?: boolean | ArticleDefaultArgs<ExtArgs> topic?: boolean | TopicDefaultArgs<ExtArgs> }, ExtArgs["result"]["articleTopic"]> export type ArticleTopicSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ id?: boolean articleId?: boolean topicId?: boolean confidence?: boolean createdAt?: boolean article?: boolean | ArticleDefaultArgs<ExtArgs> topic?: boolean | TopicDefaultArgs<ExtArgs> }, ExtArgs["result"]["articleTopic"]> export type ArticleTopicSelectScalar = { id?: boolean articleId?: boolean topicId?: boolean confidence?: boolean createdAt?: boolean } export type ArticleTopicOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "articleId" | "topicId" | "confidence" | "createdAt", ExtArgs["result"]["articleTopic"]> export type ArticleTopicInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { article?: boolean | ArticleDefaultArgs<ExtArgs> topic?: boolean | TopicDefaultArgs<ExtArgs> } export type ArticleTopicIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { article?: boolean | ArticleDefaultArgs<ExtArgs> topic?: boolean | TopicDefaultArgs<ExtArgs> } export type ArticleTopicIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { article?: boolean | ArticleDefaultArgs<ExtArgs> topic?: boolean | TopicDefaultArgs<ExtArgs> } export type $ArticleTopicPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { name: "ArticleTopic" objects: { article: Prisma.$ArticlePayload<ExtArgs> topic: Prisma.$TopicPayload<ExtArgs> } scalars: $Extensions.GetPayloadResult<{ id: number articleId: number topicId: number confidence: number createdAt: Date }, ExtArgs["result"]["articleTopic"]> composites: {} } type ArticleTopicGetPayload<S extends boolean | null | undefined | ArticleTopicDefaultArgs> = $Result.GetResult<Prisma.$ArticleTopicPayload, S> type ArticleTopicCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = Omit<ArticleTopicFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & { select?: ArticleTopicCountAggregateInputType | true } export interface ArticleTopicDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> { [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ArticleTopic'], meta: { name: 'ArticleTopic' } } /** * Find zero or one ArticleTopic that matches the filter. * @param {ArticleTopicFindUniqueArgs} args - Arguments to find a ArticleTopic * @example * // Get one ArticleTopic * const articleTopic = await prisma.articleTopic.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique<T extends ArticleTopicFindUniqueArgs>(args: SelectSubset<T, ArticleTopicFindUniqueArgs<ExtArgs>>): Prisma__ArticleTopicClient<$Result.GetResult<Prisma.$ArticleTopicPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one ArticleTopic that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ArticleTopicFindUniqueOrThrowArgs} args - Arguments to find a ArticleTopic * @example * // Get one ArticleTopic * const articleTopic = await prisma.articleTopic.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow<T extends ArticleTopicFindUniqueOrThrowArgs>(args: SelectSubset<T, ArticleTopicFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ArticleTopicClient<$Result.GetResult<Prisma.$ArticleTopicPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first ArticleTopic 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 {ArticleTopicFindFirstArgs} args - Arguments to find a ArticleTopic * @example * // Get one ArticleTopic * const articleTopic = await prisma.articleTopic.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst<T extends ArticleTopicFindFirstArgs>(args?: SelectSubset<T, ArticleTopicFindFirstArgs<ExtArgs>>): Prisma__ArticleTopicClient<$Result.GetResult<Prisma.$ArticleTopicPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first ArticleTopic 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 {ArticleTopicFindFirstOrThrowArgs} args - Arguments to find a ArticleTopic * @example * // Get one ArticleTopic * const articleTopic = await prisma.articleTopic.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow<T extends ArticleTopicFindFirstOrThrowArgs>(args?: SelectSubset<T, ArticleTopicFindFirstOrThrowArgs<ExtArgs>>): Prisma__ArticleTopicClient<$Result.GetResult<Prisma.$ArticleTopicPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more ArticleTopics 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 {ArticleTopicFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all ArticleTopics * const articleTopics = await prisma.articleTopic.findMany() * * // Get first 10 ArticleTopics * const articleTopics = await prisma.articleTopic.findMany({ take: 10 }) * * // Only select the `id` * const articleTopicWithIdOnly = await prisma.articleTopic.findMany({ select: { id: true } }) * */ findMany<T extends ArticleTopicFindManyArgs>(args?: SelectSubset<T, ArticleTopicFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ArticleTopicPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>> /** * Create a ArticleTopic. * @param {ArticleTopicCreateArgs} args - Arguments to create a ArticleTopic. * @example * // Create one ArticleTopic * const ArticleTopic = await prisma.articleTopic.create({ * data: { * // ... data to create a ArticleTopic * } * }) * */ create<T extends ArticleTopicCreateArgs>(args: SelectSubset<T, ArticleTopicCreateArgs<ExtArgs>>): Prisma__ArticleTopicClient<$Result.GetResult<Prisma.$ArticleTopicPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many ArticleTopics. * @param {ArticleTopicCreateManyArgs} args - Arguments to create many ArticleTopics. * @example * // Create many ArticleTopics * const articleTopic = await prisma.articleTopic.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany<T extends ArticleTopicCreateManyArgs>(args?: SelectSubset<T, ArticleTopicCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> /** * Create many ArticleTopics and returns the data saved in the database. * @param {ArticleTopicCreateManyAndReturnArgs} args - Arguments to create many ArticleTopics. * @example * // Create many ArticleTopics * const articleTopic = await prisma.articleTopic.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many ArticleTopics and only return the `id` * const articleTopicWithIdOnly = await prisma.articleTopic.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 ArticleTopicCreateManyAndReturnArgs>(args?: SelectSubset<T, ArticleTopicCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ArticleTopicPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a ArticleTopic. * @param {ArticleTopicDeleteArgs} args - Arguments to delete one ArticleTopic. * @example * // Delete one ArticleTopic * const ArticleTopic = await prisma.articleTopic.delete({ * where: { * // ... filter to delete one ArticleTopic * } * }) * */ delete<T extends ArticleTopicDeleteArgs>(args: SelectSubset<T, ArticleTopicDeleteArgs<ExtArgs>>): Prisma__ArticleTopicClient<$Result.GetResult<Prisma.$ArticleTopicPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one ArticleTopic. * @param {ArticleTopicUpdateArgs} args - Arguments to update one ArticleTopic. * @example * // Update one ArticleTopic * const articleTopic = await prisma.articleTopic.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update<T extends ArticleTopicUpdateArgs>(args: SelectSubset<T, ArticleTopicUpdateArgs<ExtArgs>>): Prisma__ArticleTopicClient<$Result.GetResult<Prisma.$ArticleTopicPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more ArticleTopics. * @param {ArticleTopicDeleteManyArgs} args - Arguments to filter ArticleTopics to delete. * @example * // Delete a few ArticleTopics * const { count } = await prisma.articleTopic.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany<T extends ArticleTopicDeleteManyArgs>(args?: SelectSubset<T, ArticleTopicDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> /** * Update zero or more ArticleTopics. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ArticleTopicUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many ArticleTopics * const articleTopic = await prisma.articleTopic.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany<T extends ArticleTopicUpdateManyArgs>(args: SelectSubset<T, ArticleTopicUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> /** * Update zero or more ArticleTopics and returns the data updated in the database. * @param {ArticleTopicUpdateManyAndReturnArgs} args - Arguments to update many ArticleTopics. * @example * // Update many ArticleTopics * const articleTopic = await prisma.articleTopic.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more ArticleTopics and only return the `id` * const articleTopicWithIdOnly = await prisma.articleTopic.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn<T extends ArticleTopicUpdateManyAndReturnArgs>(args: SelectSubset<T, ArticleTopicUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ArticleTopicPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one ArticleTopic. * @param {ArticleTopicUpsertArgs} args - Arguments to update or create a ArticleTopic. * @example * // Update or create a ArticleTopic * const articleTopic = await prisma.articleTopic.upsert({ * create: { * // ... data to create a ArticleTopic * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the ArticleTopic we want to update * } * }) */ upsert<T extends ArticleTopicUpsertArgs>(args: SelectSubset<T, ArticleTopicUpsertArgs<ExtArgs>>): Prisma__ArticleTopicClient<$Result.GetResult<Prisma.$ArticleTopicPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of ArticleTopics. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ArticleTopicCountArgs} args - Arguments to filter ArticleTopics to count. * @example * // Count the number of ArticleTopics * const count = await prisma.articleTopic.count({ * where: { * // ... the filter for the ArticleTopics we want to count * } * }) **/ count<T extends ArticleTopicCountArgs>( args?: Subset<T, ArticleTopicCountArgs>, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType<T['select'], ArticleTopicCountAggregateOutputType> : number > /** * Allows you to perform aggregations operations on a ArticleTopic. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ArticleTopicAggregateArgs} 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 ArticleTopicAggregateArgs>(args: Subset<T, ArticleTopicAggregateArgs>): Prisma.PrismaPromise<GetArticleTopicAggregateType<T>> /** * Group by ArticleTopic. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ArticleTopicGroupByArgs} 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 ArticleTopicGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys<T>>, Extends<'take', Keys<T>> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: ArticleTopicGroupByArgs['orderBy'] } : { orderBy?: ArticleTopicGroupByArgs['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, ArticleTopicGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetArticleTopicGroupByPayload<T> : Prisma.PrismaPromise<InputErrors> /** * Fields of the ArticleTopic model */ readonly fields: ArticleTopicFieldRefs; } /** * The delegate class that acts as a "Promise-like" for ArticleTopic. * 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__ArticleTopicClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> { readonly [Symbol.toStringTag]: "PrismaPromise" article<T extends ArticleDefaultArgs<ExtArgs> = {}>(args?: Subset<T, ArticleDefaultArgs<ExtArgs>>): Prisma__ArticleClient<$Result.GetResult<Prisma.$ArticlePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> topic<T extends TopicDefaultArgs<ExtArgs> = {}>(args?: Subset<T, TopicDefaultArgs<ExtArgs>>): Prisma__TopicClient<$Result.GetResult<Prisma.$TopicPayload<ExtArgs>, 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<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 ArticleTopic model */ interface ArticleTopicFieldRefs { readonly id: FieldRef<"ArticleTopic", 'Int'> readonly articleId: FieldRef<"ArticleTopic", 'Int'> readonly topicId: FieldRef<"ArticleTopic", 'Int'> readonly confidence: FieldRef<"ArticleTopic", 'Float'> readonly createdAt: FieldRef<"ArticleTopic", 'DateTime'> } // Custom InputTypes /** * ArticleTopic findUnique */ export type ArticleTopicFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the ArticleTopic */ select?: ArticleTopicSelect<ExtArgs> | null /** * Omit specific fields from the ArticleTopic */ omit?: ArticleTopicOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: ArticleTopicInclude<ExtArgs> | null /** * Filter, which ArticleTopic to fetch. */ where: ArticleTopicWhereUniqueInput } /** * ArticleTopic findUniqueOrThrow */ export type ArticleTopicFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the ArticleTopic */ select?: ArticleTopicSelect<ExtArgs> | null /** * Omit specific fields from the ArticleTopic */ omit?: ArticleTopicOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: ArticleTopicInclude<ExtArgs> | null /** * Filter, which ArticleTopic to fetch. */ where: ArticleTopicWhereUniqueInput } /** * ArticleTopic findFirst */ export type ArticleTopicFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the ArticleTopic */ select?: ArticleTopicSelect<ExtArgs> | null /** * Omit specific fields from the ArticleTopic */ omit?: ArticleTopicOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: ArticleTopicInclude<ExtArgs> | null /** * Filter, which ArticleTopic to fetch. */ where?: ArticleTopicWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ArticleTopics to fetch. */ orderBy?: ArticleTopicOrderByWithRelationInput | ArticleTopicOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ArticleTopics. */ cursor?: ArticleTopicWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ArticleTopics 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` ArticleTopics. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ArticleTopics. */ distinct?: ArticleTopicScalarFieldEnum | ArticleTopicScalarFieldEnum[] } /** * ArticleTopic findFirstOrThrow */ export type ArticleTopicFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the ArticleTopic */ select?: ArticleTopicSelect<ExtArgs> | null /** * Omit specific fields from the ArticleTopic */ omit?: ArticleTopicOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: ArticleTopicInclude<ExtArgs> | null /** * Filter, which ArticleTopic to fetch. */ where?: ArticleTopicWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ArticleTopics to fetch. */ orderBy?: ArticleTopicOrderByWithRelationInput | ArticleTopicOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ArticleTopics. */ cursor?: ArticleTopicWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ArticleTopics 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` ArticleTopics. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ArticleTopics. */ distinct?: ArticleTopicScalarFieldEnum | ArticleTopicScalarFieldEnum[] } /** * ArticleTopic findMany */ export type ArticleTopicFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the ArticleTopic */ select?: ArticleTopicSelect<ExtArgs> | null /** * Omit specific fields from the ArticleTopic */ omit?: ArticleTopicOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: ArticleTopicInclude<ExtArgs> | null /** * Filter, which ArticleTopics to fetch. */ where?: ArticleTopicWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ArticleTopics to fetch. */ orderBy?: ArticleTopicOrderByWithRelationInput | ArticleTopicOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing ArticleTopics. */ cursor?: ArticleTopicWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ArticleTopics 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` ArticleTopics. */ skip?: number distinct?: ArticleTopicScalarFieldEnum | ArticleTopicScalarFieldEnum[] } /** * ArticleTopic create */ export type ArticleTopicCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the ArticleTopic */ select?: ArticleTopicSelect<ExtArgs> | null /** * Omit specific fields from the ArticleTopic */ omit?: ArticleTopicOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: ArticleTopicInclude<ExtArgs> | null /** * The data needed to create a ArticleTopic. */ data: XOR<ArticleTopicCreateInput, ArticleTopicUncheckedCreateInput> } /** * ArticleTopic createMany */ export type ArticleTopicCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * The data used to create many ArticleTopics. */ data: ArticleTopicCreateManyInput | ArticleTopicCreateManyInput[] } /** * ArticleTopic createManyAndReturn */ export type ArticleTopicCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the ArticleTopic */ select?: ArticleTopicSelectCreateManyAndReturn<ExtArgs> | null /** * Omit specific fields from the ArticleTopic */ omit?: ArticleTopicOmit<ExtArgs> | null /** * The data used to create many ArticleTopics. */ data: ArticleTopicCreateManyInput | ArticleTopicCreateManyInput[] /** * Choose, which related nodes to fetch as well */ include?: ArticleTopicIncludeCreateManyAndReturn<ExtArgs> | null } /** * ArticleTopic update */ export type ArticleTopicUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the ArticleTopic */ select?: ArticleTopicSelect<ExtArgs> | null /** * Omit specific fields from the ArticleTopic */ omit?: ArticleTopicOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: ArticleTopicInclude<ExtArgs> | null /** * The data needed to update a ArticleTopic. */ data: XOR<ArticleTopicUpdateInput, ArticleTopicUncheckedUpdateInput> /** * Choose, which ArticleTopic to update. */ where: ArticleTopicWhereUniqueInput } /** * ArticleTopic updateMany */ export type ArticleTopicUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * The data used to update ArticleTopics. */ data: XOR<ArticleTopicUpdateManyMutationInput, ArticleTopicUncheckedUpdateManyInput> /** * Filter which ArticleTopics to update */ where?: ArticleTopicWhereInput /** * Limit how many ArticleTopics to update. */ limit?: number } /** * ArticleTopic updateManyAndReturn */ export type ArticleTopicUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the ArticleTopic */ select?: ArticleTopicSelectUpdateManyAndReturn<ExtArgs> | null /** * Omit specific fields from the ArticleTopic */ omit?: ArticleTopicOmit<ExtArgs> | null /** * The data used to update ArticleTopics. */ data: XOR<ArticleTopicUpdateManyMutationInput, ArticleTopicUncheckedUpdateManyInput> /** * Filter which ArticleTopics to update */ where?: ArticleTopicWhereInput /** * Limit how many ArticleTopics to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: ArticleTopicIncludeUpdateManyAndReturn<ExtArgs> | null } /** * ArticleTopic upsert */ export type ArticleTopicUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the ArticleTopic */ select?: ArticleTopicSelect<ExtArgs> | null /** * Omit specific fields from the ArticleTopic */ omit?: ArticleTopicOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: ArticleTopicInclude<ExtArgs> | null /** * The filter to search for the ArticleTopic to update in case it exists. */ where: ArticleTopicWhereUniqueInput /** * In case the ArticleTopic found by the `where` argument doesn't exist, create a new ArticleTopic with this data. */ create: XOR<ArticleTopicCreateInput, ArticleTopicUncheckedCreateInput> /** * In case the ArticleTopic was found with the provided `where` argument, update it with this data. */ update: XOR<ArticleTopicUpdateInput, ArticleTopicUncheckedUpdateInput> } /** * ArticleTopic delete */ export type ArticleTopicDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the ArticleTopic */ select?: ArticleTopicSelect<ExtArgs> | null /** * Omit specific fields from the ArticleTopic */ omit?: ArticleTopicOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: ArticleTopicInclude<ExtArgs> | null /** * Filter which ArticleTopic to delete. */ where: ArticleTopicWhereUniqueInput } /** * ArticleTopic deleteMany */ export type ArticleTopicDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Filter which ArticleTopics to delete */ where?: ArticleTopicWhereInput /** * Limit how many ArticleTopics to delete. */ limit?: number } /** * ArticleTopic without action */ export type ArticleTopicDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the ArticleTopic */ select?: ArticleTopicSelect<ExtArgs> | null /** * Omit specific fields from the ArticleTopic */ omit?: ArticleTopicOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: ArticleTopicInclude<ExtArgs> | null } /** * Model Entity */ export type AggregateEntity = { _count: EntityCountAggregateOutputType | null _avg: EntityAvgAggregateOutputType | null _sum: EntitySumAggregateOutputType | null _min: EntityMinAggregateOutputType | null _max: EntityMaxAggregateOutputType | null } export type EntityAvgAggregateOutputType = { id: number | null articleCount: number | null } export type EntitySumAggregateOutputType = { id: number | null articleCount: number | null } export type EntityMinAggregateOutputType = { id: number | null name: string | null type: string | null articleCount: number | null createdAt: Date | null updatedAt: Date | null } export type EntityMaxAggregateOutputType = { id: number | null name: string | null type: string | null articleCount: number | null createdAt: Date | null updatedAt: Date | null } export type EntityCountAggregateOutputType = { id: number name: number type: number articleCount: number createdAt: number updatedAt: number _all: number } export type EntityAvgAggregateInputType = { id?: true articleCount?: true } export type EntitySumAggregateInputType = { id?: true articleCount?: true } export type EntityMinAggregateInputType = { id?: true name?: true type?: true articleCount?: true createdAt?: true updatedAt?: true } export type EntityMaxAggregateInputType = { id?: true name?: true type?: true articleCount?: true createdAt?: true updatedAt?: true } export type EntityCountAggregateInputType = { id?: true name?: true type?: true articleCount?: true createdAt?: true updatedAt?: true _all?: true } export type EntityAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Filter which Entity to aggregate. */ where?: EntityWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Entities to fetch. */ orderBy?: EntityOrderByWithRelationInput | EntityOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: EntityWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Entities 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` Entities. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Entities **/ _count?: true | EntityCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: EntityAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: EntitySumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: EntityMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: EntityMaxAggregateInputType } export type GetEntityAggregateType<T extends EntityAggregateArgs> = { [P in keyof T & keyof AggregateEntity]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType<T[P], AggregateEntity[P]> : GetScalarType<T[P], AggregateEntity[P]> } export type EntityGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { where?: EntityWhereInput orderBy?: EntityOrderByWithAggregationInput | EntityOrderByWithAggregationInput[] by: EntityScalarFieldEnum[] | EntityScalarFieldEnum having?: EntityScalarWhereWithAggregatesInput take?: number skip?: number _count?: EntityCountAggregateInputType | true _avg?: EntityAvgAggregateInputType _sum?: EntitySumAggregateInputType _min?: EntityMinAggregateInputType _max?: EntityMaxAggregateInputType } export type EntityGroupByOutputType = { id: number name: string type: string articleCount: number createdAt: Date updatedAt: Date _count: EntityCountAggregateOutputType | null _avg: EntityAvgAggregateOutputType | null _sum: EntitySumAggregateOutputType | null _min: EntityMinAggregateOutputType | null _max: EntityMaxAggregateOutputType | null } type GetEntityGroupByPayload<T extends EntityGroupByArgs> = Prisma.PrismaPromise< Array< PickEnumerable<EntityGroupByOutputType, T['by']> & { [P in ((keyof T) & (keyof EntityGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType<T[P], EntityGroupByOutputType[P]> : GetScalarType<T[P], EntityGroupByOutputType[P]> } > > export type EntitySelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ id?: boolean name?: boolean type?: boolean articleCount?: boolean createdAt?: boolean updatedAt?: boolean articles?: boolean | Entity$articlesArgs<ExtArgs> _count?: boolean | EntityCountOutputTypeDefaultArgs<ExtArgs> }, ExtArgs["result"]["entity"]> export type EntitySelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ id?: boolean name?: boolean type?: boolean articleCount?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["entity"]> export type EntitySelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ id?: boolean name?: boolean type?: boolean articleCount?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["entity"]> export type EntitySelectScalar = { id?: boolean name?: boolean type?: boolean articleCount?: boolean createdAt?: boolean updatedAt?: boolean } export type EntityOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "name" | "type" | "articleCount" | "createdAt" | "updatedAt", ExtArgs["result"]["entity"]> export type EntityInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { articles?: boolean | Entity$articlesArgs<ExtArgs> _count?: boolean | EntityCountOutputTypeDefaultArgs<ExtArgs> } export type EntityIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {} export type EntityIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {} export type $EntityPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { name: "Entity" objects: { articles: Prisma.$ArticleEntityPayload<ExtArgs>[] } scalars: $Extensions.GetPayloadResult<{ id: number name: string type: string articleCount: number createdAt: Date updatedAt: Date }, ExtArgs["result"]["entity"]> composites: {} } type EntityGetPayload<S extends boolean | null | undefined | EntityDefaultArgs> = $Result.GetResult<Prisma.$EntityPayload, S> type EntityCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = Omit<EntityFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & { select?: EntityCountAggregateInputType | true } export interface EntityDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> { [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Entity'], meta: { name: 'Entity' } } /** * Find zero or one Entity that matches the filter. * @param {EntityFindUniqueArgs} args - Arguments to find a Entity * @example * // Get one Entity * const entity = await prisma.entity.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique<T extends EntityFindUniqueArgs>(args: SelectSubset<T, EntityFindUniqueArgs<ExtArgs>>): Prisma__EntityClient<$Result.GetResult<Prisma.$EntityPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Entity that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {EntityFindUniqueOrThrowArgs} args - Arguments to find a Entity * @example * // Get one Entity * const entity = await prisma.entity.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow<T extends EntityFindUniqueOrThrowArgs>(args: SelectSubset<T, EntityFindUniqueOrThrowArgs<ExtArgs>>): Prisma__EntityClient<$Result.GetResult<Prisma.$EntityPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Entity 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 {EntityFindFirstArgs} args - Arguments to find a Entity * @example * // Get one Entity * const entity = await prisma.entity.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst<T extends EntityFindFirstArgs>(args?: SelectSubset<T, EntityFindFirstArgs<ExtArgs>>): Prisma__EntityClient<$Result.GetResult<Prisma.$EntityPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Entity 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 {EntityFindFirstOrThrowArgs} args - Arguments to find a Entity * @example * // Get one Entity * const entity = await prisma.entity.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow<T extends EntityFindFirstOrThrowArgs>(args?: SelectSubset<T, EntityFindFirstOrThrowArgs<ExtArgs>>): Prisma__EntityClient<$Result.GetResult<Prisma.$EntityPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Entities 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 {EntityFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Entities * const entities = await prisma.entity.findMany() * * // Get first 10 Entities * const entities = await prisma.entity.findMany({ take: 10 }) * * // Only select the `id` * const entityWithIdOnly = await prisma.entity.findMany({ select: { id: true } }) * */ findMany<T extends EntityFindManyArgs>(args?: SelectSubset<T, EntityFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EntityPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>> /** * Create a Entity. * @param {EntityCreateArgs} args - Arguments to create a Entity. * @example * // Create one Entity * const Entity = await prisma.entity.create({ * data: { * // ... data to create a Entity * } * }) * */ create<T extends EntityCreateArgs>(args: SelectSubset<T, EntityCreateArgs<ExtArgs>>): Prisma__EntityClient<$Result.GetResult<Prisma.$EntityPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Entities. * @param {EntityCreateManyArgs} args - Arguments to create many Entities. * @example * // Create many Entities * const entity = await prisma.entity.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany<T extends EntityCreateManyArgs>(args?: SelectSubset<T, EntityCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> /** * Create many Entities and returns the data saved in the database. * @param {EntityCreateManyAndReturnArgs} args - Arguments to create many Entities. * @example * // Create many Entities * const entity = await prisma.entity.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Entities and only return the `id` * const entityWithIdOnly = await prisma.entity.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 EntityCreateManyAndReturnArgs>(args?: SelectSubset<T, EntityCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EntityPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Entity. * @param {EntityDeleteArgs} args - Arguments to delete one Entity. * @example * // Delete one Entity * const Entity = await prisma.entity.delete({ * where: { * // ... filter to delete one Entity * } * }) * */ delete<T extends EntityDeleteArgs>(args: SelectSubset<T, EntityDeleteArgs<ExtArgs>>): Prisma__EntityClient<$Result.GetResult<Prisma.$EntityPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Entity. * @param {EntityUpdateArgs} args - Arguments to update one Entity. * @example * // Update one Entity * const entity = await prisma.entity.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update<T extends EntityUpdateArgs>(args: SelectSubset<T, EntityUpdateArgs<ExtArgs>>): Prisma__EntityClient<$Result.GetResult<Prisma.$EntityPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Entities. * @param {EntityDeleteManyArgs} args - Arguments to filter Entities to delete. * @example * // Delete a few Entities * const { count } = await prisma.entity.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany<T extends EntityDeleteManyArgs>(args?: SelectSubset<T, EntityDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> /** * Update zero or more Entities. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EntityUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Entities * const entity = await prisma.entity.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany<T extends EntityUpdateManyArgs>(args: SelectSubset<T, EntityUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> /** * Update zero or more Entities and returns the data updated in the database. * @param {EntityUpdateManyAndReturnArgs} args - Arguments to update many Entities. * @example * // Update many Entities * const entity = await prisma.entity.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Entities and only return the `id` * const entityWithIdOnly = await prisma.entity.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn<T extends EntityUpdateManyAndReturnArgs>(args: SelectSubset<T, EntityUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EntityPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Entity. * @param {EntityUpsertArgs} args - Arguments to update or create a Entity. * @example * // Update or create a Entity * const entity = await prisma.entity.upsert({ * create: { * // ... data to create a Entity * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Entity we want to update * } * }) */ upsert<T extends EntityUpsertArgs>(args: SelectSubset<T, EntityUpsertArgs<ExtArgs>>): Prisma__EntityClient<$Result.GetResult<Prisma.$EntityPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Entities. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EntityCountArgs} args - Arguments to filter Entities to count. * @example * // Count the number of Entities * const count = await prisma.entity.count({ * where: { * // ... the filter for the Entities we want to count * } * }) **/ count<T extends EntityCountArgs>( args?: Subset<T, EntityCountArgs>, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType<T['select'], EntityCountAggregateOutputType> : number > /** * Allows you to perform aggregations operations on a Entity. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EntityAggregateArgs} 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 EntityAggregateArgs>(args: Subset<T, EntityAggregateArgs>): Prisma.PrismaPromise<GetEntityAggregateType<T>> /** * Group by Entity. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EntityGroupByArgs} 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 EntityGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys<T>>, Extends<'take', Keys<T>> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: EntityGroupByArgs['orderBy'] } : { orderBy?: EntityGroupByArgs['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, EntityGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetEntityGroupByPayload<T> : Prisma.PrismaPromise<InputErrors> /** * Fields of the Entity model */ readonly fields: EntityFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Entity. * 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__EntityClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> { readonly [Symbol.toStringTag]: "PrismaPromise" articles<T extends Entity$articlesArgs<ExtArgs> = {}>(args?: Subset<T, Entity$articlesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ArticleEntityPayload<ExtArgs>, 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<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 Entity model */ interface EntityFieldRefs { readonly id: FieldRef<"Entity", 'Int'> readonly name: FieldRef<"Entity", 'String'> readonly type: FieldRef<"Entity", 'String'> readonly articleCount: FieldRef<"Entity", 'Int'> readonly createdAt: FieldRef<"Entity", 'DateTime'> readonly updatedAt: FieldRef<"Entity", 'DateTime'> } // Custom InputTypes /** * Entity findUnique */ export type EntityFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the Entity */ select?: EntitySelect<ExtArgs> | null /** * Omit specific fields from the Entity */ omit?: EntityOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: EntityInclude<ExtArgs> | null /** * Filter, which Entity to fetch. */ where: EntityWhereUniqueInput } /** * Entity findUniqueOrThrow */ export type EntityFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the Entity */ select?: EntitySelect<ExtArgs> | null /** * Omit specific fields from the Entity */ omit?: EntityOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: EntityInclude<ExtArgs> | null /** * Filter, which Entity to fetch. */ where: EntityWhereUniqueInput } /** * Entity findFirst */ export type EntityFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the Entity */ select?: EntitySelect<ExtArgs> | null /** * Omit specific fields from the Entity */ omit?: EntityOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: EntityInclude<ExtArgs> | null /** * Filter, which Entity to fetch. */ where?: EntityWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Entities to fetch. */ orderBy?: EntityOrderByWithRelationInput | EntityOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Entities. */ cursor?: EntityWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Entities 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` Entities. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Entities. */ distinct?: EntityScalarFieldEnum | EntityScalarFieldEnum[] } /** * Entity findFirstOrThrow */ export type EntityFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the Entity */ select?: EntitySelect<ExtArgs> | null /** * Omit specific fields from the Entity */ omit?: EntityOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: EntityInclude<ExtArgs> | null /** * Filter, which Entity to fetch. */ where?: EntityWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Entities to fetch. */ orderBy?: EntityOrderByWithRelationInput | EntityOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Entities. */ cursor?: EntityWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Entities 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` Entities. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Entities. */ distinct?: EntityScalarFieldEnum | EntityScalarFieldEnum[] } /** * Entity findMany */ export type EntityFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the Entity */ select?: EntitySelect<ExtArgs> | null /** * Omit specific fields from the Entity */ omit?: EntityOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: EntityInclude<ExtArgs> | null /** * Filter, which Entities to fetch. */ where?: EntityWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Entities to fetch. */ orderBy?: EntityOrderByWithRelationInput | EntityOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Entities. */ cursor?: EntityWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Entities 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` Entities. */ skip?: number distinct?: EntityScalarFieldEnum | EntityScalarFieldEnum[] } /** * Entity create */ export type EntityCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the Entity */ select?: EntitySelect<ExtArgs> | null /** * Omit specific fields from the Entity */ omit?: EntityOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: EntityInclude<ExtArgs> | null /** * The data needed to create a Entity. */ data: XOR<EntityCreateInput, EntityUncheckedCreateInput> } /** * Entity createMany */ export type EntityCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * The data used to create many Entities. */ data: EntityCreateManyInput | EntityCreateManyInput[] } /** * Entity createManyAndReturn */ export type EntityCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the Entity */ select?: EntitySelectCreateManyAndReturn<ExtArgs> | null /** * Omit specific fields from the Entity */ omit?: EntityOmit<ExtArgs> | null /** * The data used to create many Entities. */ data: EntityCreateManyInput | EntityCreateManyInput[] } /** * Entity update */ export type EntityUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the Entity */ select?: EntitySelect<ExtArgs> | null /** * Omit specific fields from the Entity */ omit?: EntityOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: EntityInclude<ExtArgs> | null /** * The data needed to update a Entity. */ data: XOR<EntityUpdateInput, EntityUncheckedUpdateInput> /** * Choose, which Entity to update. */ where: EntityWhereUniqueInput } /** * Entity updateMany */ export type EntityUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * The data used to update Entities. */ data: XOR<EntityUpdateManyMutationInput, EntityUncheckedUpdateManyInput> /** * Filter which Entities to update */ where?: EntityWhereInput /** * Limit how many Entities to update. */ limit?: number } /** * Entity updateManyAndReturn */ export type EntityUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the Entity */ select?: EntitySelectUpdateManyAndReturn<ExtArgs> | null /** * Omit specific fields from the Entity */ omit?: EntityOmit<ExtArgs> | null /** * The data used to update Entities. */ data: XOR<EntityUpdateManyMutationInput, EntityUncheckedUpdateManyInput> /** * Filter which Entities to update */ where?: EntityWhereInput /** * Limit how many Entities to update. */ limit?: number } /** * Entity upsert */ export type EntityUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the Entity */ select?: EntitySelect<ExtArgs> | null /** * Omit specific fields from the Entity */ omit?: EntityOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: EntityInclude<ExtArgs> | null /** * The filter to search for the Entity to update in case it exists. */ where: EntityWhereUniqueInput /** * In case the Entity found by the `where` argument doesn't exist, create a new Entity with this data. */ create: XOR<EntityCreateInput, EntityUncheckedCreateInput> /** * In case the Entity was found with the provided `where` argument, update it with this data. */ update: XOR<EntityUpdateInput, EntityUncheckedUpdateInput> } /** * Entity delete */ export type EntityDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the Entity */ select?: EntitySelect<ExtArgs> | null /** * Omit specific fields from the Entity */ omit?: EntityOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: EntityInclude<ExtArgs> | null /** * Filter which Entity to delete. */ where: EntityWhereUniqueInput } /** * Entity deleteMany */ export type EntityDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Filter which Entities to delete */ where?: EntityWhereInput /** * Limit how many Entities to delete. */ limit?: number } /** * Entity.articles */ export type Entity$articlesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the ArticleEntity */ select?: ArticleEntitySelect<ExtArgs> | null /** * Omit specific fields from the ArticleEntity */ omit?: ArticleEntityOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: ArticleEntityInclude<ExtArgs> | null where?: ArticleEntityWhereInput orderBy?: ArticleEntityOrderByWithRelationInput | ArticleEntityOrderByWithRelationInput[] cursor?: ArticleEntityWhereUniqueInput take?: number skip?: number distinct?: ArticleEntityScalarFieldEnum | ArticleEntityScalarFieldEnum[] } /** * Entity without action */ export type EntityDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the Entity */ select?: EntitySelect<ExtArgs> | null /** * Omit specific fields from the Entity */ omit?: EntityOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: EntityInclude<ExtArgs> | null } /** * Model ArticleEntity */ export type AggregateArticleEntity = { _count: ArticleEntityCountAggregateOutputType | null _avg: ArticleEntityAvgAggregateOutputType | null _sum: ArticleEntitySumAggregateOutputType | null _min: ArticleEntityMinAggregateOutputType | null _max: ArticleEntityMaxAggregateOutputType | null } export type ArticleEntityAvgAggregateOutputType = { id: number | null articleId: number | null entityId: number | null frequency: number | null } export type ArticleEntitySumAggregateOutputType = { id: number | null articleId: number | null entityId: number | null frequency: number | null } export type ArticleEntityMinAggregateOutputType = { id: number | null articleId: number | null entityId: number | null frequency: number | null createdAt: Date | null } export type ArticleEntityMaxAggregateOutputType = { id: number | null articleId: number | null entityId: number | null frequency: number | null createdAt: Date | null } export type ArticleEntityCountAggregateOutputType = { id: number articleId: number entityId: number frequency: number createdAt: number _all: number } export type ArticleEntityAvgAggregateInputType = { id?: true articleId?: true entityId?: true frequency?: true } export type ArticleEntitySumAggregateInputType = { id?: true articleId?: true entityId?: true frequency?: true } export type ArticleEntityMinAggregateInputType = { id?: true articleId?: true entityId?: true frequency?: true createdAt?: true } export type ArticleEntityMaxAggregateInputType = { id?: true articleId?: true entityId?: true frequency?: true createdAt?: true } export type ArticleEntityCountAggregateInputType = { id?: true articleId?: true entityId?: true frequency?: true createdAt?: true _all?: true } export type ArticleEntityAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Filter which ArticleEntity to aggregate. */ where?: ArticleEntityWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ArticleEntities to fetch. */ orderBy?: ArticleEntityOrderByWithRelationInput | ArticleEntityOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: ArticleEntityWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ArticleEntities 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` ArticleEntities. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned ArticleEntities **/ _count?: true | ArticleEntityCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: ArticleEntityAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: ArticleEntitySumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ArticleEntityMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ArticleEntityMaxAggregateInputType } export type GetArticleEntityAggregateType<T extends ArticleEntityAggregateArgs> = { [P in keyof T & keyof AggregateArticleEntity]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType<T[P], AggregateArticleEntity[P]> : GetScalarType<T[P], AggregateArticleEntity[P]> } export type ArticleEntityGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { where?: ArticleEntityWhereInput orderBy?: ArticleEntityOrderByWithAggregationInput | ArticleEntityOrderByWithAggregationInput[] by: ArticleEntityScalarFieldEnum[] | ArticleEntityScalarFieldEnum having?: ArticleEntityScalarWhereWithAggregatesInput take?: number skip?: number _count?: ArticleEntityCountAggregateInputType | true _avg?: ArticleEntityAvgAggregateInputType _sum?: ArticleEntitySumAggregateInputType _min?: ArticleEntityMinAggregateInputType _max?: ArticleEntityMaxAggregateInputType } export type ArticleEntityGroupByOutputType = { id: number articleId: number entityId: number frequency: number createdAt: Date _count: ArticleEntityCountAggregateOutputType | null _avg: ArticleEntityAvgAggregateOutputType | null _sum: ArticleEntitySumAggregateOutputType | null _min: ArticleEntityMinAggregateOutputType | null _max: ArticleEntityMaxAggregateOutputType | null } type GetArticleEntityGroupByPayload<T extends ArticleEntityGroupByArgs> = Prisma.PrismaPromise< Array< PickEnumerable<ArticleEntityGroupByOutputType, T['by']> & { [P in ((keyof T) & (keyof ArticleEntityGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType<T[P], ArticleEntityGroupByOutputType[P]> : GetScalarType<T[P], ArticleEntityGroupByOutputType[P]> } > > export type ArticleEntitySelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ id?: boolean articleId?: boolean entityId?: boolean frequency?: boolean createdAt?: boolean article?: boolean | ArticleDefaultArgs<ExtArgs> entity?: boolean | EntityDefaultArgs<ExtArgs> }, ExtArgs["result"]["articleEntity"]> export type ArticleEntitySelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ id?: boolean articleId?: boolean entityId?: boolean frequency?: boolean createdAt?: boolean article?: boolean | ArticleDefaultArgs<ExtArgs> entity?: boolean | EntityDefaultArgs<ExtArgs> }, ExtArgs["result"]["articleEntity"]> export type ArticleEntitySelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ id?: boolean articleId?: boolean entityId?: boolean frequency?: boolean createdAt?: boolean article?: boolean | ArticleDefaultArgs<ExtArgs> entity?: boolean | EntityDefaultArgs<ExtArgs> }, ExtArgs["result"]["articleEntity"]> export type ArticleEntitySelectScalar = { id?: boolean articleId?: boolean entityId?: boolean frequency?: boolean createdAt?: boolean } export type ArticleEntityOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "articleId" | "entityId" | "frequency" | "createdAt", ExtArgs["result"]["articleEntity"]> export type ArticleEntityInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { article?: boolean | ArticleDefaultArgs<ExtArgs> entity?: boolean | EntityDefaultArgs<ExtArgs> } export type ArticleEntityIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { article?: boolean | ArticleDefaultArgs<ExtArgs> entity?: boolean | EntityDefaultArgs<ExtArgs> } export type ArticleEntityIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { article?: boolean | ArticleDefaultArgs<ExtArgs> entity?: boolean | EntityDefaultArgs<ExtArgs> } export type $ArticleEntityPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { name: "ArticleEntity" objects: { article: Prisma.$ArticlePayload<ExtArgs> entity: Prisma.$EntityPayload<ExtArgs> } scalars: $Extensions.GetPayloadResult<{ id: number articleId: number entityId: number frequency: number createdAt: Date }, ExtArgs["result"]["articleEntity"]> composites: {} } type ArticleEntityGetPayload<S extends boolean | null | undefined | ArticleEntityDefaultArgs> = $Result.GetResult<Prisma.$ArticleEntityPayload, S> type ArticleEntityCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = Omit<ArticleEntityFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & { select?: ArticleEntityCountAggregateInputType | true } export interface ArticleEntityDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> { [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ArticleEntity'], meta: { name: 'ArticleEntity' } } /** * Find zero or one ArticleEntity that matches the filter. * @param {ArticleEntityFindUniqueArgs} args - Arguments to find a ArticleEntity * @example * // Get one ArticleEntity * const articleEntity = await prisma.articleEntity.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique<T extends ArticleEntityFindUniqueArgs>(args: SelectSubset<T, ArticleEntityFindUniqueArgs<ExtArgs>>): Prisma__ArticleEntityClient<$Result.GetResult<Prisma.$ArticleEntityPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one ArticleEntity that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ArticleEntityFindUniqueOrThrowArgs} args - Arguments to find a ArticleEntity * @example * // Get one ArticleEntity * const articleEntity = await prisma.articleEntity.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow<T extends ArticleEntityFindUniqueOrThrowArgs>(args: SelectSubset<T, ArticleEntityFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ArticleEntityClient<$Result.GetResult<Prisma.$ArticleEntityPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first ArticleEntity 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 {ArticleEntityFindFirstArgs} args - Arguments to find a ArticleEntity * @example * // Get one ArticleEntity * const articleEntity = await prisma.articleEntity.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst<T extends ArticleEntityFindFirstArgs>(args?: SelectSubset<T, ArticleEntityFindFirstArgs<ExtArgs>>): Prisma__ArticleEntityClient<$Result.GetResult<Prisma.$ArticleEntityPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first ArticleEntity 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 {ArticleEntityFindFirstOrThrowArgs} args - Arguments to find a ArticleEntity * @example * // Get one ArticleEntity * const articleEntity = await prisma.articleEntity.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow<T extends ArticleEntityFindFirstOrThrowArgs>(args?: SelectSubset<T, ArticleEntityFindFirstOrThrowArgs<ExtArgs>>): Prisma__ArticleEntityClient<$Result.GetResult<Prisma.$ArticleEntityPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more ArticleEntities 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 {ArticleEntityFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all ArticleEntities * const articleEntities = await prisma.articleEntity.findMany() * * // Get first 10 ArticleEntities * const articleEntities = await prisma.articleEntity.findMany({ take: 10 }) * * // Only select the `id` * const articleEntityWithIdOnly = await prisma.articleEntity.findMany({ select: { id: true } }) * */ findMany<T extends ArticleEntityFindManyArgs>(args?: SelectSubset<T, ArticleEntityFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ArticleEntityPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>> /** * Create a ArticleEntity. * @param {ArticleEntityCreateArgs} args - Arguments to create a ArticleEntity. * @example * // Create one ArticleEntity * const ArticleEntity = await prisma.articleEntity.create({ * data: { * // ... data to create a ArticleEntity * } * }) * */ create<T extends ArticleEntityCreateArgs>(args: SelectSubset<T, ArticleEntityCreateArgs<ExtArgs>>): Prisma__ArticleEntityClient<$Result.GetResult<Prisma.$ArticleEntityPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many ArticleEntities. * @param {ArticleEntityCreateManyArgs} args - Arguments to create many ArticleEntities. * @example * // Create many ArticleEntities * const articleEntity = await prisma.articleEntity.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany<T extends ArticleEntityCreateManyArgs>(args?: SelectSubset<T, ArticleEntityCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> /** * Create many ArticleEntities and returns the data saved in the database. * @param {ArticleEntityCreateManyAndReturnArgs} args - Arguments to create many ArticleEntities. * @example * // Create many ArticleEntities * const articleEntity = await prisma.articleEntity.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many ArticleEntities and only return the `id` * const articleEntityWithIdOnly = await prisma.articleEntity.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 ArticleEntityCreateManyAndReturnArgs>(args?: SelectSubset<T, ArticleEntityCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ArticleEntityPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a ArticleEntity. * @param {ArticleEntityDeleteArgs} args - Arguments to delete one ArticleEntity. * @example * // Delete one ArticleEntity * const ArticleEntity = await prisma.articleEntity.delete({ * where: { * // ... filter to delete one ArticleEntity * } * }) * */ delete<T extends ArticleEntityDeleteArgs>(args: SelectSubset<T, ArticleEntityDeleteArgs<ExtArgs>>): Prisma__ArticleEntityClient<$Result.GetResult<Prisma.$ArticleEntityPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one ArticleEntity. * @param {ArticleEntityUpdateArgs} args - Arguments to update one ArticleEntity. * @example * // Update one ArticleEntity * const articleEntity = await prisma.articleEntity.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update<T extends ArticleEntityUpdateArgs>(args: SelectSubset<T, ArticleEntityUpdateArgs<ExtArgs>>): Prisma__ArticleEntityClient<$Result.GetResult<Prisma.$ArticleEntityPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more ArticleEntities. * @param {ArticleEntityDeleteManyArgs} args - Arguments to filter ArticleEntities to delete. * @example * // Delete a few ArticleEntities * const { count } = await prisma.articleEntity.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany<T extends ArticleEntityDeleteManyArgs>(args?: SelectSubset<T, ArticleEntityDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> /** * Update zero or more ArticleEntities. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ArticleEntityUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many ArticleEntities * const articleEntity = await prisma.articleEntity.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany<T extends ArticleEntityUpdateManyArgs>(args: SelectSubset<T, ArticleEntityUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> /** * Update zero or more ArticleEntities and returns the data updated in the database. * @param {ArticleEntityUpdateManyAndReturnArgs} args - Arguments to update many ArticleEntities. * @example * // Update many ArticleEntities * const articleEntity = await prisma.articleEntity.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more ArticleEntities and only return the `id` * const articleEntityWithIdOnly = await prisma.articleEntity.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn<T extends ArticleEntityUpdateManyAndReturnArgs>(args: SelectSubset<T, ArticleEntityUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ArticleEntityPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one ArticleEntity. * @param {ArticleEntityUpsertArgs} args - Arguments to update or create a ArticleEntity. * @example * // Update or create a ArticleEntity * const articleEntity = await prisma.articleEntity.upsert({ * create: { * // ... data to create a ArticleEntity * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the ArticleEntity we want to update * } * }) */ upsert<T extends ArticleEntityUpsertArgs>(args: SelectSubset<T, ArticleEntityUpsertArgs<ExtArgs>>): Prisma__ArticleEntityClient<$Result.GetResult<Prisma.$ArticleEntityPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of ArticleEntities. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ArticleEntityCountArgs} args - Arguments to filter ArticleEntities to count. * @example * // Count the number of ArticleEntities * const count = await prisma.articleEntity.count({ * where: { * // ... the filter for the ArticleEntities we want to count * } * }) **/ count<T extends ArticleEntityCountArgs>( args?: Subset<T, ArticleEntityCountArgs>, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType<T['select'], ArticleEntityCountAggregateOutputType> : number > /** * Allows you to perform aggregations operations on a ArticleEntity. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ArticleEntityAggregateArgs} 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 ArticleEntityAggregateArgs>(args: Subset<T, ArticleEntityAggregateArgs>): Prisma.PrismaPromise<GetArticleEntityAggregateType<T>> /** * Group by ArticleEntity. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ArticleEntityGroupByArgs} 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 ArticleEntityGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys<T>>, Extends<'take', Keys<T>> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: ArticleEntityGroupByArgs['orderBy'] } : { orderBy?: ArticleEntityGroupByArgs['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, ArticleEntityGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetArticleEntityGroupByPayload<T> : Prisma.PrismaPromise<InputErrors> /** * Fields of the ArticleEntity model */ readonly fields: ArticleEntityFieldRefs; } /** * The delegate class that acts as a "Promise-like" for ArticleEntity. * 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__ArticleEntityClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> { readonly [Symbol.toStringTag]: "PrismaPromise" article<T extends ArticleDefaultArgs<ExtArgs> = {}>(args?: Subset<T, ArticleDefaultArgs<ExtArgs>>): Prisma__ArticleClient<$Result.GetResult<Prisma.$ArticlePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> entity<T extends EntityDefaultArgs<ExtArgs> = {}>(args?: Subset<T, EntityDefaultArgs<ExtArgs>>): Prisma__EntityClient<$Result.GetResult<Prisma.$EntityPayload<ExtArgs>, 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<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 ArticleEntity model */ interface ArticleEntityFieldRefs { readonly id: FieldRef<"ArticleEntity", 'Int'> readonly articleId: FieldRef<"ArticleEntity", 'Int'> readonly entityId: FieldRef<"ArticleEntity", 'Int'> readonly frequency: FieldRef<"ArticleEntity", 'Int'> readonly createdAt: FieldRef<"ArticleEntity", 'DateTime'> } // Custom InputTypes /** * ArticleEntity findUnique */ export type ArticleEntityFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the ArticleEntity */ select?: ArticleEntitySelect<ExtArgs> | null /** * Omit specific fields from the ArticleEntity */ omit?: ArticleEntityOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: ArticleEntityInclude<ExtArgs> | null /** * Filter, which ArticleEntity to fetch. */ where: ArticleEntityWhereUniqueInput } /** * ArticleEntity findUniqueOrThrow */ export type ArticleEntityFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the ArticleEntity */ select?: ArticleEntitySelect<ExtArgs> | null /** * Omit specific fields from the ArticleEntity */ omit?: ArticleEntityOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: ArticleEntityInclude<ExtArgs> | null /** * Filter, which ArticleEntity to fetch. */ where: ArticleEntityWhereUniqueInput } /** * ArticleEntity findFirst */ export type ArticleEntityFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the ArticleEntity */ select?: ArticleEntitySelect<ExtArgs> | null /** * Omit specific fields from the ArticleEntity */ omit?: ArticleEntityOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: ArticleEntityInclude<ExtArgs> | null /** * Filter, which ArticleEntity to fetch. */ where?: ArticleEntityWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ArticleEntities to fetch. */ orderBy?: ArticleEntityOrderByWithRelationInput | ArticleEntityOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ArticleEntities. */ cursor?: ArticleEntityWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ArticleEntities 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` ArticleEntities. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ArticleEntities. */ distinct?: ArticleEntityScalarFieldEnum | ArticleEntityScalarFieldEnum[] } /** * ArticleEntity findFirstOrThrow */ export type ArticleEntityFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the ArticleEntity */ select?: ArticleEntitySelect<ExtArgs> | null /** * Omit specific fields from the ArticleEntity */ omit?: ArticleEntityOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: ArticleEntityInclude<ExtArgs> | null /** * Filter, which ArticleEntity to fetch. */ where?: ArticleEntityWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ArticleEntities to fetch. */ orderBy?: ArticleEntityOrderByWithRelationInput | ArticleEntityOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ArticleEntities. */ cursor?: ArticleEntityWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ArticleEntities 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` ArticleEntities. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ArticleEntities. */ distinct?: ArticleEntityScalarFieldEnum | ArticleEntityScalarFieldEnum[] } /** * ArticleEntity findMany */ export type ArticleEntityFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the ArticleEntity */ select?: ArticleEntitySelect<ExtArgs> | null /** * Omit specific fields from the ArticleEntity */ omit?: ArticleEntityOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: ArticleEntityInclude<ExtArgs> | null /** * Filter, which ArticleEntities to fetch. */ where?: ArticleEntityWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ArticleEntities to fetch. */ orderBy?: ArticleEntityOrderByWithRelationInput | ArticleEntityOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing ArticleEntities. */ cursor?: ArticleEntityWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ArticleEntities 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` ArticleEntities. */ skip?: number distinct?: ArticleEntityScalarFieldEnum | ArticleEntityScalarFieldEnum[] } /** * ArticleEntity create */ export type ArticleEntityCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the ArticleEntity */ select?: ArticleEntitySelect<ExtArgs> | null /** * Omit specific fields from the ArticleEntity */ omit?: ArticleEntityOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: ArticleEntityInclude<ExtArgs> | null /** * The data needed to create a ArticleEntity. */ data: XOR<ArticleEntityCreateInput, ArticleEntityUncheckedCreateInput> } /** * ArticleEntity createMany */ export type ArticleEntityCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * The data used to create many ArticleEntities. */ data: ArticleEntityCreateManyInput | ArticleEntityCreateManyInput[] } /** * ArticleEntity createManyAndReturn */ export type ArticleEntityCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the ArticleEntity */ select?: ArticleEntitySelectCreateManyAndReturn<ExtArgs> | null /** * Omit specific fields from the ArticleEntity */ omit?: ArticleEntityOmit<ExtArgs> | null /** * The data used to create many ArticleEntities. */ data: ArticleEntityCreateManyInput | ArticleEntityCreateManyInput[] /** * Choose, which related nodes to fetch as well */ include?: ArticleEntityIncludeCreateManyAndReturn<ExtArgs> | null } /** * ArticleEntity update */ export type ArticleEntityUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the ArticleEntity */ select?: ArticleEntitySelect<ExtArgs> | null /** * Omit specific fields from the ArticleEntity */ omit?: ArticleEntityOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: ArticleEntityInclude<ExtArgs> | null /** * The data needed to update a ArticleEntity. */ data: XOR<ArticleEntityUpdateInput, ArticleEntityUncheckedUpdateInput> /** * Choose, which ArticleEntity to update. */ where: ArticleEntityWhereUniqueInput } /** * ArticleEntity updateMany */ export type ArticleEntityUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * The data used to update ArticleEntities. */ data: XOR<ArticleEntityUpdateManyMutationInput, ArticleEntityUncheckedUpdateManyInput> /** * Filter which ArticleEntities to update */ where?: ArticleEntityWhereInput /** * Limit how many ArticleEntities to update. */ limit?: number } /** * ArticleEntity updateManyAndReturn */ export type ArticleEntityUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the ArticleEntity */ select?: ArticleEntitySelectUpdateManyAndReturn<ExtArgs> | null /** * Omit specific fields from the ArticleEntity */ omit?: ArticleEntityOmit<ExtArgs> | null /** * The data used to update ArticleEntities. */ data: XOR<ArticleEntityUpdateManyMutationInput, ArticleEntityUncheckedUpdateManyInput> /** * Filter which ArticleEntities to update */ where?: ArticleEntityWhereInput /** * Limit how many ArticleEntities to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: ArticleEntityIncludeUpdateManyAndReturn<ExtArgs> | null } /** * ArticleEntity upsert */ export type ArticleEntityUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the ArticleEntity */ select?: ArticleEntitySelect<ExtArgs> | null /** * Omit specific fields from the ArticleEntity */ omit?: ArticleEntityOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: ArticleEntityInclude<ExtArgs> | null /** * The filter to search for the ArticleEntity to update in case it exists. */ where: ArticleEntityWhereUniqueInput /** * In case the ArticleEntity found by the `where` argument doesn't exist, create a new ArticleEntity with this data. */ create: XOR<ArticleEntityCreateInput, ArticleEntityUncheckedCreateInput> /** * In case the ArticleEntity was found with the provided `where` argument, update it with this data. */ update: XOR<ArticleEntityUpdateInput, ArticleEntityUncheckedUpdateInput> } /** * ArticleEntity delete */ export type ArticleEntityDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the ArticleEntity */ select?: ArticleEntitySelect<ExtArgs> | null /** * Omit specific fields from the ArticleEntity */ omit?: ArticleEntityOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: ArticleEntityInclude<ExtArgs> | null /** * Filter which ArticleEntity to delete. */ where: ArticleEntityWhereUniqueInput } /** * ArticleEntity deleteMany */ export type ArticleEntityDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Filter which ArticleEntities to delete */ where?: ArticleEntityWhereInput /** * Limit how many ArticleEntities to delete. */ limit?: number } /** * ArticleEntity without action */ export type ArticleEntityDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the ArticleEntity */ select?: ArticleEntitySelect<ExtArgs> | null /** * Omit specific fields from the ArticleEntity */ omit?: ArticleEntityOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: ArticleEntityInclude<ExtArgs> | null } /** * Model SavedSearch */ export type AggregateSavedSearch = { _count: SavedSearchCountAggregateOutputType | null _avg: SavedSearchAvgAggregateOutputType | null _sum: SavedSearchSumAggregateOutputType | null _min: SavedSearchMinAggregateOutputType | null _max: SavedSearchMaxAggregateOutputType | null } export type SavedSearchAvgAggregateOutputType = { id: number | null userId: number | null } export type SavedSearchSumAggregateOutputType = { id: number | null userId: number | null } export type SavedSearchMinAggregateOutputType = { id: number | null userId: number | null name: string | null query: string | null parameters: string | null createdAt: Date | null updatedAt: Date | null lastRunAt: Date | null } export type SavedSearchMaxAggregateOutputType = { id: number | null userId: number | null name: string | null query: string | null parameters: string | null createdAt: Date | null updatedAt: Date | null lastRunAt: Date | null } export type SavedSearchCountAggregateOutputType = { id: number userId: number name: number query: number parameters: number createdAt: number updatedAt: number lastRunAt: number _all: number } export type SavedSearchAvgAggregateInputType = { id?: true userId?: true } export type SavedSearchSumAggregateInputType = { id?: true userId?: true } export type SavedSearchMinAggregateInputType = { id?: true userId?: true name?: true query?: true parameters?: true createdAt?: true updatedAt?: true lastRunAt?: true } export type SavedSearchMaxAggregateInputType = { id?: true userId?: true name?: true query?: true parameters?: true createdAt?: true updatedAt?: true lastRunAt?: true } export type SavedSearchCountAggregateInputType = { id?: true userId?: true name?: true query?: true parameters?: true createdAt?: true updatedAt?: true lastRunAt?: true _all?: true } export type SavedSearchAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Filter which SavedSearch to aggregate. */ where?: SavedSearchWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SavedSearches to fetch. */ orderBy?: SavedSearchOrderByWithRelationInput | SavedSearchOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: SavedSearchWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SavedSearches 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` SavedSearches. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned SavedSearches **/ _count?: true | SavedSearchCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: SavedSearchAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: SavedSearchSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: SavedSearchMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: SavedSearchMaxAggregateInputType } export type GetSavedSearchAggregateType<T extends SavedSearchAggregateArgs> = { [P in keyof T & keyof AggregateSavedSearch]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType<T[P], AggregateSavedSearch[P]> : GetScalarType<T[P], AggregateSavedSearch[P]> } export type SavedSearchGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { where?: SavedSearchWhereInput orderBy?: SavedSearchOrderByWithAggregationInput | SavedSearchOrderByWithAggregationInput[] by: SavedSearchScalarFieldEnum[] | SavedSearchScalarFieldEnum having?: SavedSearchScalarWhereWithAggregatesInput take?: number skip?: number _count?: SavedSearchCountAggregateInputType | true _avg?: SavedSearchAvgAggregateInputType _sum?: SavedSearchSumAggregateInputType _min?: SavedSearchMinAggregateInputType _max?: SavedSearchMaxAggregateInputType } export type SavedSearchGroupByOutputType = { id: number userId: number name: string query: string parameters: string createdAt: Date updatedAt: Date lastRunAt: Date | null _count: SavedSearchCountAggregateOutputType | null _avg: SavedSearchAvgAggregateOutputType | null _sum: SavedSearchSumAggregateOutputType | null _min: SavedSearchMinAggregateOutputType | null _max: SavedSearchMaxAggregateOutputType | null } type GetSavedSearchGroupByPayload<T extends SavedSearchGroupByArgs> = Prisma.PrismaPromise< Array< PickEnumerable<SavedSearchGroupByOutputType, T['by']> & { [P in ((keyof T) & (keyof SavedSearchGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType<T[P], SavedSearchGroupByOutputType[P]> : GetScalarType<T[P], SavedSearchGroupByOutputType[P]> } > > export type SavedSearchSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ id?: boolean userId?: boolean name?: boolean query?: boolean parameters?: boolean createdAt?: boolean updatedAt?: boolean lastRunAt?: boolean user?: boolean | UserDefaultArgs<ExtArgs> }, ExtArgs["result"]["savedSearch"]> export type SavedSearchSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ id?: boolean userId?: boolean name?: boolean query?: boolean parameters?: boolean createdAt?: boolean updatedAt?: boolean lastRunAt?: boolean user?: boolean | UserDefaultArgs<ExtArgs> }, ExtArgs["result"]["savedSearch"]> export type SavedSearchSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{ id?: boolean userId?: boolean name?: boolean query?: boolean parameters?: boolean createdAt?: boolean updatedAt?: boolean lastRunAt?: boolean user?: boolean | UserDefaultArgs<ExtArgs> }, ExtArgs["result"]["savedSearch"]> export type SavedSearchSelectScalar = { id?: boolean userId?: boolean name?: boolean query?: boolean parameters?: boolean createdAt?: boolean updatedAt?: boolean lastRunAt?: boolean } export type SavedSearchOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "userId" | "name" | "query" | "parameters" | "createdAt" | "updatedAt" | "lastRunAt", ExtArgs["result"]["savedSearch"]> export type SavedSearchInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { user?: boolean | UserDefaultArgs<ExtArgs> } export type SavedSearchIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { user?: boolean | UserDefaultArgs<ExtArgs> } export type SavedSearchIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { user?: boolean | UserDefaultArgs<ExtArgs> } export type $SavedSearchPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { name: "SavedSearch" objects: { user: Prisma.$UserPayload<ExtArgs> } scalars: $Extensions.GetPayloadResult<{ id: number userId: number name: string query: string parameters: string createdAt: Date updatedAt: Date lastRunAt: Date | null }, ExtArgs["result"]["savedSearch"]> composites: {} } type SavedSearchGetPayload<S extends boolean | null | undefined | SavedSearchDefaultArgs> = $Result.GetResult<Prisma.$SavedSearchPayload, S> type SavedSearchCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = Omit<SavedSearchFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & { select?: SavedSearchCountAggregateInputType | true } export interface SavedSearchDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> { [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['SavedSearch'], meta: { name: 'SavedSearch' } } /** * Find zero or one SavedSearch that matches the filter. * @param {SavedSearchFindUniqueArgs} args - Arguments to find a SavedSearch * @example * // Get one SavedSearch * const savedSearch = await prisma.savedSearch.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique<T extends SavedSearchFindUniqueArgs>(args: SelectSubset<T, SavedSearchFindUniqueArgs<ExtArgs>>): Prisma__SavedSearchClient<$Result.GetResult<Prisma.$SavedSearchPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one SavedSearch that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {SavedSearchFindUniqueOrThrowArgs} args - Arguments to find a SavedSearch * @example * // Get one SavedSearch * const savedSearch = await prisma.savedSearch.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow<T extends SavedSearchFindUniqueOrThrowArgs>(args: SelectSubset<T, SavedSearchFindUniqueOrThrowArgs<ExtArgs>>): Prisma__SavedSearchClient<$Result.GetResult<Prisma.$SavedSearchPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first SavedSearch 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 {SavedSearchFindFirstArgs} args - Arguments to find a SavedSearch * @example * // Get one SavedSearch * const savedSearch = await prisma.savedSearch.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst<T extends SavedSearchFindFirstArgs>(args?: SelectSubset<T, SavedSearchFindFirstArgs<ExtArgs>>): Prisma__SavedSearchClient<$Result.GetResult<Prisma.$SavedSearchPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first SavedSearch 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 {SavedSearchFindFirstOrThrowArgs} args - Arguments to find a SavedSearch * @example * // Get one SavedSearch * const savedSearch = await prisma.savedSearch.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow<T extends SavedSearchFindFirstOrThrowArgs>(args?: SelectSubset<T, SavedSearchFindFirstOrThrowArgs<ExtArgs>>): Prisma__SavedSearchClient<$Result.GetResult<Prisma.$SavedSearchPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more SavedSearches 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 {SavedSearchFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all SavedSearches * const savedSearches = await prisma.savedSearch.findMany() * * // Get first 10 SavedSearches * const savedSearches = await prisma.savedSearch.findMany({ take: 10 }) * * // Only select the `id` * const savedSearchWithIdOnly = await prisma.savedSearch.findMany({ select: { id: true } }) * */ findMany<T extends SavedSearchFindManyArgs>(args?: SelectSubset<T, SavedSearchFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SavedSearchPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>> /** * Create a SavedSearch. * @param {SavedSearchCreateArgs} args - Arguments to create a SavedSearch. * @example * // Create one SavedSearch * const SavedSearch = await prisma.savedSearch.create({ * data: { * // ... data to create a SavedSearch * } * }) * */ create<T extends SavedSearchCreateArgs>(args: SelectSubset<T, SavedSearchCreateArgs<ExtArgs>>): Prisma__SavedSearchClient<$Result.GetResult<Prisma.$SavedSearchPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many SavedSearches. * @param {SavedSearchCreateManyArgs} args - Arguments to create many SavedSearches. * @example * // Create many SavedSearches * const savedSearch = await prisma.savedSearch.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany<T extends SavedSearchCreateManyArgs>(args?: SelectSubset<T, SavedSearchCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> /** * Create many SavedSearches and returns the data saved in the database. * @param {SavedSearchCreateManyAndReturnArgs} args - Arguments to create many SavedSearches. * @example * // Create many SavedSearches * const savedSearch = await prisma.savedSearch.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many SavedSearches and only return the `id` * const savedSearchWithIdOnly = await prisma.savedSearch.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 SavedSearchCreateManyAndReturnArgs>(args?: SelectSubset<T, SavedSearchCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SavedSearchPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a SavedSearch. * @param {SavedSearchDeleteArgs} args - Arguments to delete one SavedSearch. * @example * // Delete one SavedSearch * const SavedSearch = await prisma.savedSearch.delete({ * where: { * // ... filter to delete one SavedSearch * } * }) * */ delete<T extends SavedSearchDeleteArgs>(args: SelectSubset<T, SavedSearchDeleteArgs<ExtArgs>>): Prisma__SavedSearchClient<$Result.GetResult<Prisma.$SavedSearchPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one SavedSearch. * @param {SavedSearchUpdateArgs} args - Arguments to update one SavedSearch. * @example * // Update one SavedSearch * const savedSearch = await prisma.savedSearch.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update<T extends SavedSearchUpdateArgs>(args: SelectSubset<T, SavedSearchUpdateArgs<ExtArgs>>): Prisma__SavedSearchClient<$Result.GetResult<Prisma.$SavedSearchPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more SavedSearches. * @param {SavedSearchDeleteManyArgs} args - Arguments to filter SavedSearches to delete. * @example * // Delete a few SavedSearches * const { count } = await prisma.savedSearch.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany<T extends SavedSearchDeleteManyArgs>(args?: SelectSubset<T, SavedSearchDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> /** * Update zero or more SavedSearches. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SavedSearchUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many SavedSearches * const savedSearch = await prisma.savedSearch.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany<T extends SavedSearchUpdateManyArgs>(args: SelectSubset<T, SavedSearchUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload> /** * Update zero or more SavedSearches and returns the data updated in the database. * @param {SavedSearchUpdateManyAndReturnArgs} args - Arguments to update many SavedSearches. * @example * // Update many SavedSearches * const savedSearch = await prisma.savedSearch.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more SavedSearches and only return the `id` * const savedSearchWithIdOnly = await prisma.savedSearch.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn<T extends SavedSearchUpdateManyAndReturnArgs>(args: SelectSubset<T, SavedSearchUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SavedSearchPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one SavedSearch. * @param {SavedSearchUpsertArgs} args - Arguments to update or create a SavedSearch. * @example * // Update or create a SavedSearch * const savedSearch = await prisma.savedSearch.upsert({ * create: { * // ... data to create a SavedSearch * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the SavedSearch we want to update * } * }) */ upsert<T extends SavedSearchUpsertArgs>(args: SelectSubset<T, SavedSearchUpsertArgs<ExtArgs>>): Prisma__SavedSearchClient<$Result.GetResult<Prisma.$SavedSearchPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of SavedSearches. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SavedSearchCountArgs} args - Arguments to filter SavedSearches to count. * @example * // Count the number of SavedSearches * const count = await prisma.savedSearch.count({ * where: { * // ... the filter for the SavedSearches we want to count * } * }) **/ count<T extends SavedSearchCountArgs>( args?: Subset<T, SavedSearchCountArgs>, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType<T['select'], SavedSearchCountAggregateOutputType> : number > /** * Allows you to perform aggregations operations on a SavedSearch. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SavedSearchAggregateArgs} 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 SavedSearchAggregateArgs>(args: Subset<T, SavedSearchAggregateArgs>): Prisma.PrismaPromise<GetSavedSearchAggregateType<T>> /** * Group by SavedSearch. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SavedSearchGroupByArgs} 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 SavedSearchGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys<T>>, Extends<'take', Keys<T>> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: SavedSearchGroupByArgs['orderBy'] } : { orderBy?: SavedSearchGroupByArgs['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, SavedSearchGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSavedSearchGroupByPayload<T> : Prisma.PrismaPromise<InputErrors> /** * Fields of the SavedSearch model */ readonly fields: SavedSearchFieldRefs; } /** * The delegate class that acts as a "Promise-like" for SavedSearch. * 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__SavedSearchClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> 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", 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<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 SavedSearch model */ interface SavedSearchFieldRefs { readonly id: FieldRef<"SavedSearch", 'Int'> readonly userId: FieldRef<"SavedSearch", 'Int'> readonly name: FieldRef<"SavedSearch", 'String'> readonly query: FieldRef<"SavedSearch", 'String'> readonly parameters: FieldRef<"SavedSearch", 'String'> readonly createdAt: FieldRef<"SavedSearch", 'DateTime'> readonly updatedAt: FieldRef<"SavedSearch", 'DateTime'> readonly lastRunAt: FieldRef<"SavedSearch", 'DateTime'> } // Custom InputTypes /** * SavedSearch findUnique */ export type SavedSearchFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the SavedSearch */ select?: SavedSearchSelect<ExtArgs> | null /** * Omit specific fields from the SavedSearch */ omit?: SavedSearchOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: SavedSearchInclude<ExtArgs> | null /** * Filter, which SavedSearch to fetch. */ where: SavedSearchWhereUniqueInput } /** * SavedSearch findUniqueOrThrow */ export type SavedSearchFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the SavedSearch */ select?: SavedSearchSelect<ExtArgs> | null /** * Omit specific fields from the SavedSearch */ omit?: SavedSearchOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: SavedSearchInclude<ExtArgs> | null /** * Filter, which SavedSearch to fetch. */ where: SavedSearchWhereUniqueInput } /** * SavedSearch findFirst */ export type SavedSearchFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the SavedSearch */ select?: SavedSearchSelect<ExtArgs> | null /** * Omit specific fields from the SavedSearch */ omit?: SavedSearchOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: SavedSearchInclude<ExtArgs> | null /** * Filter, which SavedSearch to fetch. */ where?: SavedSearchWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SavedSearches to fetch. */ orderBy?: SavedSearchOrderByWithRelationInput | SavedSearchOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for SavedSearches. */ cursor?: SavedSearchWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SavedSearches 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` SavedSearches. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SavedSearches. */ distinct?: SavedSearchScalarFieldEnum | SavedSearchScalarFieldEnum[] } /** * SavedSearch findFirstOrThrow */ export type SavedSearchFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the SavedSearch */ select?: SavedSearchSelect<ExtArgs> | null /** * Omit specific fields from the SavedSearch */ omit?: SavedSearchOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: SavedSearchInclude<ExtArgs> | null /** * Filter, which SavedSearch to fetch. */ where?: SavedSearchWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SavedSearches to fetch. */ orderBy?: SavedSearchOrderByWithRelationInput | SavedSearchOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for SavedSearches. */ cursor?: SavedSearchWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SavedSearches 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` SavedSearches. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SavedSearches. */ distinct?: SavedSearchScalarFieldEnum | SavedSearchScalarFieldEnum[] } /** * SavedSearch findMany */ export type SavedSearchFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the SavedSearch */ select?: SavedSearchSelect<ExtArgs> | null /** * Omit specific fields from the SavedSearch */ omit?: SavedSearchOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: SavedSearchInclude<ExtArgs> | null /** * Filter, which SavedSearches to fetch. */ where?: SavedSearchWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SavedSearches to fetch. */ orderBy?: SavedSearchOrderByWithRelationInput | SavedSearchOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing SavedSearches. */ cursor?: SavedSearchWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SavedSearches 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` SavedSearches. */ skip?: number distinct?: SavedSearchScalarFieldEnum | SavedSearchScalarFieldEnum[] } /** * SavedSearch create */ export type SavedSearchCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the SavedSearch */ select?: SavedSearchSelect<ExtArgs> | null /** * Omit specific fields from the SavedSearch */ omit?: SavedSearchOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: SavedSearchInclude<ExtArgs> | null /** * The data needed to create a SavedSearch. */ data: XOR<SavedSearchCreateInput, SavedSearchUncheckedCreateInput> } /** * SavedSearch createMany */ export type SavedSearchCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * The data used to create many SavedSearches. */ data: SavedSearchCreateManyInput | SavedSearchCreateManyInput[] } /** * SavedSearch createManyAndReturn */ export type SavedSearchCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the SavedSearch */ select?: SavedSearchSelectCreateManyAndReturn<ExtArgs> | null /** * Omit specific fields from the SavedSearch */ omit?: SavedSearchOmit<ExtArgs> | null /** * The data used to create many SavedSearches. */ data: SavedSearchCreateManyInput | SavedSearchCreateManyInput[] /** * Choose, which related nodes to fetch as well */ include?: SavedSearchIncludeCreateManyAndReturn<ExtArgs> | null } /** * SavedSearch update */ export type SavedSearchUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the SavedSearch */ select?: SavedSearchSelect<ExtArgs> | null /** * Omit specific fields from the SavedSearch */ omit?: SavedSearchOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: SavedSearchInclude<ExtArgs> | null /** * The data needed to update a SavedSearch. */ data: XOR<SavedSearchUpdateInput, SavedSearchUncheckedUpdateInput> /** * Choose, which SavedSearch to update. */ where: SavedSearchWhereUniqueInput } /** * SavedSearch updateMany */ export type SavedSearchUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * The data used to update SavedSearches. */ data: XOR<SavedSearchUpdateManyMutationInput, SavedSearchUncheckedUpdateManyInput> /** * Filter which SavedSearches to update */ where?: SavedSearchWhereInput /** * Limit how many SavedSearches to update. */ limit?: number } /** * SavedSearch updateManyAndReturn */ export type SavedSearchUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the SavedSearch */ select?: SavedSearchSelectUpdateManyAndReturn<ExtArgs> | null /** * Omit specific fields from the SavedSearch */ omit?: SavedSearchOmit<ExtArgs> | null /** * The data used to update SavedSearches. */ data: XOR<SavedSearchUpdateManyMutationInput, SavedSearchUncheckedUpdateManyInput> /** * Filter which SavedSearches to update */ where?: SavedSearchWhereInput /** * Limit how many SavedSearches to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: SavedSearchIncludeUpdateManyAndReturn<ExtArgs> | null } /** * SavedSearch upsert */ export type SavedSearchUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the SavedSearch */ select?: SavedSearchSelect<ExtArgs> | null /** * Omit specific fields from the SavedSearch */ omit?: SavedSearchOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: SavedSearchInclude<ExtArgs> | null /** * The filter to search for the SavedSearch to update in case it exists. */ where: SavedSearchWhereUniqueInput /** * In case the SavedSearch found by the `where` argument doesn't exist, create a new SavedSearch with this data. */ create: XOR<SavedSearchCreateInput, SavedSearchUncheckedCreateInput> /** * In case the SavedSearch was found with the provided `where` argument, update it with this data. */ update: XOR<SavedSearchUpdateInput, SavedSearchUncheckedUpdateInput> } /** * SavedSearch delete */ export type SavedSearchDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the SavedSearch */ select?: SavedSearchSelect<ExtArgs> | null /** * Omit specific fields from the SavedSearch */ omit?: SavedSearchOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: SavedSearchInclude<ExtArgs> | null /** * Filter which SavedSearch to delete. */ where: SavedSearchWhereUniqueInput } /** * SavedSearch deleteMany */ export type SavedSearchDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Filter which SavedSearches to delete */ where?: SavedSearchWhereInput /** * Limit how many SavedSearches to delete. */ limit?: number } /** * SavedSearch without action */ export type SavedSearchDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = { /** * Select specific fields to fetch from the SavedSearch */ select?: SavedSearchSelect<ExtArgs> | null /** * Omit specific fields from the SavedSearch */ omit?: SavedSearchOmit<ExtArgs> | null /** * Choose, which related nodes to fetch as well */ include?: SavedSearchInclude<ExtArgs> | null } /** * Enums */ export const TransactionIsolationLevel: { Serializable: 'Serializable' }; export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] export const ArticleScalarFieldEnum: { id: 'id', uuid: 'uuid', title: 'title', description: 'description', url: 'url', imageUrl: 'imageUrl', source: 'source', publishedAt: 'publishedAt', categories: 'categories', language: 'language', createdAt: 'createdAt', updatedAt: 'updatedAt', readCount: 'readCount', relevanceScore: 'relevanceScore', sentiment: 'sentiment' }; export type ArticleScalarFieldEnum = (typeof ArticleScalarFieldEnum)[keyof typeof ArticleScalarFieldEnum] export const UserArticleScalarFieldEnum: { id: 'id', userId: 'userId', articleId: 'articleId', isBookmarked: 'isBookmarked', isRead: 'isRead', createdAt: 'createdAt', updatedAt: 'updatedAt', readAt: 'readAt' }; export type UserArticleScalarFieldEnum = (typeof UserArticleScalarFieldEnum)[keyof typeof UserArticleScalarFieldEnum] export const UserScalarFieldEnum: { id: 'id', email: 'email', name: 'name', passwordHash: 'passwordHash', createdAt: 'createdAt', updatedAt: 'updatedAt', lastLoginAt: 'lastLoginAt', preferredCategories: 'preferredCategories', preferredSources: 'preferredSources', preferredLanguage: 'preferredLanguage' }; export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum] export const TopicScalarFieldEnum: { id: 'id', name: 'name', articleCount: 'articleCount', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type TopicScalarFieldEnum = (typeof TopicScalarFieldEnum)[keyof typeof TopicScalarFieldEnum] export const ArticleTopicScalarFieldEnum: { id: 'id', articleId: 'articleId', topicId: 'topicId', confidence: 'confidence', createdAt: 'createdAt' }; export type ArticleTopicScalarFieldEnum = (typeof ArticleTopicScalarFieldEnum)[keyof typeof ArticleTopicScalarFieldEnum] export const EntityScalarFieldEnum: { id: 'id', name: 'name', type: 'type', articleCount: 'articleCount', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type EntityScalarFieldEnum = (typeof EntityScalarFieldEnum)[keyof typeof EntityScalarFieldEnum] export const ArticleEntityScalarFieldEnum: { id: 'id', articleId: 'articleId', entityId: 'entityId', frequency: 'frequency', createdAt: 'createdAt' }; export type ArticleEntityScalarFieldEnum = (typeof ArticleEntityScalarFieldEnum)[keyof typeof ArticleEntityScalarFieldEnum] export const SavedSearchScalarFieldEnum: { id: 'id', userId: 'userId', name: 'name', query: 'query', parameters: 'parameters', createdAt: 'createdAt', updatedAt: 'updatedAt', lastRunAt: 'lastRunAt' }; export type SavedSearchScalarFieldEnum = (typeof SavedSearchScalarFieldEnum)[keyof typeof SavedSearchScalarFieldEnum] 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 '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 'DateTime' */ export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'> /** * Reference to a field of type 'Float' */ export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'> /** * Reference to a field of type 'Boolean' */ export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'> /** * Deep Input Types */ export type ArticleWhereInput = { AND?: ArticleWhereInput | ArticleWhereInput[] OR?: ArticleWhereInput[] NOT?: ArticleWhereInput | ArticleWhereInput[] id?: IntFilter<"Article"> | number uuid?: StringFilter<"Article"> | string title?: StringFilter<"Article"> | string description?: StringNullableFilter<"Article"> | string | null url?: StringFilter<"Article"> | string imageUrl?: StringNullableFilter<"Article"> | string | null source?: StringFilter<"Article"> | string publishedAt?: DateTimeFilter<"Article"> | Date | string categories?: StringFilter<"Article"> | string language?: StringFilter<"Article"> | string createdAt?: DateTimeFilter<"Article"> | Date | string updatedAt?: DateTimeFilter<"Article"> | Date | string readCount?: IntFilter<"Article"> | number relevanceScore?: FloatNullableFilter<"Article"> | number | null sentiment?: FloatNullableFilter<"Article"> | number | null userArticles?: UserArticleListRelationFilter topics?: ArticleTopicListRelationFilter entities?: ArticleEntityListRelationFilter } export type ArticleOrderByWithRelationInput = { id?: SortOrder uuid?: SortOrder title?: SortOrder description?: SortOrderInput | SortOrder url?: SortOrder imageUrl?: SortOrderInput | SortOrder source?: SortOrder publishedAt?: SortOrder categories?: SortOrder language?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder readCount?: SortOrder relevanceScore?: SortOrderInput | SortOrder sentiment?: SortOrderInput | SortOrder userArticles?: UserArticleOrderByRelationAggregateInput topics?: ArticleTopicOrderByRelationAggregateInput entities?: ArticleEntityOrderByRelationAggregateInput } export type ArticleWhereUniqueInput = Prisma.AtLeast<{ id?: number uuid?: string AND?: ArticleWhereInput | ArticleWhereInput[] OR?: ArticleWhereInput[] NOT?: ArticleWhereInput | ArticleWhereInput[] title?: StringFilter<"Article"> | string description?: StringNullableFilter<"Article"> | string | null url?: StringFilter<"Article"> | string imageUrl?: StringNullableFilter<"Article"> | string | null source?: StringFilter<"Article"> | string publishedAt?: DateTimeFilter<"Article"> | Date | string categories?: StringFilter<"Article"> | string language?: StringFilter<"Article"> | string createdAt?: DateTimeFilter<"Article"> | Date | string updatedAt?: DateTimeFilter<"Article"> | Date | string readCount?: IntFilter<"Article"> | number relevanceScore?: FloatNullableFilter<"Article"> | number | null sentiment?: FloatNullableFilter<"Article"> | number | null userArticles?: UserArticleListRelationFilter topics?: ArticleTopicListRelationFilter entities?: ArticleEntityListRelationFilter }, "id" | "uuid"> export type ArticleOrderByWithAggregationInput = { id?: SortOrder uuid?: SortOrder title?: SortOrder description?: SortOrderInput | SortOrder url?: SortOrder imageUrl?: SortOrderInput | SortOrder source?: SortOrder publishedAt?: SortOrder categories?: SortOrder language?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder readCount?: SortOrder relevanceScore?: SortOrderInput | SortOrder sentiment?: SortOrderInput | 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 uuid?: StringWithAggregatesFilter<"Article"> | string title?: StringWithAggregatesFilter<"Article"> | string description?: StringNullableWithAggregatesFilter<"Article"> | string | null url?: StringWithAggregatesFilter<"Article"> | string imageUrl?: StringNullableWithAggregatesFilter<"Article"> | string | null source?: StringWithAggregatesFilter<"Article"> | string publishedAt?: DateTimeWithAggregatesFilter<"Article"> | Date | string categories?: StringWithAggregatesFilter<"Article"> | string language?: StringWithAggregatesFilter<"Article"> | string createdAt?: DateTimeWithAggregatesFilter<"Article"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Article"> | Date | string readCount?: IntWithAggregatesFilter<"Article"> | number relevanceScore?: FloatNullableWithAggregatesFilter<"Article"> | number | null sentiment?: FloatNullableWithAggregatesFilter<"Article"> | number | null } export type UserArticleWhereInput = { AND?: UserArticleWhereInput | UserArticleWhereInput[] OR?: UserArticleWhereInput[] NOT?: UserArticleWhereInput | UserArticleWhereInput[] id?: IntFilter<"UserArticle"> | number userId?: IntFilter<"UserArticle"> | number articleId?: IntFilter<"UserArticle"> | number isBookmarked?: BoolFilter<"UserArticle"> | boolean isRead?: BoolFilter<"UserArticle"> | boolean createdAt?: DateTimeFilter<"UserArticle"> | Date | string updatedAt?: DateTimeFilter<"UserArticle"> | Date | string readAt?: DateTimeNullableFilter<"UserArticle"> | Date | string | null article?: XOR<ArticleScalarRelationFilter, ArticleWhereInput> user?: XOR<UserScalarRelationFilter, UserWhereInput> } export type UserArticleOrderByWithRelationInput = { id?: SortOrder userId?: SortOrder articleId?: SortOrder isBookmarked?: SortOrder isRead?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder readAt?: SortOrderInput | SortOrder article?: ArticleOrderByWithRelationInput user?: UserOrderByWithRelationInput } export type UserArticleWhereUniqueInput = Prisma.AtLeast<{ id?: number userId_articleId?: UserArticleUserIdArticleIdCompoundUniqueInput AND?: UserArticleWhereInput | UserArticleWhereInput[] OR?: UserArticleWhereInput[] NOT?: UserArticleWhereInput | UserArticleWhereInput[] userId?: IntFilter<"UserArticle"> | number articleId?: IntFilter<"UserArticle"> | number isBookmarked?: BoolFilter<"UserArticle"> | boolean isRead?: BoolFilter<"UserArticle"> | boolean createdAt?: DateTimeFilter<"UserArticle"> | Date | string updatedAt?: DateTimeFilter<"UserArticle"> | Date | string readAt?: DateTimeNullableFilter<"UserArticle"> | Date | string | null article?: XOR<ArticleScalarRelationFilter, ArticleWhereInput> user?: XOR<UserScalarRelationFilter, UserWhereInput> }, "id" | "userId_articleId"> export type UserArticleOrderByWithAggregationInput = { id?: SortOrder userId?: SortOrder articleId?: SortOrder isBookmarked?: SortOrder isRead?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder readAt?: SortOrderInput | SortOrder _count?: UserArticleCountOrderByAggregateInput _avg?: UserArticleAvgOrderByAggregateInput _max?: UserArticleMaxOrderByAggregateInput _min?: UserArticleMinOrderByAggregateInput _sum?: UserArticleSumOrderByAggregateInput } export type UserArticleScalarWhereWithAggregatesInput = { AND?: UserArticleScalarWhereWithAggregatesInput | UserArticleScalarWhereWithAggregatesInput[] OR?: UserArticleScalarWhereWithAggregatesInput[] NOT?: UserArticleScalarWhereWithAggregatesInput | UserArticleScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"UserArticle"> | number userId?: IntWithAggregatesFilter<"UserArticle"> | number articleId?: IntWithAggregatesFilter<"UserArticle"> | number isBookmarked?: BoolWithAggregatesFilter<"UserArticle"> | boolean isRead?: BoolWithAggregatesFilter<"UserArticle"> | boolean createdAt?: DateTimeWithAggregatesFilter<"UserArticle"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"UserArticle"> | Date | string readAt?: DateTimeNullableWithAggregatesFilter<"UserArticle"> | Date | string | null } export type UserWhereInput = { AND?: UserWhereInput | UserWhereInput[] OR?: UserWhereInput[] NOT?: UserWhereInput | UserWhereInput[] id?: IntFilter<"User"> | number email?: StringFilter<"User"> | string name?: StringNullableFilter<"User"> | string | null passwordHash?: StringFilter<"User"> | string createdAt?: DateTimeFilter<"User"> | Date | string updatedAt?: DateTimeFilter<"User"> | Date | string lastLoginAt?: DateTimeNullableFilter<"User"> | Date | string | null preferredCategories?: StringNullableFilter<"User"> | string | null preferredSources?: StringNullableFilter<"User"> | string | null preferredLanguage?: StringFilter<"User"> | string userArticles?: UserArticleListRelationFilter searches?: SavedSearchListRelationFilter } export type UserOrderByWithRelationInput = { id?: SortOrder email?: SortOrder name?: SortOrderInput | SortOrder passwordHash?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder lastLoginAt?: SortOrderInput | SortOrder preferredCategories?: SortOrderInput | SortOrder preferredSources?: SortOrderInput | SortOrder preferredLanguage?: SortOrder userArticles?: UserArticleOrderByRelationAggregateInput searches?: SavedSearchOrderByRelationAggregateInput } export type UserWhereUniqueInput = Prisma.AtLeast<{ id?: number email?: string AND?: UserWhereInput | UserWhereInput[] OR?: UserWhereInput[] NOT?: UserWhereInput | UserWhereInput[] name?: StringNullableFilter<"User"> | string | null passwordHash?: StringFilter<"User"> | string createdAt?: DateTimeFilter<"User"> | Date | string updatedAt?: DateTimeFilter<"User"> | Date | string lastLoginAt?: DateTimeNullableFilter<"User"> | Date | string | null preferredCategories?: StringNullableFilter<"User"> | string | null preferredSources?: StringNullableFilter<"User"> | string | null preferredLanguage?: StringFilter<"User"> | string userArticles?: UserArticleListRelationFilter searches?: SavedSearchListRelationFilter }, "id" | "email"> export type UserOrderByWithAggregationInput = { id?: SortOrder email?: SortOrder name?: SortOrderInput | SortOrder passwordHash?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder lastLoginAt?: SortOrderInput | SortOrder preferredCategories?: SortOrderInput | SortOrder preferredSources?: SortOrderInput | SortOrder preferredLanguage?: SortOrder _count?: UserCountOrderByAggregateInput _avg?: UserAvgOrderByAggregateInput _max?: UserMaxOrderByAggregateInput _min?: UserMinOrderByAggregateInput _sum?: UserSumOrderByAggregateInput } export type UserScalarWhereWithAggregatesInput = { AND?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[] OR?: UserScalarWhereWithAggregatesInput[] NOT?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"User"> | number email?: StringWithAggregatesFilter<"User"> | string name?: StringNullableWithAggregatesFilter<"User"> | string | null passwordHash?: StringWithAggregatesFilter<"User"> | string createdAt?: DateTimeWithAggregatesFilter<"User"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"User"> | Date | string lastLoginAt?: DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null preferredCategories?: StringNullableWithAggregatesFilter<"User"> | string | null preferredSources?: StringNullableWithAggregatesFilter<"User"> | string | null preferredLanguage?: StringWithAggregatesFilter<"User"> | string } export type TopicWhereInput = { AND?: TopicWhereInput | TopicWhereInput[] OR?: TopicWhereInput[] NOT?: TopicWhereInput | TopicWhereInput[] id?: IntFilter<"Topic"> | number name?: StringFilter<"Topic"> | string articleCount?: IntFilter<"Topic"> | number createdAt?: DateTimeFilter<"Topic"> | Date | string updatedAt?: DateTimeFilter<"Topic"> | Date | string articles?: ArticleTopicListRelationFilter } export type TopicOrderByWithRelationInput = { id?: SortOrder name?: SortOrder articleCount?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder articles?: ArticleTopicOrderByRelationAggregateInput } export type TopicWhereUniqueInput = Prisma.AtLeast<{ id?: number name?: string AND?: TopicWhereInput | TopicWhereInput[] OR?: TopicWhereInput[] NOT?: TopicWhereInput | TopicWhereInput[] articleCount?: IntFilter<"Topic"> | number createdAt?: DateTimeFilter<"Topic"> | Date | string updatedAt?: DateTimeFilter<"Topic"> | Date | string articles?: ArticleTopicListRelationFilter }, "id" | "name"> export type TopicOrderByWithAggregationInput = { id?: SortOrder name?: SortOrder articleCount?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: TopicCountOrderByAggregateInput _avg?: TopicAvgOrderByAggregateInput _max?: TopicMaxOrderByAggregateInput _min?: TopicMinOrderByAggregateInput _sum?: TopicSumOrderByAggregateInput } export type TopicScalarWhereWithAggregatesInput = { AND?: TopicScalarWhereWithAggregatesInput | TopicScalarWhereWithAggregatesInput[] OR?: TopicScalarWhereWithAggregatesInput[] NOT?: TopicScalarWhereWithAggregatesInput | TopicScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"Topic"> | number name?: StringWithAggregatesFilter<"Topic"> | string articleCount?: IntWithAggregatesFilter<"Topic"> | number createdAt?: DateTimeWithAggregatesFilter<"Topic"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Topic"> | Date | string } export type ArticleTopicWhereInput = { AND?: ArticleTopicWhereInput | ArticleTopicWhereInput[] OR?: ArticleTopicWhereInput[] NOT?: ArticleTopicWhereInput | ArticleTopicWhereInput[] id?: IntFilter<"ArticleTopic"> | number articleId?: IntFilter<"ArticleTopic"> | number topicId?: IntFilter<"ArticleTopic"> | number confidence?: FloatFilter<"ArticleTopic"> | number createdAt?: DateTimeFilter<"ArticleTopic"> | Date | string article?: XOR<ArticleScalarRelationFilter, ArticleWhereInput> topic?: XOR<TopicScalarRelationFilter, TopicWhereInput> } export type ArticleTopicOrderByWithRelationInput = { id?: SortOrder articleId?: SortOrder topicId?: SortOrder confidence?: SortOrder createdAt?: SortOrder article?: ArticleOrderByWithRelationInput topic?: TopicOrderByWithRelationInput } export type ArticleTopicWhereUniqueInput = Prisma.AtLeast<{ id?: number articleId_topicId?: ArticleTopicArticleIdTopicIdCompoundUniqueInput AND?: ArticleTopicWhereInput | ArticleTopicWhereInput[] OR?: ArticleTopicWhereInput[] NOT?: ArticleTopicWhereInput | ArticleTopicWhereInput[] articleId?: IntFilter<"ArticleTopic"> | number topicId?: IntFilter<"ArticleTopic"> | number confidence?: FloatFilter<"ArticleTopic"> | number createdAt?: DateTimeFilter<"ArticleTopic"> | Date | string article?: XOR<ArticleScalarRelationFilter, ArticleWhereInput> topic?: XOR<TopicScalarRelationFilter, TopicWhereInput> }, "id" | "articleId_topicId"> export type ArticleTopicOrderByWithAggregationInput = { id?: SortOrder articleId?: SortOrder topicId?: SortOrder confidence?: SortOrder createdAt?: SortOrder _count?: ArticleTopicCountOrderByAggregateInput _avg?: ArticleTopicAvgOrderByAggregateInput _max?: ArticleTopicMaxOrderByAggregateInput _min?: ArticleTopicMinOrderByAggregateInput _sum?: ArticleTopicSumOrderByAggregateInput } export type ArticleTopicScalarWhereWithAggregatesInput = { AND?: ArticleTopicScalarWhereWithAggregatesInput | ArticleTopicScalarWhereWithAggregatesInput[] OR?: ArticleTopicScalarWhereWithAggregatesInput[] NOT?: ArticleTopicScalarWhereWithAggregatesInput | ArticleTopicScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"ArticleTopic"> | number articleId?: IntWithAggregatesFilter<"ArticleTopic"> | number topicId?: IntWithAggregatesFilter<"ArticleTopic"> | number confidence?: FloatWithAggregatesFilter<"ArticleTopic"> | number createdAt?: DateTimeWithAggregatesFilter<"ArticleTopic"> | Date | string } export type EntityWhereInput = { AND?: EntityWhereInput | EntityWhereInput[] OR?: EntityWhereInput[] NOT?: EntityWhereInput | EntityWhereInput[] id?: IntFilter<"Entity"> | number name?: StringFilter<"Entity"> | string type?: StringFilter<"Entity"> | string articleCount?: IntFilter<"Entity"> | number createdAt?: DateTimeFilter<"Entity"> | Date | string updatedAt?: DateTimeFilter<"Entity"> | Date | string articles?: ArticleEntityListRelationFilter } export type EntityOrderByWithRelationInput = { id?: SortOrder name?: SortOrder type?: SortOrder articleCount?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder articles?: ArticleEntityOrderByRelationAggregateInput } export type EntityWhereUniqueInput = Prisma.AtLeast<{ id?: number name?: string AND?: EntityWhereInput | EntityWhereInput[] OR?: EntityWhereInput[] NOT?: EntityWhereInput | EntityWhereInput[] type?: StringFilter<"Entity"> | string articleCount?: IntFilter<"Entity"> | number createdAt?: DateTimeFilter<"Entity"> | Date | string updatedAt?: DateTimeFilter<"Entity"> | Date | string articles?: ArticleEntityListRelationFilter }, "id" | "name"> export type EntityOrderByWithAggregationInput = { id?: SortOrder name?: SortOrder type?: SortOrder articleCount?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: EntityCountOrderByAggregateInput _avg?: EntityAvgOrderByAggregateInput _max?: EntityMaxOrderByAggregateInput _min?: EntityMinOrderByAggregateInput _sum?: EntitySumOrderByAggregateInput } export type EntityScalarWhereWithAggregatesInput = { AND?: EntityScalarWhereWithAggregatesInput | EntityScalarWhereWithAggregatesInput[] OR?: EntityScalarWhereWithAggregatesInput[] NOT?: EntityScalarWhereWithAggregatesInput | EntityScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"Entity"> | number name?: StringWithAggregatesFilter<"Entity"> | string type?: StringWithAggregatesFilter<"Entity"> | string articleCount?: IntWithAggregatesFilter<"Entity"> | number createdAt?: DateTimeWithAggregatesFilter<"Entity"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Entity"> | Date | string } export type ArticleEntityWhereInput = { AND?: ArticleEntityWhereInput | ArticleEntityWhereInput[] OR?: ArticleEntityWhereInput[] NOT?: ArticleEntityWhereInput | ArticleEntityWhereInput[] id?: IntFilter<"ArticleEntity"> | number articleId?: IntFilter<"ArticleEntity"> | number entityId?: IntFilter<"ArticleEntity"> | number frequency?: IntFilter<"ArticleEntity"> | number createdAt?: DateTimeFilter<"ArticleEntity"> | Date | string article?: XOR<ArticleScalarRelationFilter, ArticleWhereInput> entity?: XOR<EntityScalarRelationFilter, EntityWhereInput> } export type ArticleEntityOrderByWithRelationInput = { id?: SortOrder articleId?: SortOrder entityId?: SortOrder frequency?: SortOrder createdAt?: SortOrder article?: ArticleOrderByWithRelationInput entity?: EntityOrderByWithRelationInput } export type ArticleEntityWhereUniqueInput = Prisma.AtLeast<{ id?: number articleId_entityId?: ArticleEntityArticleIdEntityIdCompoundUniqueInput AND?: ArticleEntityWhereInput | ArticleEntityWhereInput[] OR?: ArticleEntityWhereInput[] NOT?: ArticleEntityWhereInput | ArticleEntityWhereInput[] articleId?: IntFilter<"ArticleEntity"> | number entityId?: IntFilter<"ArticleEntity"> | number frequency?: IntFilter<"ArticleEntity"> | number createdAt?: DateTimeFilter<"ArticleEntity"> | Date | string article?: XOR<ArticleScalarRelationFilter, ArticleWhereInput> entity?: XOR<EntityScalarRelationFilter, EntityWhereInput> }, "id" | "articleId_entityId"> export type ArticleEntityOrderByWithAggregationInput = { id?: SortOrder articleId?: SortOrder entityId?: SortOrder frequency?: SortOrder createdAt?: SortOrder _count?: ArticleEntityCountOrderByAggregateInput _avg?: ArticleEntityAvgOrderByAggregateInput _max?: ArticleEntityMaxOrderByAggregateInput _min?: ArticleEntityMinOrderByAggregateInput _sum?: ArticleEntitySumOrderByAggregateInput } export type ArticleEntityScalarWhereWithAggregatesInput = { AND?: ArticleEntityScalarWhereWithAggregatesInput | ArticleEntityScalarWhereWithAggregatesInput[] OR?: ArticleEntityScalarWhereWithAggregatesInput[] NOT?: ArticleEntityScalarWhereWithAggregatesInput | ArticleEntityScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"ArticleEntity"> | number articleId?: IntWithAggregatesFilter<"ArticleEntity"> | number entityId?: IntWithAggregatesFilter<"ArticleEntity"> | number frequency?: IntWithAggregatesFilter<"ArticleEntity"> | number createdAt?: DateTimeWithAggregatesFilter<"ArticleEntity"> | Date | string } export type SavedSearchWhereInput = { AND?: SavedSearchWhereInput | SavedSearchWhereInput[] OR?: SavedSearchWhereInput[] NOT?: SavedSearchWhereInput | SavedSearchWhereInput[] id?: IntFilter<"SavedSearch"> | number userId?: IntFilter<"SavedSearch"> | number name?: StringFilter<"SavedSearch"> | string query?: StringFilter<"SavedSearch"> | string parameters?: StringFilter<"SavedSearch"> | string createdAt?: DateTimeFilter<"SavedSearch"> | Date | string updatedAt?: DateTimeFilter<"SavedSearch"> | Date | string lastRunAt?: DateTimeNullableFilter<"SavedSearch"> | Date | string | null user?: XOR<UserScalarRelationFilter, UserWhereInput> } export type SavedSearchOrderByWithRelationInput = { id?: SortOrder userId?: SortOrder name?: SortOrder query?: SortOrder parameters?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder lastRunAt?: SortOrderInput | SortOrder user?: UserOrderByWithRelationInput } export type SavedSearchWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: SavedSearchWhereInput | SavedSearchWhereInput[] OR?: SavedSearchWhereInput[] NOT?: SavedSearchWhereInput | SavedSearchWhereInput[] userId?: IntFilter<"SavedSearch"> | number name?: StringFilter<"SavedSearch"> | string query?: StringFilter<"SavedSearch"> | string parameters?: StringFilter<"SavedSearch"> | string createdAt?: DateTimeFilter<"SavedSearch"> | Date | string updatedAt?: DateTimeFilter<"SavedSearch"> | Date | string lastRunAt?: DateTimeNullableFilter<"SavedSearch"> | Date | string | null user?: XOR<UserScalarRelationFilter, UserWhereInput> }, "id"> export type SavedSearchOrderByWithAggregationInput = { id?: SortOrder userId?: SortOrder name?: SortOrder query?: SortOrder parameters?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder lastRunAt?: SortOrderInput | SortOrder _count?: SavedSearchCountOrderByAggregateInput _avg?: SavedSearchAvgOrderByAggregateInput _max?: SavedSearchMaxOrderByAggregateInput _min?: SavedSearchMinOrderByAggregateInput _sum?: SavedSearchSumOrderByAggregateInput } export type SavedSearchScalarWhereWithAggregatesInput = { AND?: SavedSearchScalarWhereWithAggregatesInput | SavedSearchScalarWhereWithAggregatesInput[] OR?: SavedSearchScalarWhereWithAggregatesInput[] NOT?: SavedSearchScalarWhereWithAggregatesInput | SavedSearchScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"SavedSearch"> | number userId?: IntWithAggregatesFilter<"SavedSearch"> | number name?: StringWithAggregatesFilter<"SavedSearch"> | string query?: StringWithAggregatesFilter<"SavedSearch"> | string parameters?: StringWithAggregatesFilter<"SavedSearch"> | string createdAt?: DateTimeWithAggregatesFilter<"SavedSearch"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"SavedSearch"> | Date | string lastRunAt?: DateTimeNullableWithAggregatesFilter<"SavedSearch"> | Date | string | null } export type ArticleCreateInput = { uuid: string title: string description?: string | null url: string imageUrl?: string | null source: string publishedAt: Date | string categories: string language: string createdAt?: Date | string updatedAt?: Date | string readCount?: number relevanceScore?: number | null sentiment?: number | null userArticles?: UserArticleCreateNestedManyWithoutArticleInput topics?: ArticleTopicCreateNestedManyWithoutArticleInput entities?: ArticleEntityCreateNestedManyWithoutArticleInput } export type ArticleUncheckedCreateInput = { id?: number uuid: string title: string description?: string | null url: string imageUrl?: string | null source: string publishedAt: Date | string categories: string language: string createdAt?: Date | string updatedAt?: Date | string readCount?: number relevanceScore?: number | null sentiment?: number | null userArticles?: UserArticleUncheckedCreateNestedManyWithoutArticleInput topics?: ArticleTopicUncheckedCreateNestedManyWithoutArticleInput entities?: ArticleEntityUncheckedCreateNestedManyWithoutArticleInput } export type ArticleUpdateInput = { uuid?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null url?: StringFieldUpdateOperationsInput | string imageUrl?: NullableStringFieldUpdateOperationsInput | string | null source?: StringFieldUpdateOperationsInput | string publishedAt?: DateTimeFieldUpdateOperationsInput | Date | string categories?: StringFieldUpdateOperationsInput | string language?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string readCount?: IntFieldUpdateOperationsInput | number relevanceScore?: NullableFloatFieldUpdateOperationsInput | number | null sentiment?: NullableFloatFieldUpdateOperationsInput | number | null userArticles?: UserArticleUpdateManyWithoutArticleNestedInput topics?: ArticleTopicUpdateManyWithoutArticleNestedInput entities?: ArticleEntityUpdateManyWithoutArticleNestedInput } export type ArticleUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number uuid?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null url?: StringFieldUpdateOperationsInput | string imageUrl?: NullableStringFieldUpdateOperationsInput | string | null source?: StringFieldUpdateOperationsInput | string publishedAt?: DateTimeFieldUpdateOperationsInput | Date | string categories?: StringFieldUpdateOperationsInput | string language?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string readCount?: IntFieldUpdateOperationsInput | number relevanceScore?: NullableFloatFieldUpdateOperationsInput | number | null sentiment?: NullableFloatFieldUpdateOperationsInput | number | null userArticles?: UserArticleUncheckedUpdateManyWithoutArticleNestedInput topics?: ArticleTopicUncheckedUpdateManyWithoutArticleNestedInput entities?: ArticleEntityUncheckedUpdateManyWithoutArticleNestedInput } export type ArticleCreateManyInput = { id?: number uuid: string title: string description?: string | null url: string imageUrl?: string | null source: string publishedAt: Date | string categories: string language: string createdAt?: Date | string updatedAt?: Date | string readCount?: number relevanceScore?: number | null sentiment?: number | null } export type ArticleUpdateManyMutationInput = { uuid?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null url?: StringFieldUpdateOperationsInput | string imageUrl?: NullableStringFieldUpdateOperationsInput | string | null source?: StringFieldUpdateOperationsInput | string publishedAt?: DateTimeFieldUpdateOperationsInput | Date | string categories?: StringFieldUpdateOperationsInput | string language?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string readCount?: IntFieldUpdateOperationsInput | number relevanceScore?: NullableFloatFieldUpdateOperationsInput | number | null sentiment?: NullableFloatFieldUpdateOperationsInput | number | null } export type ArticleUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number uuid?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null url?: StringFieldUpdateOperationsInput | string imageUrl?: NullableStringFieldUpdateOperationsInput | string | null source?: StringFieldUpdateOperationsInput | string publishedAt?: DateTimeFieldUpdateOperationsInput | Date | string categories?: StringFieldUpdateOperationsInput | string language?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string readCount?: IntFieldUpdateOperationsInput | number relevanceScore?: NullableFloatFieldUpdateOperationsInput | number | null sentiment?: NullableFloatFieldUpdateOperationsInput | number | null } export type UserArticleCreateInput = { isBookmarked?: boolean isRead?: boolean createdAt?: Date | string updatedAt?: Date | string readAt?: Date | string | null article: ArticleCreateNestedOneWithoutUserArticlesInput user: UserCreateNestedOneWithoutUserArticlesInput } export type UserArticleUncheckedCreateInput = { id?: number userId: number articleId: number isBookmarked?: boolean isRead?: boolean createdAt?: Date | string updatedAt?: Date | string readAt?: Date | string | null } export type UserArticleUpdateInput = { isBookmarked?: BoolFieldUpdateOperationsInput | boolean isRead?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string readAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null article?: ArticleUpdateOneRequiredWithoutUserArticlesNestedInput user?: UserUpdateOneRequiredWithoutUserArticlesNestedInput } export type UserArticleUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number articleId?: IntFieldUpdateOperationsInput | number isBookmarked?: BoolFieldUpdateOperationsInput | boolean isRead?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string readAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type UserArticleCreateManyInput = { id?: number userId: number articleId: number isBookmarked?: boolean isRead?: boolean createdAt?: Date | string updatedAt?: Date | string readAt?: Date | string | null } export type UserArticleUpdateManyMutationInput = { isBookmarked?: BoolFieldUpdateOperationsInput | boolean isRead?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string readAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type UserArticleUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number articleId?: IntFieldUpdateOperationsInput | number isBookmarked?: BoolFieldUpdateOperationsInput | boolean isRead?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string readAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type UserCreateInput = { email: string name?: string | null passwordHash: string createdAt?: Date | string updatedAt?: Date | string lastLoginAt?: Date | string | null preferredCategories?: string | null preferredSources?: string | null preferredLanguage?: string userArticles?: UserArticleCreateNestedManyWithoutUserInput searches?: SavedSearchCreateNestedManyWithoutUserInput } export type UserUncheckedCreateInput = { id?: number email: string name?: string | null passwordHash: string createdAt?: Date | string updatedAt?: Date | string lastLoginAt?: Date | string | null preferredCategories?: string | null preferredSources?: string | null preferredLanguage?: string userArticles?: UserArticleUncheckedCreateNestedManyWithoutUserInput searches?: SavedSearchUncheckedCreateNestedManyWithoutUserInput } export type UserUpdateInput = { email?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null passwordHash?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string lastLoginAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null preferredCategories?: NullableStringFieldUpdateOperationsInput | string | null preferredSources?: NullableStringFieldUpdateOperationsInput | string | null preferredLanguage?: StringFieldUpdateOperationsInput | string userArticles?: UserArticleUpdateManyWithoutUserNestedInput searches?: SavedSearchUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number email?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null passwordHash?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string lastLoginAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null preferredCategories?: NullableStringFieldUpdateOperationsInput | string | null preferredSources?: NullableStringFieldUpdateOperationsInput | string | null preferredLanguage?: StringFieldUpdateOperationsInput | string userArticles?: UserArticleUncheckedUpdateManyWithoutUserNestedInput searches?: SavedSearchUncheckedUpdateManyWithoutUserNestedInput } export type UserCreateManyInput = { id?: number email: string name?: string | null passwordHash: string createdAt?: Date | string updatedAt?: Date | string lastLoginAt?: Date | string | null preferredCategories?: string | null preferredSources?: string | null preferredLanguage?: string } export type UserUpdateManyMutationInput = { email?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null passwordHash?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string lastLoginAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null preferredCategories?: NullableStringFieldUpdateOperationsInput | string | null preferredSources?: NullableStringFieldUpdateOperationsInput | string | null preferredLanguage?: StringFieldUpdateOperationsInput | string } export type UserUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number email?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null passwordHash?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string lastLoginAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null preferredCategories?: NullableStringFieldUpdateOperationsInput | string | null preferredSources?: NullableStringFieldUpdateOperationsInput | string | null preferredLanguage?: StringFieldUpdateOperationsInput | string } export type TopicCreateInput = { name: string articleCount?: number createdAt?: Date | string updatedAt?: Date | string articles?: ArticleTopicCreateNestedManyWithoutTopicInput } export type TopicUncheckedCreateInput = { id?: number name: string articleCount?: number createdAt?: Date | string updatedAt?: Date | string articles?: ArticleTopicUncheckedCreateNestedManyWithoutTopicInput } export type TopicUpdateInput = { name?: StringFieldUpdateOperationsInput | string articleCount?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string articles?: ArticleTopicUpdateManyWithoutTopicNestedInput } export type TopicUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string articleCount?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string articles?: ArticleTopicUncheckedUpdateManyWithoutTopicNestedInput } export type TopicCreateManyInput = { id?: number name: string articleCount?: number createdAt?: Date | string updatedAt?: Date | string } export type TopicUpdateManyMutationInput = { name?: StringFieldUpdateOperationsInput | string articleCount?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type TopicUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string articleCount?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ArticleTopicCreateInput = { confidence?: number createdAt?: Date | string article: ArticleCreateNestedOneWithoutTopicsInput topic: TopicCreateNestedOneWithoutArticlesInput } export type ArticleTopicUncheckedCreateInput = { id?: number articleId: number topicId: number confidence?: number createdAt?: Date | string } export type ArticleTopicUpdateInput = { confidence?: FloatFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string article?: ArticleUpdateOneRequiredWithoutTopicsNestedInput topic?: TopicUpdateOneRequiredWithoutArticlesNestedInput } export type ArticleTopicUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number articleId?: IntFieldUpdateOperationsInput | number topicId?: IntFieldUpdateOperationsInput | number confidence?: FloatFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ArticleTopicCreateManyInput = { id?: number articleId: number topicId: number confidence?: number createdAt?: Date | string } export type ArticleTopicUpdateManyMutationInput = { confidence?: FloatFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ArticleTopicUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number articleId?: IntFieldUpdateOperationsInput | number topicId?: IntFieldUpdateOperationsInput | number confidence?: FloatFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EntityCreateInput = { name: string type: string articleCount?: number createdAt?: Date | string updatedAt?: Date | string articles?: ArticleEntityCreateNestedManyWithoutEntityInput } export type EntityUncheckedCreateInput = { id?: number name: string type: string articleCount?: number createdAt?: Date | string updatedAt?: Date | string articles?: ArticleEntityUncheckedCreateNestedManyWithoutEntityInput } export type EntityUpdateInput = { name?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string articleCount?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string articles?: ArticleEntityUpdateManyWithoutEntityNestedInput } export type EntityUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string articleCount?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string articles?: ArticleEntityUncheckedUpdateManyWithoutEntityNestedInput } export type EntityCreateManyInput = { id?: number name: string type: string articleCount?: number createdAt?: Date | string updatedAt?: Date | string } export type EntityUpdateManyMutationInput = { name?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string articleCount?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EntityUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string articleCount?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ArticleEntityCreateInput = { frequency?: number createdAt?: Date | string article: ArticleCreateNestedOneWithoutEntitiesInput entity: EntityCreateNestedOneWithoutArticlesInput } export type ArticleEntityUncheckedCreateInput = { id?: number articleId: number entityId: number frequency?: number createdAt?: Date | string } export type ArticleEntityUpdateInput = { frequency?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string article?: ArticleUpdateOneRequiredWithoutEntitiesNestedInput entity?: EntityUpdateOneRequiredWithoutArticlesNestedInput } export type ArticleEntityUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number articleId?: IntFieldUpdateOperationsInput | number entityId?: IntFieldUpdateOperationsInput | number frequency?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ArticleEntityCreateManyInput = { id?: number articleId: number entityId: number frequency?: number createdAt?: Date | string } export type ArticleEntityUpdateManyMutationInput = { frequency?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ArticleEntityUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number articleId?: IntFieldUpdateOperationsInput | number entityId?: IntFieldUpdateOperationsInput | number frequency?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type SavedSearchCreateInput = { name: string query: string parameters: string createdAt?: Date | string updatedAt?: Date | string lastRunAt?: Date | string | null user: UserCreateNestedOneWithoutSearchesInput } export type SavedSearchUncheckedCreateInput = { id?: number userId: number name: string query: string parameters: string createdAt?: Date | string updatedAt?: Date | string lastRunAt?: Date | string | null } export type SavedSearchUpdateInput = { name?: StringFieldUpdateOperationsInput | string query?: StringFieldUpdateOperationsInput | string parameters?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string lastRunAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null user?: UserUpdateOneRequiredWithoutSearchesNestedInput } export type SavedSearchUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string query?: StringFieldUpdateOperationsInput | string parameters?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string lastRunAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type SavedSearchCreateManyInput = { id?: number userId: number name: string query: string parameters: string createdAt?: Date | string updatedAt?: Date | string lastRunAt?: Date | string | null } export type SavedSearchUpdateManyMutationInput = { name?: StringFieldUpdateOperationsInput | string query?: StringFieldUpdateOperationsInput | string parameters?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string lastRunAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type SavedSearchUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string query?: StringFieldUpdateOperationsInput | string parameters?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string lastRunAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } 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> 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 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 FloatNullableFilter<$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 UserArticleListRelationFilter = { every?: UserArticleWhereInput some?: UserArticleWhereInput none?: UserArticleWhereInput } export type ArticleTopicListRelationFilter = { every?: ArticleTopicWhereInput some?: ArticleTopicWhereInput none?: ArticleTopicWhereInput } export type ArticleEntityListRelationFilter = { every?: ArticleEntityWhereInput some?: ArticleEntityWhereInput none?: ArticleEntityWhereInput } export type SortOrderInput = { sort: SortOrder nulls?: NullsOrder } export type UserArticleOrderByRelationAggregateInput = { _count?: SortOrder } export type ArticleTopicOrderByRelationAggregateInput = { _count?: SortOrder } export type ArticleEntityOrderByRelationAggregateInput = { _count?: SortOrder } export type ArticleCountOrderByAggregateInput = { id?: SortOrder uuid?: SortOrder title?: SortOrder description?: SortOrder url?: SortOrder imageUrl?: SortOrder source?: SortOrder publishedAt?: SortOrder categories?: SortOrder language?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder readCount?: SortOrder relevanceScore?: SortOrder sentiment?: SortOrder } export type ArticleAvgOrderByAggregateInput = { id?: SortOrder readCount?: SortOrder relevanceScore?: SortOrder sentiment?: SortOrder } export type ArticleMaxOrderByAggregateInput = { id?: SortOrder uuid?: SortOrder title?: SortOrder description?: SortOrder url?: SortOrder imageUrl?: SortOrder source?: SortOrder publishedAt?: SortOrder categories?: SortOrder language?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder readCount?: SortOrder relevanceScore?: SortOrder sentiment?: SortOrder } export type ArticleMinOrderByAggregateInput = { id?: SortOrder uuid?: SortOrder title?: SortOrder description?: SortOrder url?: SortOrder imageUrl?: SortOrder source?: SortOrder publishedAt?: SortOrder categories?: SortOrder language?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder readCount?: SortOrder relevanceScore?: SortOrder sentiment?: SortOrder } export type ArticleSumOrderByAggregateInput = { id?: SortOrder readCount?: SortOrder relevanceScore?: SortOrder sentiment?: 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> 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 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 FloatNullableWithAggregatesFilter<$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?: NestedFloatNullableWithAggregatesFilter<$PrismaModel> | number | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedFloatNullableFilter<$PrismaModel> _sum?: NestedFloatNullableFilter<$PrismaModel> _min?: NestedFloatNullableFilter<$PrismaModel> _max?: NestedFloatNullableFilter<$PrismaModel> } export type BoolFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolFilter<$PrismaModel> | boolean } 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 ArticleScalarRelationFilter = { is?: ArticleWhereInput isNot?: ArticleWhereInput } export type UserScalarRelationFilter = { is?: UserWhereInput isNot?: UserWhereInput } export type UserArticleUserIdArticleIdCompoundUniqueInput = { userId: number articleId: number } export type UserArticleCountOrderByAggregateInput = { id?: SortOrder userId?: SortOrder articleId?: SortOrder isBookmarked?: SortOrder isRead?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder readAt?: SortOrder } export type UserArticleAvgOrderByAggregateInput = { id?: SortOrder userId?: SortOrder articleId?: SortOrder } export type UserArticleMaxOrderByAggregateInput = { id?: SortOrder userId?: SortOrder articleId?: SortOrder isBookmarked?: SortOrder isRead?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder readAt?: SortOrder } export type UserArticleMinOrderByAggregateInput = { id?: SortOrder userId?: SortOrder articleId?: SortOrder isBookmarked?: SortOrder isRead?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder readAt?: SortOrder } export type UserArticleSumOrderByAggregateInput = { id?: SortOrder userId?: SortOrder articleId?: 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 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 SavedSearchListRelationFilter = { every?: SavedSearchWhereInput some?: SavedSearchWhereInput none?: SavedSearchWhereInput } export type SavedSearchOrderByRelationAggregateInput = { _count?: SortOrder } export type UserCountOrderByAggregateInput = { id?: SortOrder email?: SortOrder name?: SortOrder passwordHash?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder lastLoginAt?: SortOrder preferredCategories?: SortOrder preferredSources?: SortOrder preferredLanguage?: SortOrder } export type UserAvgOrderByAggregateInput = { id?: SortOrder } export type UserMaxOrderByAggregateInput = { id?: SortOrder email?: SortOrder name?: SortOrder passwordHash?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder lastLoginAt?: SortOrder preferredCategories?: SortOrder preferredSources?: SortOrder preferredLanguage?: SortOrder } export type UserMinOrderByAggregateInput = { id?: SortOrder email?: SortOrder name?: SortOrder passwordHash?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder lastLoginAt?: SortOrder preferredCategories?: SortOrder preferredSources?: SortOrder preferredLanguage?: SortOrder } export type UserSumOrderByAggregateInput = { id?: SortOrder } export type TopicCountOrderByAggregateInput = { id?: SortOrder name?: SortOrder articleCount?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type TopicAvgOrderByAggregateInput = { id?: SortOrder articleCount?: SortOrder } export type TopicMaxOrderByAggregateInput = { id?: SortOrder name?: SortOrder articleCount?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type TopicMinOrderByAggregateInput = { id?: SortOrder name?: SortOrder articleCount?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type TopicSumOrderByAggregateInput = { id?: SortOrder articleCount?: SortOrder } export type FloatFilter<$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 TopicScalarRelationFilter = { is?: TopicWhereInput isNot?: TopicWhereInput } export type ArticleTopicArticleIdTopicIdCompoundUniqueInput = { articleId: number topicId: number } export type ArticleTopicCountOrderByAggregateInput = { id?: SortOrder articleId?: SortOrder topicId?: SortOrder confidence?: SortOrder createdAt?: SortOrder } export type ArticleTopicAvgOrderByAggregateInput = { id?: SortOrder articleId?: SortOrder topicId?: SortOrder confidence?: SortOrder } export type ArticleTopicMaxOrderByAggregateInput = { id?: SortOrder articleId?: SortOrder topicId?: SortOrder confidence?: SortOrder createdAt?: SortOrder } export type ArticleTopicMinOrderByAggregateInput = { id?: SortOrder articleId?: SortOrder topicId?: SortOrder confidence?: SortOrder createdAt?: SortOrder } export type ArticleTopicSumOrderByAggregateInput = { id?: SortOrder articleId?: SortOrder topicId?: SortOrder confidence?: SortOrder } export type FloatWithAggregatesFilter<$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?: NestedFloatWithAggregatesFilter<$PrismaModel> | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedFloatFilter<$PrismaModel> _min?: NestedFloatFilter<$PrismaModel> _max?: NestedFloatFilter<$PrismaModel> } export type EntityCountOrderByAggregateInput = { id?: SortOrder name?: SortOrder type?: SortOrder articleCount?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type EntityAvgOrderByAggregateInput = { id?: SortOrder articleCount?: SortOrder } export type EntityMaxOrderByAggregateInput = { id?: SortOrder name?: SortOrder type?: SortOrder articleCount?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type EntityMinOrderByAggregateInput = { id?: SortOrder name?: SortOrder type?: SortOrder articleCount?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type EntitySumOrderByAggregateInput = { id?: SortOrder articleCount?: SortOrder } export type EntityScalarRelationFilter = { is?: EntityWhereInput isNot?: EntityWhereInput } export type ArticleEntityArticleIdEntityIdCompoundUniqueInput = { articleId: number entityId: number } export type ArticleEntityCountOrderByAggregateInput = { id?: SortOrder articleId?: SortOrder entityId?: SortOrder frequency?: SortOrder createdAt?: SortOrder } export type ArticleEntityAvgOrderByAggregateInput = { id?: SortOrder articleId?: SortOrder entityId?: SortOrder frequency?: SortOrder } export type ArticleEntityMaxOrderByAggregateInput = { id?: SortOrder articleId?: SortOrder entityId?: SortOrder frequency?: SortOrder createdAt?: SortOrder } export type ArticleEntityMinOrderByAggregateInput = { id?: SortOrder articleId?: SortOrder entityId?: SortOrder frequency?: SortOrder createdAt?: SortOrder } export type ArticleEntitySumOrderByAggregateInput = { id?: SortOrder articleId?: SortOrder entityId?: SortOrder frequency?: SortOrder } export type SavedSearchCountOrderByAggregateInput = { id?: SortOrder userId?: SortOrder name?: SortOrder query?: SortOrder parameters?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder lastRunAt?: SortOrder } export type SavedSearchAvgOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type SavedSearchMaxOrderByAggregateInput = { id?: SortOrder userId?: SortOrder name?: SortOrder query?: SortOrder parameters?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder lastRunAt?: SortOrder } export type SavedSearchMinOrderByAggregateInput = { id?: SortOrder userId?: SortOrder name?: SortOrder query?: SortOrder parameters?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder lastRunAt?: SortOrder } export type SavedSearchSumOrderByAggregateInput = { id?: SortOrder userId?: SortOrder } export type UserArticleCreateNestedManyWithoutArticleInput = { create?: XOR<UserArticleCreateWithoutArticleInput, UserArticleUncheckedCreateWithoutArticleInput> | UserArticleCreateWithoutArticleInput[] | UserArticleUncheckedCreateWithoutArticleInput[] connectOrCreate?: UserArticleCreateOrConnectWithoutArticleInput | UserArticleCreateOrConnectWithoutArticleInput[] createMany?: UserArticleCreateManyArticleInputEnvelope connect?: UserArticleWhereUniqueInput | UserArticleWhereUniqueInput[] } export type ArticleTopicCreateNestedManyWithoutArticleInput = { create?: XOR<ArticleTopicCreateWithoutArticleInput, ArticleTopicUncheckedCreateWithoutArticleInput> | ArticleTopicCreateWithoutArticleInput[] | ArticleTopicUncheckedCreateWithoutArticleInput[] connectOrCreate?: ArticleTopicCreateOrConnectWithoutArticleInput | ArticleTopicCreateOrConnectWithoutArticleInput[] createMany?: ArticleTopicCreateManyArticleInputEnvelope connect?: ArticleTopicWhereUniqueInput | ArticleTopicWhereUniqueInput[] } export type ArticleEntityCreateNestedManyWithoutArticleInput = { create?: XOR<ArticleEntityCreateWithoutArticleInput, ArticleEntityUncheckedCreateWithoutArticleInput> | ArticleEntityCreateWithoutArticleInput[] | ArticleEntityUncheckedCreateWithoutArticleInput[] connectOrCreate?: ArticleEntityCreateOrConnectWithoutArticleInput | ArticleEntityCreateOrConnectWithoutArticleInput[] createMany?: ArticleEntityCreateManyArticleInputEnvelope connect?: ArticleEntityWhereUniqueInput | ArticleEntityWhereUniqueInput[] } export type UserArticleUncheckedCreateNestedManyWithoutArticleInput = { create?: XOR<UserArticleCreateWithoutArticleInput, UserArticleUncheckedCreateWithoutArticleInput> | UserArticleCreateWithoutArticleInput[] | UserArticleUncheckedCreateWithoutArticleInput[] connectOrCreate?: UserArticleCreateOrConnectWithoutArticleInput | UserArticleCreateOrConnectWithoutArticleInput[] createMany?: UserArticleCreateManyArticleInputEnvelope connect?: UserArticleWhereUniqueInput | UserArticleWhereUniqueInput[] } export type ArticleTopicUncheckedCreateNestedManyWithoutArticleInput = { create?: XOR<ArticleTopicCreateWithoutArticleInput, ArticleTopicUncheckedCreateWithoutArticleInput> | ArticleTopicCreateWithoutArticleInput[] | ArticleTopicUncheckedCreateWithoutArticleInput[] connectOrCreate?: ArticleTopicCreateOrConnectWithoutArticleInput | ArticleTopicCreateOrConnectWithoutArticleInput[] createMany?: ArticleTopicCreateManyArticleInputEnvelope connect?: ArticleTopicWhereUniqueInput | ArticleTopicWhereUniqueInput[] } export type ArticleEntityUncheckedCreateNestedManyWithoutArticleInput = { create?: XOR<ArticleEntityCreateWithoutArticleInput, ArticleEntityUncheckedCreateWithoutArticleInput> | ArticleEntityCreateWithoutArticleInput[] | ArticleEntityUncheckedCreateWithoutArticleInput[] connectOrCreate?: ArticleEntityCreateOrConnectWithoutArticleInput | ArticleEntityCreateOrConnectWithoutArticleInput[] createMany?: ArticleEntityCreateManyArticleInputEnvelope connect?: ArticleEntityWhereUniqueInput | ArticleEntityWhereUniqueInput[] } export type StringFieldUpdateOperationsInput = { set?: string } export type NullableStringFieldUpdateOperationsInput = { set?: string | null } export type DateTimeFieldUpdateOperationsInput = { set?: Date | string } export type IntFieldUpdateOperationsInput = { set?: number increment?: number decrement?: number multiply?: number divide?: number } export type NullableFloatFieldUpdateOperationsInput = { set?: number | null increment?: number decrement?: number multiply?: number divide?: number } export type UserArticleUpdateManyWithoutArticleNestedInput = { create?: XOR<UserArticleCreateWithoutArticleInput, UserArticleUncheckedCreateWithoutArticleInput> | UserArticleCreateWithoutArticleInput[] | UserArticleUncheckedCreateWithoutArticleInput[] connectOrCreate?: UserArticleCreateOrConnectWithoutArticleInput | UserArticleCreateOrConnectWithoutArticleInput[] upsert?: UserArticleUpsertWithWhereUniqueWithoutArticleInput | UserArticleUpsertWithWhereUniqueWithoutArticleInput[] createMany?: UserArticleCreateManyArticleInputEnvelope set?: UserArticleWhereUniqueInput | UserArticleWhereUniqueInput[] disconnect?: UserArticleWhereUniqueInput | UserArticleWhereUniqueInput[] delete?: UserArticleWhereUniqueInput | UserArticleWhereUniqueInput[] connect?: UserArticleWhereUniqueInput | UserArticleWhereUniqueInput[] update?: UserArticleUpdateWithWhereUniqueWithoutArticleInput | UserArticleUpdateWithWhereUniqueWithoutArticleInput[] updateMany?: UserArticleUpdateManyWithWhereWithoutArticleInput | UserArticleUpdateManyWithWhereWithoutArticleInput[] deleteMany?: UserArticleScalarWhereInput | UserArticleScalarWhereInput[] } export type ArticleTopicUpdateManyWithoutArticleNestedInput = { create?: XOR<ArticleTopicCreateWithoutArticleInput, ArticleTopicUncheckedCreateWithoutArticleInput> | ArticleTopicCreateWithoutArticleInput[] | ArticleTopicUncheckedCreateWithoutArticleInput[] connectOrCreate?: ArticleTopicCreateOrConnectWithoutArticleInput | ArticleTopicCreateOrConnectWithoutArticleInput[] upsert?: ArticleTopicUpsertWithWhereUniqueWithoutArticleInput | ArticleTopicUpsertWithWhereUniqueWithoutArticleInput[] createMany?: ArticleTopicCreateManyArticleInputEnvelope set?: ArticleTopicWhereUniqueInput | ArticleTopicWhereUniqueInput[] disconnect?: ArticleTopicWhereUniqueInput | ArticleTopicWhereUniqueInput[] delete?: ArticleTopicWhereUniqueInput | ArticleTopicWhereUniqueInput[] connect?: ArticleTopicWhereUniqueInput | ArticleTopicWhereUniqueInput[] update?: ArticleTopicUpdateWithWhereUniqueWithoutArticleInput | ArticleTopicUpdateWithWhereUniqueWithoutArticleInput[] updateMany?: ArticleTopicUpdateManyWithWhereWithoutArticleInput | ArticleTopicUpdateManyWithWhereWithoutArticleInput[] deleteMany?: ArticleTopicScalarWhereInput | ArticleTopicScalarWhereInput[] } export type ArticleEntityUpdateManyWithoutArticleNestedInput = { create?: XOR<ArticleEntityCreateWithoutArticleInput, ArticleEntityUncheckedCreateWithoutArticleInput> | ArticleEntityCreateWithoutArticleInput[] | ArticleEntityUncheckedCreateWithoutArticleInput[] connectOrCreate?: ArticleEntityCreateOrConnectWithoutArticleInput | ArticleEntityCreateOrConnectWithoutArticleInput[] upsert?: ArticleEntityUpsertWithWhereUniqueWithoutArticleInput | ArticleEntityUpsertWithWhereUniqueWithoutArticleInput[] createMany?: ArticleEntityCreateManyArticleInputEnvelope set?: ArticleEntityWhereUniqueInput | ArticleEntityWhereUniqueInput[] disconnect?: ArticleEntityWhereUniqueInput | ArticleEntityWhereUniqueInput[] delete?: ArticleEntityWhereUniqueInput | ArticleEntityWhereUniqueInput[] connect?: ArticleEntityWhereUniqueInput | ArticleEntityWhereUniqueInput[] update?: ArticleEntityUpdateWithWhereUniqueWithoutArticleInput | ArticleEntityUpdateWithWhereUniqueWithoutArticleInput[] updateMany?: ArticleEntityUpdateManyWithWhereWithoutArticleInput | ArticleEntityUpdateManyWithWhereWithoutArticleInput[] deleteMany?: ArticleEntityScalarWhereInput | ArticleEntityScalarWhereInput[] } export type UserArticleUncheckedUpdateManyWithoutArticleNestedInput = { create?: XOR<UserArticleCreateWithoutArticleInput, UserArticleUncheckedCreateWithoutArticleInput> | UserArticleCreateWithoutArticleInput[] | UserArticleUncheckedCreateWithoutArticleInput[] connectOrCreate?: UserArticleCreateOrConnectWithoutArticleInput | UserArticleCreateOrConnectWithoutArticleInput[] upsert?: UserArticleUpsertWithWhereUniqueWithoutArticleInput | UserArticleUpsertWithWhereUniqueWithoutArticleInput[] createMany?: UserArticleCreateManyArticleInputEnvelope set?: UserArticleWhereUniqueInput | UserArticleWhereUniqueInput[] disconnect?: UserArticleWhereUniqueInput | UserArticleWhereUniqueInput[] delete?: UserArticleWhereUniqueInput | UserArticleWhereUniqueInput[] connect?: UserArticleWhereUniqueInput | UserArticleWhereUniqueInput[] update?: UserArticleUpdateWithWhereUniqueWithoutArticleInput | UserArticleUpdateWithWhereUniqueWithoutArticleInput[] updateMany?: UserArticleUpdateManyWithWhereWithoutArticleInput | UserArticleUpdateManyWithWhereWithoutArticleInput[] deleteMany?: UserArticleScalarWhereInput | UserArticleScalarWhereInput[] } export type ArticleTopicUncheckedUpdateManyWithoutArticleNestedInput = { create?: XOR<ArticleTopicCreateWithoutArticleInput, ArticleTopicUncheckedCreateWithoutArticleInput> | ArticleTopicCreateWithoutArticleInput[] | ArticleTopicUncheckedCreateWithoutArticleInput[] connectOrCreate?: ArticleTopicCreateOrConnectWithoutArticleInput | ArticleTopicCreateOrConnectWithoutArticleInput[] upsert?: ArticleTopicUpsertWithWhereUniqueWithoutArticleInput | ArticleTopicUpsertWithWhereUniqueWithoutArticleInput[] createMany?: ArticleTopicCreateManyArticleInputEnvelope set?: ArticleTopicWhereUniqueInput | ArticleTopicWhereUniqueInput[] disconnect?: ArticleTopicWhereUniqueInput | ArticleTopicWhereUniqueInput[] delete?: ArticleTopicWhereUniqueInput | ArticleTopicWhereUniqueInput[] connect?: ArticleTopicWhereUniqueInput | ArticleTopicWhereUniqueInput[] update?: ArticleTopicUpdateWithWhereUniqueWithoutArticleInput | ArticleTopicUpdateWithWhereUniqueWithoutArticleInput[] updateMany?: ArticleTopicUpdateManyWithWhereWithoutArticleInput | ArticleTopicUpdateManyWithWhereWithoutArticleInput[] deleteMany?: ArticleTopicScalarWhereInput | ArticleTopicScalarWhereInput[] } export type ArticleEntityUncheckedUpdateManyWithoutArticleNestedInput = { create?: XOR<ArticleEntityCreateWithoutArticleInput, ArticleEntityUncheckedCreateWithoutArticleInput> | ArticleEntityCreateWithoutArticleInput[] | ArticleEntityUncheckedCreateWithoutArticleInput[] connectOrCreate?: ArticleEntityCreateOrConnectWithoutArticleInput | ArticleEntityCreateOrConnectWithoutArticleInput[] upsert?: ArticleEntityUpsertWithWhereUniqueWithoutArticleInput | ArticleEntityUpsertWithWhereUniqueWithoutArticleInput[] createMany?: ArticleEntityCreateManyArticleInputEnvelope set?: ArticleEntityWhereUniqueInput | ArticleEntityWhereUniqueInput[] disconnect?: ArticleEntityWhereUniqueInput | ArticleEntityWhereUniqueInput[] delete?: ArticleEntityWhereUniqueInput | ArticleEntityWhereUniqueInput[] connect?: ArticleEntityWhereUniqueInput | ArticleEntityWhereUniqueInput[] update?: ArticleEntityUpdateWithWhereUniqueWithoutArticleInput | ArticleEntityUpdateWithWhereUniqueWithoutArticleInput[] updateMany?: ArticleEntityUpdateManyWithWhereWithoutArticleInput | ArticleEntityUpdateManyWithWhereWithoutArticleInput[] deleteMany?: ArticleEntityScalarWhereInput | ArticleEntityScalarWhereInput[] } export type ArticleCreateNestedOneWithoutUserArticlesInput = { create?: XOR<ArticleCreateWithoutUserArticlesInput, ArticleUncheckedCreateWithoutUserArticlesInput> connectOrCreate?: ArticleCreateOrConnectWithoutUserArticlesInput connect?: ArticleWhereUniqueInput } export type UserCreateNestedOneWithoutUserArticlesInput = { create?: XOR<UserCreateWithoutUserArticlesInput, UserUncheckedCreateWithoutUserArticlesInput> connectOrCreate?: UserCreateOrConnectWithoutUserArticlesInput connect?: UserWhereUniqueInput } export type BoolFieldUpdateOperationsInput = { set?: boolean } export type NullableDateTimeFieldUpdateOperationsInput = { set?: Date | string | null } export type ArticleUpdateOneRequiredWithoutUserArticlesNestedInput = { create?: XOR<ArticleCreateWithoutUserArticlesInput, ArticleUncheckedCreateWithoutUserArticlesInput> connectOrCreate?: ArticleCreateOrConnectWithoutUserArticlesInput upsert?: ArticleUpsertWithoutUserArticlesInput connect?: ArticleWhereUniqueInput update?: XOR<XOR<ArticleUpdateToOneWithWhereWithoutUserArticlesInput, ArticleUpdateWithoutUserArticlesInput>, ArticleUncheckedUpdateWithoutUserArticlesInput> } export type UserUpdateOneRequiredWithoutUserArticlesNestedInput = { create?: XOR<UserCreateWithoutUserArticlesInput, UserUncheckedCreateWithoutUserArticlesInput> connectOrCreate?: UserCreateOrConnectWithoutUserArticlesInput upsert?: UserUpsertWithoutUserArticlesInput connect?: UserWhereUniqueInput update?: XOR<XOR<UserUpdateToOneWithWhereWithoutUserArticlesInput, UserUpdateWithoutUserArticlesInput>, UserUncheckedUpdateWithoutUserArticlesInput> } export type UserArticleCreateNestedManyWithoutUserInput = { create?: XOR<UserArticleCreateWithoutUserInput, UserArticleUncheckedCreateWithoutUserInput> | UserArticleCreateWithoutUserInput[] | UserArticleUncheckedCreateWithoutUserInput[] connectOrCreate?: UserArticleCreateOrConnectWithoutUserInput | UserArticleCreateOrConnectWithoutUserInput[] createMany?: UserArticleCreateManyUserInputEnvelope connect?: UserArticleWhereUniqueInput | UserArticleWhereUniqueInput[] } export type SavedSearchCreateNestedManyWithoutUserInput = { create?: XOR<SavedSearchCreateWithoutUserInput, SavedSearchUncheckedCreateWithoutUserInput> | SavedSearchCreateWithoutUserInput[] | SavedSearchUncheckedCreateWithoutUserInput[] connectOrCreate?: SavedSearchCreateOrConnectWithoutUserInput | SavedSearchCreateOrConnectWithoutUserInput[] createMany?: SavedSearchCreateManyUserInputEnvelope connect?: SavedSearchWhereUniqueInput | SavedSearchWhereUniqueInput[] } export type UserArticleUncheckedCreateNestedManyWithoutUserInput = { create?: XOR<UserArticleCreateWithoutUserInput, UserArticleUncheckedCreateWithoutUserInput> | UserArticleCreateWithoutUserInput[] | UserArticleUncheckedCreateWithoutUserInput[] connectOrCreate?: UserArticleCreateOrConnectWithoutUserInput | UserArticleCreateOrConnectWithoutUserInput[] createMany?: UserArticleCreateManyUserInputEnvelope connect?: UserArticleWhereUniqueInput | UserArticleWhereUniqueInput[] } export type SavedSearchUncheckedCreateNestedManyWithoutUserInput = { create?: XOR<SavedSearchCreateWithoutUserInput, SavedSearchUncheckedCreateWithoutUserInput> | SavedSearchCreateWithoutUserInput[] | SavedSearchUncheckedCreateWithoutUserInput[] connectOrCreate?: SavedSearchCreateOrConnectWithoutUserInput | SavedSearchCreateOrConnectWithoutUserInput[] createMany?: SavedSearchCreateManyUserInputEnvelope connect?: SavedSearchWhereUniqueInput | SavedSearchWhereUniqueInput[] } export type UserArticleUpdateManyWithoutUserNestedInput = { create?: XOR<UserArticleCreateWithoutUserInput, UserArticleUncheckedCreateWithoutUserInput> | UserArticleCreateWithoutUserInput[] | UserArticleUncheckedCreateWithoutUserInput[] connectOrCreate?: UserArticleCreateOrConnectWithoutUserInput | UserArticleCreateOrConnectWithoutUserInput[] upsert?: UserArticleUpsertWithWhereUniqueWithoutUserInput | UserArticleUpsertWithWhereUniqueWithoutUserInput[] createMany?: UserArticleCreateManyUserInputEnvelope set?: UserArticleWhereUniqueInput | UserArticleWhereUniqueInput[] disconnect?: UserArticleWhereUniqueInput | UserArticleWhereUniqueInput[] delete?: UserArticleWhereUniqueInput | UserArticleWhereUniqueInput[] connect?: UserArticleWhereUniqueInput | UserArticleWhereUniqueInput[] update?: UserArticleUpdateWithWhereUniqueWithoutUserInput | UserArticleUpdateWithWhereUniqueWithoutUserInput[] updateMany?: UserArticleUpdateManyWithWhereWithoutUserInput | UserArticleUpdateManyWithWhereWithoutUserInput[] deleteMany?: UserArticleScalarWhereInput | UserArticleScalarWhereInput[] } export type SavedSearchUpdateManyWithoutUserNestedInput = { create?: XOR<SavedSearchCreateWithoutUserInput, SavedSearchUncheckedCreateWithoutUserInput> | SavedSearchCreateWithoutUserInput[] | SavedSearchUncheckedCreateWithoutUserInput[] connectOrCreate?: SavedSearchCreateOrConnectWithoutUserInput | SavedSearchCreateOrConnectWithoutUserInput[] upsert?: SavedSearchUpsertWithWhereUniqueWithoutUserInput | SavedSearchUpsertWithWhereUniqueWithoutUserInput[] createMany?: SavedSearchCreateManyUserInputEnvelope set?: SavedSearchWhereUniqueInput | SavedSearchWhereUniqueInput[] disconnect?: SavedSearchWhereUniqueInput | SavedSearchWhereUniqueInput[] delete?: SavedSearchWhereUniqueInput | SavedSearchWhereUniqueInput[] connect?: SavedSearchWhereUniqueInput | SavedSearchWhereUniqueInput[] update?: SavedSearchUpdateWithWhereUniqueWithoutUserInput | SavedSearchUpdateWithWhereUniqueWithoutUserInput[] updateMany?: SavedSearchUpdateManyWithWhereWithoutUserInput | SavedSearchUpdateManyWithWhereWithoutUserInput[] deleteMany?: SavedSearchScalarWhereInput | SavedSearchScalarWhereInput[] } export type UserArticleUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR<UserArticleCreateWithoutUserInput, UserArticleUncheckedCreateWithoutUserInput> | UserArticleCreateWithoutUserInput[] | UserArticleUncheckedCreateWithoutUserInput[] connectOrCreate?: UserArticleCreateOrConnectWithoutUserInput | UserArticleCreateOrConnectWithoutUserInput[] upsert?: UserArticleUpsertWithWhereUniqueWithoutUserInput | UserArticleUpsertWithWhereUniqueWithoutUserInput[] createMany?: UserArticleCreateManyUserInputEnvelope set?: UserArticleWhereUniqueInput | UserArticleWhereUniqueInput[] disconnect?: UserArticleWhereUniqueInput | UserArticleWhereUniqueInput[] delete?: UserArticleWhereUniqueInput | UserArticleWhereUniqueInput[] connect?: UserArticleWhereUniqueInput | UserArticleWhereUniqueInput[] update?: UserArticleUpdateWithWhereUniqueWithoutUserInput | UserArticleUpdateWithWhereUniqueWithoutUserInput[] updateMany?: UserArticleUpdateManyWithWhereWithoutUserInput | UserArticleUpdateManyWithWhereWithoutUserInput[] deleteMany?: UserArticleScalarWhereInput | UserArticleScalarWhereInput[] } export type SavedSearchUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR<SavedSearchCreateWithoutUserInput, SavedSearchUncheckedCreateWithoutUserInput> | SavedSearchCreateWithoutUserInput[] | SavedSearchUncheckedCreateWithoutUserInput[] connectOrCreate?: SavedSearchCreateOrConnectWithoutUserInput | SavedSearchCreateOrConnectWithoutUserInput[] upsert?: SavedSearchUpsertWithWhereUniqueWithoutUserInput | SavedSearchUpsertWithWhereUniqueWithoutUserInput[] createMany?: SavedSearchCreateManyUserInputEnvelope set?: SavedSearchWhereUniqueInput | SavedSearchWhereUniqueInput[] disconnect?: SavedSearchWhereUniqueInput | SavedSearchWhereUniqueInput[] delete?: SavedSearchWhereUniqueInput | SavedSearchWhereUniqueInput[] connect?: SavedSearchWhereUniqueInput | SavedSearchWhereUniqueInput[] update?: SavedSearchUpdateWithWhereUniqueWithoutUserInput | SavedSearchUpdateWithWhereUniqueWithoutUserInput[] updateMany?: SavedSearchUpdateManyWithWhereWithoutUserInput | SavedSearchUpdateManyWithWhereWithoutUserInput[] deleteMany?: SavedSearchScalarWhereInput | SavedSearchScalarWhereInput[] } export type ArticleTopicCreateNestedManyWithoutTopicInput = { create?: XOR<ArticleTopicCreateWithoutTopicInput, ArticleTopicUncheckedCreateWithoutTopicInput> | ArticleTopicCreateWithoutTopicInput[] | ArticleTopicUncheckedCreateWithoutTopicInput[] connectOrCreate?: ArticleTopicCreateOrConnectWithoutTopicInput | ArticleTopicCreateOrConnectWithoutTopicInput[] createMany?: ArticleTopicCreateManyTopicInputEnvelope connect?: ArticleTopicWhereUniqueInput | ArticleTopicWhereUniqueInput[] } export type ArticleTopicUncheckedCreateNestedManyWithoutTopicInput = { create?: XOR<ArticleTopicCreateWithoutTopicInput, ArticleTopicUncheckedCreateWithoutTopicInput> | ArticleTopicCreateWithoutTopicInput[] | ArticleTopicUncheckedCreateWithoutTopicInput[] connectOrCreate?: ArticleTopicCreateOrConnectWithoutTopicInput | ArticleTopicCreateOrConnectWithoutTopicInput[] createMany?: ArticleTopicCreateManyTopicInputEnvelope connect?: ArticleTopicWhereUniqueInput | ArticleTopicWhereUniqueInput[] } export type ArticleTopicUpdateManyWithoutTopicNestedInput = { create?: XOR<ArticleTopicCreateWithoutTopicInput, ArticleTopicUncheckedCreateWithoutTopicInput> | ArticleTopicCreateWithoutTopicInput[] | ArticleTopicUncheckedCreateWithoutTopicInput[] connectOrCreate?: ArticleTopicCreateOrConnectWithoutTopicInput | ArticleTopicCreateOrConnectWithoutTopicInput[] upsert?: ArticleTopicUpsertWithWhereUniqueWithoutTopicInput | ArticleTopicUpsertWithWhereUniqueWithoutTopicInput[] createMany?: ArticleTopicCreateManyTopicInputEnvelope set?: ArticleTopicWhereUniqueInput | ArticleTopicWhereUniqueInput[] disconnect?: ArticleTopicWhereUniqueInput | ArticleTopicWhereUniqueInput[] delete?: ArticleTopicWhereUniqueInput | ArticleTopicWhereUniqueInput[] connect?: ArticleTopicWhereUniqueInput | ArticleTopicWhereUniqueInput[] update?: ArticleTopicUpdateWithWhereUniqueWithoutTopicInput | ArticleTopicUpdateWithWhereUniqueWithoutTopicInput[] updateMany?: ArticleTopicUpdateManyWithWhereWithoutTopicInput | ArticleTopicUpdateManyWithWhereWithoutTopicInput[] deleteMany?: ArticleTopicScalarWhereInput | ArticleTopicScalarWhereInput[] } export type ArticleTopicUncheckedUpdateManyWithoutTopicNestedInput = { create?: XOR<ArticleTopicCreateWithoutTopicInput, ArticleTopicUncheckedCreateWithoutTopicInput> | ArticleTopicCreateWithoutTopicInput[] | ArticleTopicUncheckedCreateWithoutTopicInput[] connectOrCreate?: ArticleTopicCreateOrConnectWithoutTopicInput | ArticleTopicCreateOrConnectWithoutTopicInput[] upsert?: ArticleTopicUpsertWithWhereUniqueWithoutTopicInput | ArticleTopicUpsertWithWhereUniqueWithoutTopicInput[] createMany?: ArticleTopicCreateManyTopicInputEnvelope set?: ArticleTopicWhereUniqueInput | ArticleTopicWhereUniqueInput[] disconnect?: ArticleTopicWhereUniqueInput | ArticleTopicWhereUniqueInput[] delete?: ArticleTopicWhereUniqueInput | ArticleTopicWhereUniqueInput[] connect?: ArticleTopicWhereUniqueInput | ArticleTopicWhereUniqueInput[] update?: ArticleTopicUpdateWithWhereUniqueWithoutTopicInput | ArticleTopicUpdateWithWhereUniqueWithoutTopicInput[] updateMany?: ArticleTopicUpdateManyWithWhereWithoutTopicInput | ArticleTopicUpdateManyWithWhereWithoutTopicInput[] deleteMany?: ArticleTopicScalarWhereInput | ArticleTopicScalarWhereInput[] } export type ArticleCreateNestedOneWithoutTopicsInput = { create?: XOR<ArticleCreateWithoutTopicsInput, ArticleUncheckedCreateWithoutTopicsInput> connectOrCreate?: ArticleCreateOrConnectWithoutTopicsInput connect?: ArticleWhereUniqueInput } export type TopicCreateNestedOneWithoutArticlesInput = { create?: XOR<TopicCreateWithoutArticlesInput, TopicUncheckedCreateWithoutArticlesInput> connectOrCreate?: TopicCreateOrConnectWithoutArticlesInput connect?: TopicWhereUniqueInput } export type FloatFieldUpdateOperationsInput = { set?: number increment?: number decrement?: number multiply?: number divide?: number } export type ArticleUpdateOneRequiredWithoutTopicsNestedInput = { create?: XOR<ArticleCreateWithoutTopicsInput, ArticleUncheckedCreateWithoutTopicsInput> connectOrCreate?: ArticleCreateOrConnectWithoutTopicsInput upsert?: ArticleUpsertWithoutTopicsInput connect?: ArticleWhereUniqueInput update?: XOR<XOR<ArticleUpdateToOneWithWhereWithoutTopicsInput, ArticleUpdateWithoutTopicsInput>, ArticleUncheckedUpdateWithoutTopicsInput> } export type TopicUpdateOneRequiredWithoutArticlesNestedInput = { create?: XOR<TopicCreateWithoutArticlesInput, TopicUncheckedCreateWithoutArticlesInput> connectOrCreate?: TopicCreateOrConnectWithoutArticlesInput upsert?: TopicUpsertWithoutArticlesInput connect?: TopicWhereUniqueInput update?: XOR<XOR<TopicUpdateToOneWithWhereWithoutArticlesInput, TopicUpdateWithoutArticlesInput>, TopicUncheckedUpdateWithoutArticlesInput> } export type ArticleEntityCreateNestedManyWithoutEntityInput = { create?: XOR<ArticleEntityCreateWithoutEntityInput, ArticleEntityUncheckedCreateWithoutEntityInput> | ArticleEntityCreateWithoutEntityInput[] | ArticleEntityUncheckedCreateWithoutEntityInput[] connectOrCreate?: ArticleEntityCreateOrConnectWithoutEntityInput | ArticleEntityCreateOrConnectWithoutEntityInput[] createMany?: ArticleEntityCreateManyEntityInputEnvelope connect?: ArticleEntityWhereUniqueInput | ArticleEntityWhereUniqueInput[] } export type ArticleEntityUncheckedCreateNestedManyWithoutEntityInput = { create?: XOR<ArticleEntityCreateWithoutEntityInput, ArticleEntityUncheckedCreateWithoutEntityInput> | ArticleEntityCreateWithoutEntityInput[] | ArticleEntityUncheckedCreateWithoutEntityInput[] connectOrCreate?: ArticleEntityCreateOrConnectWithoutEntityInput | ArticleEntityCreateOrConnectWithoutEntityInput[] createMany?: ArticleEntityCreateManyEntityInputEnvelope connect?: ArticleEntityWhereUniqueInput | ArticleEntityWhereUniqueInput[] } export type ArticleEntityUpdateManyWithoutEntityNestedInput = { create?: XOR<ArticleEntityCreateWithoutEntityInput, ArticleEntityUncheckedCreateWithoutEntityInput> | ArticleEntityCreateWithoutEntityInput[] | ArticleEntityUncheckedCreateWithoutEntityInput[] connectOrCreate?: ArticleEntityCreateOrConnectWithoutEntityInput | ArticleEntityCreateOrConnectWithoutEntityInput[] upsert?: ArticleEntityUpsertWithWhereUniqueWithoutEntityInput | ArticleEntityUpsertWithWhereUniqueWithoutEntityInput[] createMany?: ArticleEntityCreateManyEntityInputEnvelope set?: ArticleEntityWhereUniqueInput | ArticleEntityWhereUniqueInput[] disconnect?: ArticleEntityWhereUniqueInput | ArticleEntityWhereUniqueInput[] delete?: ArticleEntityWhereUniqueInput | ArticleEntityWhereUniqueInput[] connect?: ArticleEntityWhereUniqueInput | ArticleEntityWhereUniqueInput[] update?: ArticleEntityUpdateWithWhereUniqueWithoutEntityInput | ArticleEntityUpdateWithWhereUniqueWithoutEntityInput[] updateMany?: ArticleEntityUpdateManyWithWhereWithoutEntityInput | ArticleEntityUpdateManyWithWhereWithoutEntityInput[] deleteMany?: ArticleEntityScalarWhereInput | ArticleEntityScalarWhereInput[] } export type ArticleEntityUncheckedUpdateManyWithoutEntityNestedInput = { create?: XOR<ArticleEntityCreateWithoutEntityInput, ArticleEntityUncheckedCreateWithoutEntityInput> | ArticleEntityCreateWithoutEntityInput[] | ArticleEntityUncheckedCreateWithoutEntityInput[] connectOrCreate?: ArticleEntityCreateOrConnectWithoutEntityInput | ArticleEntityCreateOrConnectWithoutEntityInput[] upsert?: ArticleEntityUpsertWithWhereUniqueWithoutEntityInput | ArticleEntityUpsertWithWhereUniqueWithoutEntityInput[] createMany?: ArticleEntityCreateManyEntityInputEnvelope set?: ArticleEntityWhereUniqueInput | ArticleEntityWhereUniqueInput[] disconnect?: ArticleEntityWhereUniqueInput | ArticleEntityWhereUniqueInput[] delete?: ArticleEntityWhereUniqueInput | ArticleEntityWhereUniqueInput[] connect?: ArticleEntityWhereUniqueInput | ArticleEntityWhereUniqueInput[] update?: ArticleEntityUpdateWithWhereUniqueWithoutEntityInput | ArticleEntityUpdateWithWhereUniqueWithoutEntityInput[] updateMany?: ArticleEntityUpdateManyWithWhereWithoutEntityInput | ArticleEntityUpdateManyWithWhereWithoutEntityInput[] deleteMany?: ArticleEntityScalarWhereInput | ArticleEntityScalarWhereInput[] } export type ArticleCreateNestedOneWithoutEntitiesInput = { create?: XOR<ArticleCreateWithoutEntitiesInput, ArticleUncheckedCreateWithoutEntitiesInput> connectOrCreate?: ArticleCreateOrConnectWithoutEntitiesInput connect?: ArticleWhereUniqueInput } export type EntityCreateNestedOneWithoutArticlesInput = { create?: XOR<EntityCreateWithoutArticlesInput, EntityUncheckedCreateWithoutArticlesInput> connectOrCreate?: EntityCreateOrConnectWithoutArticlesInput connect?: EntityWhereUniqueInput } export type ArticleUpdateOneRequiredWithoutEntitiesNestedInput = { create?: XOR<ArticleCreateWithoutEntitiesInput, ArticleUncheckedCreateWithoutEntitiesInput> connectOrCreate?: ArticleCreateOrConnectWithoutEntitiesInput upsert?: ArticleUpsertWithoutEntitiesInput connect?: ArticleWhereUniqueInput update?: XOR<XOR<ArticleUpdateToOneWithWhereWithoutEntitiesInput, ArticleUpdateWithoutEntitiesInput>, ArticleUncheckedUpdateWithoutEntitiesInput> } export type EntityUpdateOneRequiredWithoutArticlesNestedInput = { create?: XOR<EntityCreateWithoutArticlesInput, EntityUncheckedCreateWithoutArticlesInput> connectOrCreate?: EntityCreateOrConnectWithoutArticlesInput upsert?: EntityUpsertWithoutArticlesInput connect?: EntityWhereUniqueInput update?: XOR<XOR<EntityUpdateToOneWithWhereWithoutArticlesInput, EntityUpdateWithoutArticlesInput>, EntityUncheckedUpdateWithoutArticlesInput> } export type UserCreateNestedOneWithoutSearchesInput = { create?: XOR<UserCreateWithoutSearchesInput, UserUncheckedCreateWithoutSearchesInput> connectOrCreate?: UserCreateOrConnectWithoutSearchesInput connect?: UserWhereUniqueInput } export type UserUpdateOneRequiredWithoutSearchesNestedInput = { create?: XOR<UserCreateWithoutSearchesInput, UserUncheckedCreateWithoutSearchesInput> connectOrCreate?: UserCreateOrConnectWithoutSearchesInput upsert?: UserUpsertWithoutSearchesInput connect?: UserWhereUniqueInput update?: XOR<XOR<UserUpdateToOneWithWhereWithoutSearchesInput, UserUpdateWithoutSearchesInput>, UserUncheckedUpdateWithoutSearchesInput> } 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> 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 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 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 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> not?: NestedStringWithAggregatesFilter<$PrismaModel> | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedStringFilter<$PrismaModel> _max?: NestedStringFilter<$PrismaModel> } 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 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 NestedFloatNullableWithAggregatesFilter<$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?: NestedFloatNullableWithAggregatesFilter<$PrismaModel> | number | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedFloatNullableFilter<$PrismaModel> _sum?: NestedFloatNullableFilter<$PrismaModel> _min?: NestedFloatNullableFilter<$PrismaModel> _max?: NestedFloatNullableFilter<$PrismaModel> } export type NestedBoolFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolFilter<$PrismaModel> | boolean } 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 NestedBoolWithAggregatesFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean _count?: NestedIntFilter<$PrismaModel> _min?: NestedBoolFilter<$PrismaModel> _max?: NestedBoolFilter<$PrismaModel> } 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 NestedFloatWithAggregatesFilter<$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?: NestedFloatWithAggregatesFilter<$PrismaModel> | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedFloatFilter<$PrismaModel> _min?: NestedFloatFilter<$PrismaModel> _max?: NestedFloatFilter<$PrismaModel> } export type UserArticleCreateWithoutArticleInput = { isBookmarked?: boolean isRead?: boolean createdAt?: Date | string updatedAt?: Date | string readAt?: Date | string | null user: UserCreateNestedOneWithoutUserArticlesInput } export type UserArticleUncheckedCreateWithoutArticleInput = { id?: number userId: number isBookmarked?: boolean isRead?: boolean createdAt?: Date | string updatedAt?: Date | string readAt?: Date | string | null } export type UserArticleCreateOrConnectWithoutArticleInput = { where: UserArticleWhereUniqueInput create: XOR<UserArticleCreateWithoutArticleInput, UserArticleUncheckedCreateWithoutArticleInput> } export type UserArticleCreateManyArticleInputEnvelope = { data: UserArticleCreateManyArticleInput | UserArticleCreateManyArticleInput[] } export type ArticleTopicCreateWithoutArticleInput = { confidence?: number createdAt?: Date | string topic: TopicCreateNestedOneWithoutArticlesInput } export type ArticleTopicUncheckedCreateWithoutArticleInput = { id?: number topicId: number confidence?: number createdAt?: Date | string } export type ArticleTopicCreateOrConnectWithoutArticleInput = { where: ArticleTopicWhereUniqueInput create: XOR<ArticleTopicCreateWithoutArticleInput, ArticleTopicUncheckedCreateWithoutArticleInput> } export type ArticleTopicCreateManyArticleInputEnvelope = { data: ArticleTopicCreateManyArticleInput | ArticleTopicCreateManyArticleInput[] } export type ArticleEntityCreateWithoutArticleInput = { frequency?: number createdAt?: Date | string entity: EntityCreateNestedOneWithoutArticlesInput } export type ArticleEntityUncheckedCreateWithoutArticleInput = { id?: number entityId: number frequency?: number createdAt?: Date | string } export type ArticleEntityCreateOrConnectWithoutArticleInput = { where: ArticleEntityWhereUniqueInput create: XOR<ArticleEntityCreateWithoutArticleInput, ArticleEntityUncheckedCreateWithoutArticleInput> } export type ArticleEntityCreateManyArticleInputEnvelope = { data: ArticleEntityCreateManyArticleInput | ArticleEntityCreateManyArticleInput[] } export type UserArticleUpsertWithWhereUniqueWithoutArticleInput = { where: UserArticleWhereUniqueInput update: XOR<UserArticleUpdateWithoutArticleInput, UserArticleUncheckedUpdateWithoutArticleInput> create: XOR<UserArticleCreateWithoutArticleInput, UserArticleUncheckedCreateWithoutArticleInput> } export type UserArticleUpdateWithWhereUniqueWithoutArticleInput = { where: UserArticleWhereUniqueInput data: XOR<UserArticleUpdateWithoutArticleInput, UserArticleUncheckedUpdateWithoutArticleInput> } export type UserArticleUpdateManyWithWhereWithoutArticleInput = { where: UserArticleScalarWhereInput data: XOR<UserArticleUpdateManyMutationInput, UserArticleUncheckedUpdateManyWithoutArticleInput> } export type UserArticleScalarWhereInput = { AND?: UserArticleScalarWhereInput | UserArticleScalarWhereInput[] OR?: UserArticleScalarWhereInput[] NOT?: UserArticleScalarWhereInput | UserArticleScalarWhereInput[] id?: IntFilter<"UserArticle"> | number userId?: IntFilter<"UserArticle"> | number articleId?: IntFilter<"UserArticle"> | number isBookmarked?: BoolFilter<"UserArticle"> | boolean isRead?: BoolFilter<"UserArticle"> | boolean createdAt?: DateTimeFilter<"UserArticle"> | Date | string updatedAt?: DateTimeFilter<"UserArticle"> | Date | string readAt?: DateTimeNullableFilter<"UserArticle"> | Date | string | null } export type ArticleTopicUpsertWithWhereUniqueWithoutArticleInput = { where: ArticleTopicWhereUniqueInput update: XOR<ArticleTopicUpdateWithoutArticleInput, ArticleTopicUncheckedUpdateWithoutArticleInput> create: XOR<ArticleTopicCreateWithoutArticleInput, ArticleTopicUncheckedCreateWithoutArticleInput> } export type ArticleTopicUpdateWithWhereUniqueWithoutArticleInput = { where: ArticleTopicWhereUniqueInput data: XOR<ArticleTopicUpdateWithoutArticleInput, ArticleTopicUncheckedUpdateWithoutArticleInput> } export type ArticleTopicUpdateManyWithWhereWithoutArticleInput = { where: ArticleTopicScalarWhereInput data: XOR<ArticleTopicUpdateManyMutationInput, ArticleTopicUncheckedUpdateManyWithoutArticleInput> } export type ArticleTopicScalarWhereInput = { AND?: ArticleTopicScalarWhereInput | ArticleTopicScalarWhereInput[] OR?: ArticleTopicScalarWhereInput[] NOT?: ArticleTopicScalarWhereInput | ArticleTopicScalarWhereInput[] id?: IntFilter<"ArticleTopic"> | number articleId?: IntFilter<"ArticleTopic"> | number topicId?: IntFilter<"ArticleTopic"> | number confidence?: FloatFilter<"ArticleTopic"> | number createdAt?: DateTimeFilter<"ArticleTopic"> | Date | string } export type ArticleEntityUpsertWithWhereUniqueWithoutArticleInput = { where: ArticleEntityWhereUniqueInput update: XOR<ArticleEntityUpdateWithoutArticleInput, ArticleEntityUncheckedUpdateWithoutArticleInput> create: XOR<ArticleEntityCreateWithoutArticleInput, ArticleEntityUncheckedCreateWithoutArticleInput> } export type ArticleEntityUpdateWithWhereUniqueWithoutArticleInput = { where: ArticleEntityWhereUniqueInput data: XOR<ArticleEntityUpdateWithoutArticleInput, ArticleEntityUncheckedUpdateWithoutArticleInput> } export type ArticleEntityUpdateManyWithWhereWithoutArticleInput = { where: ArticleEntityScalarWhereInput data: XOR<ArticleEntityUpdateManyMutationInput, ArticleEntityUncheckedUpdateManyWithoutArticleInput> } export type ArticleEntityScalarWhereInput = { AND?: ArticleEntityScalarWhereInput | ArticleEntityScalarWhereInput[] OR?: ArticleEntityScalarWhereInput[] NOT?: ArticleEntityScalarWhereInput | ArticleEntityScalarWhereInput[] id?: IntFilter<"ArticleEntity"> | number articleId?: IntFilter<"ArticleEntity"> | number entityId?: IntFilter<"ArticleEntity"> | number frequency?: IntFilter<"ArticleEntity"> | number createdAt?: DateTimeFilter<"ArticleEntity"> | Date | string } export type ArticleCreateWithoutUserArticlesInput = { uuid: string title: string description?: string | null url: string imageUrl?: string | null source: string publishedAt: Date | string categories: string language: string createdAt?: Date | string updatedAt?: Date | string readCount?: number relevanceScore?: number | null sentiment?: number | null topics?: ArticleTopicCreateNestedManyWithoutArticleInput entities?: ArticleEntityCreateNestedManyWithoutArticleInput } export type ArticleUncheckedCreateWithoutUserArticlesInput = { id?: number uuid: string title: string description?: string | null url: string imageUrl?: string | null source: string publishedAt: Date | string categories: string language: string createdAt?: Date | string updatedAt?: Date | string readCount?: number relevanceScore?: number | null sentiment?: number | null topics?: ArticleTopicUncheckedCreateNestedManyWithoutArticleInput entities?: ArticleEntityUncheckedCreateNestedManyWithoutArticleInput } export type ArticleCreateOrConnectWithoutUserArticlesInput = { where: ArticleWhereUniqueInput create: XOR<ArticleCreateWithoutUserArticlesInput, ArticleUncheckedCreateWithoutUserArticlesInput> } export type UserCreateWithoutUserArticlesInput = { email: string name?: string | null passwordHash: string createdAt?: Date | string updatedAt?: Date | string lastLoginAt?: Date | string | null preferredCategories?: string | null preferredSources?: string | null preferredLanguage?: string searches?: SavedSearchCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutUserArticlesInput = { id?: number email: string name?: string | null passwordHash: string createdAt?: Date | string updatedAt?: Date | string lastLoginAt?: Date | string | null preferredCategories?: string | null preferredSources?: string | null preferredLanguage?: string searches?: SavedSearchUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutUserArticlesInput = { where: UserWhereUniqueInput create: XOR<UserCreateWithoutUserArticlesInput, UserUncheckedCreateWithoutUserArticlesInput> } export type ArticleUpsertWithoutUserArticlesInput = { update: XOR<ArticleUpdateWithoutUserArticlesInput, ArticleUncheckedUpdateWithoutUserArticlesInput> create: XOR<ArticleCreateWithoutUserArticlesInput, ArticleUncheckedCreateWithoutUserArticlesInput> where?: ArticleWhereInput } export type ArticleUpdateToOneWithWhereWithoutUserArticlesInput = { where?: ArticleWhereInput data: XOR<ArticleUpdateWithoutUserArticlesInput, ArticleUncheckedUpdateWithoutUserArticlesInput> } export type ArticleUpdateWithoutUserArticlesInput = { uuid?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null url?: StringFieldUpdateOperationsInput | string imageUrl?: NullableStringFieldUpdateOperationsInput | string | null source?: StringFieldUpdateOperationsInput | string publishedAt?: DateTimeFieldUpdateOperationsInput | Date | string categories?: StringFieldUpdateOperationsInput | string language?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string readCount?: IntFieldUpdateOperationsInput | number relevanceScore?: NullableFloatFieldUpdateOperationsInput | number | null sentiment?: NullableFloatFieldUpdateOperationsInput | number | null topics?: ArticleTopicUpdateManyWithoutArticleNestedInput entities?: ArticleEntityUpdateManyWithoutArticleNestedInput } export type ArticleUncheckedUpdateWithoutUserArticlesInput = { id?: IntFieldUpdateOperationsInput | number uuid?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null url?: StringFieldUpdateOperationsInput | string imageUrl?: NullableStringFieldUpdateOperationsInput | string | null source?: StringFieldUpdateOperationsInput | string publishedAt?: DateTimeFieldUpdateOperationsInput | Date | string categories?: StringFieldUpdateOperationsInput | string language?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string readCount?: IntFieldUpdateOperationsInput | number relevanceScore?: NullableFloatFieldUpdateOperationsInput | number | null sentiment?: NullableFloatFieldUpdateOperationsInput | number | null topics?: ArticleTopicUncheckedUpdateManyWithoutArticleNestedInput entities?: ArticleEntityUncheckedUpdateManyWithoutArticleNestedInput } export type UserUpsertWithoutUserArticlesInput = { update: XOR<UserUpdateWithoutUserArticlesInput, UserUncheckedUpdateWithoutUserArticlesInput> create: XOR<UserCreateWithoutUserArticlesInput, UserUncheckedCreateWithoutUserArticlesInput> where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutUserArticlesInput = { where?: UserWhereInput data: XOR<UserUpdateWithoutUserArticlesInput, UserUncheckedUpdateWithoutUserArticlesInput> } export type UserUpdateWithoutUserArticlesInput = { email?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null passwordHash?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string lastLoginAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null preferredCategories?: NullableStringFieldUpdateOperationsInput | string | null preferredSources?: NullableStringFieldUpdateOperationsInput | string | null preferredLanguage?: StringFieldUpdateOperationsInput | string searches?: SavedSearchUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutUserArticlesInput = { id?: IntFieldUpdateOperationsInput | number email?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null passwordHash?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string lastLoginAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null preferredCategories?: NullableStringFieldUpdateOperationsInput | string | null preferredSources?: NullableStringFieldUpdateOperationsInput | string | null preferredLanguage?: StringFieldUpdateOperationsInput | string searches?: SavedSearchUncheckedUpdateManyWithoutUserNestedInput } export type UserArticleCreateWithoutUserInput = { isBookmarked?: boolean isRead?: boolean createdAt?: Date | string updatedAt?: Date | string readAt?: Date | string | null article: ArticleCreateNestedOneWithoutUserArticlesInput } export type UserArticleUncheckedCreateWithoutUserInput = { id?: number articleId: number isBookmarked?: boolean isRead?: boolean createdAt?: Date | string updatedAt?: Date | string readAt?: Date | string | null } export type UserArticleCreateOrConnectWithoutUserInput = { where: UserArticleWhereUniqueInput create: XOR<UserArticleCreateWithoutUserInput, UserArticleUncheckedCreateWithoutUserInput> } export type UserArticleCreateManyUserInputEnvelope = { data: UserArticleCreateManyUserInput | UserArticleCreateManyUserInput[] } export type SavedSearchCreateWithoutUserInput = { name: string query: string parameters: string createdAt?: Date | string updatedAt?: Date | string lastRunAt?: Date | string | null } export type SavedSearchUncheckedCreateWithoutUserInput = { id?: number name: string query: string parameters: string createdAt?: Date | string updatedAt?: Date | string lastRunAt?: Date | string | null } export type SavedSearchCreateOrConnectWithoutUserInput = { where: SavedSearchWhereUniqueInput create: XOR<SavedSearchCreateWithoutUserInput, SavedSearchUncheckedCreateWithoutUserInput> } export type SavedSearchCreateManyUserInputEnvelope = { data: SavedSearchCreateManyUserInput | SavedSearchCreateManyUserInput[] } export type UserArticleUpsertWithWhereUniqueWithoutUserInput = { where: UserArticleWhereUniqueInput update: XOR<UserArticleUpdateWithoutUserInput, UserArticleUncheckedUpdateWithoutUserInput> create: XOR<UserArticleCreateWithoutUserInput, UserArticleUncheckedCreateWithoutUserInput> } export type UserArticleUpdateWithWhereUniqueWithoutUserInput = { where: UserArticleWhereUniqueInput data: XOR<UserArticleUpdateWithoutUserInput, UserArticleUncheckedUpdateWithoutUserInput> } export type UserArticleUpdateManyWithWhereWithoutUserInput = { where: UserArticleScalarWhereInput data: XOR<UserArticleUpdateManyMutationInput, UserArticleUncheckedUpdateManyWithoutUserInput> } export type SavedSearchUpsertWithWhereUniqueWithoutUserInput = { where: SavedSearchWhereUniqueInput update: XOR<SavedSearchUpdateWithoutUserInput, SavedSearchUncheckedUpdateWithoutUserInput> create: XOR<SavedSearchCreateWithoutUserInput, SavedSearchUncheckedCreateWithoutUserInput> } export type SavedSearchUpdateWithWhereUniqueWithoutUserInput = { where: SavedSearchWhereUniqueInput data: XOR<SavedSearchUpdateWithoutUserInput, SavedSearchUncheckedUpdateWithoutUserInput> } export type SavedSearchUpdateManyWithWhereWithoutUserInput = { where: SavedSearchScalarWhereInput data: XOR<SavedSearchUpdateManyMutationInput, SavedSearchUncheckedUpdateManyWithoutUserInput> } export type SavedSearchScalarWhereInput = { AND?: SavedSearchScalarWhereInput | SavedSearchScalarWhereInput[] OR?: SavedSearchScalarWhereInput[] NOT?: SavedSearchScalarWhereInput | SavedSearchScalarWhereInput[] id?: IntFilter<"SavedSearch"> | number userId?: IntFilter<"SavedSearch"> | number name?: StringFilter<"SavedSearch"> | string query?: StringFilter<"SavedSearch"> | string parameters?: StringFilter<"SavedSearch"> | string createdAt?: DateTimeFilter<"SavedSearch"> | Date | string updatedAt?: DateTimeFilter<"SavedSearch"> | Date | string lastRunAt?: DateTimeNullableFilter<"SavedSearch"> | Date | string | null } export type ArticleTopicCreateWithoutTopicInput = { confidence?: number createdAt?: Date | string article: ArticleCreateNestedOneWithoutTopicsInput } export type ArticleTopicUncheckedCreateWithoutTopicInput = { id?: number articleId: number confidence?: number createdAt?: Date | string } export type ArticleTopicCreateOrConnectWithoutTopicInput = { where: ArticleTopicWhereUniqueInput create: XOR<ArticleTopicCreateWithoutTopicInput, ArticleTopicUncheckedCreateWithoutTopicInput> } export type ArticleTopicCreateManyTopicInputEnvelope = { data: ArticleTopicCreateManyTopicInput | ArticleTopicCreateManyTopicInput[] } export type ArticleTopicUpsertWithWhereUniqueWithoutTopicInput = { where: ArticleTopicWhereUniqueInput update: XOR<ArticleTopicUpdateWithoutTopicInput, ArticleTopicUncheckedUpdateWithoutTopicInput> create: XOR<ArticleTopicCreateWithoutTopicInput, ArticleTopicUncheckedCreateWithoutTopicInput> } export type ArticleTopicUpdateWithWhereUniqueWithoutTopicInput = { where: ArticleTopicWhereUniqueInput data: XOR<ArticleTopicUpdateWithoutTopicInput, ArticleTopicUncheckedUpdateWithoutTopicInput> } export type ArticleTopicUpdateManyWithWhereWithoutTopicInput = { where: ArticleTopicScalarWhereInput data: XOR<ArticleTopicUpdateManyMutationInput, ArticleTopicUncheckedUpdateManyWithoutTopicInput> } export type ArticleCreateWithoutTopicsInput = { uuid: string title: string description?: string | null url: string imageUrl?: string | null source: string publishedAt: Date | string categories: string language: string createdAt?: Date | string updatedAt?: Date | string readCount?: number relevanceScore?: number | null sentiment?: number | null userArticles?: UserArticleCreateNestedManyWithoutArticleInput entities?: ArticleEntityCreateNestedManyWithoutArticleInput } export type ArticleUncheckedCreateWithoutTopicsInput = { id?: number uuid: string title: string description?: string | null url: string imageUrl?: string | null source: string publishedAt: Date | string categories: string language: string createdAt?: Date | string updatedAt?: Date | string readCount?: number relevanceScore?: number | null sentiment?: number | null userArticles?: UserArticleUncheckedCreateNestedManyWithoutArticleInput entities?: ArticleEntityUncheckedCreateNestedManyWithoutArticleInput } export type ArticleCreateOrConnectWithoutTopicsInput = { where: ArticleWhereUniqueInput create: XOR<ArticleCreateWithoutTopicsInput, ArticleUncheckedCreateWithoutTopicsInput> } export type TopicCreateWithoutArticlesInput = { name: string articleCount?: number createdAt?: Date | string updatedAt?: Date | string } export type TopicUncheckedCreateWithoutArticlesInput = { id?: number name: string articleCount?: number createdAt?: Date | string updatedAt?: Date | string } export type TopicCreateOrConnectWithoutArticlesInput = { where: TopicWhereUniqueInput create: XOR<TopicCreateWithoutArticlesInput, TopicUncheckedCreateWithoutArticlesInput> } export type ArticleUpsertWithoutTopicsInput = { update: XOR<ArticleUpdateWithoutTopicsInput, ArticleUncheckedUpdateWithoutTopicsInput> create: XOR<ArticleCreateWithoutTopicsInput, ArticleUncheckedCreateWithoutTopicsInput> where?: ArticleWhereInput } export type ArticleUpdateToOneWithWhereWithoutTopicsInput = { where?: ArticleWhereInput data: XOR<ArticleUpdateWithoutTopicsInput, ArticleUncheckedUpdateWithoutTopicsInput> } export type ArticleUpdateWithoutTopicsInput = { uuid?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null url?: StringFieldUpdateOperationsInput | string imageUrl?: NullableStringFieldUpdateOperationsInput | string | null source?: StringFieldUpdateOperationsInput | string publishedAt?: DateTimeFieldUpdateOperationsInput | Date | string categories?: StringFieldUpdateOperationsInput | string language?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string readCount?: IntFieldUpdateOperationsInput | number relevanceScore?: NullableFloatFieldUpdateOperationsInput | number | null sentiment?: NullableFloatFieldUpdateOperationsInput | number | null userArticles?: UserArticleUpdateManyWithoutArticleNestedInput entities?: ArticleEntityUpdateManyWithoutArticleNestedInput } export type ArticleUncheckedUpdateWithoutTopicsInput = { id?: IntFieldUpdateOperationsInput | number uuid?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null url?: StringFieldUpdateOperationsInput | string imageUrl?: NullableStringFieldUpdateOperationsInput | string | null source?: StringFieldUpdateOperationsInput | string publishedAt?: DateTimeFieldUpdateOperationsInput | Date | string categories?: StringFieldUpdateOperationsInput | string language?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string readCount?: IntFieldUpdateOperationsInput | number relevanceScore?: NullableFloatFieldUpdateOperationsInput | number | null sentiment?: NullableFloatFieldUpdateOperationsInput | number | null userArticles?: UserArticleUncheckedUpdateManyWithoutArticleNestedInput entities?: ArticleEntityUncheckedUpdateManyWithoutArticleNestedInput } export type TopicUpsertWithoutArticlesInput = { update: XOR<TopicUpdateWithoutArticlesInput, TopicUncheckedUpdateWithoutArticlesInput> create: XOR<TopicCreateWithoutArticlesInput, TopicUncheckedCreateWithoutArticlesInput> where?: TopicWhereInput } export type TopicUpdateToOneWithWhereWithoutArticlesInput = { where?: TopicWhereInput data: XOR<TopicUpdateWithoutArticlesInput, TopicUncheckedUpdateWithoutArticlesInput> } export type TopicUpdateWithoutArticlesInput = { name?: StringFieldUpdateOperationsInput | string articleCount?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type TopicUncheckedUpdateWithoutArticlesInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string articleCount?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ArticleEntityCreateWithoutEntityInput = { frequency?: number createdAt?: Date | string article: ArticleCreateNestedOneWithoutEntitiesInput } export type ArticleEntityUncheckedCreateWithoutEntityInput = { id?: number articleId: number frequency?: number createdAt?: Date | string } export type ArticleEntityCreateOrConnectWithoutEntityInput = { where: ArticleEntityWhereUniqueInput create: XOR<ArticleEntityCreateWithoutEntityInput, ArticleEntityUncheckedCreateWithoutEntityInput> } export type ArticleEntityCreateManyEntityInputEnvelope = { data: ArticleEntityCreateManyEntityInput | ArticleEntityCreateManyEntityInput[] } export type ArticleEntityUpsertWithWhereUniqueWithoutEntityInput = { where: ArticleEntityWhereUniqueInput update: XOR<ArticleEntityUpdateWithoutEntityInput, ArticleEntityUncheckedUpdateWithoutEntityInput> create: XOR<ArticleEntityCreateWithoutEntityInput, ArticleEntityUncheckedCreateWithoutEntityInput> } export type ArticleEntityUpdateWithWhereUniqueWithoutEntityInput = { where: ArticleEntityWhereUniqueInput data: XOR<ArticleEntityUpdateWithoutEntityInput, ArticleEntityUncheckedUpdateWithoutEntityInput> } export type ArticleEntityUpdateManyWithWhereWithoutEntityInput = { where: ArticleEntityScalarWhereInput data: XOR<ArticleEntityUpdateManyMutationInput, ArticleEntityUncheckedUpdateManyWithoutEntityInput> } export type ArticleCreateWithoutEntitiesInput = { uuid: string title: string description?: string | null url: string imageUrl?: string | null source: string publishedAt: Date | string categories: string language: string createdAt?: Date | string updatedAt?: Date | string readCount?: number relevanceScore?: number | null sentiment?: number | null userArticles?: UserArticleCreateNestedManyWithoutArticleInput topics?: ArticleTopicCreateNestedManyWithoutArticleInput } export type ArticleUncheckedCreateWithoutEntitiesInput = { id?: number uuid: string title: string description?: string | null url: string imageUrl?: string | null source: string publishedAt: Date | string categories: string language: string createdAt?: Date | string updatedAt?: Date | string readCount?: number relevanceScore?: number | null sentiment?: number | null userArticles?: UserArticleUncheckedCreateNestedManyWithoutArticleInput topics?: ArticleTopicUncheckedCreateNestedManyWithoutArticleInput } export type ArticleCreateOrConnectWithoutEntitiesInput = { where: ArticleWhereUniqueInput create: XOR<ArticleCreateWithoutEntitiesInput, ArticleUncheckedCreateWithoutEntitiesInput> } export type EntityCreateWithoutArticlesInput = { name: string type: string articleCount?: number createdAt?: Date | string updatedAt?: Date | string } export type EntityUncheckedCreateWithoutArticlesInput = { id?: number name: string type: string articleCount?: number createdAt?: Date | string updatedAt?: Date | string } export type EntityCreateOrConnectWithoutArticlesInput = { where: EntityWhereUniqueInput create: XOR<EntityCreateWithoutArticlesInput, EntityUncheckedCreateWithoutArticlesInput> } export type ArticleUpsertWithoutEntitiesInput = { update: XOR<ArticleUpdateWithoutEntitiesInput, ArticleUncheckedUpdateWithoutEntitiesInput> create: XOR<ArticleCreateWithoutEntitiesInput, ArticleUncheckedCreateWithoutEntitiesInput> where?: ArticleWhereInput } export type ArticleUpdateToOneWithWhereWithoutEntitiesInput = { where?: ArticleWhereInput data: XOR<ArticleUpdateWithoutEntitiesInput, ArticleUncheckedUpdateWithoutEntitiesInput> } export type ArticleUpdateWithoutEntitiesInput = { uuid?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null url?: StringFieldUpdateOperationsInput | string imageUrl?: NullableStringFieldUpdateOperationsInput | string | null source?: StringFieldUpdateOperationsInput | string publishedAt?: DateTimeFieldUpdateOperationsInput | Date | string categories?: StringFieldUpdateOperationsInput | string language?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string readCount?: IntFieldUpdateOperationsInput | number relevanceScore?: NullableFloatFieldUpdateOperationsInput | number | null sentiment?: NullableFloatFieldUpdateOperationsInput | number | null userArticles?: UserArticleUpdateManyWithoutArticleNestedInput topics?: ArticleTopicUpdateManyWithoutArticleNestedInput } export type ArticleUncheckedUpdateWithoutEntitiesInput = { id?: IntFieldUpdateOperationsInput | number uuid?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null url?: StringFieldUpdateOperationsInput | string imageUrl?: NullableStringFieldUpdateOperationsInput | string | null source?: StringFieldUpdateOperationsInput | string publishedAt?: DateTimeFieldUpdateOperationsInput | Date | string categories?: StringFieldUpdateOperationsInput | string language?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string readCount?: IntFieldUpdateOperationsInput | number relevanceScore?: NullableFloatFieldUpdateOperationsInput | number | null sentiment?: NullableFloatFieldUpdateOperationsInput | number | null userArticles?: UserArticleUncheckedUpdateManyWithoutArticleNestedInput topics?: ArticleTopicUncheckedUpdateManyWithoutArticleNestedInput } export type EntityUpsertWithoutArticlesInput = { update: XOR<EntityUpdateWithoutArticlesInput, EntityUncheckedUpdateWithoutArticlesInput> create: XOR<EntityCreateWithoutArticlesInput, EntityUncheckedCreateWithoutArticlesInput> where?: EntityWhereInput } export type EntityUpdateToOneWithWhereWithoutArticlesInput = { where?: EntityWhereInput data: XOR<EntityUpdateWithoutArticlesInput, EntityUncheckedUpdateWithoutArticlesInput> } export type EntityUpdateWithoutArticlesInput = { name?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string articleCount?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EntityUncheckedUpdateWithoutArticlesInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string articleCount?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type UserCreateWithoutSearchesInput = { email: string name?: string | null passwordHash: string createdAt?: Date | string updatedAt?: Date | string lastLoginAt?: Date | string | null preferredCategories?: string | null preferredSources?: string | null preferredLanguage?: string userArticles?: UserArticleCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutSearchesInput = { id?: number email: string name?: string | null passwordHash: string createdAt?: Date | string updatedAt?: Date | string lastLoginAt?: Date | string | null preferredCategories?: string | null preferredSources?: string | null preferredLanguage?: string userArticles?: UserArticleUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutSearchesInput = { where: UserWhereUniqueInput create: XOR<UserCreateWithoutSearchesInput, UserUncheckedCreateWithoutSearchesInput> } export type UserUpsertWithoutSearchesInput = { update: XOR<UserUpdateWithoutSearchesInput, UserUncheckedUpdateWithoutSearchesInput> create: XOR<UserCreateWithoutSearchesInput, UserUncheckedCreateWithoutSearchesInput> where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutSearchesInput = { where?: UserWhereInput data: XOR<UserUpdateWithoutSearchesInput, UserUncheckedUpdateWithoutSearchesInput> } export type UserUpdateWithoutSearchesInput = { email?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null passwordHash?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string lastLoginAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null preferredCategories?: NullableStringFieldUpdateOperationsInput | string | null preferredSources?: NullableStringFieldUpdateOperationsInput | string | null preferredLanguage?: StringFieldUpdateOperationsInput | string userArticles?: UserArticleUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutSearchesInput = { id?: IntFieldUpdateOperationsInput | number email?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null passwordHash?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string lastLoginAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null preferredCategories?: NullableStringFieldUpdateOperationsInput | string | null preferredSources?: NullableStringFieldUpdateOperationsInput | string | null preferredLanguage?: StringFieldUpdateOperationsInput | string userArticles?: UserArticleUncheckedUpdateManyWithoutUserNestedInput } export type UserArticleCreateManyArticleInput = { id?: number userId: number isBookmarked?: boolean isRead?: boolean createdAt?: Date | string updatedAt?: Date | string readAt?: Date | string | null } export type ArticleTopicCreateManyArticleInput = { id?: number topicId: number confidence?: number createdAt?: Date | string } export type ArticleEntityCreateManyArticleInput = { id?: number entityId: number frequency?: number createdAt?: Date | string } export type UserArticleUpdateWithoutArticleInput = { isBookmarked?: BoolFieldUpdateOperationsInput | boolean isRead?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string readAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null user?: UserUpdateOneRequiredWithoutUserArticlesNestedInput } export type UserArticleUncheckedUpdateWithoutArticleInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number isBookmarked?: BoolFieldUpdateOperationsInput | boolean isRead?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string readAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type UserArticleUncheckedUpdateManyWithoutArticleInput = { id?: IntFieldUpdateOperationsInput | number userId?: IntFieldUpdateOperationsInput | number isBookmarked?: BoolFieldUpdateOperationsInput | boolean isRead?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string readAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type ArticleTopicUpdateWithoutArticleInput = { confidence?: FloatFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string topic?: TopicUpdateOneRequiredWithoutArticlesNestedInput } export type ArticleTopicUncheckedUpdateWithoutArticleInput = { id?: IntFieldUpdateOperationsInput | number topicId?: IntFieldUpdateOperationsInput | number confidence?: FloatFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ArticleTopicUncheckedUpdateManyWithoutArticleInput = { id?: IntFieldUpdateOperationsInput | number topicId?: IntFieldUpdateOperationsInput | number confidence?: FloatFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ArticleEntityUpdateWithoutArticleInput = { frequency?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string entity?: EntityUpdateOneRequiredWithoutArticlesNestedInput } export type ArticleEntityUncheckedUpdateWithoutArticleInput = { id?: IntFieldUpdateOperationsInput | number entityId?: IntFieldUpdateOperationsInput | number frequency?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ArticleEntityUncheckedUpdateManyWithoutArticleInput = { id?: IntFieldUpdateOperationsInput | number entityId?: IntFieldUpdateOperationsInput | number frequency?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type UserArticleCreateManyUserInput = { id?: number articleId: number isBookmarked?: boolean isRead?: boolean createdAt?: Date | string updatedAt?: Date | string readAt?: Date | string | null } export type SavedSearchCreateManyUserInput = { id?: number name: string query: string parameters: string createdAt?: Date | string updatedAt?: Date | string lastRunAt?: Date | string | null } export type UserArticleUpdateWithoutUserInput = { isBookmarked?: BoolFieldUpdateOperationsInput | boolean isRead?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string readAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null article?: ArticleUpdateOneRequiredWithoutUserArticlesNestedInput } export type UserArticleUncheckedUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number articleId?: IntFieldUpdateOperationsInput | number isBookmarked?: BoolFieldUpdateOperationsInput | boolean isRead?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string readAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type UserArticleUncheckedUpdateManyWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number articleId?: IntFieldUpdateOperationsInput | number isBookmarked?: BoolFieldUpdateOperationsInput | boolean isRead?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string readAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type SavedSearchUpdateWithoutUserInput = { name?: StringFieldUpdateOperationsInput | string query?: StringFieldUpdateOperationsInput | string parameters?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string lastRunAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type SavedSearchUncheckedUpdateWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string query?: StringFieldUpdateOperationsInput | string parameters?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string lastRunAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type SavedSearchUncheckedUpdateManyWithoutUserInput = { id?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string query?: StringFieldUpdateOperationsInput | string parameters?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string lastRunAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type ArticleTopicCreateManyTopicInput = { id?: number articleId: number confidence?: number createdAt?: Date | string } export type ArticleTopicUpdateWithoutTopicInput = { confidence?: FloatFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string article?: ArticleUpdateOneRequiredWithoutTopicsNestedInput } export type ArticleTopicUncheckedUpdateWithoutTopicInput = { id?: IntFieldUpdateOperationsInput | number articleId?: IntFieldUpdateOperationsInput | number confidence?: FloatFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ArticleTopicUncheckedUpdateManyWithoutTopicInput = { id?: IntFieldUpdateOperationsInput | number articleId?: IntFieldUpdateOperationsInput | number confidence?: FloatFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ArticleEntityCreateManyEntityInput = { id?: number articleId: number frequency?: number createdAt?: Date | string } export type ArticleEntityUpdateWithoutEntityInput = { frequency?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string article?: ArticleUpdateOneRequiredWithoutEntitiesNestedInput } export type ArticleEntityUncheckedUpdateWithoutEntityInput = { id?: IntFieldUpdateOperationsInput | number articleId?: IntFieldUpdateOperationsInput | number frequency?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ArticleEntityUncheckedUpdateManyWithoutEntityInput = { id?: IntFieldUpdateOperationsInput | number articleId?: IntFieldUpdateOperationsInput | number frequency?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } /** * Batch Payload for updateMany & deleteMany & createMany */ export type BatchPayload = { count: number } /** * DMMF */ export const dmmf: runtime.BaseDMMF }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Malachi-devel/the-news-api-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server