Files
Papo/node_modules/.prisma/client/index.d.ts
Pepe44DEV 9943254aa4 add permission scanner, info panels, image QR scan, invite tracker, ticket templates
Five new features:
- /permissions scan: audits admin/ban roles, dangerous bot permissions,
  public channels, empty/duplicate/useless roles, too-many-admins warning.
- /panel create: fixed info panels (rules/support/bewerbung/partner/
  rollen/events/faq) with buttons wired into the existing ticket/
  register/partner flows, FAQ panels get a question dropdown.
- Image moderation: QR-code detection in message attachments via jimp+jsqr
  (pure JS, no native build deps) with a small scam-pattern check; opt-in
  toggle in dashboard settings since decoding costs per-message.
- Invite tracker extension: now resolves the inviter (not just the code),
  tracks suspicious joins per invite, and the dashboard growth page gets
  an invite breakdown + recent-joins table.
- Ticket categories: /ticketconfig lets each ticket topic get its own
  ping role and a modal question template shown before the channel is
  created; topics without config behave exactly as before.

Also fixes two rough edges found along the way: the welcome embed had
no way to attach an image despite the backend already supporting it
(added URL/file-upload fields + live preview), and Reaction Roles
required typing raw role IDs into a textarea (replaced with a proper
role picker). Incidentally repairs node_modules/.bin symlinks that were
committed as literal broken shell-script text instead of real symlinks.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-04 00:46:23 +02:00

43424 lines
1.5 MiB

/**
* Client
**/
import * as runtime from '@prisma/client/runtime/library.js';
import $Types = runtime.Types // general types
import $Public = runtime.Types.Public
import $Utils = runtime.Types.Utils
import $Extensions = runtime.Types.Extensions
import $Result = runtime.Types.Result
export type PrismaPromise<T> = $Public.PrismaPromise<T>
/**
* Model GuildSettings
*
*/
export type GuildSettings = $Result.DefaultSelection<Prisma.$GuildSettingsPayload>
/**
* Model Ticket
*
*/
export type Ticket = $Result.DefaultSelection<Prisma.$TicketPayload>
/**
* Model TicketAutomationRule
*
*/
export type TicketAutomationRule = $Result.DefaultSelection<Prisma.$TicketAutomationRulePayload>
/**
* Model KnowledgeBaseArticle
*
*/
export type KnowledgeBaseArticle = $Result.DefaultSelection<Prisma.$KnowledgeBaseArticlePayload>
/**
* Model Level
*
*/
export type Level = $Result.DefaultSelection<Prisma.$LevelPayload>
/**
* Model TicketSupportSession
*
*/
export type TicketSupportSession = $Result.DefaultSelection<Prisma.$TicketSupportSessionPayload>
/**
* Model Birthday
*
*/
export type Birthday = $Result.DefaultSelection<Prisma.$BirthdayPayload>
/**
* Model ReactionRoleSet
*
*/
export type ReactionRoleSet = $Result.DefaultSelection<Prisma.$ReactionRoleSetPayload>
/**
* Model Event
*
*/
export type Event = $Result.DefaultSelection<Prisma.$EventPayload>
/**
* Model EventSignup
*
*/
export type EventSignup = $Result.DefaultSelection<Prisma.$EventSignupPayload>
/**
* Model RegisterForm
*
*/
export type RegisterForm = $Result.DefaultSelection<Prisma.$RegisterFormPayload>
/**
* Model RegisterFormField
*
*/
export type RegisterFormField = $Result.DefaultSelection<Prisma.$RegisterFormFieldPayload>
/**
* Model RegisterApplication
*
*/
export type RegisterApplication = $Result.DefaultSelection<Prisma.$RegisterApplicationPayload>
/**
* Model RegisterApplicationAnswer
*
*/
export type RegisterApplicationAnswer = $Result.DefaultSelection<Prisma.$RegisterApplicationAnswerPayload>
/**
* Model RegisterApplicationNote
*
*/
export type RegisterApplicationNote = $Result.DefaultSelection<Prisma.$RegisterApplicationNotePayload>
/**
* Model AutomodStrike
*
*/
export type AutomodStrike = $Result.DefaultSelection<Prisma.$AutomodStrikePayload>
/**
* Model StaffTask
*
*/
export type StaffTask = $Result.DefaultSelection<Prisma.$StaffTaskPayload>
/**
* Model ModCase
*
*/
export type ModCase = $Result.DefaultSelection<Prisma.$ModCasePayload>
/**
* Model Watchlist
*
*/
export type Watchlist = $Result.DefaultSelection<Prisma.$WatchlistPayload>
/**
* Model UserBadge
*
*/
export type UserBadge = $Result.DefaultSelection<Prisma.$UserBadgePayload>
/**
* Model UserActivity
*
*/
export type UserActivity = $Result.DefaultSelection<Prisma.$UserActivityPayload>
/**
* Model WeeklyPlan
*
*/
export type WeeklyPlan = $Result.DefaultSelection<Prisma.$WeeklyPlanPayload>
/**
* Model WeeklyPlanRsvp
*
*/
export type WeeklyPlanRsvp = $Result.DefaultSelection<Prisma.$WeeklyPlanRsvpPayload>
/**
* Model Poll
*
*/
export type Poll = $Result.DefaultSelection<Prisma.$PollPayload>
/**
* Model PollVote
*
*/
export type PollVote = $Result.DefaultSelection<Prisma.$PollVotePayload>
/**
* Model Suggestion
*
*/
export type Suggestion = $Result.DefaultSelection<Prisma.$SuggestionPayload>
/**
* Model SuggestionVote
*
*/
export type SuggestionVote = $Result.DefaultSelection<Prisma.$SuggestionVotePayload>
/**
* Model PartnerRequest
*
*/
export type PartnerRequest = $Result.DefaultSelection<Prisma.$PartnerRequestPayload>
/**
* Model GalleryPost
*
*/
export type GalleryPost = $Result.DefaultSelection<Prisma.$GalleryPostPayload>
/**
* Model GalleryVote
*
*/
export type GalleryVote = $Result.DefaultSelection<Prisma.$GalleryVotePayload>
/**
* Model GuildGrowthEvent
*
*/
export type GuildGrowthEvent = $Result.DefaultSelection<Prisma.$GuildGrowthEventPayload>
/**
* Model InfoPanel
*
*/
export type InfoPanel = $Result.DefaultSelection<Prisma.$InfoPanelPayload>
/**
* ## Prisma Client ʲˢ
*
* Type-safe database client for TypeScript & Node.js
* @example
* ```
* const prisma = new PrismaClient()
* // Fetch zero or more GuildSettings
* const guildSettings = await prisma.guildSettings.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 GuildSettings
* const guildSettings = await prisma.guildSettings.findMany()
* ```
*
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
*/
constructor(optionsArg ?: Prisma.Subset<ClientOptions, Prisma.PrismaClientOptions>);
$on<V extends U>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): void;
/**
* Connect with the database
*/
$connect(): $Utils.JsPromise<void>;
/**
* Disconnect from the database
*/
$disconnect(): $Utils.JsPromise<void>;
/**
* Add a middleware
* @deprecated since 4.16.0. For new code, prefer client extensions instead.
* @see https://pris.ly/d/extensions
*/
$use(cb: Prisma.Middleware): void
/**
* Executes a prepared raw query and returns the number of affected rows.
* @example
* ```
* const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`
* ```
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
*/
$executeRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>;
/**
* Executes a raw query and returns the number of affected rows.
* Susceptible to SQL injections, see documentation.
* @example
* ```
* const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com')
* ```
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
*/
$executeRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;
/**
* Performs a prepared raw query and returns the `SELECT` data.
* @example
* ```
* const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`
* ```
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
*/
$queryRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>;
/**
* Performs a raw query and returns the `SELECT` data.
* Susceptible to SQL injections, see documentation.
* @example
* ```
* const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com')
* ```
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
*/
$queryRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;
/**
* Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole.
* @example
* ```
* const [george, bob, alice] = await prisma.$transaction([
* prisma.user.create({ data: { name: 'George' } }),
* prisma.user.create({ data: { name: 'Bob' } }),
* prisma.user.create({ data: { name: 'Alice' } }),
* ])
* ```
*
* Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions).
*/
$transaction<P extends Prisma.PrismaPromise<any>[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise<runtime.Types.Utils.UnwrapTuple<P>>
$transaction<R>(fn: (prisma: Omit<PrismaClient, runtime.ITXClientDenyList>) => $Utils.JsPromise<R>, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise<R>
$extends: $Extensions.ExtendsHook<"extends", Prisma.TypeMapCb, ExtArgs>
/**
* `prisma.guildSettings`: Exposes CRUD operations for the **GuildSettings** model.
* Example usage:
* ```ts
* // Fetch zero or more GuildSettings
* const guildSettings = await prisma.guildSettings.findMany()
* ```
*/
get guildSettings(): Prisma.GuildSettingsDelegate<ExtArgs>;
/**
* `prisma.ticket`: Exposes CRUD operations for the **Ticket** model.
* Example usage:
* ```ts
* // Fetch zero or more Tickets
* const tickets = await prisma.ticket.findMany()
* ```
*/
get ticket(): Prisma.TicketDelegate<ExtArgs>;
/**
* `prisma.ticketAutomationRule`: Exposes CRUD operations for the **TicketAutomationRule** model.
* Example usage:
* ```ts
* // Fetch zero or more TicketAutomationRules
* const ticketAutomationRules = await prisma.ticketAutomationRule.findMany()
* ```
*/
get ticketAutomationRule(): Prisma.TicketAutomationRuleDelegate<ExtArgs>;
/**
* `prisma.knowledgeBaseArticle`: Exposes CRUD operations for the **KnowledgeBaseArticle** model.
* Example usage:
* ```ts
* // Fetch zero or more KnowledgeBaseArticles
* const knowledgeBaseArticles = await prisma.knowledgeBaseArticle.findMany()
* ```
*/
get knowledgeBaseArticle(): Prisma.KnowledgeBaseArticleDelegate<ExtArgs>;
/**
* `prisma.level`: Exposes CRUD operations for the **Level** model.
* Example usage:
* ```ts
* // Fetch zero or more Levels
* const levels = await prisma.level.findMany()
* ```
*/
get level(): Prisma.LevelDelegate<ExtArgs>;
/**
* `prisma.ticketSupportSession`: Exposes CRUD operations for the **TicketSupportSession** model.
* Example usage:
* ```ts
* // Fetch zero or more TicketSupportSessions
* const ticketSupportSessions = await prisma.ticketSupportSession.findMany()
* ```
*/
get ticketSupportSession(): Prisma.TicketSupportSessionDelegate<ExtArgs>;
/**
* `prisma.birthday`: Exposes CRUD operations for the **Birthday** model.
* Example usage:
* ```ts
* // Fetch zero or more Birthdays
* const birthdays = await prisma.birthday.findMany()
* ```
*/
get birthday(): Prisma.BirthdayDelegate<ExtArgs>;
/**
* `prisma.reactionRoleSet`: Exposes CRUD operations for the **ReactionRoleSet** model.
* Example usage:
* ```ts
* // Fetch zero or more ReactionRoleSets
* const reactionRoleSets = await prisma.reactionRoleSet.findMany()
* ```
*/
get reactionRoleSet(): Prisma.ReactionRoleSetDelegate<ExtArgs>;
/**
* `prisma.event`: Exposes CRUD operations for the **Event** model.
* Example usage:
* ```ts
* // Fetch zero or more Events
* const events = await prisma.event.findMany()
* ```
*/
get event(): Prisma.EventDelegate<ExtArgs>;
/**
* `prisma.eventSignup`: Exposes CRUD operations for the **EventSignup** model.
* Example usage:
* ```ts
* // Fetch zero or more EventSignups
* const eventSignups = await prisma.eventSignup.findMany()
* ```
*/
get eventSignup(): Prisma.EventSignupDelegate<ExtArgs>;
/**
* `prisma.registerForm`: Exposes CRUD operations for the **RegisterForm** model.
* Example usage:
* ```ts
* // Fetch zero or more RegisterForms
* const registerForms = await prisma.registerForm.findMany()
* ```
*/
get registerForm(): Prisma.RegisterFormDelegate<ExtArgs>;
/**
* `prisma.registerFormField`: Exposes CRUD operations for the **RegisterFormField** model.
* Example usage:
* ```ts
* // Fetch zero or more RegisterFormFields
* const registerFormFields = await prisma.registerFormField.findMany()
* ```
*/
get registerFormField(): Prisma.RegisterFormFieldDelegate<ExtArgs>;
/**
* `prisma.registerApplication`: Exposes CRUD operations for the **RegisterApplication** model.
* Example usage:
* ```ts
* // Fetch zero or more RegisterApplications
* const registerApplications = await prisma.registerApplication.findMany()
* ```
*/
get registerApplication(): Prisma.RegisterApplicationDelegate<ExtArgs>;
/**
* `prisma.registerApplicationAnswer`: Exposes CRUD operations for the **RegisterApplicationAnswer** model.
* Example usage:
* ```ts
* // Fetch zero or more RegisterApplicationAnswers
* const registerApplicationAnswers = await prisma.registerApplicationAnswer.findMany()
* ```
*/
get registerApplicationAnswer(): Prisma.RegisterApplicationAnswerDelegate<ExtArgs>;
/**
* `prisma.registerApplicationNote`: Exposes CRUD operations for the **RegisterApplicationNote** model.
* Example usage:
* ```ts
* // Fetch zero or more RegisterApplicationNotes
* const registerApplicationNotes = await prisma.registerApplicationNote.findMany()
* ```
*/
get registerApplicationNote(): Prisma.RegisterApplicationNoteDelegate<ExtArgs>;
/**
* `prisma.automodStrike`: Exposes CRUD operations for the **AutomodStrike** model.
* Example usage:
* ```ts
* // Fetch zero or more AutomodStrikes
* const automodStrikes = await prisma.automodStrike.findMany()
* ```
*/
get automodStrike(): Prisma.AutomodStrikeDelegate<ExtArgs>;
/**
* `prisma.staffTask`: Exposes CRUD operations for the **StaffTask** model.
* Example usage:
* ```ts
* // Fetch zero or more StaffTasks
* const staffTasks = await prisma.staffTask.findMany()
* ```
*/
get staffTask(): Prisma.StaffTaskDelegate<ExtArgs>;
/**
* `prisma.modCase`: Exposes CRUD operations for the **ModCase** model.
* Example usage:
* ```ts
* // Fetch zero or more ModCases
* const modCases = await prisma.modCase.findMany()
* ```
*/
get modCase(): Prisma.ModCaseDelegate<ExtArgs>;
/**
* `prisma.watchlist`: Exposes CRUD operations for the **Watchlist** model.
* Example usage:
* ```ts
* // Fetch zero or more Watchlists
* const watchlists = await prisma.watchlist.findMany()
* ```
*/
get watchlist(): Prisma.WatchlistDelegate<ExtArgs>;
/**
* `prisma.userBadge`: Exposes CRUD operations for the **UserBadge** model.
* Example usage:
* ```ts
* // Fetch zero or more UserBadges
* const userBadges = await prisma.userBadge.findMany()
* ```
*/
get userBadge(): Prisma.UserBadgeDelegate<ExtArgs>;
/**
* `prisma.userActivity`: Exposes CRUD operations for the **UserActivity** model.
* Example usage:
* ```ts
* // Fetch zero or more UserActivities
* const userActivities = await prisma.userActivity.findMany()
* ```
*/
get userActivity(): Prisma.UserActivityDelegate<ExtArgs>;
/**
* `prisma.weeklyPlan`: Exposes CRUD operations for the **WeeklyPlan** model.
* Example usage:
* ```ts
* // Fetch zero or more WeeklyPlans
* const weeklyPlans = await prisma.weeklyPlan.findMany()
* ```
*/
get weeklyPlan(): Prisma.WeeklyPlanDelegate<ExtArgs>;
/**
* `prisma.weeklyPlanRsvp`: Exposes CRUD operations for the **WeeklyPlanRsvp** model.
* Example usage:
* ```ts
* // Fetch zero or more WeeklyPlanRsvps
* const weeklyPlanRsvps = await prisma.weeklyPlanRsvp.findMany()
* ```
*/
get weeklyPlanRsvp(): Prisma.WeeklyPlanRsvpDelegate<ExtArgs>;
/**
* `prisma.poll`: Exposes CRUD operations for the **Poll** model.
* Example usage:
* ```ts
* // Fetch zero or more Polls
* const polls = await prisma.poll.findMany()
* ```
*/
get poll(): Prisma.PollDelegate<ExtArgs>;
/**
* `prisma.pollVote`: Exposes CRUD operations for the **PollVote** model.
* Example usage:
* ```ts
* // Fetch zero or more PollVotes
* const pollVotes = await prisma.pollVote.findMany()
* ```
*/
get pollVote(): Prisma.PollVoteDelegate<ExtArgs>;
/**
* `prisma.suggestion`: Exposes CRUD operations for the **Suggestion** model.
* Example usage:
* ```ts
* // Fetch zero or more Suggestions
* const suggestions = await prisma.suggestion.findMany()
* ```
*/
get suggestion(): Prisma.SuggestionDelegate<ExtArgs>;
/**
* `prisma.suggestionVote`: Exposes CRUD operations for the **SuggestionVote** model.
* Example usage:
* ```ts
* // Fetch zero or more SuggestionVotes
* const suggestionVotes = await prisma.suggestionVote.findMany()
* ```
*/
get suggestionVote(): Prisma.SuggestionVoteDelegate<ExtArgs>;
/**
* `prisma.partnerRequest`: Exposes CRUD operations for the **PartnerRequest** model.
* Example usage:
* ```ts
* // Fetch zero or more PartnerRequests
* const partnerRequests = await prisma.partnerRequest.findMany()
* ```
*/
get partnerRequest(): Prisma.PartnerRequestDelegate<ExtArgs>;
/**
* `prisma.galleryPost`: Exposes CRUD operations for the **GalleryPost** model.
* Example usage:
* ```ts
* // Fetch zero or more GalleryPosts
* const galleryPosts = await prisma.galleryPost.findMany()
* ```
*/
get galleryPost(): Prisma.GalleryPostDelegate<ExtArgs>;
/**
* `prisma.galleryVote`: Exposes CRUD operations for the **GalleryVote** model.
* Example usage:
* ```ts
* // Fetch zero or more GalleryVotes
* const galleryVotes = await prisma.galleryVote.findMany()
* ```
*/
get galleryVote(): Prisma.GalleryVoteDelegate<ExtArgs>;
/**
* `prisma.guildGrowthEvent`: Exposes CRUD operations for the **GuildGrowthEvent** model.
* Example usage:
* ```ts
* // Fetch zero or more GuildGrowthEvents
* const guildGrowthEvents = await prisma.guildGrowthEvent.findMany()
* ```
*/
get guildGrowthEvent(): Prisma.GuildGrowthEventDelegate<ExtArgs>;
/**
* `prisma.infoPanel`: Exposes CRUD operations for the **InfoPanel** model.
* Example usage:
* ```ts
* // Fetch zero or more InfoPanels
* const infoPanels = await prisma.infoPanel.findMany()
* ```
*/
get infoPanel(): Prisma.InfoPanelDelegate<ExtArgs>;
}
export namespace Prisma {
export import DMMF = runtime.DMMF
export type PrismaPromise<T> = $Public.PrismaPromise<T>
/**
* Validator
*/
export import validator = runtime.Public.validator
/**
* Prisma Errors
*/
export import PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError
export import PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError
export import PrismaClientRustPanicError = runtime.PrismaClientRustPanicError
export import PrismaClientInitializationError = runtime.PrismaClientInitializationError
export import PrismaClientValidationError = runtime.PrismaClientValidationError
export import NotFoundError = runtime.NotFoundError
/**
* Re-export of sql-template-tag
*/
export import sql = runtime.sqltag
export import empty = runtime.empty
export import join = runtime.join
export import raw = runtime.raw
export import Sql = runtime.Sql
/**
* Decimal.js
*/
export import Decimal = runtime.Decimal
export type DecimalJsLike = runtime.DecimalJsLike
/**
* Metrics
*/
export type Metrics = runtime.Metrics
export type Metric<T> = runtime.Metric<T>
export type MetricHistogram = runtime.MetricHistogram
export type MetricHistogramBucket = runtime.MetricHistogramBucket
/**
* Extensions
*/
export import Extension = $Extensions.UserArgs
export import getExtensionContext = runtime.Extensions.getExtensionContext
export import Args = $Public.Args
export import Payload = $Public.Payload
export import Result = $Public.Result
export import Exact = $Public.Exact
/**
* Prisma Client JS version: 5.22.0
* Query Engine version: 605197351a3c8bdd595af2d2a9bc3025bca48ea2
*/
export type PrismaVersion = {
client: string
}
export const prismaVersion: PrismaVersion
/**
* Utility Types
*/
export import JsonObject = runtime.JsonObject
export import JsonArray = runtime.JsonArray
export import JsonValue = runtime.JsonValue
export import InputJsonObject = runtime.InputJsonObject
export import InputJsonArray = runtime.InputJsonArray
export import InputJsonValue = runtime.InputJsonValue
/**
* Types of the values used to represent different kinds of `null` values when working with JSON fields.
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
namespace NullTypes {
/**
* Type of `Prisma.DbNull`.
*
* You cannot use other instances of this class. Please use the `Prisma.DbNull` value.
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
class DbNull {
private DbNull: never
private constructor()
}
/**
* Type of `Prisma.JsonNull`.
*
* You cannot use other instances of this class. Please use the `Prisma.JsonNull` value.
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
class JsonNull {
private JsonNull: never
private constructor()
}
/**
* Type of `Prisma.AnyNull`.
*
* You cannot use other instances of this class. Please use the `Prisma.AnyNull` value.
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
class AnyNull {
private AnyNull: never
private constructor()
}
}
/**
* Helper for filtering JSON entries that have `null` on the database (empty on the db)
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
export const DbNull: NullTypes.DbNull
/**
* Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
export const JsonNull: NullTypes.JsonNull
/**
* Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
export const AnyNull: NullTypes.AnyNull
type SelectAndInclude = {
select: any
include: any
}
type SelectAndOmit = {
select: any
omit: any
}
/**
* Get the type of the value, that the Promise holds.
*/
export type PromiseType<T extends PromiseLike<any>> = T extends PromiseLike<infer U> ? U : T;
/**
* Get the return type of a function which returns a Promise.
*/
export type PromiseReturnType<T extends (...args: any) => $Utils.JsPromise<any>> = PromiseType<ReturnType<T>>
/**
* From T, pick a set of properties whose keys are in the union K
*/
type Prisma__Pick<T, K extends keyof T> = {
[P in K]: T[P];
};
export type Enumerable<T> = T | Array<T>;
export type RequiredKeys<T> = {
[K in keyof T]-?: {} extends Prisma__Pick<T, K> ? never : K
}[keyof T]
export type TruthyKeys<T> = keyof {
[K in keyof T as T[K] extends false | undefined | null ? never : K]: K
}
export type TrueKeys<T> = TruthyKeys<Prisma__Pick<T, RequiredKeys<T>>>
/**
* Subset
* @desc From `T` pick properties that exist in `U`. Simple version of Intersection
*/
export type Subset<T, U> = {
[key in keyof T]: key extends keyof U ? T[key] : never;
};
/**
* SelectSubset
* @desc From `T` pick properties that exist in `U`. Simple version of Intersection.
* Additionally, it validates, if both select and include are present. If the case, it errors.
*/
export type SelectSubset<T, U> = {
[key in keyof T]: key extends keyof U ? T[key] : never
} &
(T extends SelectAndInclude
? 'Please either choose `select` or `include`.'
: T extends SelectAndOmit
? 'Please either choose `select` or `omit`.'
: {})
/**
* Subset + Intersection
* @desc From `T` pick properties that exist in `U` and intersect `K`
*/
export type SubsetIntersection<T, U, K> = {
[key in keyof T]: key extends keyof U ? T[key] : never
} &
K
type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never };
/**
* XOR is needed to have a real mutually exclusive union type
* https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types
*/
type XOR<T, U> =
T extends object ?
U extends object ?
(Without<T, U> & U) | (Without<U, T> & T)
: U : T
/**
* Is T a Record?
*/
type IsObject<T extends any> = T extends Array<any>
? False
: T extends Date
? False
: T extends Uint8Array
? False
: T extends BigInt
? False
: T extends object
? True
: False
/**
* If it's T[], return T
*/
export type UnEnumerate<T extends unknown> = T extends Array<infer U> ? U : T
/**
* From ts-toolbelt
*/
type __Either<O extends object, K extends Key> = Omit<O, K> &
{
// Merge all but K
[P in K]: Prisma__Pick<O, P & keyof O> // With K possibilities
}[K]
type EitherStrict<O extends object, K extends Key> = Strict<__Either<O, K>>
type EitherLoose<O extends object, K extends Key> = ComputeRaw<__Either<O, K>>
type _Either<
O extends object,
K extends Key,
strict extends Boolean
> = {
1: EitherStrict<O, K>
0: EitherLoose<O, K>
}[strict]
type Either<
O extends object,
K extends Key,
strict extends Boolean = 1
> = O extends unknown ? _Either<O, K, strict> : never
export type Union = any
type PatchUndefined<O extends object, O1 extends object> = {
[K in keyof O]: O[K] extends undefined ? At<O1, K> : O[K]
} & {}
/** Helper Types for "Merge" **/
export type IntersectOf<U extends Union> = (
U extends unknown ? (k: U) => void : never
) extends (k: infer I) => void
? I
: never
export type Overwrite<O extends object, O1 extends object> = {
[K in keyof O]: K extends keyof O1 ? O1[K] : O[K];
} & {};
type _Merge<U extends object> = IntersectOf<Overwrite<U, {
[K in keyof U]-?: At<U, K>;
}>>;
type Key = string | number | symbol;
type AtBasic<O extends object, K extends Key> = K extends keyof O ? O[K] : never;
type AtStrict<O extends object, K extends Key> = O[K & keyof O];
type AtLoose<O extends object, K extends Key> = O extends unknown ? AtStrict<O, K> : never;
export type At<O extends object, K extends Key, strict extends Boolean = 1> = {
1: AtStrict<O, K>;
0: AtLoose<O, K>;
}[strict];
export type ComputeRaw<A extends any> = A extends Function ? A : {
[K in keyof A]: A[K];
} & {};
export type OptionalFlat<O> = {
[K in keyof O]?: O[K];
} & {};
type _Record<K extends keyof any, T> = {
[P in K]: T;
};
// cause typescript not to expand types and preserve names
type NoExpand<T> = T extends unknown ? T : never;
// this type assumes the passed object is entirely optional
type AtLeast<O extends object, K extends string> = NoExpand<
O extends unknown
? | (K extends keyof O ? { [P in K]: O[P] } & O : O)
| {[P in keyof O as P extends K ? K : never]-?: O[P]} & O
: never>;
type _Strict<U, _U = U> = U extends unknown ? U & OptionalFlat<_Record<Exclude<Keys<_U>, keyof U>, never>> : never;
export type Strict<U extends object> = ComputeRaw<_Strict<U>>;
/** End Helper Types for "Merge" **/
export type Merge<U extends object> = ComputeRaw<_Merge<Strict<U>>>;
/**
A [[Boolean]]
*/
export type Boolean = True | False
// /**
// 1
// */
export type True = 1
/**
0
*/
export type False = 0
export type Not<B extends Boolean> = {
0: 1
1: 0
}[B]
export type Extends<A1 extends any, A2 extends any> = [A1] extends [never]
? 0 // anything `never` is false
: A1 extends A2
? 1
: 0
export type Has<U extends Union, U1 extends Union> = Not<
Extends<Exclude<U1, U>, U1>
>
export type Or<B1 extends Boolean, B2 extends Boolean> = {
0: {
0: 0
1: 1
}
1: {
0: 1
1: 1
}
}[B1][B2]
export type Keys<U extends Union> = U extends unknown ? keyof U : never
type Cast<A, B> = A extends B ? A : B;
export const type: unique symbol;
/**
* Used by group by
*/
export type GetScalarType<T, O> = O extends object ? {
[P in keyof T]: P extends keyof O
? O[P]
: never
} : never
type FieldPaths<
T,
U = Omit<T, '_avg' | '_sum' | '_count' | '_min' | '_max'>
> = IsObject<T> extends True ? U : T
type GetHavingFields<T> = {
[K in keyof T]: Or<
Or<Extends<'OR', K>, Extends<'AND', K>>,
Extends<'NOT', K>
> extends True
? // infer is only needed to not hit TS limit
// based on the brilliant idea of Pierre-Antoine Mills
// https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437
T[K] extends infer TK
? GetHavingFields<UnEnumerate<TK> extends object ? Merge<UnEnumerate<TK>> : never>
: never
: {} extends FieldPaths<T[K]>
? never
: K
}[keyof T]
/**
* Convert tuple to union
*/
type _TupleToUnion<T> = T extends (infer E)[] ? E : never
type TupleToUnion<K extends readonly any[]> = _TupleToUnion<K>
type MaybeTupleToUnion<T> = T extends any[] ? TupleToUnion<T> : T
/**
* Like `Pick`, but additionally can also accept an array of keys
*/
type PickEnumerable<T, K extends Enumerable<keyof T> | keyof T> = Prisma__Pick<T, MaybeTupleToUnion<K>>
/**
* Exclude all keys with underscores
*/
type ExcludeUnderscoreKeys<T extends string> = T extends `_${string}` ? never : T
export type FieldRef<Model, FieldType> = runtime.FieldRef<Model, FieldType>
type FieldRefInputType<Model, FieldType> = Model extends never ? never : FieldRef<Model, FieldType>
export const ModelName: {
GuildSettings: 'GuildSettings',
Ticket: 'Ticket',
TicketAutomationRule: 'TicketAutomationRule',
KnowledgeBaseArticle: 'KnowledgeBaseArticle',
Level: 'Level',
TicketSupportSession: 'TicketSupportSession',
Birthday: 'Birthday',
ReactionRoleSet: 'ReactionRoleSet',
Event: 'Event',
EventSignup: 'EventSignup',
RegisterForm: 'RegisterForm',
RegisterFormField: 'RegisterFormField',
RegisterApplication: 'RegisterApplication',
RegisterApplicationAnswer: 'RegisterApplicationAnswer',
RegisterApplicationNote: 'RegisterApplicationNote',
AutomodStrike: 'AutomodStrike',
StaffTask: 'StaffTask',
ModCase: 'ModCase',
Watchlist: 'Watchlist',
UserBadge: 'UserBadge',
UserActivity: 'UserActivity',
WeeklyPlan: 'WeeklyPlan',
WeeklyPlanRsvp: 'WeeklyPlanRsvp',
Poll: 'Poll',
PollVote: 'PollVote',
Suggestion: 'Suggestion',
SuggestionVote: 'SuggestionVote',
PartnerRequest: 'PartnerRequest',
GalleryPost: 'GalleryPost',
GalleryVote: 'GalleryVote',
GuildGrowthEvent: 'GuildGrowthEvent',
InfoPanel: 'InfoPanel'
};
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
export type Datasources = {
db?: Datasource
}
interface TypeMapCb extends $Utils.Fn<{extArgs: $Extensions.InternalArgs, clientOptions: PrismaClientOptions }, $Utils.Record<string, any>> {
returns: Prisma.TypeMap<this['params']['extArgs'], this['params']['clientOptions']>
}
export type TypeMap<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, ClientOptions = {}> = {
meta: {
modelProps: "guildSettings" | "ticket" | "ticketAutomationRule" | "knowledgeBaseArticle" | "level" | "ticketSupportSession" | "birthday" | "reactionRoleSet" | "event" | "eventSignup" | "registerForm" | "registerFormField" | "registerApplication" | "registerApplicationAnswer" | "registerApplicationNote" | "automodStrike" | "staffTask" | "modCase" | "watchlist" | "userBadge" | "userActivity" | "weeklyPlan" | "weeklyPlanRsvp" | "poll" | "pollVote" | "suggestion" | "suggestionVote" | "partnerRequest" | "galleryPost" | "galleryVote" | "guildGrowthEvent" | "infoPanel"
txIsolationLevel: Prisma.TransactionIsolationLevel
}
model: {
GuildSettings: {
payload: Prisma.$GuildSettingsPayload<ExtArgs>
fields: Prisma.GuildSettingsFieldRefs
operations: {
findUnique: {
args: Prisma.GuildSettingsFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$GuildSettingsPayload> | null
}
findUniqueOrThrow: {
args: Prisma.GuildSettingsFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$GuildSettingsPayload>
}
findFirst: {
args: Prisma.GuildSettingsFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$GuildSettingsPayload> | null
}
findFirstOrThrow: {
args: Prisma.GuildSettingsFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$GuildSettingsPayload>
}
findMany: {
args: Prisma.GuildSettingsFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$GuildSettingsPayload>[]
}
create: {
args: Prisma.GuildSettingsCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$GuildSettingsPayload>
}
createMany: {
args: Prisma.GuildSettingsCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.GuildSettingsCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$GuildSettingsPayload>[]
}
delete: {
args: Prisma.GuildSettingsDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$GuildSettingsPayload>
}
update: {
args: Prisma.GuildSettingsUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$GuildSettingsPayload>
}
deleteMany: {
args: Prisma.GuildSettingsDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.GuildSettingsUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.GuildSettingsUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$GuildSettingsPayload>
}
aggregate: {
args: Prisma.GuildSettingsAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateGuildSettings>
}
groupBy: {
args: Prisma.GuildSettingsGroupByArgs<ExtArgs>
result: $Utils.Optional<GuildSettingsGroupByOutputType>[]
}
count: {
args: Prisma.GuildSettingsCountArgs<ExtArgs>
result: $Utils.Optional<GuildSettingsCountAggregateOutputType> | number
}
}
}
Ticket: {
payload: Prisma.$TicketPayload<ExtArgs>
fields: Prisma.TicketFieldRefs
operations: {
findUnique: {
args: Prisma.TicketFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$TicketPayload> | null
}
findUniqueOrThrow: {
args: Prisma.TicketFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$TicketPayload>
}
findFirst: {
args: Prisma.TicketFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$TicketPayload> | null
}
findFirstOrThrow: {
args: Prisma.TicketFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$TicketPayload>
}
findMany: {
args: Prisma.TicketFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$TicketPayload>[]
}
create: {
args: Prisma.TicketCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$TicketPayload>
}
createMany: {
args: Prisma.TicketCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.TicketCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$TicketPayload>[]
}
delete: {
args: Prisma.TicketDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$TicketPayload>
}
update: {
args: Prisma.TicketUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$TicketPayload>
}
deleteMany: {
args: Prisma.TicketDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.TicketUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.TicketUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$TicketPayload>
}
aggregate: {
args: Prisma.TicketAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateTicket>
}
groupBy: {
args: Prisma.TicketGroupByArgs<ExtArgs>
result: $Utils.Optional<TicketGroupByOutputType>[]
}
count: {
args: Prisma.TicketCountArgs<ExtArgs>
result: $Utils.Optional<TicketCountAggregateOutputType> | number
}
}
}
TicketAutomationRule: {
payload: Prisma.$TicketAutomationRulePayload<ExtArgs>
fields: Prisma.TicketAutomationRuleFieldRefs
operations: {
findUnique: {
args: Prisma.TicketAutomationRuleFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$TicketAutomationRulePayload> | null
}
findUniqueOrThrow: {
args: Prisma.TicketAutomationRuleFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$TicketAutomationRulePayload>
}
findFirst: {
args: Prisma.TicketAutomationRuleFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$TicketAutomationRulePayload> | null
}
findFirstOrThrow: {
args: Prisma.TicketAutomationRuleFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$TicketAutomationRulePayload>
}
findMany: {
args: Prisma.TicketAutomationRuleFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$TicketAutomationRulePayload>[]
}
create: {
args: Prisma.TicketAutomationRuleCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$TicketAutomationRulePayload>
}
createMany: {
args: Prisma.TicketAutomationRuleCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.TicketAutomationRuleCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$TicketAutomationRulePayload>[]
}
delete: {
args: Prisma.TicketAutomationRuleDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$TicketAutomationRulePayload>
}
update: {
args: Prisma.TicketAutomationRuleUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$TicketAutomationRulePayload>
}
deleteMany: {
args: Prisma.TicketAutomationRuleDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.TicketAutomationRuleUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.TicketAutomationRuleUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$TicketAutomationRulePayload>
}
aggregate: {
args: Prisma.TicketAutomationRuleAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateTicketAutomationRule>
}
groupBy: {
args: Prisma.TicketAutomationRuleGroupByArgs<ExtArgs>
result: $Utils.Optional<TicketAutomationRuleGroupByOutputType>[]
}
count: {
args: Prisma.TicketAutomationRuleCountArgs<ExtArgs>
result: $Utils.Optional<TicketAutomationRuleCountAggregateOutputType> | number
}
}
}
KnowledgeBaseArticle: {
payload: Prisma.$KnowledgeBaseArticlePayload<ExtArgs>
fields: Prisma.KnowledgeBaseArticleFieldRefs
operations: {
findUnique: {
args: Prisma.KnowledgeBaseArticleFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$KnowledgeBaseArticlePayload> | null
}
findUniqueOrThrow: {
args: Prisma.KnowledgeBaseArticleFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$KnowledgeBaseArticlePayload>
}
findFirst: {
args: Prisma.KnowledgeBaseArticleFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$KnowledgeBaseArticlePayload> | null
}
findFirstOrThrow: {
args: Prisma.KnowledgeBaseArticleFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$KnowledgeBaseArticlePayload>
}
findMany: {
args: Prisma.KnowledgeBaseArticleFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$KnowledgeBaseArticlePayload>[]
}
create: {
args: Prisma.KnowledgeBaseArticleCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$KnowledgeBaseArticlePayload>
}
createMany: {
args: Prisma.KnowledgeBaseArticleCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.KnowledgeBaseArticleCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$KnowledgeBaseArticlePayload>[]
}
delete: {
args: Prisma.KnowledgeBaseArticleDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$KnowledgeBaseArticlePayload>
}
update: {
args: Prisma.KnowledgeBaseArticleUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$KnowledgeBaseArticlePayload>
}
deleteMany: {
args: Prisma.KnowledgeBaseArticleDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.KnowledgeBaseArticleUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.KnowledgeBaseArticleUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$KnowledgeBaseArticlePayload>
}
aggregate: {
args: Prisma.KnowledgeBaseArticleAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateKnowledgeBaseArticle>
}
groupBy: {
args: Prisma.KnowledgeBaseArticleGroupByArgs<ExtArgs>
result: $Utils.Optional<KnowledgeBaseArticleGroupByOutputType>[]
}
count: {
args: Prisma.KnowledgeBaseArticleCountArgs<ExtArgs>
result: $Utils.Optional<KnowledgeBaseArticleCountAggregateOutputType> | number
}
}
}
Level: {
payload: Prisma.$LevelPayload<ExtArgs>
fields: Prisma.LevelFieldRefs
operations: {
findUnique: {
args: Prisma.LevelFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$LevelPayload> | null
}
findUniqueOrThrow: {
args: Prisma.LevelFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$LevelPayload>
}
findFirst: {
args: Prisma.LevelFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$LevelPayload> | null
}
findFirstOrThrow: {
args: Prisma.LevelFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$LevelPayload>
}
findMany: {
args: Prisma.LevelFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$LevelPayload>[]
}
create: {
args: Prisma.LevelCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$LevelPayload>
}
createMany: {
args: Prisma.LevelCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.LevelCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$LevelPayload>[]
}
delete: {
args: Prisma.LevelDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$LevelPayload>
}
update: {
args: Prisma.LevelUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$LevelPayload>
}
deleteMany: {
args: Prisma.LevelDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.LevelUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.LevelUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$LevelPayload>
}
aggregate: {
args: Prisma.LevelAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateLevel>
}
groupBy: {
args: Prisma.LevelGroupByArgs<ExtArgs>
result: $Utils.Optional<LevelGroupByOutputType>[]
}
count: {
args: Prisma.LevelCountArgs<ExtArgs>
result: $Utils.Optional<LevelCountAggregateOutputType> | number
}
}
}
TicketSupportSession: {
payload: Prisma.$TicketSupportSessionPayload<ExtArgs>
fields: Prisma.TicketSupportSessionFieldRefs
operations: {
findUnique: {
args: Prisma.TicketSupportSessionFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$TicketSupportSessionPayload> | null
}
findUniqueOrThrow: {
args: Prisma.TicketSupportSessionFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$TicketSupportSessionPayload>
}
findFirst: {
args: Prisma.TicketSupportSessionFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$TicketSupportSessionPayload> | null
}
findFirstOrThrow: {
args: Prisma.TicketSupportSessionFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$TicketSupportSessionPayload>
}
findMany: {
args: Prisma.TicketSupportSessionFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$TicketSupportSessionPayload>[]
}
create: {
args: Prisma.TicketSupportSessionCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$TicketSupportSessionPayload>
}
createMany: {
args: Prisma.TicketSupportSessionCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.TicketSupportSessionCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$TicketSupportSessionPayload>[]
}
delete: {
args: Prisma.TicketSupportSessionDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$TicketSupportSessionPayload>
}
update: {
args: Prisma.TicketSupportSessionUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$TicketSupportSessionPayload>
}
deleteMany: {
args: Prisma.TicketSupportSessionDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.TicketSupportSessionUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.TicketSupportSessionUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$TicketSupportSessionPayload>
}
aggregate: {
args: Prisma.TicketSupportSessionAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateTicketSupportSession>
}
groupBy: {
args: Prisma.TicketSupportSessionGroupByArgs<ExtArgs>
result: $Utils.Optional<TicketSupportSessionGroupByOutputType>[]
}
count: {
args: Prisma.TicketSupportSessionCountArgs<ExtArgs>
result: $Utils.Optional<TicketSupportSessionCountAggregateOutputType> | number
}
}
}
Birthday: {
payload: Prisma.$BirthdayPayload<ExtArgs>
fields: Prisma.BirthdayFieldRefs
operations: {
findUnique: {
args: Prisma.BirthdayFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$BirthdayPayload> | null
}
findUniqueOrThrow: {
args: Prisma.BirthdayFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$BirthdayPayload>
}
findFirst: {
args: Prisma.BirthdayFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$BirthdayPayload> | null
}
findFirstOrThrow: {
args: Prisma.BirthdayFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$BirthdayPayload>
}
findMany: {
args: Prisma.BirthdayFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$BirthdayPayload>[]
}
create: {
args: Prisma.BirthdayCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$BirthdayPayload>
}
createMany: {
args: Prisma.BirthdayCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.BirthdayCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$BirthdayPayload>[]
}
delete: {
args: Prisma.BirthdayDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$BirthdayPayload>
}
update: {
args: Prisma.BirthdayUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$BirthdayPayload>
}
deleteMany: {
args: Prisma.BirthdayDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.BirthdayUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.BirthdayUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$BirthdayPayload>
}
aggregate: {
args: Prisma.BirthdayAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateBirthday>
}
groupBy: {
args: Prisma.BirthdayGroupByArgs<ExtArgs>
result: $Utils.Optional<BirthdayGroupByOutputType>[]
}
count: {
args: Prisma.BirthdayCountArgs<ExtArgs>
result: $Utils.Optional<BirthdayCountAggregateOutputType> | number
}
}
}
ReactionRoleSet: {
payload: Prisma.$ReactionRoleSetPayload<ExtArgs>
fields: Prisma.ReactionRoleSetFieldRefs
operations: {
findUnique: {
args: Prisma.ReactionRoleSetFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ReactionRoleSetPayload> | null
}
findUniqueOrThrow: {
args: Prisma.ReactionRoleSetFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ReactionRoleSetPayload>
}
findFirst: {
args: Prisma.ReactionRoleSetFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ReactionRoleSetPayload> | null
}
findFirstOrThrow: {
args: Prisma.ReactionRoleSetFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ReactionRoleSetPayload>
}
findMany: {
args: Prisma.ReactionRoleSetFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ReactionRoleSetPayload>[]
}
create: {
args: Prisma.ReactionRoleSetCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ReactionRoleSetPayload>
}
createMany: {
args: Prisma.ReactionRoleSetCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.ReactionRoleSetCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ReactionRoleSetPayload>[]
}
delete: {
args: Prisma.ReactionRoleSetDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ReactionRoleSetPayload>
}
update: {
args: Prisma.ReactionRoleSetUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ReactionRoleSetPayload>
}
deleteMany: {
args: Prisma.ReactionRoleSetDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.ReactionRoleSetUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.ReactionRoleSetUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ReactionRoleSetPayload>
}
aggregate: {
args: Prisma.ReactionRoleSetAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateReactionRoleSet>
}
groupBy: {
args: Prisma.ReactionRoleSetGroupByArgs<ExtArgs>
result: $Utils.Optional<ReactionRoleSetGroupByOutputType>[]
}
count: {
args: Prisma.ReactionRoleSetCountArgs<ExtArgs>
result: $Utils.Optional<ReactionRoleSetCountAggregateOutputType> | number
}
}
}
Event: {
payload: Prisma.$EventPayload<ExtArgs>
fields: Prisma.EventFieldRefs
operations: {
findUnique: {
args: Prisma.EventFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventPayload> | null
}
findUniqueOrThrow: {
args: Prisma.EventFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventPayload>
}
findFirst: {
args: Prisma.EventFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventPayload> | null
}
findFirstOrThrow: {
args: Prisma.EventFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventPayload>
}
findMany: {
args: Prisma.EventFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventPayload>[]
}
create: {
args: Prisma.EventCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventPayload>
}
createMany: {
args: Prisma.EventCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.EventCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventPayload>[]
}
delete: {
args: Prisma.EventDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventPayload>
}
update: {
args: Prisma.EventUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventPayload>
}
deleteMany: {
args: Prisma.EventDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.EventUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.EventUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventPayload>
}
aggregate: {
args: Prisma.EventAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateEvent>
}
groupBy: {
args: Prisma.EventGroupByArgs<ExtArgs>
result: $Utils.Optional<EventGroupByOutputType>[]
}
count: {
args: Prisma.EventCountArgs<ExtArgs>
result: $Utils.Optional<EventCountAggregateOutputType> | number
}
}
}
EventSignup: {
payload: Prisma.$EventSignupPayload<ExtArgs>
fields: Prisma.EventSignupFieldRefs
operations: {
findUnique: {
args: Prisma.EventSignupFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventSignupPayload> | null
}
findUniqueOrThrow: {
args: Prisma.EventSignupFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventSignupPayload>
}
findFirst: {
args: Prisma.EventSignupFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventSignupPayload> | null
}
findFirstOrThrow: {
args: Prisma.EventSignupFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventSignupPayload>
}
findMany: {
args: Prisma.EventSignupFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventSignupPayload>[]
}
create: {
args: Prisma.EventSignupCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventSignupPayload>
}
createMany: {
args: Prisma.EventSignupCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.EventSignupCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventSignupPayload>[]
}
delete: {
args: Prisma.EventSignupDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventSignupPayload>
}
update: {
args: Prisma.EventSignupUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventSignupPayload>
}
deleteMany: {
args: Prisma.EventSignupDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.EventSignupUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.EventSignupUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventSignupPayload>
}
aggregate: {
args: Prisma.EventSignupAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateEventSignup>
}
groupBy: {
args: Prisma.EventSignupGroupByArgs<ExtArgs>
result: $Utils.Optional<EventSignupGroupByOutputType>[]
}
count: {
args: Prisma.EventSignupCountArgs<ExtArgs>
result: $Utils.Optional<EventSignupCountAggregateOutputType> | number
}
}
}
RegisterForm: {
payload: Prisma.$RegisterFormPayload<ExtArgs>
fields: Prisma.RegisterFormFieldRefs
operations: {
findUnique: {
args: Prisma.RegisterFormFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterFormPayload> | null
}
findUniqueOrThrow: {
args: Prisma.RegisterFormFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterFormPayload>
}
findFirst: {
args: Prisma.RegisterFormFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterFormPayload> | null
}
findFirstOrThrow: {
args: Prisma.RegisterFormFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterFormPayload>
}
findMany: {
args: Prisma.RegisterFormFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterFormPayload>[]
}
create: {
args: Prisma.RegisterFormCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterFormPayload>
}
createMany: {
args: Prisma.RegisterFormCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.RegisterFormCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterFormPayload>[]
}
delete: {
args: Prisma.RegisterFormDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterFormPayload>
}
update: {
args: Prisma.RegisterFormUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterFormPayload>
}
deleteMany: {
args: Prisma.RegisterFormDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.RegisterFormUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.RegisterFormUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterFormPayload>
}
aggregate: {
args: Prisma.RegisterFormAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateRegisterForm>
}
groupBy: {
args: Prisma.RegisterFormGroupByArgs<ExtArgs>
result: $Utils.Optional<RegisterFormGroupByOutputType>[]
}
count: {
args: Prisma.RegisterFormCountArgs<ExtArgs>
result: $Utils.Optional<RegisterFormCountAggregateOutputType> | number
}
}
}
RegisterFormField: {
payload: Prisma.$RegisterFormFieldPayload<ExtArgs>
fields: Prisma.RegisterFormFieldFieldRefs
operations: {
findUnique: {
args: Prisma.RegisterFormFieldFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterFormFieldPayload> | null
}
findUniqueOrThrow: {
args: Prisma.RegisterFormFieldFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterFormFieldPayload>
}
findFirst: {
args: Prisma.RegisterFormFieldFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterFormFieldPayload> | null
}
findFirstOrThrow: {
args: Prisma.RegisterFormFieldFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterFormFieldPayload>
}
findMany: {
args: Prisma.RegisterFormFieldFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterFormFieldPayload>[]
}
create: {
args: Prisma.RegisterFormFieldCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterFormFieldPayload>
}
createMany: {
args: Prisma.RegisterFormFieldCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.RegisterFormFieldCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterFormFieldPayload>[]
}
delete: {
args: Prisma.RegisterFormFieldDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterFormFieldPayload>
}
update: {
args: Prisma.RegisterFormFieldUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterFormFieldPayload>
}
deleteMany: {
args: Prisma.RegisterFormFieldDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.RegisterFormFieldUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.RegisterFormFieldUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterFormFieldPayload>
}
aggregate: {
args: Prisma.RegisterFormFieldAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateRegisterFormField>
}
groupBy: {
args: Prisma.RegisterFormFieldGroupByArgs<ExtArgs>
result: $Utils.Optional<RegisterFormFieldGroupByOutputType>[]
}
count: {
args: Prisma.RegisterFormFieldCountArgs<ExtArgs>
result: $Utils.Optional<RegisterFormFieldCountAggregateOutputType> | number
}
}
}
RegisterApplication: {
payload: Prisma.$RegisterApplicationPayload<ExtArgs>
fields: Prisma.RegisterApplicationFieldRefs
operations: {
findUnique: {
args: Prisma.RegisterApplicationFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterApplicationPayload> | null
}
findUniqueOrThrow: {
args: Prisma.RegisterApplicationFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterApplicationPayload>
}
findFirst: {
args: Prisma.RegisterApplicationFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterApplicationPayload> | null
}
findFirstOrThrow: {
args: Prisma.RegisterApplicationFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterApplicationPayload>
}
findMany: {
args: Prisma.RegisterApplicationFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterApplicationPayload>[]
}
create: {
args: Prisma.RegisterApplicationCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterApplicationPayload>
}
createMany: {
args: Prisma.RegisterApplicationCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.RegisterApplicationCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterApplicationPayload>[]
}
delete: {
args: Prisma.RegisterApplicationDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterApplicationPayload>
}
update: {
args: Prisma.RegisterApplicationUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterApplicationPayload>
}
deleteMany: {
args: Prisma.RegisterApplicationDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.RegisterApplicationUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.RegisterApplicationUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterApplicationPayload>
}
aggregate: {
args: Prisma.RegisterApplicationAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateRegisterApplication>
}
groupBy: {
args: Prisma.RegisterApplicationGroupByArgs<ExtArgs>
result: $Utils.Optional<RegisterApplicationGroupByOutputType>[]
}
count: {
args: Prisma.RegisterApplicationCountArgs<ExtArgs>
result: $Utils.Optional<RegisterApplicationCountAggregateOutputType> | number
}
}
}
RegisterApplicationAnswer: {
payload: Prisma.$RegisterApplicationAnswerPayload<ExtArgs>
fields: Prisma.RegisterApplicationAnswerFieldRefs
operations: {
findUnique: {
args: Prisma.RegisterApplicationAnswerFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterApplicationAnswerPayload> | null
}
findUniqueOrThrow: {
args: Prisma.RegisterApplicationAnswerFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterApplicationAnswerPayload>
}
findFirst: {
args: Prisma.RegisterApplicationAnswerFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterApplicationAnswerPayload> | null
}
findFirstOrThrow: {
args: Prisma.RegisterApplicationAnswerFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterApplicationAnswerPayload>
}
findMany: {
args: Prisma.RegisterApplicationAnswerFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterApplicationAnswerPayload>[]
}
create: {
args: Prisma.RegisterApplicationAnswerCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterApplicationAnswerPayload>
}
createMany: {
args: Prisma.RegisterApplicationAnswerCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.RegisterApplicationAnswerCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterApplicationAnswerPayload>[]
}
delete: {
args: Prisma.RegisterApplicationAnswerDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterApplicationAnswerPayload>
}
update: {
args: Prisma.RegisterApplicationAnswerUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterApplicationAnswerPayload>
}
deleteMany: {
args: Prisma.RegisterApplicationAnswerDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.RegisterApplicationAnswerUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.RegisterApplicationAnswerUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterApplicationAnswerPayload>
}
aggregate: {
args: Prisma.RegisterApplicationAnswerAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateRegisterApplicationAnswer>
}
groupBy: {
args: Prisma.RegisterApplicationAnswerGroupByArgs<ExtArgs>
result: $Utils.Optional<RegisterApplicationAnswerGroupByOutputType>[]
}
count: {
args: Prisma.RegisterApplicationAnswerCountArgs<ExtArgs>
result: $Utils.Optional<RegisterApplicationAnswerCountAggregateOutputType> | number
}
}
}
RegisterApplicationNote: {
payload: Prisma.$RegisterApplicationNotePayload<ExtArgs>
fields: Prisma.RegisterApplicationNoteFieldRefs
operations: {
findUnique: {
args: Prisma.RegisterApplicationNoteFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterApplicationNotePayload> | null
}
findUniqueOrThrow: {
args: Prisma.RegisterApplicationNoteFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterApplicationNotePayload>
}
findFirst: {
args: Prisma.RegisterApplicationNoteFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterApplicationNotePayload> | null
}
findFirstOrThrow: {
args: Prisma.RegisterApplicationNoteFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterApplicationNotePayload>
}
findMany: {
args: Prisma.RegisterApplicationNoteFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterApplicationNotePayload>[]
}
create: {
args: Prisma.RegisterApplicationNoteCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterApplicationNotePayload>
}
createMany: {
args: Prisma.RegisterApplicationNoteCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.RegisterApplicationNoteCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterApplicationNotePayload>[]
}
delete: {
args: Prisma.RegisterApplicationNoteDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterApplicationNotePayload>
}
update: {
args: Prisma.RegisterApplicationNoteUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterApplicationNotePayload>
}
deleteMany: {
args: Prisma.RegisterApplicationNoteDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.RegisterApplicationNoteUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.RegisterApplicationNoteUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$RegisterApplicationNotePayload>
}
aggregate: {
args: Prisma.RegisterApplicationNoteAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateRegisterApplicationNote>
}
groupBy: {
args: Prisma.RegisterApplicationNoteGroupByArgs<ExtArgs>
result: $Utils.Optional<RegisterApplicationNoteGroupByOutputType>[]
}
count: {
args: Prisma.RegisterApplicationNoteCountArgs<ExtArgs>
result: $Utils.Optional<RegisterApplicationNoteCountAggregateOutputType> | number
}
}
}
AutomodStrike: {
payload: Prisma.$AutomodStrikePayload<ExtArgs>
fields: Prisma.AutomodStrikeFieldRefs
operations: {
findUnique: {
args: Prisma.AutomodStrikeFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AutomodStrikePayload> | null
}
findUniqueOrThrow: {
args: Prisma.AutomodStrikeFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AutomodStrikePayload>
}
findFirst: {
args: Prisma.AutomodStrikeFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AutomodStrikePayload> | null
}
findFirstOrThrow: {
args: Prisma.AutomodStrikeFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AutomodStrikePayload>
}
findMany: {
args: Prisma.AutomodStrikeFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AutomodStrikePayload>[]
}
create: {
args: Prisma.AutomodStrikeCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AutomodStrikePayload>
}
createMany: {
args: Prisma.AutomodStrikeCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.AutomodStrikeCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AutomodStrikePayload>[]
}
delete: {
args: Prisma.AutomodStrikeDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AutomodStrikePayload>
}
update: {
args: Prisma.AutomodStrikeUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AutomodStrikePayload>
}
deleteMany: {
args: Prisma.AutomodStrikeDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.AutomodStrikeUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.AutomodStrikeUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$AutomodStrikePayload>
}
aggregate: {
args: Prisma.AutomodStrikeAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateAutomodStrike>
}
groupBy: {
args: Prisma.AutomodStrikeGroupByArgs<ExtArgs>
result: $Utils.Optional<AutomodStrikeGroupByOutputType>[]
}
count: {
args: Prisma.AutomodStrikeCountArgs<ExtArgs>
result: $Utils.Optional<AutomodStrikeCountAggregateOutputType> | number
}
}
}
StaffTask: {
payload: Prisma.$StaffTaskPayload<ExtArgs>
fields: Prisma.StaffTaskFieldRefs
operations: {
findUnique: {
args: Prisma.StaffTaskFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$StaffTaskPayload> | null
}
findUniqueOrThrow: {
args: Prisma.StaffTaskFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$StaffTaskPayload>
}
findFirst: {
args: Prisma.StaffTaskFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$StaffTaskPayload> | null
}
findFirstOrThrow: {
args: Prisma.StaffTaskFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$StaffTaskPayload>
}
findMany: {
args: Prisma.StaffTaskFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$StaffTaskPayload>[]
}
create: {
args: Prisma.StaffTaskCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$StaffTaskPayload>
}
createMany: {
args: Prisma.StaffTaskCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.StaffTaskCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$StaffTaskPayload>[]
}
delete: {
args: Prisma.StaffTaskDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$StaffTaskPayload>
}
update: {
args: Prisma.StaffTaskUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$StaffTaskPayload>
}
deleteMany: {
args: Prisma.StaffTaskDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.StaffTaskUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.StaffTaskUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$StaffTaskPayload>
}
aggregate: {
args: Prisma.StaffTaskAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateStaffTask>
}
groupBy: {
args: Prisma.StaffTaskGroupByArgs<ExtArgs>
result: $Utils.Optional<StaffTaskGroupByOutputType>[]
}
count: {
args: Prisma.StaffTaskCountArgs<ExtArgs>
result: $Utils.Optional<StaffTaskCountAggregateOutputType> | number
}
}
}
ModCase: {
payload: Prisma.$ModCasePayload<ExtArgs>
fields: Prisma.ModCaseFieldRefs
operations: {
findUnique: {
args: Prisma.ModCaseFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ModCasePayload> | null
}
findUniqueOrThrow: {
args: Prisma.ModCaseFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ModCasePayload>
}
findFirst: {
args: Prisma.ModCaseFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ModCasePayload> | null
}
findFirstOrThrow: {
args: Prisma.ModCaseFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ModCasePayload>
}
findMany: {
args: Prisma.ModCaseFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ModCasePayload>[]
}
create: {
args: Prisma.ModCaseCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ModCasePayload>
}
createMany: {
args: Prisma.ModCaseCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.ModCaseCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ModCasePayload>[]
}
delete: {
args: Prisma.ModCaseDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ModCasePayload>
}
update: {
args: Prisma.ModCaseUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ModCasePayload>
}
deleteMany: {
args: Prisma.ModCaseDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.ModCaseUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.ModCaseUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$ModCasePayload>
}
aggregate: {
args: Prisma.ModCaseAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateModCase>
}
groupBy: {
args: Prisma.ModCaseGroupByArgs<ExtArgs>
result: $Utils.Optional<ModCaseGroupByOutputType>[]
}
count: {
args: Prisma.ModCaseCountArgs<ExtArgs>
result: $Utils.Optional<ModCaseCountAggregateOutputType> | number
}
}
}
Watchlist: {
payload: Prisma.$WatchlistPayload<ExtArgs>
fields: Prisma.WatchlistFieldRefs
operations: {
findUnique: {
args: Prisma.WatchlistFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WatchlistPayload> | null
}
findUniqueOrThrow: {
args: Prisma.WatchlistFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WatchlistPayload>
}
findFirst: {
args: Prisma.WatchlistFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WatchlistPayload> | null
}
findFirstOrThrow: {
args: Prisma.WatchlistFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WatchlistPayload>
}
findMany: {
args: Prisma.WatchlistFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WatchlistPayload>[]
}
create: {
args: Prisma.WatchlistCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WatchlistPayload>
}
createMany: {
args: Prisma.WatchlistCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.WatchlistCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WatchlistPayload>[]
}
delete: {
args: Prisma.WatchlistDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WatchlistPayload>
}
update: {
args: Prisma.WatchlistUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WatchlistPayload>
}
deleteMany: {
args: Prisma.WatchlistDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.WatchlistUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.WatchlistUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WatchlistPayload>
}
aggregate: {
args: Prisma.WatchlistAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateWatchlist>
}
groupBy: {
args: Prisma.WatchlistGroupByArgs<ExtArgs>
result: $Utils.Optional<WatchlistGroupByOutputType>[]
}
count: {
args: Prisma.WatchlistCountArgs<ExtArgs>
result: $Utils.Optional<WatchlistCountAggregateOutputType> | number
}
}
}
UserBadge: {
payload: Prisma.$UserBadgePayload<ExtArgs>
fields: Prisma.UserBadgeFieldRefs
operations: {
findUnique: {
args: Prisma.UserBadgeFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserBadgePayload> | null
}
findUniqueOrThrow: {
args: Prisma.UserBadgeFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserBadgePayload>
}
findFirst: {
args: Prisma.UserBadgeFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserBadgePayload> | null
}
findFirstOrThrow: {
args: Prisma.UserBadgeFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserBadgePayload>
}
findMany: {
args: Prisma.UserBadgeFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserBadgePayload>[]
}
create: {
args: Prisma.UserBadgeCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserBadgePayload>
}
createMany: {
args: Prisma.UserBadgeCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.UserBadgeCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserBadgePayload>[]
}
delete: {
args: Prisma.UserBadgeDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserBadgePayload>
}
update: {
args: Prisma.UserBadgeUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserBadgePayload>
}
deleteMany: {
args: Prisma.UserBadgeDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.UserBadgeUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.UserBadgeUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserBadgePayload>
}
aggregate: {
args: Prisma.UserBadgeAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateUserBadge>
}
groupBy: {
args: Prisma.UserBadgeGroupByArgs<ExtArgs>
result: $Utils.Optional<UserBadgeGroupByOutputType>[]
}
count: {
args: Prisma.UserBadgeCountArgs<ExtArgs>
result: $Utils.Optional<UserBadgeCountAggregateOutputType> | number
}
}
}
UserActivity: {
payload: Prisma.$UserActivityPayload<ExtArgs>
fields: Prisma.UserActivityFieldRefs
operations: {
findUnique: {
args: Prisma.UserActivityFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserActivityPayload> | null
}
findUniqueOrThrow: {
args: Prisma.UserActivityFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserActivityPayload>
}
findFirst: {
args: Prisma.UserActivityFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserActivityPayload> | null
}
findFirstOrThrow: {
args: Prisma.UserActivityFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserActivityPayload>
}
findMany: {
args: Prisma.UserActivityFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserActivityPayload>[]
}
create: {
args: Prisma.UserActivityCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserActivityPayload>
}
createMany: {
args: Prisma.UserActivityCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.UserActivityCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserActivityPayload>[]
}
delete: {
args: Prisma.UserActivityDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserActivityPayload>
}
update: {
args: Prisma.UserActivityUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserActivityPayload>
}
deleteMany: {
args: Prisma.UserActivityDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.UserActivityUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.UserActivityUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$UserActivityPayload>
}
aggregate: {
args: Prisma.UserActivityAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateUserActivity>
}
groupBy: {
args: Prisma.UserActivityGroupByArgs<ExtArgs>
result: $Utils.Optional<UserActivityGroupByOutputType>[]
}
count: {
args: Prisma.UserActivityCountArgs<ExtArgs>
result: $Utils.Optional<UserActivityCountAggregateOutputType> | number
}
}
}
WeeklyPlan: {
payload: Prisma.$WeeklyPlanPayload<ExtArgs>
fields: Prisma.WeeklyPlanFieldRefs
operations: {
findUnique: {
args: Prisma.WeeklyPlanFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WeeklyPlanPayload> | null
}
findUniqueOrThrow: {
args: Prisma.WeeklyPlanFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WeeklyPlanPayload>
}
findFirst: {
args: Prisma.WeeklyPlanFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WeeklyPlanPayload> | null
}
findFirstOrThrow: {
args: Prisma.WeeklyPlanFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WeeklyPlanPayload>
}
findMany: {
args: Prisma.WeeklyPlanFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WeeklyPlanPayload>[]
}
create: {
args: Prisma.WeeklyPlanCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WeeklyPlanPayload>
}
createMany: {
args: Prisma.WeeklyPlanCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.WeeklyPlanCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WeeklyPlanPayload>[]
}
delete: {
args: Prisma.WeeklyPlanDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WeeklyPlanPayload>
}
update: {
args: Prisma.WeeklyPlanUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WeeklyPlanPayload>
}
deleteMany: {
args: Prisma.WeeklyPlanDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.WeeklyPlanUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.WeeklyPlanUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WeeklyPlanPayload>
}
aggregate: {
args: Prisma.WeeklyPlanAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateWeeklyPlan>
}
groupBy: {
args: Prisma.WeeklyPlanGroupByArgs<ExtArgs>
result: $Utils.Optional<WeeklyPlanGroupByOutputType>[]
}
count: {
args: Prisma.WeeklyPlanCountArgs<ExtArgs>
result: $Utils.Optional<WeeklyPlanCountAggregateOutputType> | number
}
}
}
WeeklyPlanRsvp: {
payload: Prisma.$WeeklyPlanRsvpPayload<ExtArgs>
fields: Prisma.WeeklyPlanRsvpFieldRefs
operations: {
findUnique: {
args: Prisma.WeeklyPlanRsvpFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WeeklyPlanRsvpPayload> | null
}
findUniqueOrThrow: {
args: Prisma.WeeklyPlanRsvpFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WeeklyPlanRsvpPayload>
}
findFirst: {
args: Prisma.WeeklyPlanRsvpFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WeeklyPlanRsvpPayload> | null
}
findFirstOrThrow: {
args: Prisma.WeeklyPlanRsvpFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WeeklyPlanRsvpPayload>
}
findMany: {
args: Prisma.WeeklyPlanRsvpFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WeeklyPlanRsvpPayload>[]
}
create: {
args: Prisma.WeeklyPlanRsvpCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WeeklyPlanRsvpPayload>
}
createMany: {
args: Prisma.WeeklyPlanRsvpCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.WeeklyPlanRsvpCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WeeklyPlanRsvpPayload>[]
}
delete: {
args: Prisma.WeeklyPlanRsvpDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WeeklyPlanRsvpPayload>
}
update: {
args: Prisma.WeeklyPlanRsvpUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WeeklyPlanRsvpPayload>
}
deleteMany: {
args: Prisma.WeeklyPlanRsvpDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.WeeklyPlanRsvpUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.WeeklyPlanRsvpUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$WeeklyPlanRsvpPayload>
}
aggregate: {
args: Prisma.WeeklyPlanRsvpAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateWeeklyPlanRsvp>
}
groupBy: {
args: Prisma.WeeklyPlanRsvpGroupByArgs<ExtArgs>
result: $Utils.Optional<WeeklyPlanRsvpGroupByOutputType>[]
}
count: {
args: Prisma.WeeklyPlanRsvpCountArgs<ExtArgs>
result: $Utils.Optional<WeeklyPlanRsvpCountAggregateOutputType> | number
}
}
}
Poll: {
payload: Prisma.$PollPayload<ExtArgs>
fields: Prisma.PollFieldRefs
operations: {
findUnique: {
args: Prisma.PollFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$PollPayload> | null
}
findUniqueOrThrow: {
args: Prisma.PollFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$PollPayload>
}
findFirst: {
args: Prisma.PollFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$PollPayload> | null
}
findFirstOrThrow: {
args: Prisma.PollFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$PollPayload>
}
findMany: {
args: Prisma.PollFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$PollPayload>[]
}
create: {
args: Prisma.PollCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$PollPayload>
}
createMany: {
args: Prisma.PollCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.PollCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$PollPayload>[]
}
delete: {
args: Prisma.PollDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$PollPayload>
}
update: {
args: Prisma.PollUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$PollPayload>
}
deleteMany: {
args: Prisma.PollDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.PollUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.PollUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$PollPayload>
}
aggregate: {
args: Prisma.PollAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregatePoll>
}
groupBy: {
args: Prisma.PollGroupByArgs<ExtArgs>
result: $Utils.Optional<PollGroupByOutputType>[]
}
count: {
args: Prisma.PollCountArgs<ExtArgs>
result: $Utils.Optional<PollCountAggregateOutputType> | number
}
}
}
PollVote: {
payload: Prisma.$PollVotePayload<ExtArgs>
fields: Prisma.PollVoteFieldRefs
operations: {
findUnique: {
args: Prisma.PollVoteFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$PollVotePayload> | null
}
findUniqueOrThrow: {
args: Prisma.PollVoteFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$PollVotePayload>
}
findFirst: {
args: Prisma.PollVoteFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$PollVotePayload> | null
}
findFirstOrThrow: {
args: Prisma.PollVoteFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$PollVotePayload>
}
findMany: {
args: Prisma.PollVoteFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$PollVotePayload>[]
}
create: {
args: Prisma.PollVoteCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$PollVotePayload>
}
createMany: {
args: Prisma.PollVoteCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.PollVoteCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$PollVotePayload>[]
}
delete: {
args: Prisma.PollVoteDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$PollVotePayload>
}
update: {
args: Prisma.PollVoteUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$PollVotePayload>
}
deleteMany: {
args: Prisma.PollVoteDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.PollVoteUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.PollVoteUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$PollVotePayload>
}
aggregate: {
args: Prisma.PollVoteAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregatePollVote>
}
groupBy: {
args: Prisma.PollVoteGroupByArgs<ExtArgs>
result: $Utils.Optional<PollVoteGroupByOutputType>[]
}
count: {
args: Prisma.PollVoteCountArgs<ExtArgs>
result: $Utils.Optional<PollVoteCountAggregateOutputType> | number
}
}
}
Suggestion: {
payload: Prisma.$SuggestionPayload<ExtArgs>
fields: Prisma.SuggestionFieldRefs
operations: {
findUnique: {
args: Prisma.SuggestionFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$SuggestionPayload> | null
}
findUniqueOrThrow: {
args: Prisma.SuggestionFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$SuggestionPayload>
}
findFirst: {
args: Prisma.SuggestionFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$SuggestionPayload> | null
}
findFirstOrThrow: {
args: Prisma.SuggestionFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$SuggestionPayload>
}
findMany: {
args: Prisma.SuggestionFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$SuggestionPayload>[]
}
create: {
args: Prisma.SuggestionCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$SuggestionPayload>
}
createMany: {
args: Prisma.SuggestionCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.SuggestionCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$SuggestionPayload>[]
}
delete: {
args: Prisma.SuggestionDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$SuggestionPayload>
}
update: {
args: Prisma.SuggestionUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$SuggestionPayload>
}
deleteMany: {
args: Prisma.SuggestionDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.SuggestionUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.SuggestionUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$SuggestionPayload>
}
aggregate: {
args: Prisma.SuggestionAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateSuggestion>
}
groupBy: {
args: Prisma.SuggestionGroupByArgs<ExtArgs>
result: $Utils.Optional<SuggestionGroupByOutputType>[]
}
count: {
args: Prisma.SuggestionCountArgs<ExtArgs>
result: $Utils.Optional<SuggestionCountAggregateOutputType> | number
}
}
}
SuggestionVote: {
payload: Prisma.$SuggestionVotePayload<ExtArgs>
fields: Prisma.SuggestionVoteFieldRefs
operations: {
findUnique: {
args: Prisma.SuggestionVoteFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$SuggestionVotePayload> | null
}
findUniqueOrThrow: {
args: Prisma.SuggestionVoteFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$SuggestionVotePayload>
}
findFirst: {
args: Prisma.SuggestionVoteFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$SuggestionVotePayload> | null
}
findFirstOrThrow: {
args: Prisma.SuggestionVoteFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$SuggestionVotePayload>
}
findMany: {
args: Prisma.SuggestionVoteFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$SuggestionVotePayload>[]
}
create: {
args: Prisma.SuggestionVoteCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$SuggestionVotePayload>
}
createMany: {
args: Prisma.SuggestionVoteCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.SuggestionVoteCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$SuggestionVotePayload>[]
}
delete: {
args: Prisma.SuggestionVoteDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$SuggestionVotePayload>
}
update: {
args: Prisma.SuggestionVoteUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$SuggestionVotePayload>
}
deleteMany: {
args: Prisma.SuggestionVoteDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.SuggestionVoteUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.SuggestionVoteUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$SuggestionVotePayload>
}
aggregate: {
args: Prisma.SuggestionVoteAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateSuggestionVote>
}
groupBy: {
args: Prisma.SuggestionVoteGroupByArgs<ExtArgs>
result: $Utils.Optional<SuggestionVoteGroupByOutputType>[]
}
count: {
args: Prisma.SuggestionVoteCountArgs<ExtArgs>
result: $Utils.Optional<SuggestionVoteCountAggregateOutputType> | number
}
}
}
PartnerRequest: {
payload: Prisma.$PartnerRequestPayload<ExtArgs>
fields: Prisma.PartnerRequestFieldRefs
operations: {
findUnique: {
args: Prisma.PartnerRequestFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$PartnerRequestPayload> | null
}
findUniqueOrThrow: {
args: Prisma.PartnerRequestFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$PartnerRequestPayload>
}
findFirst: {
args: Prisma.PartnerRequestFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$PartnerRequestPayload> | null
}
findFirstOrThrow: {
args: Prisma.PartnerRequestFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$PartnerRequestPayload>
}
findMany: {
args: Prisma.PartnerRequestFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$PartnerRequestPayload>[]
}
create: {
args: Prisma.PartnerRequestCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$PartnerRequestPayload>
}
createMany: {
args: Prisma.PartnerRequestCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.PartnerRequestCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$PartnerRequestPayload>[]
}
delete: {
args: Prisma.PartnerRequestDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$PartnerRequestPayload>
}
update: {
args: Prisma.PartnerRequestUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$PartnerRequestPayload>
}
deleteMany: {
args: Prisma.PartnerRequestDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.PartnerRequestUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.PartnerRequestUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$PartnerRequestPayload>
}
aggregate: {
args: Prisma.PartnerRequestAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregatePartnerRequest>
}
groupBy: {
args: Prisma.PartnerRequestGroupByArgs<ExtArgs>
result: $Utils.Optional<PartnerRequestGroupByOutputType>[]
}
count: {
args: Prisma.PartnerRequestCountArgs<ExtArgs>
result: $Utils.Optional<PartnerRequestCountAggregateOutputType> | number
}
}
}
GalleryPost: {
payload: Prisma.$GalleryPostPayload<ExtArgs>
fields: Prisma.GalleryPostFieldRefs
operations: {
findUnique: {
args: Prisma.GalleryPostFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$GalleryPostPayload> | null
}
findUniqueOrThrow: {
args: Prisma.GalleryPostFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$GalleryPostPayload>
}
findFirst: {
args: Prisma.GalleryPostFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$GalleryPostPayload> | null
}
findFirstOrThrow: {
args: Prisma.GalleryPostFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$GalleryPostPayload>
}
findMany: {
args: Prisma.GalleryPostFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$GalleryPostPayload>[]
}
create: {
args: Prisma.GalleryPostCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$GalleryPostPayload>
}
createMany: {
args: Prisma.GalleryPostCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.GalleryPostCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$GalleryPostPayload>[]
}
delete: {
args: Prisma.GalleryPostDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$GalleryPostPayload>
}
update: {
args: Prisma.GalleryPostUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$GalleryPostPayload>
}
deleteMany: {
args: Prisma.GalleryPostDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.GalleryPostUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.GalleryPostUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$GalleryPostPayload>
}
aggregate: {
args: Prisma.GalleryPostAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateGalleryPost>
}
groupBy: {
args: Prisma.GalleryPostGroupByArgs<ExtArgs>
result: $Utils.Optional<GalleryPostGroupByOutputType>[]
}
count: {
args: Prisma.GalleryPostCountArgs<ExtArgs>
result: $Utils.Optional<GalleryPostCountAggregateOutputType> | number
}
}
}
GalleryVote: {
payload: Prisma.$GalleryVotePayload<ExtArgs>
fields: Prisma.GalleryVoteFieldRefs
operations: {
findUnique: {
args: Prisma.GalleryVoteFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$GalleryVotePayload> | null
}
findUniqueOrThrow: {
args: Prisma.GalleryVoteFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$GalleryVotePayload>
}
findFirst: {
args: Prisma.GalleryVoteFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$GalleryVotePayload> | null
}
findFirstOrThrow: {
args: Prisma.GalleryVoteFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$GalleryVotePayload>
}
findMany: {
args: Prisma.GalleryVoteFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$GalleryVotePayload>[]
}
create: {
args: Prisma.GalleryVoteCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$GalleryVotePayload>
}
createMany: {
args: Prisma.GalleryVoteCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.GalleryVoteCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$GalleryVotePayload>[]
}
delete: {
args: Prisma.GalleryVoteDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$GalleryVotePayload>
}
update: {
args: Prisma.GalleryVoteUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$GalleryVotePayload>
}
deleteMany: {
args: Prisma.GalleryVoteDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.GalleryVoteUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.GalleryVoteUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$GalleryVotePayload>
}
aggregate: {
args: Prisma.GalleryVoteAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateGalleryVote>
}
groupBy: {
args: Prisma.GalleryVoteGroupByArgs<ExtArgs>
result: $Utils.Optional<GalleryVoteGroupByOutputType>[]
}
count: {
args: Prisma.GalleryVoteCountArgs<ExtArgs>
result: $Utils.Optional<GalleryVoteCountAggregateOutputType> | number
}
}
}
GuildGrowthEvent: {
payload: Prisma.$GuildGrowthEventPayload<ExtArgs>
fields: Prisma.GuildGrowthEventFieldRefs
operations: {
findUnique: {
args: Prisma.GuildGrowthEventFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$GuildGrowthEventPayload> | null
}
findUniqueOrThrow: {
args: Prisma.GuildGrowthEventFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$GuildGrowthEventPayload>
}
findFirst: {
args: Prisma.GuildGrowthEventFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$GuildGrowthEventPayload> | null
}
findFirstOrThrow: {
args: Prisma.GuildGrowthEventFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$GuildGrowthEventPayload>
}
findMany: {
args: Prisma.GuildGrowthEventFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$GuildGrowthEventPayload>[]
}
create: {
args: Prisma.GuildGrowthEventCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$GuildGrowthEventPayload>
}
createMany: {
args: Prisma.GuildGrowthEventCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.GuildGrowthEventCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$GuildGrowthEventPayload>[]
}
delete: {
args: Prisma.GuildGrowthEventDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$GuildGrowthEventPayload>
}
update: {
args: Prisma.GuildGrowthEventUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$GuildGrowthEventPayload>
}
deleteMany: {
args: Prisma.GuildGrowthEventDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.GuildGrowthEventUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.GuildGrowthEventUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$GuildGrowthEventPayload>
}
aggregate: {
args: Prisma.GuildGrowthEventAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateGuildGrowthEvent>
}
groupBy: {
args: Prisma.GuildGrowthEventGroupByArgs<ExtArgs>
result: $Utils.Optional<GuildGrowthEventGroupByOutputType>[]
}
count: {
args: Prisma.GuildGrowthEventCountArgs<ExtArgs>
result: $Utils.Optional<GuildGrowthEventCountAggregateOutputType> | number
}
}
}
InfoPanel: {
payload: Prisma.$InfoPanelPayload<ExtArgs>
fields: Prisma.InfoPanelFieldRefs
operations: {
findUnique: {
args: Prisma.InfoPanelFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$InfoPanelPayload> | null
}
findUniqueOrThrow: {
args: Prisma.InfoPanelFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$InfoPanelPayload>
}
findFirst: {
args: Prisma.InfoPanelFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$InfoPanelPayload> | null
}
findFirstOrThrow: {
args: Prisma.InfoPanelFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$InfoPanelPayload>
}
findMany: {
args: Prisma.InfoPanelFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$InfoPanelPayload>[]
}
create: {
args: Prisma.InfoPanelCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$InfoPanelPayload>
}
createMany: {
args: Prisma.InfoPanelCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.InfoPanelCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$InfoPanelPayload>[]
}
delete: {
args: Prisma.InfoPanelDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$InfoPanelPayload>
}
update: {
args: Prisma.InfoPanelUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$InfoPanelPayload>
}
deleteMany: {
args: Prisma.InfoPanelDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.InfoPanelUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.InfoPanelUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$InfoPanelPayload>
}
aggregate: {
args: Prisma.InfoPanelAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateInfoPanel>
}
groupBy: {
args: Prisma.InfoPanelGroupByArgs<ExtArgs>
result: $Utils.Optional<InfoPanelGroupByOutputType>[]
}
count: {
args: Prisma.InfoPanelCountArgs<ExtArgs>
result: $Utils.Optional<InfoPanelCountAggregateOutputType> | number
}
}
}
}
} & {
other: {
payload: any
operations: {
$executeRaw: {
args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]],
result: any
}
$executeRawUnsafe: {
args: [query: string, ...values: any[]],
result: any
}
$queryRaw: {
args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]],
result: any
}
$queryRawUnsafe: {
args: [query: string, ...values: any[]],
result: any
}
}
}
}
export const defineExtension: $Extensions.ExtendsHook<"define", Prisma.TypeMapCb, $Extensions.DefaultArgs>
export type DefaultPrismaClient = PrismaClient
export type ErrorFormat = 'pretty' | 'colorless' | 'minimal'
export interface PrismaClientOptions {
/**
* Overwrites the datasource url from your schema.prisma file
*/
datasources?: Datasources
/**
* Overwrites the datasource url from your schema.prisma file
*/
datasourceUrl?: string
/**
* @default "colorless"
*/
errorFormat?: ErrorFormat
/**
* @example
* ```
* // Defaults to stdout
* log: ['query', 'info', 'warn', 'error']
*
* // Emit as events
* log: [
* { emit: 'stdout', level: 'query' },
* { emit: 'stdout', level: 'info' },
* { emit: 'stdout', level: 'warn' }
* { emit: 'stdout', level: 'error' }
* ]
* ```
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option).
*/
log?: (LogLevel | LogDefinition)[]
/**
* The default values for transactionOptions
* maxWait ?= 2000
* timeout ?= 5000
*/
transactionOptions?: {
maxWait?: number
timeout?: number
isolationLevel?: Prisma.TransactionIsolationLevel
}
}
/* Types for Logging */
export type LogLevel = 'info' | 'query' | 'warn' | 'error'
export type LogDefinition = {
level: LogLevel
emit: 'stdout' | 'event'
}
export type GetLogType<T extends LogLevel | LogDefinition> = T extends LogDefinition ? T['emit'] extends 'event' ? T['level'] : never : never
export type GetEvents<T extends any> = T extends Array<LogLevel | LogDefinition> ?
GetLogType<T[0]> | GetLogType<T[1]> | GetLogType<T[2]> | GetLogType<T[3]>
: never
export type QueryEvent = {
timestamp: Date
query: string
params: string
duration: number
target: string
}
export type LogEvent = {
timestamp: Date
message: string
target: string
}
/* End Types for Logging */
export type PrismaAction =
| 'findUnique'
| 'findUniqueOrThrow'
| 'findMany'
| 'findFirst'
| 'findFirstOrThrow'
| 'create'
| 'createMany'
| 'createManyAndReturn'
| 'update'
| 'updateMany'
| 'upsert'
| 'delete'
| 'deleteMany'
| 'executeRaw'
| 'queryRaw'
| 'aggregate'
| 'count'
| 'runCommandRaw'
| 'findRaw'
| 'groupBy'
/**
* These options are being passed into the middleware as "params"
*/
export type MiddlewareParams = {
model?: ModelName
action: PrismaAction
args: any
dataPath: string[]
runInTransaction: boolean
}
/**
* The `T` type makes sure, that the `return proceed` is not forgotten in the middleware implementation
*/
export type Middleware<T = any> = (
params: MiddlewareParams,
next: (params: MiddlewareParams) => $Utils.JsPromise<T>,
) => $Utils.JsPromise<T>
// tested in getLogLevel.test.ts
export function getLogLevel(log: Array<LogLevel | LogDefinition>): LogLevel | undefined;
/**
* `PrismaClient` proxy available in interactive transactions.
*/
export type TransactionClient = Omit<Prisma.DefaultPrismaClient, runtime.ITXClientDenyList>
export type Datasource = {
url?: string
}
/**
* Count Types
*/
/**
* Count Type EventCountOutputType
*/
export type EventCountOutputType = {
signups: number
}
export type EventCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
signups?: boolean | EventCountOutputTypeCountSignupsArgs
}
// Custom InputTypes
/**
* EventCountOutputType without action
*/
export type EventCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EventCountOutputType
*/
select?: EventCountOutputTypeSelect<ExtArgs> | null
}
/**
* EventCountOutputType without action
*/
export type EventCountOutputTypeCountSignupsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: EventSignupWhereInput
}
/**
* Count Type RegisterFormCountOutputType
*/
export type RegisterFormCountOutputType = {
fields: number
applications: number
}
export type RegisterFormCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
fields?: boolean | RegisterFormCountOutputTypeCountFieldsArgs
applications?: boolean | RegisterFormCountOutputTypeCountApplicationsArgs
}
// Custom InputTypes
/**
* RegisterFormCountOutputType without action
*/
export type RegisterFormCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterFormCountOutputType
*/
select?: RegisterFormCountOutputTypeSelect<ExtArgs> | null
}
/**
* RegisterFormCountOutputType without action
*/
export type RegisterFormCountOutputTypeCountFieldsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: RegisterFormFieldWhereInput
}
/**
* RegisterFormCountOutputType without action
*/
export type RegisterFormCountOutputTypeCountApplicationsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: RegisterApplicationWhereInput
}
/**
* Count Type RegisterApplicationCountOutputType
*/
export type RegisterApplicationCountOutputType = {
answers: number
notes: number
}
export type RegisterApplicationCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
answers?: boolean | RegisterApplicationCountOutputTypeCountAnswersArgs
notes?: boolean | RegisterApplicationCountOutputTypeCountNotesArgs
}
// Custom InputTypes
/**
* RegisterApplicationCountOutputType without action
*/
export type RegisterApplicationCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterApplicationCountOutputType
*/
select?: RegisterApplicationCountOutputTypeSelect<ExtArgs> | null
}
/**
* RegisterApplicationCountOutputType without action
*/
export type RegisterApplicationCountOutputTypeCountAnswersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: RegisterApplicationAnswerWhereInput
}
/**
* RegisterApplicationCountOutputType without action
*/
export type RegisterApplicationCountOutputTypeCountNotesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: RegisterApplicationNoteWhereInput
}
/**
* Count Type PollCountOutputType
*/
export type PollCountOutputType = {
votes: number
}
export type PollCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
votes?: boolean | PollCountOutputTypeCountVotesArgs
}
// Custom InputTypes
/**
* PollCountOutputType without action
*/
export type PollCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the PollCountOutputType
*/
select?: PollCountOutputTypeSelect<ExtArgs> | null
}
/**
* PollCountOutputType without action
*/
export type PollCountOutputTypeCountVotesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: PollVoteWhereInput
}
/**
* Count Type SuggestionCountOutputType
*/
export type SuggestionCountOutputType = {
votes: number
}
export type SuggestionCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
votes?: boolean | SuggestionCountOutputTypeCountVotesArgs
}
// Custom InputTypes
/**
* SuggestionCountOutputType without action
*/
export type SuggestionCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SuggestionCountOutputType
*/
select?: SuggestionCountOutputTypeSelect<ExtArgs> | null
}
/**
* SuggestionCountOutputType without action
*/
export type SuggestionCountOutputTypeCountVotesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: SuggestionVoteWhereInput
}
/**
* Count Type GalleryPostCountOutputType
*/
export type GalleryPostCountOutputType = {
votes: number
}
export type GalleryPostCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
votes?: boolean | GalleryPostCountOutputTypeCountVotesArgs
}
// Custom InputTypes
/**
* GalleryPostCountOutputType without action
*/
export type GalleryPostCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GalleryPostCountOutputType
*/
select?: GalleryPostCountOutputTypeSelect<ExtArgs> | null
}
/**
* GalleryPostCountOutputType without action
*/
export type GalleryPostCountOutputTypeCountVotesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: GalleryVoteWhereInput
}
/**
* Models
*/
/**
* Model GuildSettings
*/
export type AggregateGuildSettings = {
_count: GuildSettingsCountAggregateOutputType | null
_min: GuildSettingsMinAggregateOutputType | null
_max: GuildSettingsMaxAggregateOutputType | null
}
export type GuildSettingsMinAggregateOutputType = {
guildId: string | null
welcomeChannelId: string | null
logChannelId: string | null
automodEnabled: boolean | null
levelingEnabled: boolean | null
ticketsEnabled: boolean | null
musicEnabled: boolean | null
statuspageEnabled: boolean | null
dynamicVoiceEnabled: boolean | null
birthdayEnabled: boolean | null
reactionRolesEnabled: boolean | null
eventsEnabled: boolean | null
registerEnabled: boolean | null
serverStatsEnabled: boolean | null
tasksEnabled: boolean | null
badgesEnabled: boolean | null
supportRoleId: string | null
updatedAt: Date | null
createdAt: Date | null
}
export type GuildSettingsMaxAggregateOutputType = {
guildId: string | null
welcomeChannelId: string | null
logChannelId: string | null
automodEnabled: boolean | null
levelingEnabled: boolean | null
ticketsEnabled: boolean | null
musicEnabled: boolean | null
statuspageEnabled: boolean | null
dynamicVoiceEnabled: boolean | null
birthdayEnabled: boolean | null
reactionRolesEnabled: boolean | null
eventsEnabled: boolean | null
registerEnabled: boolean | null
serverStatsEnabled: boolean | null
tasksEnabled: boolean | null
badgesEnabled: boolean | null
supportRoleId: string | null
updatedAt: Date | null
createdAt: Date | null
}
export type GuildSettingsCountAggregateOutputType = {
guildId: number
welcomeChannelId: number
logChannelId: number
automodEnabled: number
automodConfig: number
levelingEnabled: number
ticketsEnabled: number
musicEnabled: number
statuspageEnabled: number
statuspageConfig: number
dynamicVoiceEnabled: number
dynamicVoiceConfig: number
supportLoginConfig: number
birthdayEnabled: number
birthdayConfig: number
reactionRolesEnabled: number
reactionRolesConfig: number
eventsEnabled: number
registerEnabled: number
registerConfig: number
serverStatsEnabled: number
serverStatsConfig: number
lockdownConfig: number
tasksEnabled: number
badgesEnabled: number
brandingConfig: number
partnerConfig: number
galleryConfig: number
imageModerationConfig: number
ticketConfig: number
supportRoleId: number
updatedAt: number
createdAt: number
_all: number
}
export type GuildSettingsMinAggregateInputType = {
guildId?: true
welcomeChannelId?: true
logChannelId?: true
automodEnabled?: true
levelingEnabled?: true
ticketsEnabled?: true
musicEnabled?: true
statuspageEnabled?: true
dynamicVoiceEnabled?: true
birthdayEnabled?: true
reactionRolesEnabled?: true
eventsEnabled?: true
registerEnabled?: true
serverStatsEnabled?: true
tasksEnabled?: true
badgesEnabled?: true
supportRoleId?: true
updatedAt?: true
createdAt?: true
}
export type GuildSettingsMaxAggregateInputType = {
guildId?: true
welcomeChannelId?: true
logChannelId?: true
automodEnabled?: true
levelingEnabled?: true
ticketsEnabled?: true
musicEnabled?: true
statuspageEnabled?: true
dynamicVoiceEnabled?: true
birthdayEnabled?: true
reactionRolesEnabled?: true
eventsEnabled?: true
registerEnabled?: true
serverStatsEnabled?: true
tasksEnabled?: true
badgesEnabled?: true
supportRoleId?: true
updatedAt?: true
createdAt?: true
}
export type GuildSettingsCountAggregateInputType = {
guildId?: true
welcomeChannelId?: true
logChannelId?: true
automodEnabled?: true
automodConfig?: true
levelingEnabled?: true
ticketsEnabled?: true
musicEnabled?: true
statuspageEnabled?: true
statuspageConfig?: true
dynamicVoiceEnabled?: true
dynamicVoiceConfig?: true
supportLoginConfig?: true
birthdayEnabled?: true
birthdayConfig?: true
reactionRolesEnabled?: true
reactionRolesConfig?: true
eventsEnabled?: true
registerEnabled?: true
registerConfig?: true
serverStatsEnabled?: true
serverStatsConfig?: true
lockdownConfig?: true
tasksEnabled?: true
badgesEnabled?: true
brandingConfig?: true
partnerConfig?: true
galleryConfig?: true
imageModerationConfig?: true
ticketConfig?: true
supportRoleId?: true
updatedAt?: true
createdAt?: true
_all?: true
}
export type GuildSettingsAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which GuildSettings to aggregate.
*/
where?: GuildSettingsWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of GuildSettings to fetch.
*/
orderBy?: GuildSettingsOrderByWithRelationInput | GuildSettingsOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: GuildSettingsWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` GuildSettings 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` GuildSettings.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned GuildSettings
**/
_count?: true | GuildSettingsCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: GuildSettingsMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: GuildSettingsMaxAggregateInputType
}
export type GetGuildSettingsAggregateType<T extends GuildSettingsAggregateArgs> = {
[P in keyof T & keyof AggregateGuildSettings]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateGuildSettings[P]>
: GetScalarType<T[P], AggregateGuildSettings[P]>
}
export type GuildSettingsGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: GuildSettingsWhereInput
orderBy?: GuildSettingsOrderByWithAggregationInput | GuildSettingsOrderByWithAggregationInput[]
by: GuildSettingsScalarFieldEnum[] | GuildSettingsScalarFieldEnum
having?: GuildSettingsScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: GuildSettingsCountAggregateInputType | true
_min?: GuildSettingsMinAggregateInputType
_max?: GuildSettingsMaxAggregateInputType
}
export type GuildSettingsGroupByOutputType = {
guildId: string
welcomeChannelId: string | null
logChannelId: string | null
automodEnabled: boolean | null
automodConfig: JsonValue | null
levelingEnabled: boolean | null
ticketsEnabled: boolean | null
musicEnabled: boolean | null
statuspageEnabled: boolean | null
statuspageConfig: JsonValue | null
dynamicVoiceEnabled: boolean | null
dynamicVoiceConfig: JsonValue | null
supportLoginConfig: JsonValue | null
birthdayEnabled: boolean | null
birthdayConfig: JsonValue | null
reactionRolesEnabled: boolean | null
reactionRolesConfig: JsonValue | null
eventsEnabled: boolean | null
registerEnabled: boolean | null
registerConfig: JsonValue | null
serverStatsEnabled: boolean | null
serverStatsConfig: JsonValue | null
lockdownConfig: JsonValue | null
tasksEnabled: boolean | null
badgesEnabled: boolean | null
brandingConfig: JsonValue | null
partnerConfig: JsonValue | null
galleryConfig: JsonValue | null
imageModerationConfig: JsonValue | null
ticketConfig: JsonValue | null
supportRoleId: string | null
updatedAt: Date
createdAt: Date
_count: GuildSettingsCountAggregateOutputType | null
_min: GuildSettingsMinAggregateOutputType | null
_max: GuildSettingsMaxAggregateOutputType | null
}
type GetGuildSettingsGroupByPayload<T extends GuildSettingsGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<GuildSettingsGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof GuildSettingsGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], GuildSettingsGroupByOutputType[P]>
: GetScalarType<T[P], GuildSettingsGroupByOutputType[P]>
}
>
>
export type GuildSettingsSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
guildId?: boolean
welcomeChannelId?: boolean
logChannelId?: boolean
automodEnabled?: boolean
automodConfig?: boolean
levelingEnabled?: boolean
ticketsEnabled?: boolean
musicEnabled?: boolean
statuspageEnabled?: boolean
statuspageConfig?: boolean
dynamicVoiceEnabled?: boolean
dynamicVoiceConfig?: boolean
supportLoginConfig?: boolean
birthdayEnabled?: boolean
birthdayConfig?: boolean
reactionRolesEnabled?: boolean
reactionRolesConfig?: boolean
eventsEnabled?: boolean
registerEnabled?: boolean
registerConfig?: boolean
serverStatsEnabled?: boolean
serverStatsConfig?: boolean
lockdownConfig?: boolean
tasksEnabled?: boolean
badgesEnabled?: boolean
brandingConfig?: boolean
partnerConfig?: boolean
galleryConfig?: boolean
imageModerationConfig?: boolean
ticketConfig?: boolean
supportRoleId?: boolean
updatedAt?: boolean
createdAt?: boolean
}, ExtArgs["result"]["guildSettings"]>
export type GuildSettingsSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
guildId?: boolean
welcomeChannelId?: boolean
logChannelId?: boolean
automodEnabled?: boolean
automodConfig?: boolean
levelingEnabled?: boolean
ticketsEnabled?: boolean
musicEnabled?: boolean
statuspageEnabled?: boolean
statuspageConfig?: boolean
dynamicVoiceEnabled?: boolean
dynamicVoiceConfig?: boolean
supportLoginConfig?: boolean
birthdayEnabled?: boolean
birthdayConfig?: boolean
reactionRolesEnabled?: boolean
reactionRolesConfig?: boolean
eventsEnabled?: boolean
registerEnabled?: boolean
registerConfig?: boolean
serverStatsEnabled?: boolean
serverStatsConfig?: boolean
lockdownConfig?: boolean
tasksEnabled?: boolean
badgesEnabled?: boolean
brandingConfig?: boolean
partnerConfig?: boolean
galleryConfig?: boolean
imageModerationConfig?: boolean
ticketConfig?: boolean
supportRoleId?: boolean
updatedAt?: boolean
createdAt?: boolean
}, ExtArgs["result"]["guildSettings"]>
export type GuildSettingsSelectScalar = {
guildId?: boolean
welcomeChannelId?: boolean
logChannelId?: boolean
automodEnabled?: boolean
automodConfig?: boolean
levelingEnabled?: boolean
ticketsEnabled?: boolean
musicEnabled?: boolean
statuspageEnabled?: boolean
statuspageConfig?: boolean
dynamicVoiceEnabled?: boolean
dynamicVoiceConfig?: boolean
supportLoginConfig?: boolean
birthdayEnabled?: boolean
birthdayConfig?: boolean
reactionRolesEnabled?: boolean
reactionRolesConfig?: boolean
eventsEnabled?: boolean
registerEnabled?: boolean
registerConfig?: boolean
serverStatsEnabled?: boolean
serverStatsConfig?: boolean
lockdownConfig?: boolean
tasksEnabled?: boolean
badgesEnabled?: boolean
brandingConfig?: boolean
partnerConfig?: boolean
galleryConfig?: boolean
imageModerationConfig?: boolean
ticketConfig?: boolean
supportRoleId?: boolean
updatedAt?: boolean
createdAt?: boolean
}
export type $GuildSettingsPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "GuildSettings"
objects: {}
scalars: $Extensions.GetPayloadResult<{
guildId: string
welcomeChannelId: string | null
logChannelId: string | null
automodEnabled: boolean | null
automodConfig: Prisma.JsonValue | null
levelingEnabled: boolean | null
ticketsEnabled: boolean | null
musicEnabled: boolean | null
statuspageEnabled: boolean | null
statuspageConfig: Prisma.JsonValue | null
dynamicVoiceEnabled: boolean | null
dynamicVoiceConfig: Prisma.JsonValue | null
supportLoginConfig: Prisma.JsonValue | null
birthdayEnabled: boolean | null
birthdayConfig: Prisma.JsonValue | null
reactionRolesEnabled: boolean | null
reactionRolesConfig: Prisma.JsonValue | null
eventsEnabled: boolean | null
registerEnabled: boolean | null
registerConfig: Prisma.JsonValue | null
serverStatsEnabled: boolean | null
serverStatsConfig: Prisma.JsonValue | null
lockdownConfig: Prisma.JsonValue | null
tasksEnabled: boolean | null
badgesEnabled: boolean | null
brandingConfig: Prisma.JsonValue | null
partnerConfig: Prisma.JsonValue | null
galleryConfig: Prisma.JsonValue | null
imageModerationConfig: Prisma.JsonValue | null
ticketConfig: Prisma.JsonValue | null
supportRoleId: string | null
updatedAt: Date
createdAt: Date
}, ExtArgs["result"]["guildSettings"]>
composites: {}
}
type GuildSettingsGetPayload<S extends boolean | null | undefined | GuildSettingsDefaultArgs> = $Result.GetResult<Prisma.$GuildSettingsPayload, S>
type GuildSettingsCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<GuildSettingsFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: GuildSettingsCountAggregateInputType | true
}
export interface GuildSettingsDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['GuildSettings'], meta: { name: 'GuildSettings' } }
/**
* Find zero or one GuildSettings that matches the filter.
* @param {GuildSettingsFindUniqueArgs} args - Arguments to find a GuildSettings
* @example
* // Get one GuildSettings
* const guildSettings = await prisma.guildSettings.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends GuildSettingsFindUniqueArgs>(args: SelectSubset<T, GuildSettingsFindUniqueArgs<ExtArgs>>): Prisma__GuildSettingsClient<$Result.GetResult<Prisma.$GuildSettingsPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one GuildSettings that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {GuildSettingsFindUniqueOrThrowArgs} args - Arguments to find a GuildSettings
* @example
* // Get one GuildSettings
* const guildSettings = await prisma.guildSettings.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends GuildSettingsFindUniqueOrThrowArgs>(args: SelectSubset<T, GuildSettingsFindUniqueOrThrowArgs<ExtArgs>>): Prisma__GuildSettingsClient<$Result.GetResult<Prisma.$GuildSettingsPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first GuildSettings 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 {GuildSettingsFindFirstArgs} args - Arguments to find a GuildSettings
* @example
* // Get one GuildSettings
* const guildSettings = await prisma.guildSettings.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends GuildSettingsFindFirstArgs>(args?: SelectSubset<T, GuildSettingsFindFirstArgs<ExtArgs>>): Prisma__GuildSettingsClient<$Result.GetResult<Prisma.$GuildSettingsPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first GuildSettings 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 {GuildSettingsFindFirstOrThrowArgs} args - Arguments to find a GuildSettings
* @example
* // Get one GuildSettings
* const guildSettings = await prisma.guildSettings.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends GuildSettingsFindFirstOrThrowArgs>(args?: SelectSubset<T, GuildSettingsFindFirstOrThrowArgs<ExtArgs>>): Prisma__GuildSettingsClient<$Result.GetResult<Prisma.$GuildSettingsPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more GuildSettings 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 {GuildSettingsFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all GuildSettings
* const guildSettings = await prisma.guildSettings.findMany()
*
* // Get first 10 GuildSettings
* const guildSettings = await prisma.guildSettings.findMany({ take: 10 })
*
* // Only select the `guildId`
* const guildSettingsWithGuildIdOnly = await prisma.guildSettings.findMany({ select: { guildId: true } })
*
*/
findMany<T extends GuildSettingsFindManyArgs>(args?: SelectSubset<T, GuildSettingsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$GuildSettingsPayload<ExtArgs>, T, "findMany">>
/**
* Create a GuildSettings.
* @param {GuildSettingsCreateArgs} args - Arguments to create a GuildSettings.
* @example
* // Create one GuildSettings
* const GuildSettings = await prisma.guildSettings.create({
* data: {
* // ... data to create a GuildSettings
* }
* })
*
*/
create<T extends GuildSettingsCreateArgs>(args: SelectSubset<T, GuildSettingsCreateArgs<ExtArgs>>): Prisma__GuildSettingsClient<$Result.GetResult<Prisma.$GuildSettingsPayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many GuildSettings.
* @param {GuildSettingsCreateManyArgs} args - Arguments to create many GuildSettings.
* @example
* // Create many GuildSettings
* const guildSettings = await prisma.guildSettings.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends GuildSettingsCreateManyArgs>(args?: SelectSubset<T, GuildSettingsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many GuildSettings and returns the data saved in the database.
* @param {GuildSettingsCreateManyAndReturnArgs} args - Arguments to create many GuildSettings.
* @example
* // Create many GuildSettings
* const guildSettings = await prisma.guildSettings.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many GuildSettings and only return the `guildId`
* const guildSettingsWithGuildIdOnly = await prisma.guildSettings.createManyAndReturn({
* select: { guildId: 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 GuildSettingsCreateManyAndReturnArgs>(args?: SelectSubset<T, GuildSettingsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$GuildSettingsPayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a GuildSettings.
* @param {GuildSettingsDeleteArgs} args - Arguments to delete one GuildSettings.
* @example
* // Delete one GuildSettings
* const GuildSettings = await prisma.guildSettings.delete({
* where: {
* // ... filter to delete one GuildSettings
* }
* })
*
*/
delete<T extends GuildSettingsDeleteArgs>(args: SelectSubset<T, GuildSettingsDeleteArgs<ExtArgs>>): Prisma__GuildSettingsClient<$Result.GetResult<Prisma.$GuildSettingsPayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one GuildSettings.
* @param {GuildSettingsUpdateArgs} args - Arguments to update one GuildSettings.
* @example
* // Update one GuildSettings
* const guildSettings = await prisma.guildSettings.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends GuildSettingsUpdateArgs>(args: SelectSubset<T, GuildSettingsUpdateArgs<ExtArgs>>): Prisma__GuildSettingsClient<$Result.GetResult<Prisma.$GuildSettingsPayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more GuildSettings.
* @param {GuildSettingsDeleteManyArgs} args - Arguments to filter GuildSettings to delete.
* @example
* // Delete a few GuildSettings
* const { count } = await prisma.guildSettings.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends GuildSettingsDeleteManyArgs>(args?: SelectSubset<T, GuildSettingsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more GuildSettings.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {GuildSettingsUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many GuildSettings
* const guildSettings = await prisma.guildSettings.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends GuildSettingsUpdateManyArgs>(args: SelectSubset<T, GuildSettingsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one GuildSettings.
* @param {GuildSettingsUpsertArgs} args - Arguments to update or create a GuildSettings.
* @example
* // Update or create a GuildSettings
* const guildSettings = await prisma.guildSettings.upsert({
* create: {
* // ... data to create a GuildSettings
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the GuildSettings we want to update
* }
* })
*/
upsert<T extends GuildSettingsUpsertArgs>(args: SelectSubset<T, GuildSettingsUpsertArgs<ExtArgs>>): Prisma__GuildSettingsClient<$Result.GetResult<Prisma.$GuildSettingsPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of GuildSettings.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {GuildSettingsCountArgs} args - Arguments to filter GuildSettings to count.
* @example
* // Count the number of GuildSettings
* const count = await prisma.guildSettings.count({
* where: {
* // ... the filter for the GuildSettings we want to count
* }
* })
**/
count<T extends GuildSettingsCountArgs>(
args?: Subset<T, GuildSettingsCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], GuildSettingsCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a GuildSettings.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {GuildSettingsAggregateArgs} 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 GuildSettingsAggregateArgs>(args: Subset<T, GuildSettingsAggregateArgs>): Prisma.PrismaPromise<GetGuildSettingsAggregateType<T>>
/**
* Group by GuildSettings.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {GuildSettingsGroupByArgs} 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 GuildSettingsGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: GuildSettingsGroupByArgs['orderBy'] }
: { orderBy?: GuildSettingsGroupByArgs['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, GuildSettingsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetGuildSettingsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the GuildSettings model
*/
readonly fields: GuildSettingsFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for GuildSettings.
* 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__GuildSettingsClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the GuildSettings model
*/
interface GuildSettingsFieldRefs {
readonly guildId: FieldRef<"GuildSettings", 'String'>
readonly welcomeChannelId: FieldRef<"GuildSettings", 'String'>
readonly logChannelId: FieldRef<"GuildSettings", 'String'>
readonly automodEnabled: FieldRef<"GuildSettings", 'Boolean'>
readonly automodConfig: FieldRef<"GuildSettings", 'Json'>
readonly levelingEnabled: FieldRef<"GuildSettings", 'Boolean'>
readonly ticketsEnabled: FieldRef<"GuildSettings", 'Boolean'>
readonly musicEnabled: FieldRef<"GuildSettings", 'Boolean'>
readonly statuspageEnabled: FieldRef<"GuildSettings", 'Boolean'>
readonly statuspageConfig: FieldRef<"GuildSettings", 'Json'>
readonly dynamicVoiceEnabled: FieldRef<"GuildSettings", 'Boolean'>
readonly dynamicVoiceConfig: FieldRef<"GuildSettings", 'Json'>
readonly supportLoginConfig: FieldRef<"GuildSettings", 'Json'>
readonly birthdayEnabled: FieldRef<"GuildSettings", 'Boolean'>
readonly birthdayConfig: FieldRef<"GuildSettings", 'Json'>
readonly reactionRolesEnabled: FieldRef<"GuildSettings", 'Boolean'>
readonly reactionRolesConfig: FieldRef<"GuildSettings", 'Json'>
readonly eventsEnabled: FieldRef<"GuildSettings", 'Boolean'>
readonly registerEnabled: FieldRef<"GuildSettings", 'Boolean'>
readonly registerConfig: FieldRef<"GuildSettings", 'Json'>
readonly serverStatsEnabled: FieldRef<"GuildSettings", 'Boolean'>
readonly serverStatsConfig: FieldRef<"GuildSettings", 'Json'>
readonly lockdownConfig: FieldRef<"GuildSettings", 'Json'>
readonly tasksEnabled: FieldRef<"GuildSettings", 'Boolean'>
readonly badgesEnabled: FieldRef<"GuildSettings", 'Boolean'>
readonly brandingConfig: FieldRef<"GuildSettings", 'Json'>
readonly partnerConfig: FieldRef<"GuildSettings", 'Json'>
readonly galleryConfig: FieldRef<"GuildSettings", 'Json'>
readonly imageModerationConfig: FieldRef<"GuildSettings", 'Json'>
readonly ticketConfig: FieldRef<"GuildSettings", 'Json'>
readonly supportRoleId: FieldRef<"GuildSettings", 'String'>
readonly updatedAt: FieldRef<"GuildSettings", 'DateTime'>
readonly createdAt: FieldRef<"GuildSettings", 'DateTime'>
}
// Custom InputTypes
/**
* GuildSettings findUnique
*/
export type GuildSettingsFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GuildSettings
*/
select?: GuildSettingsSelect<ExtArgs> | null
/**
* Filter, which GuildSettings to fetch.
*/
where: GuildSettingsWhereUniqueInput
}
/**
* GuildSettings findUniqueOrThrow
*/
export type GuildSettingsFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GuildSettings
*/
select?: GuildSettingsSelect<ExtArgs> | null
/**
* Filter, which GuildSettings to fetch.
*/
where: GuildSettingsWhereUniqueInput
}
/**
* GuildSettings findFirst
*/
export type GuildSettingsFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GuildSettings
*/
select?: GuildSettingsSelect<ExtArgs> | null
/**
* Filter, which GuildSettings to fetch.
*/
where?: GuildSettingsWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of GuildSettings to fetch.
*/
orderBy?: GuildSettingsOrderByWithRelationInput | GuildSettingsOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for GuildSettings.
*/
cursor?: GuildSettingsWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` GuildSettings 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` GuildSettings.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of GuildSettings.
*/
distinct?: GuildSettingsScalarFieldEnum | GuildSettingsScalarFieldEnum[]
}
/**
* GuildSettings findFirstOrThrow
*/
export type GuildSettingsFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GuildSettings
*/
select?: GuildSettingsSelect<ExtArgs> | null
/**
* Filter, which GuildSettings to fetch.
*/
where?: GuildSettingsWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of GuildSettings to fetch.
*/
orderBy?: GuildSettingsOrderByWithRelationInput | GuildSettingsOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for GuildSettings.
*/
cursor?: GuildSettingsWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` GuildSettings 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` GuildSettings.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of GuildSettings.
*/
distinct?: GuildSettingsScalarFieldEnum | GuildSettingsScalarFieldEnum[]
}
/**
* GuildSettings findMany
*/
export type GuildSettingsFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GuildSettings
*/
select?: GuildSettingsSelect<ExtArgs> | null
/**
* Filter, which GuildSettings to fetch.
*/
where?: GuildSettingsWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of GuildSettings to fetch.
*/
orderBy?: GuildSettingsOrderByWithRelationInput | GuildSettingsOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing GuildSettings.
*/
cursor?: GuildSettingsWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` GuildSettings 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` GuildSettings.
*/
skip?: number
distinct?: GuildSettingsScalarFieldEnum | GuildSettingsScalarFieldEnum[]
}
/**
* GuildSettings create
*/
export type GuildSettingsCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GuildSettings
*/
select?: GuildSettingsSelect<ExtArgs> | null
/**
* The data needed to create a GuildSettings.
*/
data: XOR<GuildSettingsCreateInput, GuildSettingsUncheckedCreateInput>
}
/**
* GuildSettings createMany
*/
export type GuildSettingsCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many GuildSettings.
*/
data: GuildSettingsCreateManyInput | GuildSettingsCreateManyInput[]
skipDuplicates?: boolean
}
/**
* GuildSettings createManyAndReturn
*/
export type GuildSettingsCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GuildSettings
*/
select?: GuildSettingsSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many GuildSettings.
*/
data: GuildSettingsCreateManyInput | GuildSettingsCreateManyInput[]
skipDuplicates?: boolean
}
/**
* GuildSettings update
*/
export type GuildSettingsUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GuildSettings
*/
select?: GuildSettingsSelect<ExtArgs> | null
/**
* The data needed to update a GuildSettings.
*/
data: XOR<GuildSettingsUpdateInput, GuildSettingsUncheckedUpdateInput>
/**
* Choose, which GuildSettings to update.
*/
where: GuildSettingsWhereUniqueInput
}
/**
* GuildSettings updateMany
*/
export type GuildSettingsUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update GuildSettings.
*/
data: XOR<GuildSettingsUpdateManyMutationInput, GuildSettingsUncheckedUpdateManyInput>
/**
* Filter which GuildSettings to update
*/
where?: GuildSettingsWhereInput
}
/**
* GuildSettings upsert
*/
export type GuildSettingsUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GuildSettings
*/
select?: GuildSettingsSelect<ExtArgs> | null
/**
* The filter to search for the GuildSettings to update in case it exists.
*/
where: GuildSettingsWhereUniqueInput
/**
* In case the GuildSettings found by the `where` argument doesn't exist, create a new GuildSettings with this data.
*/
create: XOR<GuildSettingsCreateInput, GuildSettingsUncheckedCreateInput>
/**
* In case the GuildSettings was found with the provided `where` argument, update it with this data.
*/
update: XOR<GuildSettingsUpdateInput, GuildSettingsUncheckedUpdateInput>
}
/**
* GuildSettings delete
*/
export type GuildSettingsDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GuildSettings
*/
select?: GuildSettingsSelect<ExtArgs> | null
/**
* Filter which GuildSettings to delete.
*/
where: GuildSettingsWhereUniqueInput
}
/**
* GuildSettings deleteMany
*/
export type GuildSettingsDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which GuildSettings to delete
*/
where?: GuildSettingsWhereInput
}
/**
* GuildSettings without action
*/
export type GuildSettingsDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GuildSettings
*/
select?: GuildSettingsSelect<ExtArgs> | null
}
/**
* Model Ticket
*/
export type AggregateTicket = {
_count: TicketCountAggregateOutputType | null
_avg: TicketAvgAggregateOutputType | null
_sum: TicketSumAggregateOutputType | null
_min: TicketMinAggregateOutputType | null
_max: TicketMaxAggregateOutputType | null
}
export type TicketAvgAggregateOutputType = {
ticketNumber: number | null
}
export type TicketSumAggregateOutputType = {
ticketNumber: number | null
}
export type TicketMinAggregateOutputType = {
id: string | null
ticketNumber: number | null
userId: string | null
channelId: string | null
guildId: string | null
topic: string | null
priority: string | null
status: string | null
claimedBy: string | null
transcript: string | null
firstClaimAt: Date | null
firstResponseAt: Date | null
kbSuggestionSentAt: Date | null
createdAt: Date | null
updatedAt: Date | null
}
export type TicketMaxAggregateOutputType = {
id: string | null
ticketNumber: number | null
userId: string | null
channelId: string | null
guildId: string | null
topic: string | null
priority: string | null
status: string | null
claimedBy: string | null
transcript: string | null
firstClaimAt: Date | null
firstResponseAt: Date | null
kbSuggestionSentAt: Date | null
createdAt: Date | null
updatedAt: Date | null
}
export type TicketCountAggregateOutputType = {
id: number
ticketNumber: number
userId: number
channelId: number
guildId: number
topic: number
priority: number
status: number
claimedBy: number
transcript: number
firstClaimAt: number
firstResponseAt: number
kbSuggestionSentAt: number
createdAt: number
updatedAt: number
_all: number
}
export type TicketAvgAggregateInputType = {
ticketNumber?: true
}
export type TicketSumAggregateInputType = {
ticketNumber?: true
}
export type TicketMinAggregateInputType = {
id?: true
ticketNumber?: true
userId?: true
channelId?: true
guildId?: true
topic?: true
priority?: true
status?: true
claimedBy?: true
transcript?: true
firstClaimAt?: true
firstResponseAt?: true
kbSuggestionSentAt?: true
createdAt?: true
updatedAt?: true
}
export type TicketMaxAggregateInputType = {
id?: true
ticketNumber?: true
userId?: true
channelId?: true
guildId?: true
topic?: true
priority?: true
status?: true
claimedBy?: true
transcript?: true
firstClaimAt?: true
firstResponseAt?: true
kbSuggestionSentAt?: true
createdAt?: true
updatedAt?: true
}
export type TicketCountAggregateInputType = {
id?: true
ticketNumber?: true
userId?: true
channelId?: true
guildId?: true
topic?: true
priority?: true
status?: true
claimedBy?: true
transcript?: true
firstClaimAt?: true
firstResponseAt?: true
kbSuggestionSentAt?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type TicketAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Ticket to aggregate.
*/
where?: TicketWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Tickets to fetch.
*/
orderBy?: TicketOrderByWithRelationInput | TicketOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: TicketWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Tickets from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Tickets.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned Tickets
**/
_count?: true | TicketCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: TicketAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: TicketSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: TicketMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: TicketMaxAggregateInputType
}
export type GetTicketAggregateType<T extends TicketAggregateArgs> = {
[P in keyof T & keyof AggregateTicket]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateTicket[P]>
: GetScalarType<T[P], AggregateTicket[P]>
}
export type TicketGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: TicketWhereInput
orderBy?: TicketOrderByWithAggregationInput | TicketOrderByWithAggregationInput[]
by: TicketScalarFieldEnum[] | TicketScalarFieldEnum
having?: TicketScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: TicketCountAggregateInputType | true
_avg?: TicketAvgAggregateInputType
_sum?: TicketSumAggregateInputType
_min?: TicketMinAggregateInputType
_max?: TicketMaxAggregateInputType
}
export type TicketGroupByOutputType = {
id: string
ticketNumber: number
userId: string
channelId: string
guildId: string
topic: string | null
priority: string
status: string
claimedBy: string | null
transcript: string | null
firstClaimAt: Date | null
firstResponseAt: Date | null
kbSuggestionSentAt: Date | null
createdAt: Date
updatedAt: Date
_count: TicketCountAggregateOutputType | null
_avg: TicketAvgAggregateOutputType | null
_sum: TicketSumAggregateOutputType | null
_min: TicketMinAggregateOutputType | null
_max: TicketMaxAggregateOutputType | null
}
type GetTicketGroupByPayload<T extends TicketGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<TicketGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof TicketGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], TicketGroupByOutputType[P]>
: GetScalarType<T[P], TicketGroupByOutputType[P]>
}
>
>
export type TicketSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
ticketNumber?: boolean
userId?: boolean
channelId?: boolean
guildId?: boolean
topic?: boolean
priority?: boolean
status?: boolean
claimedBy?: boolean
transcript?: boolean
firstClaimAt?: boolean
firstResponseAt?: boolean
kbSuggestionSentAt?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["ticket"]>
export type TicketSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
ticketNumber?: boolean
userId?: boolean
channelId?: boolean
guildId?: boolean
topic?: boolean
priority?: boolean
status?: boolean
claimedBy?: boolean
transcript?: boolean
firstClaimAt?: boolean
firstResponseAt?: boolean
kbSuggestionSentAt?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["ticket"]>
export type TicketSelectScalar = {
id?: boolean
ticketNumber?: boolean
userId?: boolean
channelId?: boolean
guildId?: boolean
topic?: boolean
priority?: boolean
status?: boolean
claimedBy?: boolean
transcript?: boolean
firstClaimAt?: boolean
firstResponseAt?: boolean
kbSuggestionSentAt?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type $TicketPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "Ticket"
objects: {}
scalars: $Extensions.GetPayloadResult<{
id: string
ticketNumber: number
userId: string
channelId: string
guildId: string
topic: string | null
priority: string
status: string
claimedBy: string | null
transcript: string | null
firstClaimAt: Date | null
firstResponseAt: Date | null
kbSuggestionSentAt: Date | null
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["ticket"]>
composites: {}
}
type TicketGetPayload<S extends boolean | null | undefined | TicketDefaultArgs> = $Result.GetResult<Prisma.$TicketPayload, S>
type TicketCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<TicketFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: TicketCountAggregateInputType | true
}
export interface TicketDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Ticket'], meta: { name: 'Ticket' } }
/**
* Find zero or one Ticket that matches the filter.
* @param {TicketFindUniqueArgs} args - Arguments to find a Ticket
* @example
* // Get one Ticket
* const ticket = await prisma.ticket.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends TicketFindUniqueArgs>(args: SelectSubset<T, TicketFindUniqueArgs<ExtArgs>>): Prisma__TicketClient<$Result.GetResult<Prisma.$TicketPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one Ticket that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {TicketFindUniqueOrThrowArgs} args - Arguments to find a Ticket
* @example
* // Get one Ticket
* const ticket = await prisma.ticket.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends TicketFindUniqueOrThrowArgs>(args: SelectSubset<T, TicketFindUniqueOrThrowArgs<ExtArgs>>): Prisma__TicketClient<$Result.GetResult<Prisma.$TicketPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first Ticket that matches the filter.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {TicketFindFirstArgs} args - Arguments to find a Ticket
* @example
* // Get one Ticket
* const ticket = await prisma.ticket.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends TicketFindFirstArgs>(args?: SelectSubset<T, TicketFindFirstArgs<ExtArgs>>): Prisma__TicketClient<$Result.GetResult<Prisma.$TicketPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first Ticket that matches the filter or
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {TicketFindFirstOrThrowArgs} args - Arguments to find a Ticket
* @example
* // Get one Ticket
* const ticket = await prisma.ticket.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends TicketFindFirstOrThrowArgs>(args?: SelectSubset<T, TicketFindFirstOrThrowArgs<ExtArgs>>): Prisma__TicketClient<$Result.GetResult<Prisma.$TicketPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more Tickets that matches the filter.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {TicketFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Tickets
* const tickets = await prisma.ticket.findMany()
*
* // Get first 10 Tickets
* const tickets = await prisma.ticket.findMany({ take: 10 })
*
* // Only select the `id`
* const ticketWithIdOnly = await prisma.ticket.findMany({ select: { id: true } })
*
*/
findMany<T extends TicketFindManyArgs>(args?: SelectSubset<T, TicketFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$TicketPayload<ExtArgs>, T, "findMany">>
/**
* Create a Ticket.
* @param {TicketCreateArgs} args - Arguments to create a Ticket.
* @example
* // Create one Ticket
* const Ticket = await prisma.ticket.create({
* data: {
* // ... data to create a Ticket
* }
* })
*
*/
create<T extends TicketCreateArgs>(args: SelectSubset<T, TicketCreateArgs<ExtArgs>>): Prisma__TicketClient<$Result.GetResult<Prisma.$TicketPayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many Tickets.
* @param {TicketCreateManyArgs} args - Arguments to create many Tickets.
* @example
* // Create many Tickets
* const ticket = await prisma.ticket.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends TicketCreateManyArgs>(args?: SelectSubset<T, TicketCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many Tickets and returns the data saved in the database.
* @param {TicketCreateManyAndReturnArgs} args - Arguments to create many Tickets.
* @example
* // Create many Tickets
* const ticket = await prisma.ticket.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Tickets and only return the `id`
* const ticketWithIdOnly = await prisma.ticket.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends TicketCreateManyAndReturnArgs>(args?: SelectSubset<T, TicketCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$TicketPayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a Ticket.
* @param {TicketDeleteArgs} args - Arguments to delete one Ticket.
* @example
* // Delete one Ticket
* const Ticket = await prisma.ticket.delete({
* where: {
* // ... filter to delete one Ticket
* }
* })
*
*/
delete<T extends TicketDeleteArgs>(args: SelectSubset<T, TicketDeleteArgs<ExtArgs>>): Prisma__TicketClient<$Result.GetResult<Prisma.$TicketPayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one Ticket.
* @param {TicketUpdateArgs} args - Arguments to update one Ticket.
* @example
* // Update one Ticket
* const ticket = await prisma.ticket.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends TicketUpdateArgs>(args: SelectSubset<T, TicketUpdateArgs<ExtArgs>>): Prisma__TicketClient<$Result.GetResult<Prisma.$TicketPayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more Tickets.
* @param {TicketDeleteManyArgs} args - Arguments to filter Tickets to delete.
* @example
* // Delete a few Tickets
* const { count } = await prisma.ticket.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends TicketDeleteManyArgs>(args?: SelectSubset<T, TicketDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Tickets.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {TicketUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Tickets
* const ticket = await prisma.ticket.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends TicketUpdateManyArgs>(args: SelectSubset<T, TicketUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one Ticket.
* @param {TicketUpsertArgs} args - Arguments to update or create a Ticket.
* @example
* // Update or create a Ticket
* const ticket = await prisma.ticket.upsert({
* create: {
* // ... data to create a Ticket
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Ticket we want to update
* }
* })
*/
upsert<T extends TicketUpsertArgs>(args: SelectSubset<T, TicketUpsertArgs<ExtArgs>>): Prisma__TicketClient<$Result.GetResult<Prisma.$TicketPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of Tickets.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {TicketCountArgs} args - Arguments to filter Tickets to count.
* @example
* // Count the number of Tickets
* const count = await prisma.ticket.count({
* where: {
* // ... the filter for the Tickets we want to count
* }
* })
**/
count<T extends TicketCountArgs>(
args?: Subset<T, TicketCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], TicketCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Ticket.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {TicketAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
* @example
* // Ordered by age ascending
* // Where email contains prisma.io
* // Limited to the 10 users
* const aggregations = await prisma.user.aggregate({
* _avg: {
* age: true,
* },
* where: {
* email: {
* contains: "prisma.io",
* },
* },
* orderBy: {
* age: "asc",
* },
* take: 10,
* })
**/
aggregate<T extends TicketAggregateArgs>(args: Subset<T, TicketAggregateArgs>): Prisma.PrismaPromise<GetTicketAggregateType<T>>
/**
* Group by Ticket.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {TicketGroupByArgs} args - Group by arguments.
* @example
* // Group by city, order by createdAt, get count
* const result = await prisma.user.groupBy({
* by: ['city', 'createdAt'],
* orderBy: {
* createdAt: true
* },
* _count: {
* _all: true
* },
* })
*
**/
groupBy<
T extends TicketGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: TicketGroupByArgs['orderBy'] }
: { orderBy?: TicketGroupByArgs['orderBy'] },
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
ByFields extends MaybeTupleToUnion<T['by']>,
ByValid extends Has<ByFields, OrderFields>,
HavingFields extends GetHavingFields<T['having']>,
HavingValid extends Has<ByFields, HavingFields>,
ByEmpty extends T['by'] extends never[] ? True : False,
InputErrors extends ByEmpty extends True
? `Error: "by" must not be empty.`
: HavingValid extends False
? {
[P in HavingFields]: P extends ByFields
? never
: P extends string
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
: [
Error,
'Field ',
P,
` in "having" needs to be provided in "by"`,
]
}[HavingFields]
: 'take' extends Keys<T>
? 'orderBy' extends Keys<T>
? ByValid extends True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
: 'Error: If you provide "take", you also need to provide "orderBy"'
: 'skip' extends Keys<T>
? 'orderBy' extends Keys<T>
? ByValid extends True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
: 'Error: If you provide "skip", you also need to provide "orderBy"'
: ByValid extends True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
>(args: SubsetIntersection<T, TicketGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTicketGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the Ticket model
*/
readonly fields: TicketFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for Ticket.
* Why is this prefixed with `Prisma__`?
* Because we want to prevent naming conflicts as mentioned in
* https://github.com/prisma/prisma-client-js/issues/707
*/
export interface Prisma__TicketClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the Ticket model
*/
interface TicketFieldRefs {
readonly id: FieldRef<"Ticket", 'String'>
readonly ticketNumber: FieldRef<"Ticket", 'Int'>
readonly userId: FieldRef<"Ticket", 'String'>
readonly channelId: FieldRef<"Ticket", 'String'>
readonly guildId: FieldRef<"Ticket", 'String'>
readonly topic: FieldRef<"Ticket", 'String'>
readonly priority: FieldRef<"Ticket", 'String'>
readonly status: FieldRef<"Ticket", 'String'>
readonly claimedBy: FieldRef<"Ticket", 'String'>
readonly transcript: FieldRef<"Ticket", 'String'>
readonly firstClaimAt: FieldRef<"Ticket", 'DateTime'>
readonly firstResponseAt: FieldRef<"Ticket", 'DateTime'>
readonly kbSuggestionSentAt: FieldRef<"Ticket", 'DateTime'>
readonly createdAt: FieldRef<"Ticket", 'DateTime'>
readonly updatedAt: FieldRef<"Ticket", 'DateTime'>
}
// Custom InputTypes
/**
* Ticket findUnique
*/
export type TicketFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Ticket
*/
select?: TicketSelect<ExtArgs> | null
/**
* Filter, which Ticket to fetch.
*/
where: TicketWhereUniqueInput
}
/**
* Ticket findUniqueOrThrow
*/
export type TicketFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Ticket
*/
select?: TicketSelect<ExtArgs> | null
/**
* Filter, which Ticket to fetch.
*/
where: TicketWhereUniqueInput
}
/**
* Ticket findFirst
*/
export type TicketFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Ticket
*/
select?: TicketSelect<ExtArgs> | null
/**
* Filter, which Ticket to fetch.
*/
where?: TicketWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Tickets to fetch.
*/
orderBy?: TicketOrderByWithRelationInput | TicketOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Tickets.
*/
cursor?: TicketWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Tickets from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Tickets.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Tickets.
*/
distinct?: TicketScalarFieldEnum | TicketScalarFieldEnum[]
}
/**
* Ticket findFirstOrThrow
*/
export type TicketFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Ticket
*/
select?: TicketSelect<ExtArgs> | null
/**
* Filter, which Ticket to fetch.
*/
where?: TicketWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Tickets to fetch.
*/
orderBy?: TicketOrderByWithRelationInput | TicketOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Tickets.
*/
cursor?: TicketWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Tickets from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Tickets.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Tickets.
*/
distinct?: TicketScalarFieldEnum | TicketScalarFieldEnum[]
}
/**
* Ticket findMany
*/
export type TicketFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Ticket
*/
select?: TicketSelect<ExtArgs> | null
/**
* Filter, which Tickets to fetch.
*/
where?: TicketWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Tickets to fetch.
*/
orderBy?: TicketOrderByWithRelationInput | TicketOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing Tickets.
*/
cursor?: TicketWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Tickets from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Tickets.
*/
skip?: number
distinct?: TicketScalarFieldEnum | TicketScalarFieldEnum[]
}
/**
* Ticket create
*/
export type TicketCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Ticket
*/
select?: TicketSelect<ExtArgs> | null
/**
* The data needed to create a Ticket.
*/
data: XOR<TicketCreateInput, TicketUncheckedCreateInput>
}
/**
* Ticket createMany
*/
export type TicketCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many Tickets.
*/
data: TicketCreateManyInput | TicketCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Ticket createManyAndReturn
*/
export type TicketCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Ticket
*/
select?: TicketSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many Tickets.
*/
data: TicketCreateManyInput | TicketCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Ticket update
*/
export type TicketUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Ticket
*/
select?: TicketSelect<ExtArgs> | null
/**
* The data needed to update a Ticket.
*/
data: XOR<TicketUpdateInput, TicketUncheckedUpdateInput>
/**
* Choose, which Ticket to update.
*/
where: TicketWhereUniqueInput
}
/**
* Ticket updateMany
*/
export type TicketUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update Tickets.
*/
data: XOR<TicketUpdateManyMutationInput, TicketUncheckedUpdateManyInput>
/**
* Filter which Tickets to update
*/
where?: TicketWhereInput
}
/**
* Ticket upsert
*/
export type TicketUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Ticket
*/
select?: TicketSelect<ExtArgs> | null
/**
* The filter to search for the Ticket to update in case it exists.
*/
where: TicketWhereUniqueInput
/**
* In case the Ticket found by the `where` argument doesn't exist, create a new Ticket with this data.
*/
create: XOR<TicketCreateInput, TicketUncheckedCreateInput>
/**
* In case the Ticket was found with the provided `where` argument, update it with this data.
*/
update: XOR<TicketUpdateInput, TicketUncheckedUpdateInput>
}
/**
* Ticket delete
*/
export type TicketDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Ticket
*/
select?: TicketSelect<ExtArgs> | null
/**
* Filter which Ticket to delete.
*/
where: TicketWhereUniqueInput
}
/**
* Ticket deleteMany
*/
export type TicketDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Tickets to delete
*/
where?: TicketWhereInput
}
/**
* Ticket without action
*/
export type TicketDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Ticket
*/
select?: TicketSelect<ExtArgs> | null
}
/**
* Model TicketAutomationRule
*/
export type AggregateTicketAutomationRule = {
_count: TicketAutomationRuleCountAggregateOutputType | null
_min: TicketAutomationRuleMinAggregateOutputType | null
_max: TicketAutomationRuleMaxAggregateOutputType | null
}
export type TicketAutomationRuleMinAggregateOutputType = {
id: string | null
guildId: string | null
name: string | null
active: boolean | null
createdAt: Date | null
updatedAt: Date | null
}
export type TicketAutomationRuleMaxAggregateOutputType = {
id: string | null
guildId: string | null
name: string | null
active: boolean | null
createdAt: Date | null
updatedAt: Date | null
}
export type TicketAutomationRuleCountAggregateOutputType = {
id: number
guildId: number
name: number
condition: number
action: number
active: number
createdAt: number
updatedAt: number
_all: number
}
export type TicketAutomationRuleMinAggregateInputType = {
id?: true
guildId?: true
name?: true
active?: true
createdAt?: true
updatedAt?: true
}
export type TicketAutomationRuleMaxAggregateInputType = {
id?: true
guildId?: true
name?: true
active?: true
createdAt?: true
updatedAt?: true
}
export type TicketAutomationRuleCountAggregateInputType = {
id?: true
guildId?: true
name?: true
condition?: true
action?: true
active?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type TicketAutomationRuleAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which TicketAutomationRule to aggregate.
*/
where?: TicketAutomationRuleWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of TicketAutomationRules to fetch.
*/
orderBy?: TicketAutomationRuleOrderByWithRelationInput | TicketAutomationRuleOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: TicketAutomationRuleWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` TicketAutomationRules 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` TicketAutomationRules.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned TicketAutomationRules
**/
_count?: true | TicketAutomationRuleCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: TicketAutomationRuleMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: TicketAutomationRuleMaxAggregateInputType
}
export type GetTicketAutomationRuleAggregateType<T extends TicketAutomationRuleAggregateArgs> = {
[P in keyof T & keyof AggregateTicketAutomationRule]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateTicketAutomationRule[P]>
: GetScalarType<T[P], AggregateTicketAutomationRule[P]>
}
export type TicketAutomationRuleGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: TicketAutomationRuleWhereInput
orderBy?: TicketAutomationRuleOrderByWithAggregationInput | TicketAutomationRuleOrderByWithAggregationInput[]
by: TicketAutomationRuleScalarFieldEnum[] | TicketAutomationRuleScalarFieldEnum
having?: TicketAutomationRuleScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: TicketAutomationRuleCountAggregateInputType | true
_min?: TicketAutomationRuleMinAggregateInputType
_max?: TicketAutomationRuleMaxAggregateInputType
}
export type TicketAutomationRuleGroupByOutputType = {
id: string
guildId: string
name: string
condition: JsonValue
action: JsonValue
active: boolean
createdAt: Date
updatedAt: Date
_count: TicketAutomationRuleCountAggregateOutputType | null
_min: TicketAutomationRuleMinAggregateOutputType | null
_max: TicketAutomationRuleMaxAggregateOutputType | null
}
type GetTicketAutomationRuleGroupByPayload<T extends TicketAutomationRuleGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<TicketAutomationRuleGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof TicketAutomationRuleGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], TicketAutomationRuleGroupByOutputType[P]>
: GetScalarType<T[P], TicketAutomationRuleGroupByOutputType[P]>
}
>
>
export type TicketAutomationRuleSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
guildId?: boolean
name?: boolean
condition?: boolean
action?: boolean
active?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["ticketAutomationRule"]>
export type TicketAutomationRuleSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
guildId?: boolean
name?: boolean
condition?: boolean
action?: boolean
active?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["ticketAutomationRule"]>
export type TicketAutomationRuleSelectScalar = {
id?: boolean
guildId?: boolean
name?: boolean
condition?: boolean
action?: boolean
active?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type $TicketAutomationRulePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "TicketAutomationRule"
objects: {}
scalars: $Extensions.GetPayloadResult<{
id: string
guildId: string
name: string
condition: Prisma.JsonValue
action: Prisma.JsonValue
active: boolean
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["ticketAutomationRule"]>
composites: {}
}
type TicketAutomationRuleGetPayload<S extends boolean | null | undefined | TicketAutomationRuleDefaultArgs> = $Result.GetResult<Prisma.$TicketAutomationRulePayload, S>
type TicketAutomationRuleCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<TicketAutomationRuleFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: TicketAutomationRuleCountAggregateInputType | true
}
export interface TicketAutomationRuleDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['TicketAutomationRule'], meta: { name: 'TicketAutomationRule' } }
/**
* Find zero or one TicketAutomationRule that matches the filter.
* @param {TicketAutomationRuleFindUniqueArgs} args - Arguments to find a TicketAutomationRule
* @example
* // Get one TicketAutomationRule
* const ticketAutomationRule = await prisma.ticketAutomationRule.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends TicketAutomationRuleFindUniqueArgs>(args: SelectSubset<T, TicketAutomationRuleFindUniqueArgs<ExtArgs>>): Prisma__TicketAutomationRuleClient<$Result.GetResult<Prisma.$TicketAutomationRulePayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one TicketAutomationRule that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {TicketAutomationRuleFindUniqueOrThrowArgs} args - Arguments to find a TicketAutomationRule
* @example
* // Get one TicketAutomationRule
* const ticketAutomationRule = await prisma.ticketAutomationRule.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends TicketAutomationRuleFindUniqueOrThrowArgs>(args: SelectSubset<T, TicketAutomationRuleFindUniqueOrThrowArgs<ExtArgs>>): Prisma__TicketAutomationRuleClient<$Result.GetResult<Prisma.$TicketAutomationRulePayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first TicketAutomationRule 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 {TicketAutomationRuleFindFirstArgs} args - Arguments to find a TicketAutomationRule
* @example
* // Get one TicketAutomationRule
* const ticketAutomationRule = await prisma.ticketAutomationRule.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends TicketAutomationRuleFindFirstArgs>(args?: SelectSubset<T, TicketAutomationRuleFindFirstArgs<ExtArgs>>): Prisma__TicketAutomationRuleClient<$Result.GetResult<Prisma.$TicketAutomationRulePayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first TicketAutomationRule 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 {TicketAutomationRuleFindFirstOrThrowArgs} args - Arguments to find a TicketAutomationRule
* @example
* // Get one TicketAutomationRule
* const ticketAutomationRule = await prisma.ticketAutomationRule.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends TicketAutomationRuleFindFirstOrThrowArgs>(args?: SelectSubset<T, TicketAutomationRuleFindFirstOrThrowArgs<ExtArgs>>): Prisma__TicketAutomationRuleClient<$Result.GetResult<Prisma.$TicketAutomationRulePayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more TicketAutomationRules 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 {TicketAutomationRuleFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all TicketAutomationRules
* const ticketAutomationRules = await prisma.ticketAutomationRule.findMany()
*
* // Get first 10 TicketAutomationRules
* const ticketAutomationRules = await prisma.ticketAutomationRule.findMany({ take: 10 })
*
* // Only select the `id`
* const ticketAutomationRuleWithIdOnly = await prisma.ticketAutomationRule.findMany({ select: { id: true } })
*
*/
findMany<T extends TicketAutomationRuleFindManyArgs>(args?: SelectSubset<T, TicketAutomationRuleFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$TicketAutomationRulePayload<ExtArgs>, T, "findMany">>
/**
* Create a TicketAutomationRule.
* @param {TicketAutomationRuleCreateArgs} args - Arguments to create a TicketAutomationRule.
* @example
* // Create one TicketAutomationRule
* const TicketAutomationRule = await prisma.ticketAutomationRule.create({
* data: {
* // ... data to create a TicketAutomationRule
* }
* })
*
*/
create<T extends TicketAutomationRuleCreateArgs>(args: SelectSubset<T, TicketAutomationRuleCreateArgs<ExtArgs>>): Prisma__TicketAutomationRuleClient<$Result.GetResult<Prisma.$TicketAutomationRulePayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many TicketAutomationRules.
* @param {TicketAutomationRuleCreateManyArgs} args - Arguments to create many TicketAutomationRules.
* @example
* // Create many TicketAutomationRules
* const ticketAutomationRule = await prisma.ticketAutomationRule.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends TicketAutomationRuleCreateManyArgs>(args?: SelectSubset<T, TicketAutomationRuleCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many TicketAutomationRules and returns the data saved in the database.
* @param {TicketAutomationRuleCreateManyAndReturnArgs} args - Arguments to create many TicketAutomationRules.
* @example
* // Create many TicketAutomationRules
* const ticketAutomationRule = await prisma.ticketAutomationRule.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many TicketAutomationRules and only return the `id`
* const ticketAutomationRuleWithIdOnly = await prisma.ticketAutomationRule.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 TicketAutomationRuleCreateManyAndReturnArgs>(args?: SelectSubset<T, TicketAutomationRuleCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$TicketAutomationRulePayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a TicketAutomationRule.
* @param {TicketAutomationRuleDeleteArgs} args - Arguments to delete one TicketAutomationRule.
* @example
* // Delete one TicketAutomationRule
* const TicketAutomationRule = await prisma.ticketAutomationRule.delete({
* where: {
* // ... filter to delete one TicketAutomationRule
* }
* })
*
*/
delete<T extends TicketAutomationRuleDeleteArgs>(args: SelectSubset<T, TicketAutomationRuleDeleteArgs<ExtArgs>>): Prisma__TicketAutomationRuleClient<$Result.GetResult<Prisma.$TicketAutomationRulePayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one TicketAutomationRule.
* @param {TicketAutomationRuleUpdateArgs} args - Arguments to update one TicketAutomationRule.
* @example
* // Update one TicketAutomationRule
* const ticketAutomationRule = await prisma.ticketAutomationRule.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends TicketAutomationRuleUpdateArgs>(args: SelectSubset<T, TicketAutomationRuleUpdateArgs<ExtArgs>>): Prisma__TicketAutomationRuleClient<$Result.GetResult<Prisma.$TicketAutomationRulePayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more TicketAutomationRules.
* @param {TicketAutomationRuleDeleteManyArgs} args - Arguments to filter TicketAutomationRules to delete.
* @example
* // Delete a few TicketAutomationRules
* const { count } = await prisma.ticketAutomationRule.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends TicketAutomationRuleDeleteManyArgs>(args?: SelectSubset<T, TicketAutomationRuleDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more TicketAutomationRules.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {TicketAutomationRuleUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many TicketAutomationRules
* const ticketAutomationRule = await prisma.ticketAutomationRule.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends TicketAutomationRuleUpdateManyArgs>(args: SelectSubset<T, TicketAutomationRuleUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one TicketAutomationRule.
* @param {TicketAutomationRuleUpsertArgs} args - Arguments to update or create a TicketAutomationRule.
* @example
* // Update or create a TicketAutomationRule
* const ticketAutomationRule = await prisma.ticketAutomationRule.upsert({
* create: {
* // ... data to create a TicketAutomationRule
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the TicketAutomationRule we want to update
* }
* })
*/
upsert<T extends TicketAutomationRuleUpsertArgs>(args: SelectSubset<T, TicketAutomationRuleUpsertArgs<ExtArgs>>): Prisma__TicketAutomationRuleClient<$Result.GetResult<Prisma.$TicketAutomationRulePayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of TicketAutomationRules.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {TicketAutomationRuleCountArgs} args - Arguments to filter TicketAutomationRules to count.
* @example
* // Count the number of TicketAutomationRules
* const count = await prisma.ticketAutomationRule.count({
* where: {
* // ... the filter for the TicketAutomationRules we want to count
* }
* })
**/
count<T extends TicketAutomationRuleCountArgs>(
args?: Subset<T, TicketAutomationRuleCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], TicketAutomationRuleCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a TicketAutomationRule.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {TicketAutomationRuleAggregateArgs} 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 TicketAutomationRuleAggregateArgs>(args: Subset<T, TicketAutomationRuleAggregateArgs>): Prisma.PrismaPromise<GetTicketAutomationRuleAggregateType<T>>
/**
* Group by TicketAutomationRule.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {TicketAutomationRuleGroupByArgs} 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 TicketAutomationRuleGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: TicketAutomationRuleGroupByArgs['orderBy'] }
: { orderBy?: TicketAutomationRuleGroupByArgs['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, TicketAutomationRuleGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTicketAutomationRuleGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the TicketAutomationRule model
*/
readonly fields: TicketAutomationRuleFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for TicketAutomationRule.
* 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__TicketAutomationRuleClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the TicketAutomationRule model
*/
interface TicketAutomationRuleFieldRefs {
readonly id: FieldRef<"TicketAutomationRule", 'String'>
readonly guildId: FieldRef<"TicketAutomationRule", 'String'>
readonly name: FieldRef<"TicketAutomationRule", 'String'>
readonly condition: FieldRef<"TicketAutomationRule", 'Json'>
readonly action: FieldRef<"TicketAutomationRule", 'Json'>
readonly active: FieldRef<"TicketAutomationRule", 'Boolean'>
readonly createdAt: FieldRef<"TicketAutomationRule", 'DateTime'>
readonly updatedAt: FieldRef<"TicketAutomationRule", 'DateTime'>
}
// Custom InputTypes
/**
* TicketAutomationRule findUnique
*/
export type TicketAutomationRuleFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TicketAutomationRule
*/
select?: TicketAutomationRuleSelect<ExtArgs> | null
/**
* Filter, which TicketAutomationRule to fetch.
*/
where: TicketAutomationRuleWhereUniqueInput
}
/**
* TicketAutomationRule findUniqueOrThrow
*/
export type TicketAutomationRuleFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TicketAutomationRule
*/
select?: TicketAutomationRuleSelect<ExtArgs> | null
/**
* Filter, which TicketAutomationRule to fetch.
*/
where: TicketAutomationRuleWhereUniqueInput
}
/**
* TicketAutomationRule findFirst
*/
export type TicketAutomationRuleFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TicketAutomationRule
*/
select?: TicketAutomationRuleSelect<ExtArgs> | null
/**
* Filter, which TicketAutomationRule to fetch.
*/
where?: TicketAutomationRuleWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of TicketAutomationRules to fetch.
*/
orderBy?: TicketAutomationRuleOrderByWithRelationInput | TicketAutomationRuleOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for TicketAutomationRules.
*/
cursor?: TicketAutomationRuleWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` TicketAutomationRules 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` TicketAutomationRules.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of TicketAutomationRules.
*/
distinct?: TicketAutomationRuleScalarFieldEnum | TicketAutomationRuleScalarFieldEnum[]
}
/**
* TicketAutomationRule findFirstOrThrow
*/
export type TicketAutomationRuleFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TicketAutomationRule
*/
select?: TicketAutomationRuleSelect<ExtArgs> | null
/**
* Filter, which TicketAutomationRule to fetch.
*/
where?: TicketAutomationRuleWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of TicketAutomationRules to fetch.
*/
orderBy?: TicketAutomationRuleOrderByWithRelationInput | TicketAutomationRuleOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for TicketAutomationRules.
*/
cursor?: TicketAutomationRuleWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` TicketAutomationRules 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` TicketAutomationRules.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of TicketAutomationRules.
*/
distinct?: TicketAutomationRuleScalarFieldEnum | TicketAutomationRuleScalarFieldEnum[]
}
/**
* TicketAutomationRule findMany
*/
export type TicketAutomationRuleFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TicketAutomationRule
*/
select?: TicketAutomationRuleSelect<ExtArgs> | null
/**
* Filter, which TicketAutomationRules to fetch.
*/
where?: TicketAutomationRuleWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of TicketAutomationRules to fetch.
*/
orderBy?: TicketAutomationRuleOrderByWithRelationInput | TicketAutomationRuleOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing TicketAutomationRules.
*/
cursor?: TicketAutomationRuleWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` TicketAutomationRules 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` TicketAutomationRules.
*/
skip?: number
distinct?: TicketAutomationRuleScalarFieldEnum | TicketAutomationRuleScalarFieldEnum[]
}
/**
* TicketAutomationRule create
*/
export type TicketAutomationRuleCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TicketAutomationRule
*/
select?: TicketAutomationRuleSelect<ExtArgs> | null
/**
* The data needed to create a TicketAutomationRule.
*/
data: XOR<TicketAutomationRuleCreateInput, TicketAutomationRuleUncheckedCreateInput>
}
/**
* TicketAutomationRule createMany
*/
export type TicketAutomationRuleCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many TicketAutomationRules.
*/
data: TicketAutomationRuleCreateManyInput | TicketAutomationRuleCreateManyInput[]
skipDuplicates?: boolean
}
/**
* TicketAutomationRule createManyAndReturn
*/
export type TicketAutomationRuleCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TicketAutomationRule
*/
select?: TicketAutomationRuleSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many TicketAutomationRules.
*/
data: TicketAutomationRuleCreateManyInput | TicketAutomationRuleCreateManyInput[]
skipDuplicates?: boolean
}
/**
* TicketAutomationRule update
*/
export type TicketAutomationRuleUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TicketAutomationRule
*/
select?: TicketAutomationRuleSelect<ExtArgs> | null
/**
* The data needed to update a TicketAutomationRule.
*/
data: XOR<TicketAutomationRuleUpdateInput, TicketAutomationRuleUncheckedUpdateInput>
/**
* Choose, which TicketAutomationRule to update.
*/
where: TicketAutomationRuleWhereUniqueInput
}
/**
* TicketAutomationRule updateMany
*/
export type TicketAutomationRuleUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update TicketAutomationRules.
*/
data: XOR<TicketAutomationRuleUpdateManyMutationInput, TicketAutomationRuleUncheckedUpdateManyInput>
/**
* Filter which TicketAutomationRules to update
*/
where?: TicketAutomationRuleWhereInput
}
/**
* TicketAutomationRule upsert
*/
export type TicketAutomationRuleUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TicketAutomationRule
*/
select?: TicketAutomationRuleSelect<ExtArgs> | null
/**
* The filter to search for the TicketAutomationRule to update in case it exists.
*/
where: TicketAutomationRuleWhereUniqueInput
/**
* In case the TicketAutomationRule found by the `where` argument doesn't exist, create a new TicketAutomationRule with this data.
*/
create: XOR<TicketAutomationRuleCreateInput, TicketAutomationRuleUncheckedCreateInput>
/**
* In case the TicketAutomationRule was found with the provided `where` argument, update it with this data.
*/
update: XOR<TicketAutomationRuleUpdateInput, TicketAutomationRuleUncheckedUpdateInput>
}
/**
* TicketAutomationRule delete
*/
export type TicketAutomationRuleDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TicketAutomationRule
*/
select?: TicketAutomationRuleSelect<ExtArgs> | null
/**
* Filter which TicketAutomationRule to delete.
*/
where: TicketAutomationRuleWhereUniqueInput
}
/**
* TicketAutomationRule deleteMany
*/
export type TicketAutomationRuleDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which TicketAutomationRules to delete
*/
where?: TicketAutomationRuleWhereInput
}
/**
* TicketAutomationRule without action
*/
export type TicketAutomationRuleDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TicketAutomationRule
*/
select?: TicketAutomationRuleSelect<ExtArgs> | null
}
/**
* Model KnowledgeBaseArticle
*/
export type AggregateKnowledgeBaseArticle = {
_count: KnowledgeBaseArticleCountAggregateOutputType | null
_min: KnowledgeBaseArticleMinAggregateOutputType | null
_max: KnowledgeBaseArticleMaxAggregateOutputType | null
}
export type KnowledgeBaseArticleMinAggregateOutputType = {
id: string | null
guildId: string | null
title: string | null
content: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type KnowledgeBaseArticleMaxAggregateOutputType = {
id: string | null
guildId: string | null
title: string | null
content: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type KnowledgeBaseArticleCountAggregateOutputType = {
id: number
guildId: number
title: number
keywords: number
content: number
createdAt: number
updatedAt: number
_all: number
}
export type KnowledgeBaseArticleMinAggregateInputType = {
id?: true
guildId?: true
title?: true
content?: true
createdAt?: true
updatedAt?: true
}
export type KnowledgeBaseArticleMaxAggregateInputType = {
id?: true
guildId?: true
title?: true
content?: true
createdAt?: true
updatedAt?: true
}
export type KnowledgeBaseArticleCountAggregateInputType = {
id?: true
guildId?: true
title?: true
keywords?: true
content?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type KnowledgeBaseArticleAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which KnowledgeBaseArticle to aggregate.
*/
where?: KnowledgeBaseArticleWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of KnowledgeBaseArticles to fetch.
*/
orderBy?: KnowledgeBaseArticleOrderByWithRelationInput | KnowledgeBaseArticleOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: KnowledgeBaseArticleWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` KnowledgeBaseArticles 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` KnowledgeBaseArticles.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned KnowledgeBaseArticles
**/
_count?: true | KnowledgeBaseArticleCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: KnowledgeBaseArticleMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: KnowledgeBaseArticleMaxAggregateInputType
}
export type GetKnowledgeBaseArticleAggregateType<T extends KnowledgeBaseArticleAggregateArgs> = {
[P in keyof T & keyof AggregateKnowledgeBaseArticle]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateKnowledgeBaseArticle[P]>
: GetScalarType<T[P], AggregateKnowledgeBaseArticle[P]>
}
export type KnowledgeBaseArticleGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: KnowledgeBaseArticleWhereInput
orderBy?: KnowledgeBaseArticleOrderByWithAggregationInput | KnowledgeBaseArticleOrderByWithAggregationInput[]
by: KnowledgeBaseArticleScalarFieldEnum[] | KnowledgeBaseArticleScalarFieldEnum
having?: KnowledgeBaseArticleScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: KnowledgeBaseArticleCountAggregateInputType | true
_min?: KnowledgeBaseArticleMinAggregateInputType
_max?: KnowledgeBaseArticleMaxAggregateInputType
}
export type KnowledgeBaseArticleGroupByOutputType = {
id: string
guildId: string
title: string
keywords: string[]
content: string
createdAt: Date
updatedAt: Date
_count: KnowledgeBaseArticleCountAggregateOutputType | null
_min: KnowledgeBaseArticleMinAggregateOutputType | null
_max: KnowledgeBaseArticleMaxAggregateOutputType | null
}
type GetKnowledgeBaseArticleGroupByPayload<T extends KnowledgeBaseArticleGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<KnowledgeBaseArticleGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof KnowledgeBaseArticleGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], KnowledgeBaseArticleGroupByOutputType[P]>
: GetScalarType<T[P], KnowledgeBaseArticleGroupByOutputType[P]>
}
>
>
export type KnowledgeBaseArticleSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
guildId?: boolean
title?: boolean
keywords?: boolean
content?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["knowledgeBaseArticle"]>
export type KnowledgeBaseArticleSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
guildId?: boolean
title?: boolean
keywords?: boolean
content?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["knowledgeBaseArticle"]>
export type KnowledgeBaseArticleSelectScalar = {
id?: boolean
guildId?: boolean
title?: boolean
keywords?: boolean
content?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type $KnowledgeBaseArticlePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "KnowledgeBaseArticle"
objects: {}
scalars: $Extensions.GetPayloadResult<{
id: string
guildId: string
title: string
keywords: string[]
content: string
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["knowledgeBaseArticle"]>
composites: {}
}
type KnowledgeBaseArticleGetPayload<S extends boolean | null | undefined | KnowledgeBaseArticleDefaultArgs> = $Result.GetResult<Prisma.$KnowledgeBaseArticlePayload, S>
type KnowledgeBaseArticleCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<KnowledgeBaseArticleFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: KnowledgeBaseArticleCountAggregateInputType | true
}
export interface KnowledgeBaseArticleDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['KnowledgeBaseArticle'], meta: { name: 'KnowledgeBaseArticle' } }
/**
* Find zero or one KnowledgeBaseArticle that matches the filter.
* @param {KnowledgeBaseArticleFindUniqueArgs} args - Arguments to find a KnowledgeBaseArticle
* @example
* // Get one KnowledgeBaseArticle
* const knowledgeBaseArticle = await prisma.knowledgeBaseArticle.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends KnowledgeBaseArticleFindUniqueArgs>(args: SelectSubset<T, KnowledgeBaseArticleFindUniqueArgs<ExtArgs>>): Prisma__KnowledgeBaseArticleClient<$Result.GetResult<Prisma.$KnowledgeBaseArticlePayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one KnowledgeBaseArticle that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {KnowledgeBaseArticleFindUniqueOrThrowArgs} args - Arguments to find a KnowledgeBaseArticle
* @example
* // Get one KnowledgeBaseArticle
* const knowledgeBaseArticle = await prisma.knowledgeBaseArticle.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends KnowledgeBaseArticleFindUniqueOrThrowArgs>(args: SelectSubset<T, KnowledgeBaseArticleFindUniqueOrThrowArgs<ExtArgs>>): Prisma__KnowledgeBaseArticleClient<$Result.GetResult<Prisma.$KnowledgeBaseArticlePayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first KnowledgeBaseArticle 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 {KnowledgeBaseArticleFindFirstArgs} args - Arguments to find a KnowledgeBaseArticle
* @example
* // Get one KnowledgeBaseArticle
* const knowledgeBaseArticle = await prisma.knowledgeBaseArticle.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends KnowledgeBaseArticleFindFirstArgs>(args?: SelectSubset<T, KnowledgeBaseArticleFindFirstArgs<ExtArgs>>): Prisma__KnowledgeBaseArticleClient<$Result.GetResult<Prisma.$KnowledgeBaseArticlePayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first KnowledgeBaseArticle 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 {KnowledgeBaseArticleFindFirstOrThrowArgs} args - Arguments to find a KnowledgeBaseArticle
* @example
* // Get one KnowledgeBaseArticle
* const knowledgeBaseArticle = await prisma.knowledgeBaseArticle.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends KnowledgeBaseArticleFindFirstOrThrowArgs>(args?: SelectSubset<T, KnowledgeBaseArticleFindFirstOrThrowArgs<ExtArgs>>): Prisma__KnowledgeBaseArticleClient<$Result.GetResult<Prisma.$KnowledgeBaseArticlePayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more KnowledgeBaseArticles 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 {KnowledgeBaseArticleFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all KnowledgeBaseArticles
* const knowledgeBaseArticles = await prisma.knowledgeBaseArticle.findMany()
*
* // Get first 10 KnowledgeBaseArticles
* const knowledgeBaseArticles = await prisma.knowledgeBaseArticle.findMany({ take: 10 })
*
* // Only select the `id`
* const knowledgeBaseArticleWithIdOnly = await prisma.knowledgeBaseArticle.findMany({ select: { id: true } })
*
*/
findMany<T extends KnowledgeBaseArticleFindManyArgs>(args?: SelectSubset<T, KnowledgeBaseArticleFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$KnowledgeBaseArticlePayload<ExtArgs>, T, "findMany">>
/**
* Create a KnowledgeBaseArticle.
* @param {KnowledgeBaseArticleCreateArgs} args - Arguments to create a KnowledgeBaseArticle.
* @example
* // Create one KnowledgeBaseArticle
* const KnowledgeBaseArticle = await prisma.knowledgeBaseArticle.create({
* data: {
* // ... data to create a KnowledgeBaseArticle
* }
* })
*
*/
create<T extends KnowledgeBaseArticleCreateArgs>(args: SelectSubset<T, KnowledgeBaseArticleCreateArgs<ExtArgs>>): Prisma__KnowledgeBaseArticleClient<$Result.GetResult<Prisma.$KnowledgeBaseArticlePayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many KnowledgeBaseArticles.
* @param {KnowledgeBaseArticleCreateManyArgs} args - Arguments to create many KnowledgeBaseArticles.
* @example
* // Create many KnowledgeBaseArticles
* const knowledgeBaseArticle = await prisma.knowledgeBaseArticle.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends KnowledgeBaseArticleCreateManyArgs>(args?: SelectSubset<T, KnowledgeBaseArticleCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many KnowledgeBaseArticles and returns the data saved in the database.
* @param {KnowledgeBaseArticleCreateManyAndReturnArgs} args - Arguments to create many KnowledgeBaseArticles.
* @example
* // Create many KnowledgeBaseArticles
* const knowledgeBaseArticle = await prisma.knowledgeBaseArticle.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many KnowledgeBaseArticles and only return the `id`
* const knowledgeBaseArticleWithIdOnly = await prisma.knowledgeBaseArticle.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 KnowledgeBaseArticleCreateManyAndReturnArgs>(args?: SelectSubset<T, KnowledgeBaseArticleCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$KnowledgeBaseArticlePayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a KnowledgeBaseArticle.
* @param {KnowledgeBaseArticleDeleteArgs} args - Arguments to delete one KnowledgeBaseArticle.
* @example
* // Delete one KnowledgeBaseArticle
* const KnowledgeBaseArticle = await prisma.knowledgeBaseArticle.delete({
* where: {
* // ... filter to delete one KnowledgeBaseArticle
* }
* })
*
*/
delete<T extends KnowledgeBaseArticleDeleteArgs>(args: SelectSubset<T, KnowledgeBaseArticleDeleteArgs<ExtArgs>>): Prisma__KnowledgeBaseArticleClient<$Result.GetResult<Prisma.$KnowledgeBaseArticlePayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one KnowledgeBaseArticle.
* @param {KnowledgeBaseArticleUpdateArgs} args - Arguments to update one KnowledgeBaseArticle.
* @example
* // Update one KnowledgeBaseArticle
* const knowledgeBaseArticle = await prisma.knowledgeBaseArticle.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends KnowledgeBaseArticleUpdateArgs>(args: SelectSubset<T, KnowledgeBaseArticleUpdateArgs<ExtArgs>>): Prisma__KnowledgeBaseArticleClient<$Result.GetResult<Prisma.$KnowledgeBaseArticlePayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more KnowledgeBaseArticles.
* @param {KnowledgeBaseArticleDeleteManyArgs} args - Arguments to filter KnowledgeBaseArticles to delete.
* @example
* // Delete a few KnowledgeBaseArticles
* const { count } = await prisma.knowledgeBaseArticle.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends KnowledgeBaseArticleDeleteManyArgs>(args?: SelectSubset<T, KnowledgeBaseArticleDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more KnowledgeBaseArticles.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {KnowledgeBaseArticleUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many KnowledgeBaseArticles
* const knowledgeBaseArticle = await prisma.knowledgeBaseArticle.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends KnowledgeBaseArticleUpdateManyArgs>(args: SelectSubset<T, KnowledgeBaseArticleUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one KnowledgeBaseArticle.
* @param {KnowledgeBaseArticleUpsertArgs} args - Arguments to update or create a KnowledgeBaseArticle.
* @example
* // Update or create a KnowledgeBaseArticle
* const knowledgeBaseArticle = await prisma.knowledgeBaseArticle.upsert({
* create: {
* // ... data to create a KnowledgeBaseArticle
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the KnowledgeBaseArticle we want to update
* }
* })
*/
upsert<T extends KnowledgeBaseArticleUpsertArgs>(args: SelectSubset<T, KnowledgeBaseArticleUpsertArgs<ExtArgs>>): Prisma__KnowledgeBaseArticleClient<$Result.GetResult<Prisma.$KnowledgeBaseArticlePayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of KnowledgeBaseArticles.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {KnowledgeBaseArticleCountArgs} args - Arguments to filter KnowledgeBaseArticles to count.
* @example
* // Count the number of KnowledgeBaseArticles
* const count = await prisma.knowledgeBaseArticle.count({
* where: {
* // ... the filter for the KnowledgeBaseArticles we want to count
* }
* })
**/
count<T extends KnowledgeBaseArticleCountArgs>(
args?: Subset<T, KnowledgeBaseArticleCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], KnowledgeBaseArticleCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a KnowledgeBaseArticle.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {KnowledgeBaseArticleAggregateArgs} 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 KnowledgeBaseArticleAggregateArgs>(args: Subset<T, KnowledgeBaseArticleAggregateArgs>): Prisma.PrismaPromise<GetKnowledgeBaseArticleAggregateType<T>>
/**
* Group by KnowledgeBaseArticle.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {KnowledgeBaseArticleGroupByArgs} 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 KnowledgeBaseArticleGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: KnowledgeBaseArticleGroupByArgs['orderBy'] }
: { orderBy?: KnowledgeBaseArticleGroupByArgs['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, KnowledgeBaseArticleGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetKnowledgeBaseArticleGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the KnowledgeBaseArticle model
*/
readonly fields: KnowledgeBaseArticleFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for KnowledgeBaseArticle.
* 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__KnowledgeBaseArticleClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the KnowledgeBaseArticle model
*/
interface KnowledgeBaseArticleFieldRefs {
readonly id: FieldRef<"KnowledgeBaseArticle", 'String'>
readonly guildId: FieldRef<"KnowledgeBaseArticle", 'String'>
readonly title: FieldRef<"KnowledgeBaseArticle", 'String'>
readonly keywords: FieldRef<"KnowledgeBaseArticle", 'String[]'>
readonly content: FieldRef<"KnowledgeBaseArticle", 'String'>
readonly createdAt: FieldRef<"KnowledgeBaseArticle", 'DateTime'>
readonly updatedAt: FieldRef<"KnowledgeBaseArticle", 'DateTime'>
}
// Custom InputTypes
/**
* KnowledgeBaseArticle findUnique
*/
export type KnowledgeBaseArticleFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBaseArticle
*/
select?: KnowledgeBaseArticleSelect<ExtArgs> | null
/**
* Filter, which KnowledgeBaseArticle to fetch.
*/
where: KnowledgeBaseArticleWhereUniqueInput
}
/**
* KnowledgeBaseArticle findUniqueOrThrow
*/
export type KnowledgeBaseArticleFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBaseArticle
*/
select?: KnowledgeBaseArticleSelect<ExtArgs> | null
/**
* Filter, which KnowledgeBaseArticle to fetch.
*/
where: KnowledgeBaseArticleWhereUniqueInput
}
/**
* KnowledgeBaseArticle findFirst
*/
export type KnowledgeBaseArticleFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBaseArticle
*/
select?: KnowledgeBaseArticleSelect<ExtArgs> | null
/**
* Filter, which KnowledgeBaseArticle to fetch.
*/
where?: KnowledgeBaseArticleWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of KnowledgeBaseArticles to fetch.
*/
orderBy?: KnowledgeBaseArticleOrderByWithRelationInput | KnowledgeBaseArticleOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for KnowledgeBaseArticles.
*/
cursor?: KnowledgeBaseArticleWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` KnowledgeBaseArticles 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` KnowledgeBaseArticles.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of KnowledgeBaseArticles.
*/
distinct?: KnowledgeBaseArticleScalarFieldEnum | KnowledgeBaseArticleScalarFieldEnum[]
}
/**
* KnowledgeBaseArticle findFirstOrThrow
*/
export type KnowledgeBaseArticleFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBaseArticle
*/
select?: KnowledgeBaseArticleSelect<ExtArgs> | null
/**
* Filter, which KnowledgeBaseArticle to fetch.
*/
where?: KnowledgeBaseArticleWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of KnowledgeBaseArticles to fetch.
*/
orderBy?: KnowledgeBaseArticleOrderByWithRelationInput | KnowledgeBaseArticleOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for KnowledgeBaseArticles.
*/
cursor?: KnowledgeBaseArticleWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` KnowledgeBaseArticles 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` KnowledgeBaseArticles.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of KnowledgeBaseArticles.
*/
distinct?: KnowledgeBaseArticleScalarFieldEnum | KnowledgeBaseArticleScalarFieldEnum[]
}
/**
* KnowledgeBaseArticle findMany
*/
export type KnowledgeBaseArticleFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBaseArticle
*/
select?: KnowledgeBaseArticleSelect<ExtArgs> | null
/**
* Filter, which KnowledgeBaseArticles to fetch.
*/
where?: KnowledgeBaseArticleWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of KnowledgeBaseArticles to fetch.
*/
orderBy?: KnowledgeBaseArticleOrderByWithRelationInput | KnowledgeBaseArticleOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing KnowledgeBaseArticles.
*/
cursor?: KnowledgeBaseArticleWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` KnowledgeBaseArticles 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` KnowledgeBaseArticles.
*/
skip?: number
distinct?: KnowledgeBaseArticleScalarFieldEnum | KnowledgeBaseArticleScalarFieldEnum[]
}
/**
* KnowledgeBaseArticle create
*/
export type KnowledgeBaseArticleCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBaseArticle
*/
select?: KnowledgeBaseArticleSelect<ExtArgs> | null
/**
* The data needed to create a KnowledgeBaseArticle.
*/
data: XOR<KnowledgeBaseArticleCreateInput, KnowledgeBaseArticleUncheckedCreateInput>
}
/**
* KnowledgeBaseArticle createMany
*/
export type KnowledgeBaseArticleCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many KnowledgeBaseArticles.
*/
data: KnowledgeBaseArticleCreateManyInput | KnowledgeBaseArticleCreateManyInput[]
skipDuplicates?: boolean
}
/**
* KnowledgeBaseArticle createManyAndReturn
*/
export type KnowledgeBaseArticleCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBaseArticle
*/
select?: KnowledgeBaseArticleSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many KnowledgeBaseArticles.
*/
data: KnowledgeBaseArticleCreateManyInput | KnowledgeBaseArticleCreateManyInput[]
skipDuplicates?: boolean
}
/**
* KnowledgeBaseArticle update
*/
export type KnowledgeBaseArticleUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBaseArticle
*/
select?: KnowledgeBaseArticleSelect<ExtArgs> | null
/**
* The data needed to update a KnowledgeBaseArticle.
*/
data: XOR<KnowledgeBaseArticleUpdateInput, KnowledgeBaseArticleUncheckedUpdateInput>
/**
* Choose, which KnowledgeBaseArticle to update.
*/
where: KnowledgeBaseArticleWhereUniqueInput
}
/**
* KnowledgeBaseArticle updateMany
*/
export type KnowledgeBaseArticleUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update KnowledgeBaseArticles.
*/
data: XOR<KnowledgeBaseArticleUpdateManyMutationInput, KnowledgeBaseArticleUncheckedUpdateManyInput>
/**
* Filter which KnowledgeBaseArticles to update
*/
where?: KnowledgeBaseArticleWhereInput
}
/**
* KnowledgeBaseArticle upsert
*/
export type KnowledgeBaseArticleUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBaseArticle
*/
select?: KnowledgeBaseArticleSelect<ExtArgs> | null
/**
* The filter to search for the KnowledgeBaseArticle to update in case it exists.
*/
where: KnowledgeBaseArticleWhereUniqueInput
/**
* In case the KnowledgeBaseArticle found by the `where` argument doesn't exist, create a new KnowledgeBaseArticle with this data.
*/
create: XOR<KnowledgeBaseArticleCreateInput, KnowledgeBaseArticleUncheckedCreateInput>
/**
* In case the KnowledgeBaseArticle was found with the provided `where` argument, update it with this data.
*/
update: XOR<KnowledgeBaseArticleUpdateInput, KnowledgeBaseArticleUncheckedUpdateInput>
}
/**
* KnowledgeBaseArticle delete
*/
export type KnowledgeBaseArticleDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBaseArticle
*/
select?: KnowledgeBaseArticleSelect<ExtArgs> | null
/**
* Filter which KnowledgeBaseArticle to delete.
*/
where: KnowledgeBaseArticleWhereUniqueInput
}
/**
* KnowledgeBaseArticle deleteMany
*/
export type KnowledgeBaseArticleDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which KnowledgeBaseArticles to delete
*/
where?: KnowledgeBaseArticleWhereInput
}
/**
* KnowledgeBaseArticle without action
*/
export type KnowledgeBaseArticleDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBaseArticle
*/
select?: KnowledgeBaseArticleSelect<ExtArgs> | null
}
/**
* Model Level
*/
export type AggregateLevel = {
_count: LevelCountAggregateOutputType | null
_avg: LevelAvgAggregateOutputType | null
_sum: LevelSumAggregateOutputType | null
_min: LevelMinAggregateOutputType | null
_max: LevelMaxAggregateOutputType | null
}
export type LevelAvgAggregateOutputType = {
xp: number | null
level: number | null
}
export type LevelSumAggregateOutputType = {
xp: number | null
level: number | null
}
export type LevelMinAggregateOutputType = {
id: string | null
userId: string | null
guildId: string | null
xp: number | null
level: number | null
createdAt: Date | null
updatedAt: Date | null
}
export type LevelMaxAggregateOutputType = {
id: string | null
userId: string | null
guildId: string | null
xp: number | null
level: number | null
createdAt: Date | null
updatedAt: Date | null
}
export type LevelCountAggregateOutputType = {
id: number
userId: number
guildId: number
xp: number
level: number
createdAt: number
updatedAt: number
_all: number
}
export type LevelAvgAggregateInputType = {
xp?: true
level?: true
}
export type LevelSumAggregateInputType = {
xp?: true
level?: true
}
export type LevelMinAggregateInputType = {
id?: true
userId?: true
guildId?: true
xp?: true
level?: true
createdAt?: true
updatedAt?: true
}
export type LevelMaxAggregateInputType = {
id?: true
userId?: true
guildId?: true
xp?: true
level?: true
createdAt?: true
updatedAt?: true
}
export type LevelCountAggregateInputType = {
id?: true
userId?: true
guildId?: true
xp?: true
level?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type LevelAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Level to aggregate.
*/
where?: LevelWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Levels to fetch.
*/
orderBy?: LevelOrderByWithRelationInput | LevelOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: LevelWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Levels 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` Levels.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned Levels
**/
_count?: true | LevelCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: LevelAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: LevelSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: LevelMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: LevelMaxAggregateInputType
}
export type GetLevelAggregateType<T extends LevelAggregateArgs> = {
[P in keyof T & keyof AggregateLevel]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateLevel[P]>
: GetScalarType<T[P], AggregateLevel[P]>
}
export type LevelGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: LevelWhereInput
orderBy?: LevelOrderByWithAggregationInput | LevelOrderByWithAggregationInput[]
by: LevelScalarFieldEnum[] | LevelScalarFieldEnum
having?: LevelScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: LevelCountAggregateInputType | true
_avg?: LevelAvgAggregateInputType
_sum?: LevelSumAggregateInputType
_min?: LevelMinAggregateInputType
_max?: LevelMaxAggregateInputType
}
export type LevelGroupByOutputType = {
id: string
userId: string
guildId: string
xp: number
level: number
createdAt: Date
updatedAt: Date
_count: LevelCountAggregateOutputType | null
_avg: LevelAvgAggregateOutputType | null
_sum: LevelSumAggregateOutputType | null
_min: LevelMinAggregateOutputType | null
_max: LevelMaxAggregateOutputType | null
}
type GetLevelGroupByPayload<T extends LevelGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<LevelGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof LevelGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], LevelGroupByOutputType[P]>
: GetScalarType<T[P], LevelGroupByOutputType[P]>
}
>
>
export type LevelSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
userId?: boolean
guildId?: boolean
xp?: boolean
level?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["level"]>
export type LevelSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
userId?: boolean
guildId?: boolean
xp?: boolean
level?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["level"]>
export type LevelSelectScalar = {
id?: boolean
userId?: boolean
guildId?: boolean
xp?: boolean
level?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type $LevelPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "Level"
objects: {}
scalars: $Extensions.GetPayloadResult<{
id: string
userId: string
guildId: string
xp: number
level: number
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["level"]>
composites: {}
}
type LevelGetPayload<S extends boolean | null | undefined | LevelDefaultArgs> = $Result.GetResult<Prisma.$LevelPayload, S>
type LevelCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<LevelFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: LevelCountAggregateInputType | true
}
export interface LevelDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Level'], meta: { name: 'Level' } }
/**
* Find zero or one Level that matches the filter.
* @param {LevelFindUniqueArgs} args - Arguments to find a Level
* @example
* // Get one Level
* const level = await prisma.level.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends LevelFindUniqueArgs>(args: SelectSubset<T, LevelFindUniqueArgs<ExtArgs>>): Prisma__LevelClient<$Result.GetResult<Prisma.$LevelPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one Level that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {LevelFindUniqueOrThrowArgs} args - Arguments to find a Level
* @example
* // Get one Level
* const level = await prisma.level.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends LevelFindUniqueOrThrowArgs>(args: SelectSubset<T, LevelFindUniqueOrThrowArgs<ExtArgs>>): Prisma__LevelClient<$Result.GetResult<Prisma.$LevelPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first Level 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 {LevelFindFirstArgs} args - Arguments to find a Level
* @example
* // Get one Level
* const level = await prisma.level.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends LevelFindFirstArgs>(args?: SelectSubset<T, LevelFindFirstArgs<ExtArgs>>): Prisma__LevelClient<$Result.GetResult<Prisma.$LevelPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first Level 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 {LevelFindFirstOrThrowArgs} args - Arguments to find a Level
* @example
* // Get one Level
* const level = await prisma.level.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends LevelFindFirstOrThrowArgs>(args?: SelectSubset<T, LevelFindFirstOrThrowArgs<ExtArgs>>): Prisma__LevelClient<$Result.GetResult<Prisma.$LevelPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more Levels 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 {LevelFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Levels
* const levels = await prisma.level.findMany()
*
* // Get first 10 Levels
* const levels = await prisma.level.findMany({ take: 10 })
*
* // Only select the `id`
* const levelWithIdOnly = await prisma.level.findMany({ select: { id: true } })
*
*/
findMany<T extends LevelFindManyArgs>(args?: SelectSubset<T, LevelFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$LevelPayload<ExtArgs>, T, "findMany">>
/**
* Create a Level.
* @param {LevelCreateArgs} args - Arguments to create a Level.
* @example
* // Create one Level
* const Level = await prisma.level.create({
* data: {
* // ... data to create a Level
* }
* })
*
*/
create<T extends LevelCreateArgs>(args: SelectSubset<T, LevelCreateArgs<ExtArgs>>): Prisma__LevelClient<$Result.GetResult<Prisma.$LevelPayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many Levels.
* @param {LevelCreateManyArgs} args - Arguments to create many Levels.
* @example
* // Create many Levels
* const level = await prisma.level.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends LevelCreateManyArgs>(args?: SelectSubset<T, LevelCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many Levels and returns the data saved in the database.
* @param {LevelCreateManyAndReturnArgs} args - Arguments to create many Levels.
* @example
* // Create many Levels
* const level = await prisma.level.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Levels and only return the `id`
* const levelWithIdOnly = await prisma.level.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 LevelCreateManyAndReturnArgs>(args?: SelectSubset<T, LevelCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$LevelPayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a Level.
* @param {LevelDeleteArgs} args - Arguments to delete one Level.
* @example
* // Delete one Level
* const Level = await prisma.level.delete({
* where: {
* // ... filter to delete one Level
* }
* })
*
*/
delete<T extends LevelDeleteArgs>(args: SelectSubset<T, LevelDeleteArgs<ExtArgs>>): Prisma__LevelClient<$Result.GetResult<Prisma.$LevelPayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one Level.
* @param {LevelUpdateArgs} args - Arguments to update one Level.
* @example
* // Update one Level
* const level = await prisma.level.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends LevelUpdateArgs>(args: SelectSubset<T, LevelUpdateArgs<ExtArgs>>): Prisma__LevelClient<$Result.GetResult<Prisma.$LevelPayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more Levels.
* @param {LevelDeleteManyArgs} args - Arguments to filter Levels to delete.
* @example
* // Delete a few Levels
* const { count } = await prisma.level.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends LevelDeleteManyArgs>(args?: SelectSubset<T, LevelDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Levels.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {LevelUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Levels
* const level = await prisma.level.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends LevelUpdateManyArgs>(args: SelectSubset<T, LevelUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one Level.
* @param {LevelUpsertArgs} args - Arguments to update or create a Level.
* @example
* // Update or create a Level
* const level = await prisma.level.upsert({
* create: {
* // ... data to create a Level
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Level we want to update
* }
* })
*/
upsert<T extends LevelUpsertArgs>(args: SelectSubset<T, LevelUpsertArgs<ExtArgs>>): Prisma__LevelClient<$Result.GetResult<Prisma.$LevelPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of Levels.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {LevelCountArgs} args - Arguments to filter Levels to count.
* @example
* // Count the number of Levels
* const count = await prisma.level.count({
* where: {
* // ... the filter for the Levels we want to count
* }
* })
**/
count<T extends LevelCountArgs>(
args?: Subset<T, LevelCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], LevelCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Level.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {LevelAggregateArgs} 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 LevelAggregateArgs>(args: Subset<T, LevelAggregateArgs>): Prisma.PrismaPromise<GetLevelAggregateType<T>>
/**
* Group by Level.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {LevelGroupByArgs} 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 LevelGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: LevelGroupByArgs['orderBy'] }
: { orderBy?: LevelGroupByArgs['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, LevelGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetLevelGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the Level model
*/
readonly fields: LevelFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for Level.
* 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__LevelClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the Level model
*/
interface LevelFieldRefs {
readonly id: FieldRef<"Level", 'String'>
readonly userId: FieldRef<"Level", 'String'>
readonly guildId: FieldRef<"Level", 'String'>
readonly xp: FieldRef<"Level", 'Int'>
readonly level: FieldRef<"Level", 'Int'>
readonly createdAt: FieldRef<"Level", 'DateTime'>
readonly updatedAt: FieldRef<"Level", 'DateTime'>
}
// Custom InputTypes
/**
* Level findUnique
*/
export type LevelFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Level
*/
select?: LevelSelect<ExtArgs> | null
/**
* Filter, which Level to fetch.
*/
where: LevelWhereUniqueInput
}
/**
* Level findUniqueOrThrow
*/
export type LevelFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Level
*/
select?: LevelSelect<ExtArgs> | null
/**
* Filter, which Level to fetch.
*/
where: LevelWhereUniqueInput
}
/**
* Level findFirst
*/
export type LevelFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Level
*/
select?: LevelSelect<ExtArgs> | null
/**
* Filter, which Level to fetch.
*/
where?: LevelWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Levels to fetch.
*/
orderBy?: LevelOrderByWithRelationInput | LevelOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Levels.
*/
cursor?: LevelWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Levels 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` Levels.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Levels.
*/
distinct?: LevelScalarFieldEnum | LevelScalarFieldEnum[]
}
/**
* Level findFirstOrThrow
*/
export type LevelFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Level
*/
select?: LevelSelect<ExtArgs> | null
/**
* Filter, which Level to fetch.
*/
where?: LevelWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Levels to fetch.
*/
orderBy?: LevelOrderByWithRelationInput | LevelOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Levels.
*/
cursor?: LevelWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Levels 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` Levels.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Levels.
*/
distinct?: LevelScalarFieldEnum | LevelScalarFieldEnum[]
}
/**
* Level findMany
*/
export type LevelFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Level
*/
select?: LevelSelect<ExtArgs> | null
/**
* Filter, which Levels to fetch.
*/
where?: LevelWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Levels to fetch.
*/
orderBy?: LevelOrderByWithRelationInput | LevelOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing Levels.
*/
cursor?: LevelWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Levels 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` Levels.
*/
skip?: number
distinct?: LevelScalarFieldEnum | LevelScalarFieldEnum[]
}
/**
* Level create
*/
export type LevelCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Level
*/
select?: LevelSelect<ExtArgs> | null
/**
* The data needed to create a Level.
*/
data: XOR<LevelCreateInput, LevelUncheckedCreateInput>
}
/**
* Level createMany
*/
export type LevelCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many Levels.
*/
data: LevelCreateManyInput | LevelCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Level createManyAndReturn
*/
export type LevelCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Level
*/
select?: LevelSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many Levels.
*/
data: LevelCreateManyInput | LevelCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Level update
*/
export type LevelUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Level
*/
select?: LevelSelect<ExtArgs> | null
/**
* The data needed to update a Level.
*/
data: XOR<LevelUpdateInput, LevelUncheckedUpdateInput>
/**
* Choose, which Level to update.
*/
where: LevelWhereUniqueInput
}
/**
* Level updateMany
*/
export type LevelUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update Levels.
*/
data: XOR<LevelUpdateManyMutationInput, LevelUncheckedUpdateManyInput>
/**
* Filter which Levels to update
*/
where?: LevelWhereInput
}
/**
* Level upsert
*/
export type LevelUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Level
*/
select?: LevelSelect<ExtArgs> | null
/**
* The filter to search for the Level to update in case it exists.
*/
where: LevelWhereUniqueInput
/**
* In case the Level found by the `where` argument doesn't exist, create a new Level with this data.
*/
create: XOR<LevelCreateInput, LevelUncheckedCreateInput>
/**
* In case the Level was found with the provided `where` argument, update it with this data.
*/
update: XOR<LevelUpdateInput, LevelUncheckedUpdateInput>
}
/**
* Level delete
*/
export type LevelDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Level
*/
select?: LevelSelect<ExtArgs> | null
/**
* Filter which Level to delete.
*/
where: LevelWhereUniqueInput
}
/**
* Level deleteMany
*/
export type LevelDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Levels to delete
*/
where?: LevelWhereInput
}
/**
* Level without action
*/
export type LevelDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Level
*/
select?: LevelSelect<ExtArgs> | null
}
/**
* Model TicketSupportSession
*/
export type AggregateTicketSupportSession = {
_count: TicketSupportSessionCountAggregateOutputType | null
_avg: TicketSupportSessionAvgAggregateOutputType | null
_sum: TicketSupportSessionSumAggregateOutputType | null
_min: TicketSupportSessionMinAggregateOutputType | null
_max: TicketSupportSessionMaxAggregateOutputType | null
}
export type TicketSupportSessionAvgAggregateOutputType = {
durationSeconds: number | null
}
export type TicketSupportSessionSumAggregateOutputType = {
durationSeconds: number | null
}
export type TicketSupportSessionMinAggregateOutputType = {
id: string | null
guildId: string | null
userId: string | null
roleId: string | null
startedAt: Date | null
endedAt: Date | null
durationSeconds: number | null
}
export type TicketSupportSessionMaxAggregateOutputType = {
id: string | null
guildId: string | null
userId: string | null
roleId: string | null
startedAt: Date | null
endedAt: Date | null
durationSeconds: number | null
}
export type TicketSupportSessionCountAggregateOutputType = {
id: number
guildId: number
userId: number
roleId: number
startedAt: number
endedAt: number
durationSeconds: number
_all: number
}
export type TicketSupportSessionAvgAggregateInputType = {
durationSeconds?: true
}
export type TicketSupportSessionSumAggregateInputType = {
durationSeconds?: true
}
export type TicketSupportSessionMinAggregateInputType = {
id?: true
guildId?: true
userId?: true
roleId?: true
startedAt?: true
endedAt?: true
durationSeconds?: true
}
export type TicketSupportSessionMaxAggregateInputType = {
id?: true
guildId?: true
userId?: true
roleId?: true
startedAt?: true
endedAt?: true
durationSeconds?: true
}
export type TicketSupportSessionCountAggregateInputType = {
id?: true
guildId?: true
userId?: true
roleId?: true
startedAt?: true
endedAt?: true
durationSeconds?: true
_all?: true
}
export type TicketSupportSessionAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which TicketSupportSession to aggregate.
*/
where?: TicketSupportSessionWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of TicketSupportSessions to fetch.
*/
orderBy?: TicketSupportSessionOrderByWithRelationInput | TicketSupportSessionOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: TicketSupportSessionWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` TicketSupportSessions 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` TicketSupportSessions.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned TicketSupportSessions
**/
_count?: true | TicketSupportSessionCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: TicketSupportSessionAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: TicketSupportSessionSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: TicketSupportSessionMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: TicketSupportSessionMaxAggregateInputType
}
export type GetTicketSupportSessionAggregateType<T extends TicketSupportSessionAggregateArgs> = {
[P in keyof T & keyof AggregateTicketSupportSession]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateTicketSupportSession[P]>
: GetScalarType<T[P], AggregateTicketSupportSession[P]>
}
export type TicketSupportSessionGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: TicketSupportSessionWhereInput
orderBy?: TicketSupportSessionOrderByWithAggregationInput | TicketSupportSessionOrderByWithAggregationInput[]
by: TicketSupportSessionScalarFieldEnum[] | TicketSupportSessionScalarFieldEnum
having?: TicketSupportSessionScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: TicketSupportSessionCountAggregateInputType | true
_avg?: TicketSupportSessionAvgAggregateInputType
_sum?: TicketSupportSessionSumAggregateInputType
_min?: TicketSupportSessionMinAggregateInputType
_max?: TicketSupportSessionMaxAggregateInputType
}
export type TicketSupportSessionGroupByOutputType = {
id: string
guildId: string
userId: string
roleId: string
startedAt: Date
endedAt: Date | null
durationSeconds: number | null
_count: TicketSupportSessionCountAggregateOutputType | null
_avg: TicketSupportSessionAvgAggregateOutputType | null
_sum: TicketSupportSessionSumAggregateOutputType | null
_min: TicketSupportSessionMinAggregateOutputType | null
_max: TicketSupportSessionMaxAggregateOutputType | null
}
type GetTicketSupportSessionGroupByPayload<T extends TicketSupportSessionGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<TicketSupportSessionGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof TicketSupportSessionGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], TicketSupportSessionGroupByOutputType[P]>
: GetScalarType<T[P], TicketSupportSessionGroupByOutputType[P]>
}
>
>
export type TicketSupportSessionSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
guildId?: boolean
userId?: boolean
roleId?: boolean
startedAt?: boolean
endedAt?: boolean
durationSeconds?: boolean
}, ExtArgs["result"]["ticketSupportSession"]>
export type TicketSupportSessionSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
guildId?: boolean
userId?: boolean
roleId?: boolean
startedAt?: boolean
endedAt?: boolean
durationSeconds?: boolean
}, ExtArgs["result"]["ticketSupportSession"]>
export type TicketSupportSessionSelectScalar = {
id?: boolean
guildId?: boolean
userId?: boolean
roleId?: boolean
startedAt?: boolean
endedAt?: boolean
durationSeconds?: boolean
}
export type $TicketSupportSessionPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "TicketSupportSession"
objects: {}
scalars: $Extensions.GetPayloadResult<{
id: string
guildId: string
userId: string
roleId: string
startedAt: Date
endedAt: Date | null
durationSeconds: number | null
}, ExtArgs["result"]["ticketSupportSession"]>
composites: {}
}
type TicketSupportSessionGetPayload<S extends boolean | null | undefined | TicketSupportSessionDefaultArgs> = $Result.GetResult<Prisma.$TicketSupportSessionPayload, S>
type TicketSupportSessionCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<TicketSupportSessionFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: TicketSupportSessionCountAggregateInputType | true
}
export interface TicketSupportSessionDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['TicketSupportSession'], meta: { name: 'TicketSupportSession' } }
/**
* Find zero or one TicketSupportSession that matches the filter.
* @param {TicketSupportSessionFindUniqueArgs} args - Arguments to find a TicketSupportSession
* @example
* // Get one TicketSupportSession
* const ticketSupportSession = await prisma.ticketSupportSession.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends TicketSupportSessionFindUniqueArgs>(args: SelectSubset<T, TicketSupportSessionFindUniqueArgs<ExtArgs>>): Prisma__TicketSupportSessionClient<$Result.GetResult<Prisma.$TicketSupportSessionPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one TicketSupportSession that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {TicketSupportSessionFindUniqueOrThrowArgs} args - Arguments to find a TicketSupportSession
* @example
* // Get one TicketSupportSession
* const ticketSupportSession = await prisma.ticketSupportSession.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends TicketSupportSessionFindUniqueOrThrowArgs>(args: SelectSubset<T, TicketSupportSessionFindUniqueOrThrowArgs<ExtArgs>>): Prisma__TicketSupportSessionClient<$Result.GetResult<Prisma.$TicketSupportSessionPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first TicketSupportSession 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 {TicketSupportSessionFindFirstArgs} args - Arguments to find a TicketSupportSession
* @example
* // Get one TicketSupportSession
* const ticketSupportSession = await prisma.ticketSupportSession.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends TicketSupportSessionFindFirstArgs>(args?: SelectSubset<T, TicketSupportSessionFindFirstArgs<ExtArgs>>): Prisma__TicketSupportSessionClient<$Result.GetResult<Prisma.$TicketSupportSessionPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first TicketSupportSession 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 {TicketSupportSessionFindFirstOrThrowArgs} args - Arguments to find a TicketSupportSession
* @example
* // Get one TicketSupportSession
* const ticketSupportSession = await prisma.ticketSupportSession.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends TicketSupportSessionFindFirstOrThrowArgs>(args?: SelectSubset<T, TicketSupportSessionFindFirstOrThrowArgs<ExtArgs>>): Prisma__TicketSupportSessionClient<$Result.GetResult<Prisma.$TicketSupportSessionPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more TicketSupportSessions 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 {TicketSupportSessionFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all TicketSupportSessions
* const ticketSupportSessions = await prisma.ticketSupportSession.findMany()
*
* // Get first 10 TicketSupportSessions
* const ticketSupportSessions = await prisma.ticketSupportSession.findMany({ take: 10 })
*
* // Only select the `id`
* const ticketSupportSessionWithIdOnly = await prisma.ticketSupportSession.findMany({ select: { id: true } })
*
*/
findMany<T extends TicketSupportSessionFindManyArgs>(args?: SelectSubset<T, TicketSupportSessionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$TicketSupportSessionPayload<ExtArgs>, T, "findMany">>
/**
* Create a TicketSupportSession.
* @param {TicketSupportSessionCreateArgs} args - Arguments to create a TicketSupportSession.
* @example
* // Create one TicketSupportSession
* const TicketSupportSession = await prisma.ticketSupportSession.create({
* data: {
* // ... data to create a TicketSupportSession
* }
* })
*
*/
create<T extends TicketSupportSessionCreateArgs>(args: SelectSubset<T, TicketSupportSessionCreateArgs<ExtArgs>>): Prisma__TicketSupportSessionClient<$Result.GetResult<Prisma.$TicketSupportSessionPayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many TicketSupportSessions.
* @param {TicketSupportSessionCreateManyArgs} args - Arguments to create many TicketSupportSessions.
* @example
* // Create many TicketSupportSessions
* const ticketSupportSession = await prisma.ticketSupportSession.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends TicketSupportSessionCreateManyArgs>(args?: SelectSubset<T, TicketSupportSessionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many TicketSupportSessions and returns the data saved in the database.
* @param {TicketSupportSessionCreateManyAndReturnArgs} args - Arguments to create many TicketSupportSessions.
* @example
* // Create many TicketSupportSessions
* const ticketSupportSession = await prisma.ticketSupportSession.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many TicketSupportSessions and only return the `id`
* const ticketSupportSessionWithIdOnly = await prisma.ticketSupportSession.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 TicketSupportSessionCreateManyAndReturnArgs>(args?: SelectSubset<T, TicketSupportSessionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$TicketSupportSessionPayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a TicketSupportSession.
* @param {TicketSupportSessionDeleteArgs} args - Arguments to delete one TicketSupportSession.
* @example
* // Delete one TicketSupportSession
* const TicketSupportSession = await prisma.ticketSupportSession.delete({
* where: {
* // ... filter to delete one TicketSupportSession
* }
* })
*
*/
delete<T extends TicketSupportSessionDeleteArgs>(args: SelectSubset<T, TicketSupportSessionDeleteArgs<ExtArgs>>): Prisma__TicketSupportSessionClient<$Result.GetResult<Prisma.$TicketSupportSessionPayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one TicketSupportSession.
* @param {TicketSupportSessionUpdateArgs} args - Arguments to update one TicketSupportSession.
* @example
* // Update one TicketSupportSession
* const ticketSupportSession = await prisma.ticketSupportSession.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends TicketSupportSessionUpdateArgs>(args: SelectSubset<T, TicketSupportSessionUpdateArgs<ExtArgs>>): Prisma__TicketSupportSessionClient<$Result.GetResult<Prisma.$TicketSupportSessionPayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more TicketSupportSessions.
* @param {TicketSupportSessionDeleteManyArgs} args - Arguments to filter TicketSupportSessions to delete.
* @example
* // Delete a few TicketSupportSessions
* const { count } = await prisma.ticketSupportSession.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends TicketSupportSessionDeleteManyArgs>(args?: SelectSubset<T, TicketSupportSessionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more TicketSupportSessions.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {TicketSupportSessionUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many TicketSupportSessions
* const ticketSupportSession = await prisma.ticketSupportSession.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends TicketSupportSessionUpdateManyArgs>(args: SelectSubset<T, TicketSupportSessionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one TicketSupportSession.
* @param {TicketSupportSessionUpsertArgs} args - Arguments to update or create a TicketSupportSession.
* @example
* // Update or create a TicketSupportSession
* const ticketSupportSession = await prisma.ticketSupportSession.upsert({
* create: {
* // ... data to create a TicketSupportSession
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the TicketSupportSession we want to update
* }
* })
*/
upsert<T extends TicketSupportSessionUpsertArgs>(args: SelectSubset<T, TicketSupportSessionUpsertArgs<ExtArgs>>): Prisma__TicketSupportSessionClient<$Result.GetResult<Prisma.$TicketSupportSessionPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of TicketSupportSessions.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {TicketSupportSessionCountArgs} args - Arguments to filter TicketSupportSessions to count.
* @example
* // Count the number of TicketSupportSessions
* const count = await prisma.ticketSupportSession.count({
* where: {
* // ... the filter for the TicketSupportSessions we want to count
* }
* })
**/
count<T extends TicketSupportSessionCountArgs>(
args?: Subset<T, TicketSupportSessionCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], TicketSupportSessionCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a TicketSupportSession.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {TicketSupportSessionAggregateArgs} 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 TicketSupportSessionAggregateArgs>(args: Subset<T, TicketSupportSessionAggregateArgs>): Prisma.PrismaPromise<GetTicketSupportSessionAggregateType<T>>
/**
* Group by TicketSupportSession.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {TicketSupportSessionGroupByArgs} 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 TicketSupportSessionGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: TicketSupportSessionGroupByArgs['orderBy'] }
: { orderBy?: TicketSupportSessionGroupByArgs['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, TicketSupportSessionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTicketSupportSessionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the TicketSupportSession model
*/
readonly fields: TicketSupportSessionFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for TicketSupportSession.
* 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__TicketSupportSessionClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the TicketSupportSession model
*/
interface TicketSupportSessionFieldRefs {
readonly id: FieldRef<"TicketSupportSession", 'String'>
readonly guildId: FieldRef<"TicketSupportSession", 'String'>
readonly userId: FieldRef<"TicketSupportSession", 'String'>
readonly roleId: FieldRef<"TicketSupportSession", 'String'>
readonly startedAt: FieldRef<"TicketSupportSession", 'DateTime'>
readonly endedAt: FieldRef<"TicketSupportSession", 'DateTime'>
readonly durationSeconds: FieldRef<"TicketSupportSession", 'Int'>
}
// Custom InputTypes
/**
* TicketSupportSession findUnique
*/
export type TicketSupportSessionFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TicketSupportSession
*/
select?: TicketSupportSessionSelect<ExtArgs> | null
/**
* Filter, which TicketSupportSession to fetch.
*/
where: TicketSupportSessionWhereUniqueInput
}
/**
* TicketSupportSession findUniqueOrThrow
*/
export type TicketSupportSessionFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TicketSupportSession
*/
select?: TicketSupportSessionSelect<ExtArgs> | null
/**
* Filter, which TicketSupportSession to fetch.
*/
where: TicketSupportSessionWhereUniqueInput
}
/**
* TicketSupportSession findFirst
*/
export type TicketSupportSessionFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TicketSupportSession
*/
select?: TicketSupportSessionSelect<ExtArgs> | null
/**
* Filter, which TicketSupportSession to fetch.
*/
where?: TicketSupportSessionWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of TicketSupportSessions to fetch.
*/
orderBy?: TicketSupportSessionOrderByWithRelationInput | TicketSupportSessionOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for TicketSupportSessions.
*/
cursor?: TicketSupportSessionWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` TicketSupportSessions 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` TicketSupportSessions.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of TicketSupportSessions.
*/
distinct?: TicketSupportSessionScalarFieldEnum | TicketSupportSessionScalarFieldEnum[]
}
/**
* TicketSupportSession findFirstOrThrow
*/
export type TicketSupportSessionFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TicketSupportSession
*/
select?: TicketSupportSessionSelect<ExtArgs> | null
/**
* Filter, which TicketSupportSession to fetch.
*/
where?: TicketSupportSessionWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of TicketSupportSessions to fetch.
*/
orderBy?: TicketSupportSessionOrderByWithRelationInput | TicketSupportSessionOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for TicketSupportSessions.
*/
cursor?: TicketSupportSessionWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` TicketSupportSessions 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` TicketSupportSessions.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of TicketSupportSessions.
*/
distinct?: TicketSupportSessionScalarFieldEnum | TicketSupportSessionScalarFieldEnum[]
}
/**
* TicketSupportSession findMany
*/
export type TicketSupportSessionFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TicketSupportSession
*/
select?: TicketSupportSessionSelect<ExtArgs> | null
/**
* Filter, which TicketSupportSessions to fetch.
*/
where?: TicketSupportSessionWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of TicketSupportSessions to fetch.
*/
orderBy?: TicketSupportSessionOrderByWithRelationInput | TicketSupportSessionOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing TicketSupportSessions.
*/
cursor?: TicketSupportSessionWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` TicketSupportSessions 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` TicketSupportSessions.
*/
skip?: number
distinct?: TicketSupportSessionScalarFieldEnum | TicketSupportSessionScalarFieldEnum[]
}
/**
* TicketSupportSession create
*/
export type TicketSupportSessionCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TicketSupportSession
*/
select?: TicketSupportSessionSelect<ExtArgs> | null
/**
* The data needed to create a TicketSupportSession.
*/
data: XOR<TicketSupportSessionCreateInput, TicketSupportSessionUncheckedCreateInput>
}
/**
* TicketSupportSession createMany
*/
export type TicketSupportSessionCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many TicketSupportSessions.
*/
data: TicketSupportSessionCreateManyInput | TicketSupportSessionCreateManyInput[]
skipDuplicates?: boolean
}
/**
* TicketSupportSession createManyAndReturn
*/
export type TicketSupportSessionCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TicketSupportSession
*/
select?: TicketSupportSessionSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many TicketSupportSessions.
*/
data: TicketSupportSessionCreateManyInput | TicketSupportSessionCreateManyInput[]
skipDuplicates?: boolean
}
/**
* TicketSupportSession update
*/
export type TicketSupportSessionUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TicketSupportSession
*/
select?: TicketSupportSessionSelect<ExtArgs> | null
/**
* The data needed to update a TicketSupportSession.
*/
data: XOR<TicketSupportSessionUpdateInput, TicketSupportSessionUncheckedUpdateInput>
/**
* Choose, which TicketSupportSession to update.
*/
where: TicketSupportSessionWhereUniqueInput
}
/**
* TicketSupportSession updateMany
*/
export type TicketSupportSessionUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update TicketSupportSessions.
*/
data: XOR<TicketSupportSessionUpdateManyMutationInput, TicketSupportSessionUncheckedUpdateManyInput>
/**
* Filter which TicketSupportSessions to update
*/
where?: TicketSupportSessionWhereInput
}
/**
* TicketSupportSession upsert
*/
export type TicketSupportSessionUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TicketSupportSession
*/
select?: TicketSupportSessionSelect<ExtArgs> | null
/**
* The filter to search for the TicketSupportSession to update in case it exists.
*/
where: TicketSupportSessionWhereUniqueInput
/**
* In case the TicketSupportSession found by the `where` argument doesn't exist, create a new TicketSupportSession with this data.
*/
create: XOR<TicketSupportSessionCreateInput, TicketSupportSessionUncheckedCreateInput>
/**
* In case the TicketSupportSession was found with the provided `where` argument, update it with this data.
*/
update: XOR<TicketSupportSessionUpdateInput, TicketSupportSessionUncheckedUpdateInput>
}
/**
* TicketSupportSession delete
*/
export type TicketSupportSessionDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TicketSupportSession
*/
select?: TicketSupportSessionSelect<ExtArgs> | null
/**
* Filter which TicketSupportSession to delete.
*/
where: TicketSupportSessionWhereUniqueInput
}
/**
* TicketSupportSession deleteMany
*/
export type TicketSupportSessionDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which TicketSupportSessions to delete
*/
where?: TicketSupportSessionWhereInput
}
/**
* TicketSupportSession without action
*/
export type TicketSupportSessionDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TicketSupportSession
*/
select?: TicketSupportSessionSelect<ExtArgs> | null
}
/**
* Model Birthday
*/
export type AggregateBirthday = {
_count: BirthdayCountAggregateOutputType | null
_min: BirthdayMinAggregateOutputType | null
_max: BirthdayMaxAggregateOutputType | null
}
export type BirthdayMinAggregateOutputType = {
id: string | null
userId: string | null
guildId: string | null
birthDate: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type BirthdayMaxAggregateOutputType = {
id: string | null
userId: string | null
guildId: string | null
birthDate: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type BirthdayCountAggregateOutputType = {
id: number
userId: number
guildId: number
birthDate: number
createdAt: number
updatedAt: number
_all: number
}
export type BirthdayMinAggregateInputType = {
id?: true
userId?: true
guildId?: true
birthDate?: true
createdAt?: true
updatedAt?: true
}
export type BirthdayMaxAggregateInputType = {
id?: true
userId?: true
guildId?: true
birthDate?: true
createdAt?: true
updatedAt?: true
}
export type BirthdayCountAggregateInputType = {
id?: true
userId?: true
guildId?: true
birthDate?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type BirthdayAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Birthday to aggregate.
*/
where?: BirthdayWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Birthdays to fetch.
*/
orderBy?: BirthdayOrderByWithRelationInput | BirthdayOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: BirthdayWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Birthdays 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` Birthdays.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned Birthdays
**/
_count?: true | BirthdayCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: BirthdayMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: BirthdayMaxAggregateInputType
}
export type GetBirthdayAggregateType<T extends BirthdayAggregateArgs> = {
[P in keyof T & keyof AggregateBirthday]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateBirthday[P]>
: GetScalarType<T[P], AggregateBirthday[P]>
}
export type BirthdayGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: BirthdayWhereInput
orderBy?: BirthdayOrderByWithAggregationInput | BirthdayOrderByWithAggregationInput[]
by: BirthdayScalarFieldEnum[] | BirthdayScalarFieldEnum
having?: BirthdayScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: BirthdayCountAggregateInputType | true
_min?: BirthdayMinAggregateInputType
_max?: BirthdayMaxAggregateInputType
}
export type BirthdayGroupByOutputType = {
id: string
userId: string
guildId: string
birthDate: string
createdAt: Date
updatedAt: Date
_count: BirthdayCountAggregateOutputType | null
_min: BirthdayMinAggregateOutputType | null
_max: BirthdayMaxAggregateOutputType | null
}
type GetBirthdayGroupByPayload<T extends BirthdayGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<BirthdayGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof BirthdayGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], BirthdayGroupByOutputType[P]>
: GetScalarType<T[P], BirthdayGroupByOutputType[P]>
}
>
>
export type BirthdaySelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
userId?: boolean
guildId?: boolean
birthDate?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["birthday"]>
export type BirthdaySelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
userId?: boolean
guildId?: boolean
birthDate?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["birthday"]>
export type BirthdaySelectScalar = {
id?: boolean
userId?: boolean
guildId?: boolean
birthDate?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type $BirthdayPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "Birthday"
objects: {}
scalars: $Extensions.GetPayloadResult<{
id: string
userId: string
guildId: string
birthDate: string
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["birthday"]>
composites: {}
}
type BirthdayGetPayload<S extends boolean | null | undefined | BirthdayDefaultArgs> = $Result.GetResult<Prisma.$BirthdayPayload, S>
type BirthdayCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<BirthdayFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: BirthdayCountAggregateInputType | true
}
export interface BirthdayDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Birthday'], meta: { name: 'Birthday' } }
/**
* Find zero or one Birthday that matches the filter.
* @param {BirthdayFindUniqueArgs} args - Arguments to find a Birthday
* @example
* // Get one Birthday
* const birthday = await prisma.birthday.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends BirthdayFindUniqueArgs>(args: SelectSubset<T, BirthdayFindUniqueArgs<ExtArgs>>): Prisma__BirthdayClient<$Result.GetResult<Prisma.$BirthdayPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one Birthday that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {BirthdayFindUniqueOrThrowArgs} args - Arguments to find a Birthday
* @example
* // Get one Birthday
* const birthday = await prisma.birthday.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends BirthdayFindUniqueOrThrowArgs>(args: SelectSubset<T, BirthdayFindUniqueOrThrowArgs<ExtArgs>>): Prisma__BirthdayClient<$Result.GetResult<Prisma.$BirthdayPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first Birthday 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 {BirthdayFindFirstArgs} args - Arguments to find a Birthday
* @example
* // Get one Birthday
* const birthday = await prisma.birthday.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends BirthdayFindFirstArgs>(args?: SelectSubset<T, BirthdayFindFirstArgs<ExtArgs>>): Prisma__BirthdayClient<$Result.GetResult<Prisma.$BirthdayPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first Birthday 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 {BirthdayFindFirstOrThrowArgs} args - Arguments to find a Birthday
* @example
* // Get one Birthday
* const birthday = await prisma.birthday.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends BirthdayFindFirstOrThrowArgs>(args?: SelectSubset<T, BirthdayFindFirstOrThrowArgs<ExtArgs>>): Prisma__BirthdayClient<$Result.GetResult<Prisma.$BirthdayPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more Birthdays 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 {BirthdayFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Birthdays
* const birthdays = await prisma.birthday.findMany()
*
* // Get first 10 Birthdays
* const birthdays = await prisma.birthday.findMany({ take: 10 })
*
* // Only select the `id`
* const birthdayWithIdOnly = await prisma.birthday.findMany({ select: { id: true } })
*
*/
findMany<T extends BirthdayFindManyArgs>(args?: SelectSubset<T, BirthdayFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$BirthdayPayload<ExtArgs>, T, "findMany">>
/**
* Create a Birthday.
* @param {BirthdayCreateArgs} args - Arguments to create a Birthday.
* @example
* // Create one Birthday
* const Birthday = await prisma.birthday.create({
* data: {
* // ... data to create a Birthday
* }
* })
*
*/
create<T extends BirthdayCreateArgs>(args: SelectSubset<T, BirthdayCreateArgs<ExtArgs>>): Prisma__BirthdayClient<$Result.GetResult<Prisma.$BirthdayPayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many Birthdays.
* @param {BirthdayCreateManyArgs} args - Arguments to create many Birthdays.
* @example
* // Create many Birthdays
* const birthday = await prisma.birthday.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends BirthdayCreateManyArgs>(args?: SelectSubset<T, BirthdayCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many Birthdays and returns the data saved in the database.
* @param {BirthdayCreateManyAndReturnArgs} args - Arguments to create many Birthdays.
* @example
* // Create many Birthdays
* const birthday = await prisma.birthday.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Birthdays and only return the `id`
* const birthdayWithIdOnly = await prisma.birthday.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 BirthdayCreateManyAndReturnArgs>(args?: SelectSubset<T, BirthdayCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$BirthdayPayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a Birthday.
* @param {BirthdayDeleteArgs} args - Arguments to delete one Birthday.
* @example
* // Delete one Birthday
* const Birthday = await prisma.birthday.delete({
* where: {
* // ... filter to delete one Birthday
* }
* })
*
*/
delete<T extends BirthdayDeleteArgs>(args: SelectSubset<T, BirthdayDeleteArgs<ExtArgs>>): Prisma__BirthdayClient<$Result.GetResult<Prisma.$BirthdayPayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one Birthday.
* @param {BirthdayUpdateArgs} args - Arguments to update one Birthday.
* @example
* // Update one Birthday
* const birthday = await prisma.birthday.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends BirthdayUpdateArgs>(args: SelectSubset<T, BirthdayUpdateArgs<ExtArgs>>): Prisma__BirthdayClient<$Result.GetResult<Prisma.$BirthdayPayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more Birthdays.
* @param {BirthdayDeleteManyArgs} args - Arguments to filter Birthdays to delete.
* @example
* // Delete a few Birthdays
* const { count } = await prisma.birthday.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends BirthdayDeleteManyArgs>(args?: SelectSubset<T, BirthdayDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Birthdays.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {BirthdayUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Birthdays
* const birthday = await prisma.birthday.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends BirthdayUpdateManyArgs>(args: SelectSubset<T, BirthdayUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one Birthday.
* @param {BirthdayUpsertArgs} args - Arguments to update or create a Birthday.
* @example
* // Update or create a Birthday
* const birthday = await prisma.birthday.upsert({
* create: {
* // ... data to create a Birthday
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Birthday we want to update
* }
* })
*/
upsert<T extends BirthdayUpsertArgs>(args: SelectSubset<T, BirthdayUpsertArgs<ExtArgs>>): Prisma__BirthdayClient<$Result.GetResult<Prisma.$BirthdayPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of Birthdays.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {BirthdayCountArgs} args - Arguments to filter Birthdays to count.
* @example
* // Count the number of Birthdays
* const count = await prisma.birthday.count({
* where: {
* // ... the filter for the Birthdays we want to count
* }
* })
**/
count<T extends BirthdayCountArgs>(
args?: Subset<T, BirthdayCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], BirthdayCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Birthday.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {BirthdayAggregateArgs} 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 BirthdayAggregateArgs>(args: Subset<T, BirthdayAggregateArgs>): Prisma.PrismaPromise<GetBirthdayAggregateType<T>>
/**
* Group by Birthday.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {BirthdayGroupByArgs} 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 BirthdayGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: BirthdayGroupByArgs['orderBy'] }
: { orderBy?: BirthdayGroupByArgs['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, BirthdayGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetBirthdayGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the Birthday model
*/
readonly fields: BirthdayFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for Birthday.
* 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__BirthdayClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the Birthday model
*/
interface BirthdayFieldRefs {
readonly id: FieldRef<"Birthday", 'String'>
readonly userId: FieldRef<"Birthday", 'String'>
readonly guildId: FieldRef<"Birthday", 'String'>
readonly birthDate: FieldRef<"Birthday", 'String'>
readonly createdAt: FieldRef<"Birthday", 'DateTime'>
readonly updatedAt: FieldRef<"Birthday", 'DateTime'>
}
// Custom InputTypes
/**
* Birthday findUnique
*/
export type BirthdayFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Birthday
*/
select?: BirthdaySelect<ExtArgs> | null
/**
* Filter, which Birthday to fetch.
*/
where: BirthdayWhereUniqueInput
}
/**
* Birthday findUniqueOrThrow
*/
export type BirthdayFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Birthday
*/
select?: BirthdaySelect<ExtArgs> | null
/**
* Filter, which Birthday to fetch.
*/
where: BirthdayWhereUniqueInput
}
/**
* Birthday findFirst
*/
export type BirthdayFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Birthday
*/
select?: BirthdaySelect<ExtArgs> | null
/**
* Filter, which Birthday to fetch.
*/
where?: BirthdayWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Birthdays to fetch.
*/
orderBy?: BirthdayOrderByWithRelationInput | BirthdayOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Birthdays.
*/
cursor?: BirthdayWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Birthdays 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` Birthdays.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Birthdays.
*/
distinct?: BirthdayScalarFieldEnum | BirthdayScalarFieldEnum[]
}
/**
* Birthday findFirstOrThrow
*/
export type BirthdayFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Birthday
*/
select?: BirthdaySelect<ExtArgs> | null
/**
* Filter, which Birthday to fetch.
*/
where?: BirthdayWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Birthdays to fetch.
*/
orderBy?: BirthdayOrderByWithRelationInput | BirthdayOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Birthdays.
*/
cursor?: BirthdayWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Birthdays 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` Birthdays.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Birthdays.
*/
distinct?: BirthdayScalarFieldEnum | BirthdayScalarFieldEnum[]
}
/**
* Birthday findMany
*/
export type BirthdayFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Birthday
*/
select?: BirthdaySelect<ExtArgs> | null
/**
* Filter, which Birthdays to fetch.
*/
where?: BirthdayWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Birthdays to fetch.
*/
orderBy?: BirthdayOrderByWithRelationInput | BirthdayOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing Birthdays.
*/
cursor?: BirthdayWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Birthdays 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` Birthdays.
*/
skip?: number
distinct?: BirthdayScalarFieldEnum | BirthdayScalarFieldEnum[]
}
/**
* Birthday create
*/
export type BirthdayCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Birthday
*/
select?: BirthdaySelect<ExtArgs> | null
/**
* The data needed to create a Birthday.
*/
data: XOR<BirthdayCreateInput, BirthdayUncheckedCreateInput>
}
/**
* Birthday createMany
*/
export type BirthdayCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many Birthdays.
*/
data: BirthdayCreateManyInput | BirthdayCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Birthday createManyAndReturn
*/
export type BirthdayCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Birthday
*/
select?: BirthdaySelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many Birthdays.
*/
data: BirthdayCreateManyInput | BirthdayCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Birthday update
*/
export type BirthdayUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Birthday
*/
select?: BirthdaySelect<ExtArgs> | null
/**
* The data needed to update a Birthday.
*/
data: XOR<BirthdayUpdateInput, BirthdayUncheckedUpdateInput>
/**
* Choose, which Birthday to update.
*/
where: BirthdayWhereUniqueInput
}
/**
* Birthday updateMany
*/
export type BirthdayUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update Birthdays.
*/
data: XOR<BirthdayUpdateManyMutationInput, BirthdayUncheckedUpdateManyInput>
/**
* Filter which Birthdays to update
*/
where?: BirthdayWhereInput
}
/**
* Birthday upsert
*/
export type BirthdayUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Birthday
*/
select?: BirthdaySelect<ExtArgs> | null
/**
* The filter to search for the Birthday to update in case it exists.
*/
where: BirthdayWhereUniqueInput
/**
* In case the Birthday found by the `where` argument doesn't exist, create a new Birthday with this data.
*/
create: XOR<BirthdayCreateInput, BirthdayUncheckedCreateInput>
/**
* In case the Birthday was found with the provided `where` argument, update it with this data.
*/
update: XOR<BirthdayUpdateInput, BirthdayUncheckedUpdateInput>
}
/**
* Birthday delete
*/
export type BirthdayDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Birthday
*/
select?: BirthdaySelect<ExtArgs> | null
/**
* Filter which Birthday to delete.
*/
where: BirthdayWhereUniqueInput
}
/**
* Birthday deleteMany
*/
export type BirthdayDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Birthdays to delete
*/
where?: BirthdayWhereInput
}
/**
* Birthday without action
*/
export type BirthdayDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Birthday
*/
select?: BirthdaySelect<ExtArgs> | null
}
/**
* Model ReactionRoleSet
*/
export type AggregateReactionRoleSet = {
_count: ReactionRoleSetCountAggregateOutputType | null
_min: ReactionRoleSetMinAggregateOutputType | null
_max: ReactionRoleSetMaxAggregateOutputType | null
}
export type ReactionRoleSetMinAggregateOutputType = {
id: string | null
guildId: string | null
channelId: string | null
messageId: string | null
title: string | null
description: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type ReactionRoleSetMaxAggregateOutputType = {
id: string | null
guildId: string | null
channelId: string | null
messageId: string | null
title: string | null
description: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type ReactionRoleSetCountAggregateOutputType = {
id: number
guildId: number
channelId: number
messageId: number
title: number
description: number
entries: number
createdAt: number
updatedAt: number
_all: number
}
export type ReactionRoleSetMinAggregateInputType = {
id?: true
guildId?: true
channelId?: true
messageId?: true
title?: true
description?: true
createdAt?: true
updatedAt?: true
}
export type ReactionRoleSetMaxAggregateInputType = {
id?: true
guildId?: true
channelId?: true
messageId?: true
title?: true
description?: true
createdAt?: true
updatedAt?: true
}
export type ReactionRoleSetCountAggregateInputType = {
id?: true
guildId?: true
channelId?: true
messageId?: true
title?: true
description?: true
entries?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type ReactionRoleSetAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which ReactionRoleSet to aggregate.
*/
where?: ReactionRoleSetWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of ReactionRoleSets to fetch.
*/
orderBy?: ReactionRoleSetOrderByWithRelationInput | ReactionRoleSetOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: ReactionRoleSetWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` ReactionRoleSets 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` ReactionRoleSets.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned ReactionRoleSets
**/
_count?: true | ReactionRoleSetCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: ReactionRoleSetMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: ReactionRoleSetMaxAggregateInputType
}
export type GetReactionRoleSetAggregateType<T extends ReactionRoleSetAggregateArgs> = {
[P in keyof T & keyof AggregateReactionRoleSet]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateReactionRoleSet[P]>
: GetScalarType<T[P], AggregateReactionRoleSet[P]>
}
export type ReactionRoleSetGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: ReactionRoleSetWhereInput
orderBy?: ReactionRoleSetOrderByWithAggregationInput | ReactionRoleSetOrderByWithAggregationInput[]
by: ReactionRoleSetScalarFieldEnum[] | ReactionRoleSetScalarFieldEnum
having?: ReactionRoleSetScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: ReactionRoleSetCountAggregateInputType | true
_min?: ReactionRoleSetMinAggregateInputType
_max?: ReactionRoleSetMaxAggregateInputType
}
export type ReactionRoleSetGroupByOutputType = {
id: string
guildId: string
channelId: string
messageId: string | null
title: string | null
description: string | null
entries: JsonValue
createdAt: Date
updatedAt: Date
_count: ReactionRoleSetCountAggregateOutputType | null
_min: ReactionRoleSetMinAggregateOutputType | null
_max: ReactionRoleSetMaxAggregateOutputType | null
}
type GetReactionRoleSetGroupByPayload<T extends ReactionRoleSetGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<ReactionRoleSetGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof ReactionRoleSetGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], ReactionRoleSetGroupByOutputType[P]>
: GetScalarType<T[P], ReactionRoleSetGroupByOutputType[P]>
}
>
>
export type ReactionRoleSetSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
guildId?: boolean
channelId?: boolean
messageId?: boolean
title?: boolean
description?: boolean
entries?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["reactionRoleSet"]>
export type ReactionRoleSetSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
guildId?: boolean
channelId?: boolean
messageId?: boolean
title?: boolean
description?: boolean
entries?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["reactionRoleSet"]>
export type ReactionRoleSetSelectScalar = {
id?: boolean
guildId?: boolean
channelId?: boolean
messageId?: boolean
title?: boolean
description?: boolean
entries?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type $ReactionRoleSetPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "ReactionRoleSet"
objects: {}
scalars: $Extensions.GetPayloadResult<{
id: string
guildId: string
channelId: string
messageId: string | null
title: string | null
description: string | null
entries: Prisma.JsonValue
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["reactionRoleSet"]>
composites: {}
}
type ReactionRoleSetGetPayload<S extends boolean | null | undefined | ReactionRoleSetDefaultArgs> = $Result.GetResult<Prisma.$ReactionRoleSetPayload, S>
type ReactionRoleSetCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<ReactionRoleSetFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: ReactionRoleSetCountAggregateInputType | true
}
export interface ReactionRoleSetDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ReactionRoleSet'], meta: { name: 'ReactionRoleSet' } }
/**
* Find zero or one ReactionRoleSet that matches the filter.
* @param {ReactionRoleSetFindUniqueArgs} args - Arguments to find a ReactionRoleSet
* @example
* // Get one ReactionRoleSet
* const reactionRoleSet = await prisma.reactionRoleSet.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends ReactionRoleSetFindUniqueArgs>(args: SelectSubset<T, ReactionRoleSetFindUniqueArgs<ExtArgs>>): Prisma__ReactionRoleSetClient<$Result.GetResult<Prisma.$ReactionRoleSetPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one ReactionRoleSet that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {ReactionRoleSetFindUniqueOrThrowArgs} args - Arguments to find a ReactionRoleSet
* @example
* // Get one ReactionRoleSet
* const reactionRoleSet = await prisma.reactionRoleSet.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends ReactionRoleSetFindUniqueOrThrowArgs>(args: SelectSubset<T, ReactionRoleSetFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ReactionRoleSetClient<$Result.GetResult<Prisma.$ReactionRoleSetPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first ReactionRoleSet 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 {ReactionRoleSetFindFirstArgs} args - Arguments to find a ReactionRoleSet
* @example
* // Get one ReactionRoleSet
* const reactionRoleSet = await prisma.reactionRoleSet.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends ReactionRoleSetFindFirstArgs>(args?: SelectSubset<T, ReactionRoleSetFindFirstArgs<ExtArgs>>): Prisma__ReactionRoleSetClient<$Result.GetResult<Prisma.$ReactionRoleSetPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first ReactionRoleSet 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 {ReactionRoleSetFindFirstOrThrowArgs} args - Arguments to find a ReactionRoleSet
* @example
* // Get one ReactionRoleSet
* const reactionRoleSet = await prisma.reactionRoleSet.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends ReactionRoleSetFindFirstOrThrowArgs>(args?: SelectSubset<T, ReactionRoleSetFindFirstOrThrowArgs<ExtArgs>>): Prisma__ReactionRoleSetClient<$Result.GetResult<Prisma.$ReactionRoleSetPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more ReactionRoleSets 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 {ReactionRoleSetFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all ReactionRoleSets
* const reactionRoleSets = await prisma.reactionRoleSet.findMany()
*
* // Get first 10 ReactionRoleSets
* const reactionRoleSets = await prisma.reactionRoleSet.findMany({ take: 10 })
*
* // Only select the `id`
* const reactionRoleSetWithIdOnly = await prisma.reactionRoleSet.findMany({ select: { id: true } })
*
*/
findMany<T extends ReactionRoleSetFindManyArgs>(args?: SelectSubset<T, ReactionRoleSetFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ReactionRoleSetPayload<ExtArgs>, T, "findMany">>
/**
* Create a ReactionRoleSet.
* @param {ReactionRoleSetCreateArgs} args - Arguments to create a ReactionRoleSet.
* @example
* // Create one ReactionRoleSet
* const ReactionRoleSet = await prisma.reactionRoleSet.create({
* data: {
* // ... data to create a ReactionRoleSet
* }
* })
*
*/
create<T extends ReactionRoleSetCreateArgs>(args: SelectSubset<T, ReactionRoleSetCreateArgs<ExtArgs>>): Prisma__ReactionRoleSetClient<$Result.GetResult<Prisma.$ReactionRoleSetPayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many ReactionRoleSets.
* @param {ReactionRoleSetCreateManyArgs} args - Arguments to create many ReactionRoleSets.
* @example
* // Create many ReactionRoleSets
* const reactionRoleSet = await prisma.reactionRoleSet.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends ReactionRoleSetCreateManyArgs>(args?: SelectSubset<T, ReactionRoleSetCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many ReactionRoleSets and returns the data saved in the database.
* @param {ReactionRoleSetCreateManyAndReturnArgs} args - Arguments to create many ReactionRoleSets.
* @example
* // Create many ReactionRoleSets
* const reactionRoleSet = await prisma.reactionRoleSet.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many ReactionRoleSets and only return the `id`
* const reactionRoleSetWithIdOnly = await prisma.reactionRoleSet.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 ReactionRoleSetCreateManyAndReturnArgs>(args?: SelectSubset<T, ReactionRoleSetCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ReactionRoleSetPayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a ReactionRoleSet.
* @param {ReactionRoleSetDeleteArgs} args - Arguments to delete one ReactionRoleSet.
* @example
* // Delete one ReactionRoleSet
* const ReactionRoleSet = await prisma.reactionRoleSet.delete({
* where: {
* // ... filter to delete one ReactionRoleSet
* }
* })
*
*/
delete<T extends ReactionRoleSetDeleteArgs>(args: SelectSubset<T, ReactionRoleSetDeleteArgs<ExtArgs>>): Prisma__ReactionRoleSetClient<$Result.GetResult<Prisma.$ReactionRoleSetPayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one ReactionRoleSet.
* @param {ReactionRoleSetUpdateArgs} args - Arguments to update one ReactionRoleSet.
* @example
* // Update one ReactionRoleSet
* const reactionRoleSet = await prisma.reactionRoleSet.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends ReactionRoleSetUpdateArgs>(args: SelectSubset<T, ReactionRoleSetUpdateArgs<ExtArgs>>): Prisma__ReactionRoleSetClient<$Result.GetResult<Prisma.$ReactionRoleSetPayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more ReactionRoleSets.
* @param {ReactionRoleSetDeleteManyArgs} args - Arguments to filter ReactionRoleSets to delete.
* @example
* // Delete a few ReactionRoleSets
* const { count } = await prisma.reactionRoleSet.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends ReactionRoleSetDeleteManyArgs>(args?: SelectSubset<T, ReactionRoleSetDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more ReactionRoleSets.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ReactionRoleSetUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many ReactionRoleSets
* const reactionRoleSet = await prisma.reactionRoleSet.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends ReactionRoleSetUpdateManyArgs>(args: SelectSubset<T, ReactionRoleSetUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one ReactionRoleSet.
* @param {ReactionRoleSetUpsertArgs} args - Arguments to update or create a ReactionRoleSet.
* @example
* // Update or create a ReactionRoleSet
* const reactionRoleSet = await prisma.reactionRoleSet.upsert({
* create: {
* // ... data to create a ReactionRoleSet
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the ReactionRoleSet we want to update
* }
* })
*/
upsert<T extends ReactionRoleSetUpsertArgs>(args: SelectSubset<T, ReactionRoleSetUpsertArgs<ExtArgs>>): Prisma__ReactionRoleSetClient<$Result.GetResult<Prisma.$ReactionRoleSetPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of ReactionRoleSets.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ReactionRoleSetCountArgs} args - Arguments to filter ReactionRoleSets to count.
* @example
* // Count the number of ReactionRoleSets
* const count = await prisma.reactionRoleSet.count({
* where: {
* // ... the filter for the ReactionRoleSets we want to count
* }
* })
**/
count<T extends ReactionRoleSetCountArgs>(
args?: Subset<T, ReactionRoleSetCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], ReactionRoleSetCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a ReactionRoleSet.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ReactionRoleSetAggregateArgs} 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 ReactionRoleSetAggregateArgs>(args: Subset<T, ReactionRoleSetAggregateArgs>): Prisma.PrismaPromise<GetReactionRoleSetAggregateType<T>>
/**
* Group by ReactionRoleSet.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ReactionRoleSetGroupByArgs} 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 ReactionRoleSetGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: ReactionRoleSetGroupByArgs['orderBy'] }
: { orderBy?: ReactionRoleSetGroupByArgs['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, ReactionRoleSetGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetReactionRoleSetGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the ReactionRoleSet model
*/
readonly fields: ReactionRoleSetFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for ReactionRoleSet.
* 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__ReactionRoleSetClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the ReactionRoleSet model
*/
interface ReactionRoleSetFieldRefs {
readonly id: FieldRef<"ReactionRoleSet", 'String'>
readonly guildId: FieldRef<"ReactionRoleSet", 'String'>
readonly channelId: FieldRef<"ReactionRoleSet", 'String'>
readonly messageId: FieldRef<"ReactionRoleSet", 'String'>
readonly title: FieldRef<"ReactionRoleSet", 'String'>
readonly description: FieldRef<"ReactionRoleSet", 'String'>
readonly entries: FieldRef<"ReactionRoleSet", 'Json'>
readonly createdAt: FieldRef<"ReactionRoleSet", 'DateTime'>
readonly updatedAt: FieldRef<"ReactionRoleSet", 'DateTime'>
}
// Custom InputTypes
/**
* ReactionRoleSet findUnique
*/
export type ReactionRoleSetFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ReactionRoleSet
*/
select?: ReactionRoleSetSelect<ExtArgs> | null
/**
* Filter, which ReactionRoleSet to fetch.
*/
where: ReactionRoleSetWhereUniqueInput
}
/**
* ReactionRoleSet findUniqueOrThrow
*/
export type ReactionRoleSetFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ReactionRoleSet
*/
select?: ReactionRoleSetSelect<ExtArgs> | null
/**
* Filter, which ReactionRoleSet to fetch.
*/
where: ReactionRoleSetWhereUniqueInput
}
/**
* ReactionRoleSet findFirst
*/
export type ReactionRoleSetFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ReactionRoleSet
*/
select?: ReactionRoleSetSelect<ExtArgs> | null
/**
* Filter, which ReactionRoleSet to fetch.
*/
where?: ReactionRoleSetWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of ReactionRoleSets to fetch.
*/
orderBy?: ReactionRoleSetOrderByWithRelationInput | ReactionRoleSetOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for ReactionRoleSets.
*/
cursor?: ReactionRoleSetWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` ReactionRoleSets 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` ReactionRoleSets.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of ReactionRoleSets.
*/
distinct?: ReactionRoleSetScalarFieldEnum | ReactionRoleSetScalarFieldEnum[]
}
/**
* ReactionRoleSet findFirstOrThrow
*/
export type ReactionRoleSetFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ReactionRoleSet
*/
select?: ReactionRoleSetSelect<ExtArgs> | null
/**
* Filter, which ReactionRoleSet to fetch.
*/
where?: ReactionRoleSetWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of ReactionRoleSets to fetch.
*/
orderBy?: ReactionRoleSetOrderByWithRelationInput | ReactionRoleSetOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for ReactionRoleSets.
*/
cursor?: ReactionRoleSetWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` ReactionRoleSets 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` ReactionRoleSets.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of ReactionRoleSets.
*/
distinct?: ReactionRoleSetScalarFieldEnum | ReactionRoleSetScalarFieldEnum[]
}
/**
* ReactionRoleSet findMany
*/
export type ReactionRoleSetFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ReactionRoleSet
*/
select?: ReactionRoleSetSelect<ExtArgs> | null
/**
* Filter, which ReactionRoleSets to fetch.
*/
where?: ReactionRoleSetWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of ReactionRoleSets to fetch.
*/
orderBy?: ReactionRoleSetOrderByWithRelationInput | ReactionRoleSetOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing ReactionRoleSets.
*/
cursor?: ReactionRoleSetWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` ReactionRoleSets 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` ReactionRoleSets.
*/
skip?: number
distinct?: ReactionRoleSetScalarFieldEnum | ReactionRoleSetScalarFieldEnum[]
}
/**
* ReactionRoleSet create
*/
export type ReactionRoleSetCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ReactionRoleSet
*/
select?: ReactionRoleSetSelect<ExtArgs> | null
/**
* The data needed to create a ReactionRoleSet.
*/
data: XOR<ReactionRoleSetCreateInput, ReactionRoleSetUncheckedCreateInput>
}
/**
* ReactionRoleSet createMany
*/
export type ReactionRoleSetCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many ReactionRoleSets.
*/
data: ReactionRoleSetCreateManyInput | ReactionRoleSetCreateManyInput[]
skipDuplicates?: boolean
}
/**
* ReactionRoleSet createManyAndReturn
*/
export type ReactionRoleSetCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ReactionRoleSet
*/
select?: ReactionRoleSetSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many ReactionRoleSets.
*/
data: ReactionRoleSetCreateManyInput | ReactionRoleSetCreateManyInput[]
skipDuplicates?: boolean
}
/**
* ReactionRoleSet update
*/
export type ReactionRoleSetUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ReactionRoleSet
*/
select?: ReactionRoleSetSelect<ExtArgs> | null
/**
* The data needed to update a ReactionRoleSet.
*/
data: XOR<ReactionRoleSetUpdateInput, ReactionRoleSetUncheckedUpdateInput>
/**
* Choose, which ReactionRoleSet to update.
*/
where: ReactionRoleSetWhereUniqueInput
}
/**
* ReactionRoleSet updateMany
*/
export type ReactionRoleSetUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update ReactionRoleSets.
*/
data: XOR<ReactionRoleSetUpdateManyMutationInput, ReactionRoleSetUncheckedUpdateManyInput>
/**
* Filter which ReactionRoleSets to update
*/
where?: ReactionRoleSetWhereInput
}
/**
* ReactionRoleSet upsert
*/
export type ReactionRoleSetUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ReactionRoleSet
*/
select?: ReactionRoleSetSelect<ExtArgs> | null
/**
* The filter to search for the ReactionRoleSet to update in case it exists.
*/
where: ReactionRoleSetWhereUniqueInput
/**
* In case the ReactionRoleSet found by the `where` argument doesn't exist, create a new ReactionRoleSet with this data.
*/
create: XOR<ReactionRoleSetCreateInput, ReactionRoleSetUncheckedCreateInput>
/**
* In case the ReactionRoleSet was found with the provided `where` argument, update it with this data.
*/
update: XOR<ReactionRoleSetUpdateInput, ReactionRoleSetUncheckedUpdateInput>
}
/**
* ReactionRoleSet delete
*/
export type ReactionRoleSetDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ReactionRoleSet
*/
select?: ReactionRoleSetSelect<ExtArgs> | null
/**
* Filter which ReactionRoleSet to delete.
*/
where: ReactionRoleSetWhereUniqueInput
}
/**
* ReactionRoleSet deleteMany
*/
export type ReactionRoleSetDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which ReactionRoleSets to delete
*/
where?: ReactionRoleSetWhereInput
}
/**
* ReactionRoleSet without action
*/
export type ReactionRoleSetDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ReactionRoleSet
*/
select?: ReactionRoleSetSelect<ExtArgs> | null
}
/**
* Model Event
*/
export type AggregateEvent = {
_count: EventCountAggregateOutputType | null
_avg: EventAvgAggregateOutputType | null
_sum: EventSumAggregateOutputType | null
_min: EventMinAggregateOutputType | null
_max: EventMaxAggregateOutputType | null
}
export type EventAvgAggregateOutputType = {
reminderOffsetMinutes: number | null
}
export type EventSumAggregateOutputType = {
reminderOffsetMinutes: number | null
}
export type EventMinAggregateOutputType = {
id: string | null
guildId: string | null
title: string | null
description: string | null
channelId: string | null
startTime: Date | null
repeatType: string | null
reminderOffsetMinutes: number | null
roleId: string | null
isActive: boolean | null
lastReminderAt: Date | null
createdAt: Date | null
updatedAt: Date | null
}
export type EventMaxAggregateOutputType = {
id: string | null
guildId: string | null
title: string | null
description: string | null
channelId: string | null
startTime: Date | null
repeatType: string | null
reminderOffsetMinutes: number | null
roleId: string | null
isActive: boolean | null
lastReminderAt: Date | null
createdAt: Date | null
updatedAt: Date | null
}
export type EventCountAggregateOutputType = {
id: number
guildId: number
title: number
description: number
channelId: number
startTime: number
repeatType: number
repeatConfig: number
reminderOffsetMinutes: number
roleId: number
isActive: number
lastReminderAt: number
createdAt: number
updatedAt: number
_all: number
}
export type EventAvgAggregateInputType = {
reminderOffsetMinutes?: true
}
export type EventSumAggregateInputType = {
reminderOffsetMinutes?: true
}
export type EventMinAggregateInputType = {
id?: true
guildId?: true
title?: true
description?: true
channelId?: true
startTime?: true
repeatType?: true
reminderOffsetMinutes?: true
roleId?: true
isActive?: true
lastReminderAt?: true
createdAt?: true
updatedAt?: true
}
export type EventMaxAggregateInputType = {
id?: true
guildId?: true
title?: true
description?: true
channelId?: true
startTime?: true
repeatType?: true
reminderOffsetMinutes?: true
roleId?: true
isActive?: true
lastReminderAt?: true
createdAt?: true
updatedAt?: true
}
export type EventCountAggregateInputType = {
id?: true
guildId?: true
title?: true
description?: true
channelId?: true
startTime?: true
repeatType?: true
repeatConfig?: true
reminderOffsetMinutes?: true
roleId?: true
isActive?: true
lastReminderAt?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type EventAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Event to aggregate.
*/
where?: EventWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Events to fetch.
*/
orderBy?: EventOrderByWithRelationInput | EventOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: EventWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Events from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Events.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned Events
**/
_count?: true | EventCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: EventAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: EventSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: EventMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: EventMaxAggregateInputType
}
export type GetEventAggregateType<T extends EventAggregateArgs> = {
[P in keyof T & keyof AggregateEvent]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateEvent[P]>
: GetScalarType<T[P], AggregateEvent[P]>
}
export type EventGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: EventWhereInput
orderBy?: EventOrderByWithAggregationInput | EventOrderByWithAggregationInput[]
by: EventScalarFieldEnum[] | EventScalarFieldEnum
having?: EventScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: EventCountAggregateInputType | true
_avg?: EventAvgAggregateInputType
_sum?: EventSumAggregateInputType
_min?: EventMinAggregateInputType
_max?: EventMaxAggregateInputType
}
export type EventGroupByOutputType = {
id: string
guildId: string
title: string
description: string | null
channelId: string
startTime: Date
repeatType: string
repeatConfig: JsonValue | null
reminderOffsetMinutes: number
roleId: string | null
isActive: boolean
lastReminderAt: Date | null
createdAt: Date
updatedAt: Date
_count: EventCountAggregateOutputType | null
_avg: EventAvgAggregateOutputType | null
_sum: EventSumAggregateOutputType | null
_min: EventMinAggregateOutputType | null
_max: EventMaxAggregateOutputType | null
}
type GetEventGroupByPayload<T extends EventGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<EventGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof EventGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], EventGroupByOutputType[P]>
: GetScalarType<T[P], EventGroupByOutputType[P]>
}
>
>
export type EventSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
guildId?: boolean
title?: boolean
description?: boolean
channelId?: boolean
startTime?: boolean
repeatType?: boolean
repeatConfig?: boolean
reminderOffsetMinutes?: boolean
roleId?: boolean
isActive?: boolean
lastReminderAt?: boolean
createdAt?: boolean
updatedAt?: boolean
signups?: boolean | Event$signupsArgs<ExtArgs>
_count?: boolean | EventCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["event"]>
export type EventSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
guildId?: boolean
title?: boolean
description?: boolean
channelId?: boolean
startTime?: boolean
repeatType?: boolean
repeatConfig?: boolean
reminderOffsetMinutes?: boolean
roleId?: boolean
isActive?: boolean
lastReminderAt?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["event"]>
export type EventSelectScalar = {
id?: boolean
guildId?: boolean
title?: boolean
description?: boolean
channelId?: boolean
startTime?: boolean
repeatType?: boolean
repeatConfig?: boolean
reminderOffsetMinutes?: boolean
roleId?: boolean
isActive?: boolean
lastReminderAt?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type EventInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
signups?: boolean | Event$signupsArgs<ExtArgs>
_count?: boolean | EventCountOutputTypeDefaultArgs<ExtArgs>
}
export type EventIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {}
export type $EventPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "Event"
objects: {
signups: Prisma.$EventSignupPayload<ExtArgs>[]
}
scalars: $Extensions.GetPayloadResult<{
id: string
guildId: string
title: string
description: string | null
channelId: string
startTime: Date
repeatType: string
repeatConfig: Prisma.JsonValue | null
reminderOffsetMinutes: number
roleId: string | null
isActive: boolean
lastReminderAt: Date | null
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["event"]>
composites: {}
}
type EventGetPayload<S extends boolean | null | undefined | EventDefaultArgs> = $Result.GetResult<Prisma.$EventPayload, S>
type EventCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<EventFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: EventCountAggregateInputType | true
}
export interface EventDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Event'], meta: { name: 'Event' } }
/**
* Find zero or one Event that matches the filter.
* @param {EventFindUniqueArgs} args - Arguments to find a Event
* @example
* // Get one Event
* const event = await prisma.event.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends EventFindUniqueArgs>(args: SelectSubset<T, EventFindUniqueArgs<ExtArgs>>): Prisma__EventClient<$Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one Event that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {EventFindUniqueOrThrowArgs} args - Arguments to find a Event
* @example
* // Get one Event
* const event = await prisma.event.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends EventFindUniqueOrThrowArgs>(args: SelectSubset<T, EventFindUniqueOrThrowArgs<ExtArgs>>): Prisma__EventClient<$Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first Event that matches the filter.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {EventFindFirstArgs} args - Arguments to find a Event
* @example
* // Get one Event
* const event = await prisma.event.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends EventFindFirstArgs>(args?: SelectSubset<T, EventFindFirstArgs<ExtArgs>>): Prisma__EventClient<$Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first Event that matches the filter or
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {EventFindFirstOrThrowArgs} args - Arguments to find a Event
* @example
* // Get one Event
* const event = await prisma.event.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends EventFindFirstOrThrowArgs>(args?: SelectSubset<T, EventFindFirstOrThrowArgs<ExtArgs>>): Prisma__EventClient<$Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more Events that matches the filter.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {EventFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Events
* const events = await prisma.event.findMany()
*
* // Get first 10 Events
* const events = await prisma.event.findMany({ take: 10 })
*
* // Only select the `id`
* const eventWithIdOnly = await prisma.event.findMany({ select: { id: true } })
*
*/
findMany<T extends EventFindManyArgs>(args?: SelectSubset<T, EventFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "findMany">>
/**
* Create a Event.
* @param {EventCreateArgs} args - Arguments to create a Event.
* @example
* // Create one Event
* const Event = await prisma.event.create({
* data: {
* // ... data to create a Event
* }
* })
*
*/
create<T extends EventCreateArgs>(args: SelectSubset<T, EventCreateArgs<ExtArgs>>): Prisma__EventClient<$Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many Events.
* @param {EventCreateManyArgs} args - Arguments to create many Events.
* @example
* // Create many Events
* const event = await prisma.event.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends EventCreateManyArgs>(args?: SelectSubset<T, EventCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many Events and returns the data saved in the database.
* @param {EventCreateManyAndReturnArgs} args - Arguments to create many Events.
* @example
* // Create many Events
* const event = await prisma.event.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Events and only return the `id`
* const eventWithIdOnly = await prisma.event.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends EventCreateManyAndReturnArgs>(args?: SelectSubset<T, EventCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a Event.
* @param {EventDeleteArgs} args - Arguments to delete one Event.
* @example
* // Delete one Event
* const Event = await prisma.event.delete({
* where: {
* // ... filter to delete one Event
* }
* })
*
*/
delete<T extends EventDeleteArgs>(args: SelectSubset<T, EventDeleteArgs<ExtArgs>>): Prisma__EventClient<$Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one Event.
* @param {EventUpdateArgs} args - Arguments to update one Event.
* @example
* // Update one Event
* const event = await prisma.event.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends EventUpdateArgs>(args: SelectSubset<T, EventUpdateArgs<ExtArgs>>): Prisma__EventClient<$Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more Events.
* @param {EventDeleteManyArgs} args - Arguments to filter Events to delete.
* @example
* // Delete a few Events
* const { count } = await prisma.event.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends EventDeleteManyArgs>(args?: SelectSubset<T, EventDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Events.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {EventUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Events
* const event = await prisma.event.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends EventUpdateManyArgs>(args: SelectSubset<T, EventUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one Event.
* @param {EventUpsertArgs} args - Arguments to update or create a Event.
* @example
* // Update or create a Event
* const event = await prisma.event.upsert({
* create: {
* // ... data to create a Event
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Event we want to update
* }
* })
*/
upsert<T extends EventUpsertArgs>(args: SelectSubset<T, EventUpsertArgs<ExtArgs>>): Prisma__EventClient<$Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of Events.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {EventCountArgs} args - Arguments to filter Events to count.
* @example
* // Count the number of Events
* const count = await prisma.event.count({
* where: {
* // ... the filter for the Events we want to count
* }
* })
**/
count<T extends EventCountArgs>(
args?: Subset<T, EventCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], EventCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Event.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {EventAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
* @example
* // Ordered by age ascending
* // Where email contains prisma.io
* // Limited to the 10 users
* const aggregations = await prisma.user.aggregate({
* _avg: {
* age: true,
* },
* where: {
* email: {
* contains: "prisma.io",
* },
* },
* orderBy: {
* age: "asc",
* },
* take: 10,
* })
**/
aggregate<T extends EventAggregateArgs>(args: Subset<T, EventAggregateArgs>): Prisma.PrismaPromise<GetEventAggregateType<T>>
/**
* Group by Event.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {EventGroupByArgs} args - Group by arguments.
* @example
* // Group by city, order by createdAt, get count
* const result = await prisma.user.groupBy({
* by: ['city', 'createdAt'],
* orderBy: {
* createdAt: true
* },
* _count: {
* _all: true
* },
* })
*
**/
groupBy<
T extends EventGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: EventGroupByArgs['orderBy'] }
: { orderBy?: EventGroupByArgs['orderBy'] },
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
ByFields extends MaybeTupleToUnion<T['by']>,
ByValid extends Has<ByFields, OrderFields>,
HavingFields extends GetHavingFields<T['having']>,
HavingValid extends Has<ByFields, HavingFields>,
ByEmpty extends T['by'] extends never[] ? True : False,
InputErrors extends ByEmpty extends True
? `Error: "by" must not be empty.`
: HavingValid extends False
? {
[P in HavingFields]: P extends ByFields
? never
: P extends string
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
: [
Error,
'Field ',
P,
` in "having" needs to be provided in "by"`,
]
}[HavingFields]
: 'take' extends Keys<T>
? 'orderBy' extends Keys<T>
? ByValid extends True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
: 'Error: If you provide "take", you also need to provide "orderBy"'
: 'skip' extends Keys<T>
? 'orderBy' extends Keys<T>
? ByValid extends True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
: 'Error: If you provide "skip", you also need to provide "orderBy"'
: ByValid extends True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
>(args: SubsetIntersection<T, EventGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetEventGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the Event model
*/
readonly fields: EventFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for Event.
* Why is this prefixed with `Prisma__`?
* Because we want to prevent naming conflicts as mentioned in
* https://github.com/prisma/prisma-client-js/issues/707
*/
export interface Prisma__EventClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
signups<T extends Event$signupsArgs<ExtArgs> = {}>(args?: Subset<T, Event$signupsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EventSignupPayload<ExtArgs>, T, "findMany"> | Null>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the Event model
*/
interface EventFieldRefs {
readonly id: FieldRef<"Event", 'String'>
readonly guildId: FieldRef<"Event", 'String'>
readonly title: FieldRef<"Event", 'String'>
readonly description: FieldRef<"Event", 'String'>
readonly channelId: FieldRef<"Event", 'String'>
readonly startTime: FieldRef<"Event", 'DateTime'>
readonly repeatType: FieldRef<"Event", 'String'>
readonly repeatConfig: FieldRef<"Event", 'Json'>
readonly reminderOffsetMinutes: FieldRef<"Event", 'Int'>
readonly roleId: FieldRef<"Event", 'String'>
readonly isActive: FieldRef<"Event", 'Boolean'>
readonly lastReminderAt: FieldRef<"Event", 'DateTime'>
readonly createdAt: FieldRef<"Event", 'DateTime'>
readonly updatedAt: FieldRef<"Event", 'DateTime'>
}
// Custom InputTypes
/**
* Event findUnique
*/
export type EventFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Event
*/
select?: EventSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventInclude<ExtArgs> | null
/**
* Filter, which Event to fetch.
*/
where: EventWhereUniqueInput
}
/**
* Event findUniqueOrThrow
*/
export type EventFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Event
*/
select?: EventSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventInclude<ExtArgs> | null
/**
* Filter, which Event to fetch.
*/
where: EventWhereUniqueInput
}
/**
* Event findFirst
*/
export type EventFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Event
*/
select?: EventSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventInclude<ExtArgs> | null
/**
* Filter, which Event to fetch.
*/
where?: EventWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Events to fetch.
*/
orderBy?: EventOrderByWithRelationInput | EventOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Events.
*/
cursor?: EventWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Events from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Events.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Events.
*/
distinct?: EventScalarFieldEnum | EventScalarFieldEnum[]
}
/**
* Event findFirstOrThrow
*/
export type EventFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Event
*/
select?: EventSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventInclude<ExtArgs> | null
/**
* Filter, which Event to fetch.
*/
where?: EventWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Events to fetch.
*/
orderBy?: EventOrderByWithRelationInput | EventOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Events.
*/
cursor?: EventWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Events from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Events.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Events.
*/
distinct?: EventScalarFieldEnum | EventScalarFieldEnum[]
}
/**
* Event findMany
*/
export type EventFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Event
*/
select?: EventSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventInclude<ExtArgs> | null
/**
* Filter, which Events to fetch.
*/
where?: EventWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Events to fetch.
*/
orderBy?: EventOrderByWithRelationInput | EventOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing Events.
*/
cursor?: EventWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Events from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` Events.
*/
skip?: number
distinct?: EventScalarFieldEnum | EventScalarFieldEnum[]
}
/**
* Event create
*/
export type EventCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Event
*/
select?: EventSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventInclude<ExtArgs> | null
/**
* The data needed to create a Event.
*/
data: XOR<EventCreateInput, EventUncheckedCreateInput>
}
/**
* Event createMany
*/
export type EventCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many Events.
*/
data: EventCreateManyInput | EventCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Event createManyAndReturn
*/
export type EventCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Event
*/
select?: EventSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many Events.
*/
data: EventCreateManyInput | EventCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Event update
*/
export type EventUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Event
*/
select?: EventSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventInclude<ExtArgs> | null
/**
* The data needed to update a Event.
*/
data: XOR<EventUpdateInput, EventUncheckedUpdateInput>
/**
* Choose, which Event to update.
*/
where: EventWhereUniqueInput
}
/**
* Event updateMany
*/
export type EventUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update Events.
*/
data: XOR<EventUpdateManyMutationInput, EventUncheckedUpdateManyInput>
/**
* Filter which Events to update
*/
where?: EventWhereInput
}
/**
* Event upsert
*/
export type EventUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Event
*/
select?: EventSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventInclude<ExtArgs> | null
/**
* The filter to search for the Event to update in case it exists.
*/
where: EventWhereUniqueInput
/**
* In case the Event found by the `where` argument doesn't exist, create a new Event with this data.
*/
create: XOR<EventCreateInput, EventUncheckedCreateInput>
/**
* In case the Event was found with the provided `where` argument, update it with this data.
*/
update: XOR<EventUpdateInput, EventUncheckedUpdateInput>
}
/**
* Event delete
*/
export type EventDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Event
*/
select?: EventSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventInclude<ExtArgs> | null
/**
* Filter which Event to delete.
*/
where: EventWhereUniqueInput
}
/**
* Event deleteMany
*/
export type EventDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Events to delete
*/
where?: EventWhereInput
}
/**
* Event.signups
*/
export type Event$signupsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EventSignup
*/
select?: EventSignupSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventSignupInclude<ExtArgs> | null
where?: EventSignupWhereInput
orderBy?: EventSignupOrderByWithRelationInput | EventSignupOrderByWithRelationInput[]
cursor?: EventSignupWhereUniqueInput
take?: number
skip?: number
distinct?: EventSignupScalarFieldEnum | EventSignupScalarFieldEnum[]
}
/**
* Event without action
*/
export type EventDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Event
*/
select?: EventSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventInclude<ExtArgs> | null
}
/**
* Model EventSignup
*/
export type AggregateEventSignup = {
_count: EventSignupCountAggregateOutputType | null
_min: EventSignupMinAggregateOutputType | null
_max: EventSignupMaxAggregateOutputType | null
}
export type EventSignupMinAggregateOutputType = {
id: string | null
eventId: string | null
guildId: string | null
userId: string | null
createdAt: Date | null
canceledAt: Date | null
}
export type EventSignupMaxAggregateOutputType = {
id: string | null
eventId: string | null
guildId: string | null
userId: string | null
createdAt: Date | null
canceledAt: Date | null
}
export type EventSignupCountAggregateOutputType = {
id: number
eventId: number
guildId: number
userId: number
createdAt: number
canceledAt: number
_all: number
}
export type EventSignupMinAggregateInputType = {
id?: true
eventId?: true
guildId?: true
userId?: true
createdAt?: true
canceledAt?: true
}
export type EventSignupMaxAggregateInputType = {
id?: true
eventId?: true
guildId?: true
userId?: true
createdAt?: true
canceledAt?: true
}
export type EventSignupCountAggregateInputType = {
id?: true
eventId?: true
guildId?: true
userId?: true
createdAt?: true
canceledAt?: true
_all?: true
}
export type EventSignupAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which EventSignup to aggregate.
*/
where?: EventSignupWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of EventSignups to fetch.
*/
orderBy?: EventSignupOrderByWithRelationInput | EventSignupOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: EventSignupWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` EventSignups 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` EventSignups.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned EventSignups
**/
_count?: true | EventSignupCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: EventSignupMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: EventSignupMaxAggregateInputType
}
export type GetEventSignupAggregateType<T extends EventSignupAggregateArgs> = {
[P in keyof T & keyof AggregateEventSignup]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateEventSignup[P]>
: GetScalarType<T[P], AggregateEventSignup[P]>
}
export type EventSignupGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: EventSignupWhereInput
orderBy?: EventSignupOrderByWithAggregationInput | EventSignupOrderByWithAggregationInput[]
by: EventSignupScalarFieldEnum[] | EventSignupScalarFieldEnum
having?: EventSignupScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: EventSignupCountAggregateInputType | true
_min?: EventSignupMinAggregateInputType
_max?: EventSignupMaxAggregateInputType
}
export type EventSignupGroupByOutputType = {
id: string
eventId: string
guildId: string
userId: string
createdAt: Date
canceledAt: Date | null
_count: EventSignupCountAggregateOutputType | null
_min: EventSignupMinAggregateOutputType | null
_max: EventSignupMaxAggregateOutputType | null
}
type GetEventSignupGroupByPayload<T extends EventSignupGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<EventSignupGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof EventSignupGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], EventSignupGroupByOutputType[P]>
: GetScalarType<T[P], EventSignupGroupByOutputType[P]>
}
>
>
export type EventSignupSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
eventId?: boolean
guildId?: boolean
userId?: boolean
createdAt?: boolean
canceledAt?: boolean
event?: boolean | EventDefaultArgs<ExtArgs>
}, ExtArgs["result"]["eventSignup"]>
export type EventSignupSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
eventId?: boolean
guildId?: boolean
userId?: boolean
createdAt?: boolean
canceledAt?: boolean
event?: boolean | EventDefaultArgs<ExtArgs>
}, ExtArgs["result"]["eventSignup"]>
export type EventSignupSelectScalar = {
id?: boolean
eventId?: boolean
guildId?: boolean
userId?: boolean
createdAt?: boolean
canceledAt?: boolean
}
export type EventSignupInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
event?: boolean | EventDefaultArgs<ExtArgs>
}
export type EventSignupIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
event?: boolean | EventDefaultArgs<ExtArgs>
}
export type $EventSignupPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "EventSignup"
objects: {
event: Prisma.$EventPayload<ExtArgs>
}
scalars: $Extensions.GetPayloadResult<{
id: string
eventId: string
guildId: string
userId: string
createdAt: Date
canceledAt: Date | null
}, ExtArgs["result"]["eventSignup"]>
composites: {}
}
type EventSignupGetPayload<S extends boolean | null | undefined | EventSignupDefaultArgs> = $Result.GetResult<Prisma.$EventSignupPayload, S>
type EventSignupCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<EventSignupFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: EventSignupCountAggregateInputType | true
}
export interface EventSignupDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['EventSignup'], meta: { name: 'EventSignup' } }
/**
* Find zero or one EventSignup that matches the filter.
* @param {EventSignupFindUniqueArgs} args - Arguments to find a EventSignup
* @example
* // Get one EventSignup
* const eventSignup = await prisma.eventSignup.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends EventSignupFindUniqueArgs>(args: SelectSubset<T, EventSignupFindUniqueArgs<ExtArgs>>): Prisma__EventSignupClient<$Result.GetResult<Prisma.$EventSignupPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one EventSignup that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {EventSignupFindUniqueOrThrowArgs} args - Arguments to find a EventSignup
* @example
* // Get one EventSignup
* const eventSignup = await prisma.eventSignup.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends EventSignupFindUniqueOrThrowArgs>(args: SelectSubset<T, EventSignupFindUniqueOrThrowArgs<ExtArgs>>): Prisma__EventSignupClient<$Result.GetResult<Prisma.$EventSignupPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first EventSignup 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 {EventSignupFindFirstArgs} args - Arguments to find a EventSignup
* @example
* // Get one EventSignup
* const eventSignup = await prisma.eventSignup.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends EventSignupFindFirstArgs>(args?: SelectSubset<T, EventSignupFindFirstArgs<ExtArgs>>): Prisma__EventSignupClient<$Result.GetResult<Prisma.$EventSignupPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first EventSignup 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 {EventSignupFindFirstOrThrowArgs} args - Arguments to find a EventSignup
* @example
* // Get one EventSignup
* const eventSignup = await prisma.eventSignup.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends EventSignupFindFirstOrThrowArgs>(args?: SelectSubset<T, EventSignupFindFirstOrThrowArgs<ExtArgs>>): Prisma__EventSignupClient<$Result.GetResult<Prisma.$EventSignupPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more EventSignups 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 {EventSignupFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all EventSignups
* const eventSignups = await prisma.eventSignup.findMany()
*
* // Get first 10 EventSignups
* const eventSignups = await prisma.eventSignup.findMany({ take: 10 })
*
* // Only select the `id`
* const eventSignupWithIdOnly = await prisma.eventSignup.findMany({ select: { id: true } })
*
*/
findMany<T extends EventSignupFindManyArgs>(args?: SelectSubset<T, EventSignupFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EventSignupPayload<ExtArgs>, T, "findMany">>
/**
* Create a EventSignup.
* @param {EventSignupCreateArgs} args - Arguments to create a EventSignup.
* @example
* // Create one EventSignup
* const EventSignup = await prisma.eventSignup.create({
* data: {
* // ... data to create a EventSignup
* }
* })
*
*/
create<T extends EventSignupCreateArgs>(args: SelectSubset<T, EventSignupCreateArgs<ExtArgs>>): Prisma__EventSignupClient<$Result.GetResult<Prisma.$EventSignupPayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many EventSignups.
* @param {EventSignupCreateManyArgs} args - Arguments to create many EventSignups.
* @example
* // Create many EventSignups
* const eventSignup = await prisma.eventSignup.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends EventSignupCreateManyArgs>(args?: SelectSubset<T, EventSignupCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many EventSignups and returns the data saved in the database.
* @param {EventSignupCreateManyAndReturnArgs} args - Arguments to create many EventSignups.
* @example
* // Create many EventSignups
* const eventSignup = await prisma.eventSignup.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many EventSignups and only return the `id`
* const eventSignupWithIdOnly = await prisma.eventSignup.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 EventSignupCreateManyAndReturnArgs>(args?: SelectSubset<T, EventSignupCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EventSignupPayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a EventSignup.
* @param {EventSignupDeleteArgs} args - Arguments to delete one EventSignup.
* @example
* // Delete one EventSignup
* const EventSignup = await prisma.eventSignup.delete({
* where: {
* // ... filter to delete one EventSignup
* }
* })
*
*/
delete<T extends EventSignupDeleteArgs>(args: SelectSubset<T, EventSignupDeleteArgs<ExtArgs>>): Prisma__EventSignupClient<$Result.GetResult<Prisma.$EventSignupPayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one EventSignup.
* @param {EventSignupUpdateArgs} args - Arguments to update one EventSignup.
* @example
* // Update one EventSignup
* const eventSignup = await prisma.eventSignup.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends EventSignupUpdateArgs>(args: SelectSubset<T, EventSignupUpdateArgs<ExtArgs>>): Prisma__EventSignupClient<$Result.GetResult<Prisma.$EventSignupPayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more EventSignups.
* @param {EventSignupDeleteManyArgs} args - Arguments to filter EventSignups to delete.
* @example
* // Delete a few EventSignups
* const { count } = await prisma.eventSignup.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends EventSignupDeleteManyArgs>(args?: SelectSubset<T, EventSignupDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more EventSignups.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {EventSignupUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many EventSignups
* const eventSignup = await prisma.eventSignup.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends EventSignupUpdateManyArgs>(args: SelectSubset<T, EventSignupUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one EventSignup.
* @param {EventSignupUpsertArgs} args - Arguments to update or create a EventSignup.
* @example
* // Update or create a EventSignup
* const eventSignup = await prisma.eventSignup.upsert({
* create: {
* // ... data to create a EventSignup
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the EventSignup we want to update
* }
* })
*/
upsert<T extends EventSignupUpsertArgs>(args: SelectSubset<T, EventSignupUpsertArgs<ExtArgs>>): Prisma__EventSignupClient<$Result.GetResult<Prisma.$EventSignupPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of EventSignups.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {EventSignupCountArgs} args - Arguments to filter EventSignups to count.
* @example
* // Count the number of EventSignups
* const count = await prisma.eventSignup.count({
* where: {
* // ... the filter for the EventSignups we want to count
* }
* })
**/
count<T extends EventSignupCountArgs>(
args?: Subset<T, EventSignupCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], EventSignupCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a EventSignup.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {EventSignupAggregateArgs} 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 EventSignupAggregateArgs>(args: Subset<T, EventSignupAggregateArgs>): Prisma.PrismaPromise<GetEventSignupAggregateType<T>>
/**
* Group by EventSignup.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {EventSignupGroupByArgs} 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 EventSignupGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: EventSignupGroupByArgs['orderBy'] }
: { orderBy?: EventSignupGroupByArgs['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, EventSignupGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetEventSignupGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the EventSignup model
*/
readonly fields: EventSignupFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for EventSignup.
* 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__EventSignupClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
event<T extends EventDefaultArgs<ExtArgs> = {}>(args?: Subset<T, EventDefaultArgs<ExtArgs>>): Prisma__EventClient<$Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the EventSignup model
*/
interface EventSignupFieldRefs {
readonly id: FieldRef<"EventSignup", 'String'>
readonly eventId: FieldRef<"EventSignup", 'String'>
readonly guildId: FieldRef<"EventSignup", 'String'>
readonly userId: FieldRef<"EventSignup", 'String'>
readonly createdAt: FieldRef<"EventSignup", 'DateTime'>
readonly canceledAt: FieldRef<"EventSignup", 'DateTime'>
}
// Custom InputTypes
/**
* EventSignup findUnique
*/
export type EventSignupFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EventSignup
*/
select?: EventSignupSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventSignupInclude<ExtArgs> | null
/**
* Filter, which EventSignup to fetch.
*/
where: EventSignupWhereUniqueInput
}
/**
* EventSignup findUniqueOrThrow
*/
export type EventSignupFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EventSignup
*/
select?: EventSignupSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventSignupInclude<ExtArgs> | null
/**
* Filter, which EventSignup to fetch.
*/
where: EventSignupWhereUniqueInput
}
/**
* EventSignup findFirst
*/
export type EventSignupFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EventSignup
*/
select?: EventSignupSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventSignupInclude<ExtArgs> | null
/**
* Filter, which EventSignup to fetch.
*/
where?: EventSignupWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of EventSignups to fetch.
*/
orderBy?: EventSignupOrderByWithRelationInput | EventSignupOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for EventSignups.
*/
cursor?: EventSignupWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` EventSignups 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` EventSignups.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of EventSignups.
*/
distinct?: EventSignupScalarFieldEnum | EventSignupScalarFieldEnum[]
}
/**
* EventSignup findFirstOrThrow
*/
export type EventSignupFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EventSignup
*/
select?: EventSignupSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventSignupInclude<ExtArgs> | null
/**
* Filter, which EventSignup to fetch.
*/
where?: EventSignupWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of EventSignups to fetch.
*/
orderBy?: EventSignupOrderByWithRelationInput | EventSignupOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for EventSignups.
*/
cursor?: EventSignupWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` EventSignups 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` EventSignups.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of EventSignups.
*/
distinct?: EventSignupScalarFieldEnum | EventSignupScalarFieldEnum[]
}
/**
* EventSignup findMany
*/
export type EventSignupFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EventSignup
*/
select?: EventSignupSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventSignupInclude<ExtArgs> | null
/**
* Filter, which EventSignups to fetch.
*/
where?: EventSignupWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of EventSignups to fetch.
*/
orderBy?: EventSignupOrderByWithRelationInput | EventSignupOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing EventSignups.
*/
cursor?: EventSignupWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` EventSignups 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` EventSignups.
*/
skip?: number
distinct?: EventSignupScalarFieldEnum | EventSignupScalarFieldEnum[]
}
/**
* EventSignup create
*/
export type EventSignupCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EventSignup
*/
select?: EventSignupSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventSignupInclude<ExtArgs> | null
/**
* The data needed to create a EventSignup.
*/
data: XOR<EventSignupCreateInput, EventSignupUncheckedCreateInput>
}
/**
* EventSignup createMany
*/
export type EventSignupCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many EventSignups.
*/
data: EventSignupCreateManyInput | EventSignupCreateManyInput[]
skipDuplicates?: boolean
}
/**
* EventSignup createManyAndReturn
*/
export type EventSignupCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EventSignup
*/
select?: EventSignupSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many EventSignups.
*/
data: EventSignupCreateManyInput | EventSignupCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: EventSignupIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* EventSignup update
*/
export type EventSignupUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EventSignup
*/
select?: EventSignupSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventSignupInclude<ExtArgs> | null
/**
* The data needed to update a EventSignup.
*/
data: XOR<EventSignupUpdateInput, EventSignupUncheckedUpdateInput>
/**
* Choose, which EventSignup to update.
*/
where: EventSignupWhereUniqueInput
}
/**
* EventSignup updateMany
*/
export type EventSignupUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update EventSignups.
*/
data: XOR<EventSignupUpdateManyMutationInput, EventSignupUncheckedUpdateManyInput>
/**
* Filter which EventSignups to update
*/
where?: EventSignupWhereInput
}
/**
* EventSignup upsert
*/
export type EventSignupUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EventSignup
*/
select?: EventSignupSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventSignupInclude<ExtArgs> | null
/**
* The filter to search for the EventSignup to update in case it exists.
*/
where: EventSignupWhereUniqueInput
/**
* In case the EventSignup found by the `where` argument doesn't exist, create a new EventSignup with this data.
*/
create: XOR<EventSignupCreateInput, EventSignupUncheckedCreateInput>
/**
* In case the EventSignup was found with the provided `where` argument, update it with this data.
*/
update: XOR<EventSignupUpdateInput, EventSignupUncheckedUpdateInput>
}
/**
* EventSignup delete
*/
export type EventSignupDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EventSignup
*/
select?: EventSignupSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventSignupInclude<ExtArgs> | null
/**
* Filter which EventSignup to delete.
*/
where: EventSignupWhereUniqueInput
}
/**
* EventSignup deleteMany
*/
export type EventSignupDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which EventSignups to delete
*/
where?: EventSignupWhereInput
}
/**
* EventSignup without action
*/
export type EventSignupDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EventSignup
*/
select?: EventSignupSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventSignupInclude<ExtArgs> | null
}
/**
* Model RegisterForm
*/
export type AggregateRegisterForm = {
_count: RegisterFormCountAggregateOutputType | null
_min: RegisterFormMinAggregateOutputType | null
_max: RegisterFormMaxAggregateOutputType | null
}
export type RegisterFormMinAggregateOutputType = {
id: string | null
guildId: string | null
name: string | null
description: string | null
reviewChannelId: string | null
isActive: boolean | null
createdAt: Date | null
updatedAt: Date | null
}
export type RegisterFormMaxAggregateOutputType = {
id: string | null
guildId: string | null
name: string | null
description: string | null
reviewChannelId: string | null
isActive: boolean | null
createdAt: Date | null
updatedAt: Date | null
}
export type RegisterFormCountAggregateOutputType = {
id: number
guildId: number
name: number
description: number
reviewChannelId: number
notifyRoleIds: number
isActive: number
createdAt: number
updatedAt: number
_all: number
}
export type RegisterFormMinAggregateInputType = {
id?: true
guildId?: true
name?: true
description?: true
reviewChannelId?: true
isActive?: true
createdAt?: true
updatedAt?: true
}
export type RegisterFormMaxAggregateInputType = {
id?: true
guildId?: true
name?: true
description?: true
reviewChannelId?: true
isActive?: true
createdAt?: true
updatedAt?: true
}
export type RegisterFormCountAggregateInputType = {
id?: true
guildId?: true
name?: true
description?: true
reviewChannelId?: true
notifyRoleIds?: true
isActive?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type RegisterFormAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which RegisterForm to aggregate.
*/
where?: RegisterFormWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of RegisterForms to fetch.
*/
orderBy?: RegisterFormOrderByWithRelationInput | RegisterFormOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: RegisterFormWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` RegisterForms 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` RegisterForms.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned RegisterForms
**/
_count?: true | RegisterFormCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: RegisterFormMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: RegisterFormMaxAggregateInputType
}
export type GetRegisterFormAggregateType<T extends RegisterFormAggregateArgs> = {
[P in keyof T & keyof AggregateRegisterForm]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateRegisterForm[P]>
: GetScalarType<T[P], AggregateRegisterForm[P]>
}
export type RegisterFormGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: RegisterFormWhereInput
orderBy?: RegisterFormOrderByWithAggregationInput | RegisterFormOrderByWithAggregationInput[]
by: RegisterFormScalarFieldEnum[] | RegisterFormScalarFieldEnum
having?: RegisterFormScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: RegisterFormCountAggregateInputType | true
_min?: RegisterFormMinAggregateInputType
_max?: RegisterFormMaxAggregateInputType
}
export type RegisterFormGroupByOutputType = {
id: string
guildId: string
name: string
description: string | null
reviewChannelId: string | null
notifyRoleIds: string[]
isActive: boolean
createdAt: Date
updatedAt: Date
_count: RegisterFormCountAggregateOutputType | null
_min: RegisterFormMinAggregateOutputType | null
_max: RegisterFormMaxAggregateOutputType | null
}
type GetRegisterFormGroupByPayload<T extends RegisterFormGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<RegisterFormGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof RegisterFormGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], RegisterFormGroupByOutputType[P]>
: GetScalarType<T[P], RegisterFormGroupByOutputType[P]>
}
>
>
export type RegisterFormSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
guildId?: boolean
name?: boolean
description?: boolean
reviewChannelId?: boolean
notifyRoleIds?: boolean
isActive?: boolean
createdAt?: boolean
updatedAt?: boolean
fields?: boolean | RegisterForm$fieldsArgs<ExtArgs>
applications?: boolean | RegisterForm$applicationsArgs<ExtArgs>
_count?: boolean | RegisterFormCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["registerForm"]>
export type RegisterFormSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
guildId?: boolean
name?: boolean
description?: boolean
reviewChannelId?: boolean
notifyRoleIds?: boolean
isActive?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["registerForm"]>
export type RegisterFormSelectScalar = {
id?: boolean
guildId?: boolean
name?: boolean
description?: boolean
reviewChannelId?: boolean
notifyRoleIds?: boolean
isActive?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type RegisterFormInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
fields?: boolean | RegisterForm$fieldsArgs<ExtArgs>
applications?: boolean | RegisterForm$applicationsArgs<ExtArgs>
_count?: boolean | RegisterFormCountOutputTypeDefaultArgs<ExtArgs>
}
export type RegisterFormIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {}
export type $RegisterFormPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "RegisterForm"
objects: {
fields: Prisma.$RegisterFormFieldPayload<ExtArgs>[]
applications: Prisma.$RegisterApplicationPayload<ExtArgs>[]
}
scalars: $Extensions.GetPayloadResult<{
id: string
guildId: string
name: string
description: string | null
reviewChannelId: string | null
notifyRoleIds: string[]
isActive: boolean
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["registerForm"]>
composites: {}
}
type RegisterFormGetPayload<S extends boolean | null | undefined | RegisterFormDefaultArgs> = $Result.GetResult<Prisma.$RegisterFormPayload, S>
type RegisterFormCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<RegisterFormFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: RegisterFormCountAggregateInputType | true
}
export interface RegisterFormDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['RegisterForm'], meta: { name: 'RegisterForm' } }
/**
* Find zero or one RegisterForm that matches the filter.
* @param {RegisterFormFindUniqueArgs} args - Arguments to find a RegisterForm
* @example
* // Get one RegisterForm
* const registerForm = await prisma.registerForm.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends RegisterFormFindUniqueArgs>(args: SelectSubset<T, RegisterFormFindUniqueArgs<ExtArgs>>): Prisma__RegisterFormClient<$Result.GetResult<Prisma.$RegisterFormPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one RegisterForm that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {RegisterFormFindUniqueOrThrowArgs} args - Arguments to find a RegisterForm
* @example
* // Get one RegisterForm
* const registerForm = await prisma.registerForm.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends RegisterFormFindUniqueOrThrowArgs>(args: SelectSubset<T, RegisterFormFindUniqueOrThrowArgs<ExtArgs>>): Prisma__RegisterFormClient<$Result.GetResult<Prisma.$RegisterFormPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first RegisterForm 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 {RegisterFormFindFirstArgs} args - Arguments to find a RegisterForm
* @example
* // Get one RegisterForm
* const registerForm = await prisma.registerForm.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends RegisterFormFindFirstArgs>(args?: SelectSubset<T, RegisterFormFindFirstArgs<ExtArgs>>): Prisma__RegisterFormClient<$Result.GetResult<Prisma.$RegisterFormPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first RegisterForm 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 {RegisterFormFindFirstOrThrowArgs} args - Arguments to find a RegisterForm
* @example
* // Get one RegisterForm
* const registerForm = await prisma.registerForm.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends RegisterFormFindFirstOrThrowArgs>(args?: SelectSubset<T, RegisterFormFindFirstOrThrowArgs<ExtArgs>>): Prisma__RegisterFormClient<$Result.GetResult<Prisma.$RegisterFormPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more RegisterForms 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 {RegisterFormFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all RegisterForms
* const registerForms = await prisma.registerForm.findMany()
*
* // Get first 10 RegisterForms
* const registerForms = await prisma.registerForm.findMany({ take: 10 })
*
* // Only select the `id`
* const registerFormWithIdOnly = await prisma.registerForm.findMany({ select: { id: true } })
*
*/
findMany<T extends RegisterFormFindManyArgs>(args?: SelectSubset<T, RegisterFormFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$RegisterFormPayload<ExtArgs>, T, "findMany">>
/**
* Create a RegisterForm.
* @param {RegisterFormCreateArgs} args - Arguments to create a RegisterForm.
* @example
* // Create one RegisterForm
* const RegisterForm = await prisma.registerForm.create({
* data: {
* // ... data to create a RegisterForm
* }
* })
*
*/
create<T extends RegisterFormCreateArgs>(args: SelectSubset<T, RegisterFormCreateArgs<ExtArgs>>): Prisma__RegisterFormClient<$Result.GetResult<Prisma.$RegisterFormPayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many RegisterForms.
* @param {RegisterFormCreateManyArgs} args - Arguments to create many RegisterForms.
* @example
* // Create many RegisterForms
* const registerForm = await prisma.registerForm.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends RegisterFormCreateManyArgs>(args?: SelectSubset<T, RegisterFormCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many RegisterForms and returns the data saved in the database.
* @param {RegisterFormCreateManyAndReturnArgs} args - Arguments to create many RegisterForms.
* @example
* // Create many RegisterForms
* const registerForm = await prisma.registerForm.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many RegisterForms and only return the `id`
* const registerFormWithIdOnly = await prisma.registerForm.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 RegisterFormCreateManyAndReturnArgs>(args?: SelectSubset<T, RegisterFormCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$RegisterFormPayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a RegisterForm.
* @param {RegisterFormDeleteArgs} args - Arguments to delete one RegisterForm.
* @example
* // Delete one RegisterForm
* const RegisterForm = await prisma.registerForm.delete({
* where: {
* // ... filter to delete one RegisterForm
* }
* })
*
*/
delete<T extends RegisterFormDeleteArgs>(args: SelectSubset<T, RegisterFormDeleteArgs<ExtArgs>>): Prisma__RegisterFormClient<$Result.GetResult<Prisma.$RegisterFormPayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one RegisterForm.
* @param {RegisterFormUpdateArgs} args - Arguments to update one RegisterForm.
* @example
* // Update one RegisterForm
* const registerForm = await prisma.registerForm.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends RegisterFormUpdateArgs>(args: SelectSubset<T, RegisterFormUpdateArgs<ExtArgs>>): Prisma__RegisterFormClient<$Result.GetResult<Prisma.$RegisterFormPayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more RegisterForms.
* @param {RegisterFormDeleteManyArgs} args - Arguments to filter RegisterForms to delete.
* @example
* // Delete a few RegisterForms
* const { count } = await prisma.registerForm.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends RegisterFormDeleteManyArgs>(args?: SelectSubset<T, RegisterFormDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more RegisterForms.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {RegisterFormUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many RegisterForms
* const registerForm = await prisma.registerForm.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends RegisterFormUpdateManyArgs>(args: SelectSubset<T, RegisterFormUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one RegisterForm.
* @param {RegisterFormUpsertArgs} args - Arguments to update or create a RegisterForm.
* @example
* // Update or create a RegisterForm
* const registerForm = await prisma.registerForm.upsert({
* create: {
* // ... data to create a RegisterForm
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the RegisterForm we want to update
* }
* })
*/
upsert<T extends RegisterFormUpsertArgs>(args: SelectSubset<T, RegisterFormUpsertArgs<ExtArgs>>): Prisma__RegisterFormClient<$Result.GetResult<Prisma.$RegisterFormPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of RegisterForms.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {RegisterFormCountArgs} args - Arguments to filter RegisterForms to count.
* @example
* // Count the number of RegisterForms
* const count = await prisma.registerForm.count({
* where: {
* // ... the filter for the RegisterForms we want to count
* }
* })
**/
count<T extends RegisterFormCountArgs>(
args?: Subset<T, RegisterFormCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], RegisterFormCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a RegisterForm.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {RegisterFormAggregateArgs} 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 RegisterFormAggregateArgs>(args: Subset<T, RegisterFormAggregateArgs>): Prisma.PrismaPromise<GetRegisterFormAggregateType<T>>
/**
* Group by RegisterForm.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {RegisterFormGroupByArgs} 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 RegisterFormGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: RegisterFormGroupByArgs['orderBy'] }
: { orderBy?: RegisterFormGroupByArgs['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, RegisterFormGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetRegisterFormGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the RegisterForm model
*/
readonly fields: RegisterFormFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for RegisterForm.
* 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__RegisterFormClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
fields<T extends RegisterForm$fieldsArgs<ExtArgs> = {}>(args?: Subset<T, RegisterForm$fieldsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$RegisterFormFieldPayload<ExtArgs>, T, "findMany"> | Null>
applications<T extends RegisterForm$applicationsArgs<ExtArgs> = {}>(args?: Subset<T, RegisterForm$applicationsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$RegisterApplicationPayload<ExtArgs>, T, "findMany"> | Null>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the RegisterForm model
*/
interface RegisterFormFieldRefs {
readonly id: FieldRef<"RegisterForm", 'String'>
readonly guildId: FieldRef<"RegisterForm", 'String'>
readonly name: FieldRef<"RegisterForm", 'String'>
readonly description: FieldRef<"RegisterForm", 'String'>
readonly reviewChannelId: FieldRef<"RegisterForm", 'String'>
readonly notifyRoleIds: FieldRef<"RegisterForm", 'String[]'>
readonly isActive: FieldRef<"RegisterForm", 'Boolean'>
readonly createdAt: FieldRef<"RegisterForm", 'DateTime'>
readonly updatedAt: FieldRef<"RegisterForm", 'DateTime'>
}
// Custom InputTypes
/**
* RegisterForm findUnique
*/
export type RegisterFormFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterForm
*/
select?: RegisterFormSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterFormInclude<ExtArgs> | null
/**
* Filter, which RegisterForm to fetch.
*/
where: RegisterFormWhereUniqueInput
}
/**
* RegisterForm findUniqueOrThrow
*/
export type RegisterFormFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterForm
*/
select?: RegisterFormSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterFormInclude<ExtArgs> | null
/**
* Filter, which RegisterForm to fetch.
*/
where: RegisterFormWhereUniqueInput
}
/**
* RegisterForm findFirst
*/
export type RegisterFormFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterForm
*/
select?: RegisterFormSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterFormInclude<ExtArgs> | null
/**
* Filter, which RegisterForm to fetch.
*/
where?: RegisterFormWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of RegisterForms to fetch.
*/
orderBy?: RegisterFormOrderByWithRelationInput | RegisterFormOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for RegisterForms.
*/
cursor?: RegisterFormWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` RegisterForms 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` RegisterForms.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of RegisterForms.
*/
distinct?: RegisterFormScalarFieldEnum | RegisterFormScalarFieldEnum[]
}
/**
* RegisterForm findFirstOrThrow
*/
export type RegisterFormFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterForm
*/
select?: RegisterFormSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterFormInclude<ExtArgs> | null
/**
* Filter, which RegisterForm to fetch.
*/
where?: RegisterFormWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of RegisterForms to fetch.
*/
orderBy?: RegisterFormOrderByWithRelationInput | RegisterFormOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for RegisterForms.
*/
cursor?: RegisterFormWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` RegisterForms 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` RegisterForms.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of RegisterForms.
*/
distinct?: RegisterFormScalarFieldEnum | RegisterFormScalarFieldEnum[]
}
/**
* RegisterForm findMany
*/
export type RegisterFormFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterForm
*/
select?: RegisterFormSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterFormInclude<ExtArgs> | null
/**
* Filter, which RegisterForms to fetch.
*/
where?: RegisterFormWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of RegisterForms to fetch.
*/
orderBy?: RegisterFormOrderByWithRelationInput | RegisterFormOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing RegisterForms.
*/
cursor?: RegisterFormWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` RegisterForms 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` RegisterForms.
*/
skip?: number
distinct?: RegisterFormScalarFieldEnum | RegisterFormScalarFieldEnum[]
}
/**
* RegisterForm create
*/
export type RegisterFormCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterForm
*/
select?: RegisterFormSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterFormInclude<ExtArgs> | null
/**
* The data needed to create a RegisterForm.
*/
data: XOR<RegisterFormCreateInput, RegisterFormUncheckedCreateInput>
}
/**
* RegisterForm createMany
*/
export type RegisterFormCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many RegisterForms.
*/
data: RegisterFormCreateManyInput | RegisterFormCreateManyInput[]
skipDuplicates?: boolean
}
/**
* RegisterForm createManyAndReturn
*/
export type RegisterFormCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterForm
*/
select?: RegisterFormSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many RegisterForms.
*/
data: RegisterFormCreateManyInput | RegisterFormCreateManyInput[]
skipDuplicates?: boolean
}
/**
* RegisterForm update
*/
export type RegisterFormUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterForm
*/
select?: RegisterFormSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterFormInclude<ExtArgs> | null
/**
* The data needed to update a RegisterForm.
*/
data: XOR<RegisterFormUpdateInput, RegisterFormUncheckedUpdateInput>
/**
* Choose, which RegisterForm to update.
*/
where: RegisterFormWhereUniqueInput
}
/**
* RegisterForm updateMany
*/
export type RegisterFormUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update RegisterForms.
*/
data: XOR<RegisterFormUpdateManyMutationInput, RegisterFormUncheckedUpdateManyInput>
/**
* Filter which RegisterForms to update
*/
where?: RegisterFormWhereInput
}
/**
* RegisterForm upsert
*/
export type RegisterFormUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterForm
*/
select?: RegisterFormSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterFormInclude<ExtArgs> | null
/**
* The filter to search for the RegisterForm to update in case it exists.
*/
where: RegisterFormWhereUniqueInput
/**
* In case the RegisterForm found by the `where` argument doesn't exist, create a new RegisterForm with this data.
*/
create: XOR<RegisterFormCreateInput, RegisterFormUncheckedCreateInput>
/**
* In case the RegisterForm was found with the provided `where` argument, update it with this data.
*/
update: XOR<RegisterFormUpdateInput, RegisterFormUncheckedUpdateInput>
}
/**
* RegisterForm delete
*/
export type RegisterFormDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterForm
*/
select?: RegisterFormSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterFormInclude<ExtArgs> | null
/**
* Filter which RegisterForm to delete.
*/
where: RegisterFormWhereUniqueInput
}
/**
* RegisterForm deleteMany
*/
export type RegisterFormDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which RegisterForms to delete
*/
where?: RegisterFormWhereInput
}
/**
* RegisterForm.fields
*/
export type RegisterForm$fieldsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterFormField
*/
select?: RegisterFormFieldSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterFormFieldInclude<ExtArgs> | null
where?: RegisterFormFieldWhereInput
orderBy?: RegisterFormFieldOrderByWithRelationInput | RegisterFormFieldOrderByWithRelationInput[]
cursor?: RegisterFormFieldWhereUniqueInput
take?: number
skip?: number
distinct?: RegisterFormFieldScalarFieldEnum | RegisterFormFieldScalarFieldEnum[]
}
/**
* RegisterForm.applications
*/
export type RegisterForm$applicationsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterApplication
*/
select?: RegisterApplicationSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterApplicationInclude<ExtArgs> | null
where?: RegisterApplicationWhereInput
orderBy?: RegisterApplicationOrderByWithRelationInput | RegisterApplicationOrderByWithRelationInput[]
cursor?: RegisterApplicationWhereUniqueInput
take?: number
skip?: number
distinct?: RegisterApplicationScalarFieldEnum | RegisterApplicationScalarFieldEnum[]
}
/**
* RegisterForm without action
*/
export type RegisterFormDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterForm
*/
select?: RegisterFormSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterFormInclude<ExtArgs> | null
}
/**
* Model RegisterFormField
*/
export type AggregateRegisterFormField = {
_count: RegisterFormFieldCountAggregateOutputType | null
_avg: RegisterFormFieldAvgAggregateOutputType | null
_sum: RegisterFormFieldSumAggregateOutputType | null
_min: RegisterFormFieldMinAggregateOutputType | null
_max: RegisterFormFieldMaxAggregateOutputType | null
}
export type RegisterFormFieldAvgAggregateOutputType = {
order: number | null
}
export type RegisterFormFieldSumAggregateOutputType = {
order: number | null
}
export type RegisterFormFieldMinAggregateOutputType = {
id: string | null
formId: string | null
label: string | null
type: string | null
required: boolean | null
order: number | null
}
export type RegisterFormFieldMaxAggregateOutputType = {
id: string | null
formId: string | null
label: string | null
type: string | null
required: boolean | null
order: number | null
}
export type RegisterFormFieldCountAggregateOutputType = {
id: number
formId: number
label: number
type: number
required: number
order: number
_all: number
}
export type RegisterFormFieldAvgAggregateInputType = {
order?: true
}
export type RegisterFormFieldSumAggregateInputType = {
order?: true
}
export type RegisterFormFieldMinAggregateInputType = {
id?: true
formId?: true
label?: true
type?: true
required?: true
order?: true
}
export type RegisterFormFieldMaxAggregateInputType = {
id?: true
formId?: true
label?: true
type?: true
required?: true
order?: true
}
export type RegisterFormFieldCountAggregateInputType = {
id?: true
formId?: true
label?: true
type?: true
required?: true
order?: true
_all?: true
}
export type RegisterFormFieldAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which RegisterFormField to aggregate.
*/
where?: RegisterFormFieldWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of RegisterFormFields to fetch.
*/
orderBy?: RegisterFormFieldOrderByWithRelationInput | RegisterFormFieldOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: RegisterFormFieldWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` RegisterFormFields 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` RegisterFormFields.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned RegisterFormFields
**/
_count?: true | RegisterFormFieldCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: RegisterFormFieldAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: RegisterFormFieldSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: RegisterFormFieldMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: RegisterFormFieldMaxAggregateInputType
}
export type GetRegisterFormFieldAggregateType<T extends RegisterFormFieldAggregateArgs> = {
[P in keyof T & keyof AggregateRegisterFormField]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateRegisterFormField[P]>
: GetScalarType<T[P], AggregateRegisterFormField[P]>
}
export type RegisterFormFieldGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: RegisterFormFieldWhereInput
orderBy?: RegisterFormFieldOrderByWithAggregationInput | RegisterFormFieldOrderByWithAggregationInput[]
by: RegisterFormFieldScalarFieldEnum[] | RegisterFormFieldScalarFieldEnum
having?: RegisterFormFieldScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: RegisterFormFieldCountAggregateInputType | true
_avg?: RegisterFormFieldAvgAggregateInputType
_sum?: RegisterFormFieldSumAggregateInputType
_min?: RegisterFormFieldMinAggregateInputType
_max?: RegisterFormFieldMaxAggregateInputType
}
export type RegisterFormFieldGroupByOutputType = {
id: string
formId: string
label: string
type: string
required: boolean
order: number
_count: RegisterFormFieldCountAggregateOutputType | null
_avg: RegisterFormFieldAvgAggregateOutputType | null
_sum: RegisterFormFieldSumAggregateOutputType | null
_min: RegisterFormFieldMinAggregateOutputType | null
_max: RegisterFormFieldMaxAggregateOutputType | null
}
type GetRegisterFormFieldGroupByPayload<T extends RegisterFormFieldGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<RegisterFormFieldGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof RegisterFormFieldGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], RegisterFormFieldGroupByOutputType[P]>
: GetScalarType<T[P], RegisterFormFieldGroupByOutputType[P]>
}
>
>
export type RegisterFormFieldSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
formId?: boolean
label?: boolean
type?: boolean
required?: boolean
order?: boolean
form?: boolean | RegisterFormDefaultArgs<ExtArgs>
}, ExtArgs["result"]["registerFormField"]>
export type RegisterFormFieldSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
formId?: boolean
label?: boolean
type?: boolean
required?: boolean
order?: boolean
form?: boolean | RegisterFormDefaultArgs<ExtArgs>
}, ExtArgs["result"]["registerFormField"]>
export type RegisterFormFieldSelectScalar = {
id?: boolean
formId?: boolean
label?: boolean
type?: boolean
required?: boolean
order?: boolean
}
export type RegisterFormFieldInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
form?: boolean | RegisterFormDefaultArgs<ExtArgs>
}
export type RegisterFormFieldIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
form?: boolean | RegisterFormDefaultArgs<ExtArgs>
}
export type $RegisterFormFieldPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "RegisterFormField"
objects: {
form: Prisma.$RegisterFormPayload<ExtArgs>
}
scalars: $Extensions.GetPayloadResult<{
id: string
formId: string
label: string
type: string
required: boolean
order: number
}, ExtArgs["result"]["registerFormField"]>
composites: {}
}
type RegisterFormFieldGetPayload<S extends boolean | null | undefined | RegisterFormFieldDefaultArgs> = $Result.GetResult<Prisma.$RegisterFormFieldPayload, S>
type RegisterFormFieldCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<RegisterFormFieldFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: RegisterFormFieldCountAggregateInputType | true
}
export interface RegisterFormFieldDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['RegisterFormField'], meta: { name: 'RegisterFormField' } }
/**
* Find zero or one RegisterFormField that matches the filter.
* @param {RegisterFormFieldFindUniqueArgs} args - Arguments to find a RegisterFormField
* @example
* // Get one RegisterFormField
* const registerFormField = await prisma.registerFormField.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends RegisterFormFieldFindUniqueArgs>(args: SelectSubset<T, RegisterFormFieldFindUniqueArgs<ExtArgs>>): Prisma__RegisterFormFieldClient<$Result.GetResult<Prisma.$RegisterFormFieldPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one RegisterFormField that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {RegisterFormFieldFindUniqueOrThrowArgs} args - Arguments to find a RegisterFormField
* @example
* // Get one RegisterFormField
* const registerFormField = await prisma.registerFormField.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends RegisterFormFieldFindUniqueOrThrowArgs>(args: SelectSubset<T, RegisterFormFieldFindUniqueOrThrowArgs<ExtArgs>>): Prisma__RegisterFormFieldClient<$Result.GetResult<Prisma.$RegisterFormFieldPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first RegisterFormField 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 {RegisterFormFieldFindFirstArgs} args - Arguments to find a RegisterFormField
* @example
* // Get one RegisterFormField
* const registerFormField = await prisma.registerFormField.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends RegisterFormFieldFindFirstArgs>(args?: SelectSubset<T, RegisterFormFieldFindFirstArgs<ExtArgs>>): Prisma__RegisterFormFieldClient<$Result.GetResult<Prisma.$RegisterFormFieldPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first RegisterFormField 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 {RegisterFormFieldFindFirstOrThrowArgs} args - Arguments to find a RegisterFormField
* @example
* // Get one RegisterFormField
* const registerFormField = await prisma.registerFormField.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends RegisterFormFieldFindFirstOrThrowArgs>(args?: SelectSubset<T, RegisterFormFieldFindFirstOrThrowArgs<ExtArgs>>): Prisma__RegisterFormFieldClient<$Result.GetResult<Prisma.$RegisterFormFieldPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more RegisterFormFields 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 {RegisterFormFieldFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all RegisterFormFields
* const registerFormFields = await prisma.registerFormField.findMany()
*
* // Get first 10 RegisterFormFields
* const registerFormFields = await prisma.registerFormField.findMany({ take: 10 })
*
* // Only select the `id`
* const registerFormFieldWithIdOnly = await prisma.registerFormField.findMany({ select: { id: true } })
*
*/
findMany<T extends RegisterFormFieldFindManyArgs>(args?: SelectSubset<T, RegisterFormFieldFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$RegisterFormFieldPayload<ExtArgs>, T, "findMany">>
/**
* Create a RegisterFormField.
* @param {RegisterFormFieldCreateArgs} args - Arguments to create a RegisterFormField.
* @example
* // Create one RegisterFormField
* const RegisterFormField = await prisma.registerFormField.create({
* data: {
* // ... data to create a RegisterFormField
* }
* })
*
*/
create<T extends RegisterFormFieldCreateArgs>(args: SelectSubset<T, RegisterFormFieldCreateArgs<ExtArgs>>): Prisma__RegisterFormFieldClient<$Result.GetResult<Prisma.$RegisterFormFieldPayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many RegisterFormFields.
* @param {RegisterFormFieldCreateManyArgs} args - Arguments to create many RegisterFormFields.
* @example
* // Create many RegisterFormFields
* const registerFormField = await prisma.registerFormField.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends RegisterFormFieldCreateManyArgs>(args?: SelectSubset<T, RegisterFormFieldCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many RegisterFormFields and returns the data saved in the database.
* @param {RegisterFormFieldCreateManyAndReturnArgs} args - Arguments to create many RegisterFormFields.
* @example
* // Create many RegisterFormFields
* const registerFormField = await prisma.registerFormField.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many RegisterFormFields and only return the `id`
* const registerFormFieldWithIdOnly = await prisma.registerFormField.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 RegisterFormFieldCreateManyAndReturnArgs>(args?: SelectSubset<T, RegisterFormFieldCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$RegisterFormFieldPayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a RegisterFormField.
* @param {RegisterFormFieldDeleteArgs} args - Arguments to delete one RegisterFormField.
* @example
* // Delete one RegisterFormField
* const RegisterFormField = await prisma.registerFormField.delete({
* where: {
* // ... filter to delete one RegisterFormField
* }
* })
*
*/
delete<T extends RegisterFormFieldDeleteArgs>(args: SelectSubset<T, RegisterFormFieldDeleteArgs<ExtArgs>>): Prisma__RegisterFormFieldClient<$Result.GetResult<Prisma.$RegisterFormFieldPayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one RegisterFormField.
* @param {RegisterFormFieldUpdateArgs} args - Arguments to update one RegisterFormField.
* @example
* // Update one RegisterFormField
* const registerFormField = await prisma.registerFormField.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends RegisterFormFieldUpdateArgs>(args: SelectSubset<T, RegisterFormFieldUpdateArgs<ExtArgs>>): Prisma__RegisterFormFieldClient<$Result.GetResult<Prisma.$RegisterFormFieldPayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more RegisterFormFields.
* @param {RegisterFormFieldDeleteManyArgs} args - Arguments to filter RegisterFormFields to delete.
* @example
* // Delete a few RegisterFormFields
* const { count } = await prisma.registerFormField.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends RegisterFormFieldDeleteManyArgs>(args?: SelectSubset<T, RegisterFormFieldDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more RegisterFormFields.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {RegisterFormFieldUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many RegisterFormFields
* const registerFormField = await prisma.registerFormField.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends RegisterFormFieldUpdateManyArgs>(args: SelectSubset<T, RegisterFormFieldUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one RegisterFormField.
* @param {RegisterFormFieldUpsertArgs} args - Arguments to update or create a RegisterFormField.
* @example
* // Update or create a RegisterFormField
* const registerFormField = await prisma.registerFormField.upsert({
* create: {
* // ... data to create a RegisterFormField
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the RegisterFormField we want to update
* }
* })
*/
upsert<T extends RegisterFormFieldUpsertArgs>(args: SelectSubset<T, RegisterFormFieldUpsertArgs<ExtArgs>>): Prisma__RegisterFormFieldClient<$Result.GetResult<Prisma.$RegisterFormFieldPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of RegisterFormFields.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {RegisterFormFieldCountArgs} args - Arguments to filter RegisterFormFields to count.
* @example
* // Count the number of RegisterFormFields
* const count = await prisma.registerFormField.count({
* where: {
* // ... the filter for the RegisterFormFields we want to count
* }
* })
**/
count<T extends RegisterFormFieldCountArgs>(
args?: Subset<T, RegisterFormFieldCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], RegisterFormFieldCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a RegisterFormField.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {RegisterFormFieldAggregateArgs} 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 RegisterFormFieldAggregateArgs>(args: Subset<T, RegisterFormFieldAggregateArgs>): Prisma.PrismaPromise<GetRegisterFormFieldAggregateType<T>>
/**
* Group by RegisterFormField.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {RegisterFormFieldGroupByArgs} 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 RegisterFormFieldGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: RegisterFormFieldGroupByArgs['orderBy'] }
: { orderBy?: RegisterFormFieldGroupByArgs['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, RegisterFormFieldGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetRegisterFormFieldGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the RegisterFormField model
*/
readonly fields: RegisterFormFieldFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for RegisterFormField.
* 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__RegisterFormFieldClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
form<T extends RegisterFormDefaultArgs<ExtArgs> = {}>(args?: Subset<T, RegisterFormDefaultArgs<ExtArgs>>): Prisma__RegisterFormClient<$Result.GetResult<Prisma.$RegisterFormPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the RegisterFormField model
*/
interface RegisterFormFieldFieldRefs {
readonly id: FieldRef<"RegisterFormField", 'String'>
readonly formId: FieldRef<"RegisterFormField", 'String'>
readonly label: FieldRef<"RegisterFormField", 'String'>
readonly type: FieldRef<"RegisterFormField", 'String'>
readonly required: FieldRef<"RegisterFormField", 'Boolean'>
readonly order: FieldRef<"RegisterFormField", 'Int'>
}
// Custom InputTypes
/**
* RegisterFormField findUnique
*/
export type RegisterFormFieldFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterFormField
*/
select?: RegisterFormFieldSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterFormFieldInclude<ExtArgs> | null
/**
* Filter, which RegisterFormField to fetch.
*/
where: RegisterFormFieldWhereUniqueInput
}
/**
* RegisterFormField findUniqueOrThrow
*/
export type RegisterFormFieldFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterFormField
*/
select?: RegisterFormFieldSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterFormFieldInclude<ExtArgs> | null
/**
* Filter, which RegisterFormField to fetch.
*/
where: RegisterFormFieldWhereUniqueInput
}
/**
* RegisterFormField findFirst
*/
export type RegisterFormFieldFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterFormField
*/
select?: RegisterFormFieldSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterFormFieldInclude<ExtArgs> | null
/**
* Filter, which RegisterFormField to fetch.
*/
where?: RegisterFormFieldWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of RegisterFormFields to fetch.
*/
orderBy?: RegisterFormFieldOrderByWithRelationInput | RegisterFormFieldOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for RegisterFormFields.
*/
cursor?: RegisterFormFieldWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` RegisterFormFields 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` RegisterFormFields.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of RegisterFormFields.
*/
distinct?: RegisterFormFieldScalarFieldEnum | RegisterFormFieldScalarFieldEnum[]
}
/**
* RegisterFormField findFirstOrThrow
*/
export type RegisterFormFieldFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterFormField
*/
select?: RegisterFormFieldSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterFormFieldInclude<ExtArgs> | null
/**
* Filter, which RegisterFormField to fetch.
*/
where?: RegisterFormFieldWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of RegisterFormFields to fetch.
*/
orderBy?: RegisterFormFieldOrderByWithRelationInput | RegisterFormFieldOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for RegisterFormFields.
*/
cursor?: RegisterFormFieldWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` RegisterFormFields 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` RegisterFormFields.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of RegisterFormFields.
*/
distinct?: RegisterFormFieldScalarFieldEnum | RegisterFormFieldScalarFieldEnum[]
}
/**
* RegisterFormField findMany
*/
export type RegisterFormFieldFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterFormField
*/
select?: RegisterFormFieldSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterFormFieldInclude<ExtArgs> | null
/**
* Filter, which RegisterFormFields to fetch.
*/
where?: RegisterFormFieldWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of RegisterFormFields to fetch.
*/
orderBy?: RegisterFormFieldOrderByWithRelationInput | RegisterFormFieldOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing RegisterFormFields.
*/
cursor?: RegisterFormFieldWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` RegisterFormFields 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` RegisterFormFields.
*/
skip?: number
distinct?: RegisterFormFieldScalarFieldEnum | RegisterFormFieldScalarFieldEnum[]
}
/**
* RegisterFormField create
*/
export type RegisterFormFieldCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterFormField
*/
select?: RegisterFormFieldSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterFormFieldInclude<ExtArgs> | null
/**
* The data needed to create a RegisterFormField.
*/
data: XOR<RegisterFormFieldCreateInput, RegisterFormFieldUncheckedCreateInput>
}
/**
* RegisterFormField createMany
*/
export type RegisterFormFieldCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many RegisterFormFields.
*/
data: RegisterFormFieldCreateManyInput | RegisterFormFieldCreateManyInput[]
skipDuplicates?: boolean
}
/**
* RegisterFormField createManyAndReturn
*/
export type RegisterFormFieldCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterFormField
*/
select?: RegisterFormFieldSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many RegisterFormFields.
*/
data: RegisterFormFieldCreateManyInput | RegisterFormFieldCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterFormFieldIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* RegisterFormField update
*/
export type RegisterFormFieldUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterFormField
*/
select?: RegisterFormFieldSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterFormFieldInclude<ExtArgs> | null
/**
* The data needed to update a RegisterFormField.
*/
data: XOR<RegisterFormFieldUpdateInput, RegisterFormFieldUncheckedUpdateInput>
/**
* Choose, which RegisterFormField to update.
*/
where: RegisterFormFieldWhereUniqueInput
}
/**
* RegisterFormField updateMany
*/
export type RegisterFormFieldUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update RegisterFormFields.
*/
data: XOR<RegisterFormFieldUpdateManyMutationInput, RegisterFormFieldUncheckedUpdateManyInput>
/**
* Filter which RegisterFormFields to update
*/
where?: RegisterFormFieldWhereInput
}
/**
* RegisterFormField upsert
*/
export type RegisterFormFieldUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterFormField
*/
select?: RegisterFormFieldSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterFormFieldInclude<ExtArgs> | null
/**
* The filter to search for the RegisterFormField to update in case it exists.
*/
where: RegisterFormFieldWhereUniqueInput
/**
* In case the RegisterFormField found by the `where` argument doesn't exist, create a new RegisterFormField with this data.
*/
create: XOR<RegisterFormFieldCreateInput, RegisterFormFieldUncheckedCreateInput>
/**
* In case the RegisterFormField was found with the provided `where` argument, update it with this data.
*/
update: XOR<RegisterFormFieldUpdateInput, RegisterFormFieldUncheckedUpdateInput>
}
/**
* RegisterFormField delete
*/
export type RegisterFormFieldDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterFormField
*/
select?: RegisterFormFieldSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterFormFieldInclude<ExtArgs> | null
/**
* Filter which RegisterFormField to delete.
*/
where: RegisterFormFieldWhereUniqueInput
}
/**
* RegisterFormField deleteMany
*/
export type RegisterFormFieldDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which RegisterFormFields to delete
*/
where?: RegisterFormFieldWhereInput
}
/**
* RegisterFormField without action
*/
export type RegisterFormFieldDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterFormField
*/
select?: RegisterFormFieldSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterFormFieldInclude<ExtArgs> | null
}
/**
* Model RegisterApplication
*/
export type AggregateRegisterApplication = {
_count: RegisterApplicationCountAggregateOutputType | null
_min: RegisterApplicationMinAggregateOutputType | null
_max: RegisterApplicationMaxAggregateOutputType | null
}
export type RegisterApplicationMinAggregateOutputType = {
id: string | null
guildId: string | null
userId: string | null
formId: string | null
status: string | null
reviewedBy: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type RegisterApplicationMaxAggregateOutputType = {
id: string | null
guildId: string | null
userId: string | null
formId: string | null
status: string | null
reviewedBy: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type RegisterApplicationCountAggregateOutputType = {
id: number
guildId: number
userId: number
formId: number
status: number
reviewedBy: number
createdAt: number
updatedAt: number
_all: number
}
export type RegisterApplicationMinAggregateInputType = {
id?: true
guildId?: true
userId?: true
formId?: true
status?: true
reviewedBy?: true
createdAt?: true
updatedAt?: true
}
export type RegisterApplicationMaxAggregateInputType = {
id?: true
guildId?: true
userId?: true
formId?: true
status?: true
reviewedBy?: true
createdAt?: true
updatedAt?: true
}
export type RegisterApplicationCountAggregateInputType = {
id?: true
guildId?: true
userId?: true
formId?: true
status?: true
reviewedBy?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type RegisterApplicationAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which RegisterApplication to aggregate.
*/
where?: RegisterApplicationWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of RegisterApplications to fetch.
*/
orderBy?: RegisterApplicationOrderByWithRelationInput | RegisterApplicationOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: RegisterApplicationWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` RegisterApplications 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` RegisterApplications.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned RegisterApplications
**/
_count?: true | RegisterApplicationCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: RegisterApplicationMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: RegisterApplicationMaxAggregateInputType
}
export type GetRegisterApplicationAggregateType<T extends RegisterApplicationAggregateArgs> = {
[P in keyof T & keyof AggregateRegisterApplication]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateRegisterApplication[P]>
: GetScalarType<T[P], AggregateRegisterApplication[P]>
}
export type RegisterApplicationGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: RegisterApplicationWhereInput
orderBy?: RegisterApplicationOrderByWithAggregationInput | RegisterApplicationOrderByWithAggregationInput[]
by: RegisterApplicationScalarFieldEnum[] | RegisterApplicationScalarFieldEnum
having?: RegisterApplicationScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: RegisterApplicationCountAggregateInputType | true
_min?: RegisterApplicationMinAggregateInputType
_max?: RegisterApplicationMaxAggregateInputType
}
export type RegisterApplicationGroupByOutputType = {
id: string
guildId: string
userId: string
formId: string
status: string
reviewedBy: string | null
createdAt: Date
updatedAt: Date
_count: RegisterApplicationCountAggregateOutputType | null
_min: RegisterApplicationMinAggregateOutputType | null
_max: RegisterApplicationMaxAggregateOutputType | null
}
type GetRegisterApplicationGroupByPayload<T extends RegisterApplicationGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<RegisterApplicationGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof RegisterApplicationGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], RegisterApplicationGroupByOutputType[P]>
: GetScalarType<T[P], RegisterApplicationGroupByOutputType[P]>
}
>
>
export type RegisterApplicationSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
guildId?: boolean
userId?: boolean
formId?: boolean
status?: boolean
reviewedBy?: boolean
createdAt?: boolean
updatedAt?: boolean
answers?: boolean | RegisterApplication$answersArgs<ExtArgs>
notes?: boolean | RegisterApplication$notesArgs<ExtArgs>
form?: boolean | RegisterFormDefaultArgs<ExtArgs>
_count?: boolean | RegisterApplicationCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["registerApplication"]>
export type RegisterApplicationSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
guildId?: boolean
userId?: boolean
formId?: boolean
status?: boolean
reviewedBy?: boolean
createdAt?: boolean
updatedAt?: boolean
form?: boolean | RegisterFormDefaultArgs<ExtArgs>
}, ExtArgs["result"]["registerApplication"]>
export type RegisterApplicationSelectScalar = {
id?: boolean
guildId?: boolean
userId?: boolean
formId?: boolean
status?: boolean
reviewedBy?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type RegisterApplicationInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
answers?: boolean | RegisterApplication$answersArgs<ExtArgs>
notes?: boolean | RegisterApplication$notesArgs<ExtArgs>
form?: boolean | RegisterFormDefaultArgs<ExtArgs>
_count?: boolean | RegisterApplicationCountOutputTypeDefaultArgs<ExtArgs>
}
export type RegisterApplicationIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
form?: boolean | RegisterFormDefaultArgs<ExtArgs>
}
export type $RegisterApplicationPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "RegisterApplication"
objects: {
answers: Prisma.$RegisterApplicationAnswerPayload<ExtArgs>[]
notes: Prisma.$RegisterApplicationNotePayload<ExtArgs>[]
form: Prisma.$RegisterFormPayload<ExtArgs>
}
scalars: $Extensions.GetPayloadResult<{
id: string
guildId: string
userId: string
formId: string
status: string
reviewedBy: string | null
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["registerApplication"]>
composites: {}
}
type RegisterApplicationGetPayload<S extends boolean | null | undefined | RegisterApplicationDefaultArgs> = $Result.GetResult<Prisma.$RegisterApplicationPayload, S>
type RegisterApplicationCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<RegisterApplicationFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: RegisterApplicationCountAggregateInputType | true
}
export interface RegisterApplicationDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['RegisterApplication'], meta: { name: 'RegisterApplication' } }
/**
* Find zero or one RegisterApplication that matches the filter.
* @param {RegisterApplicationFindUniqueArgs} args - Arguments to find a RegisterApplication
* @example
* // Get one RegisterApplication
* const registerApplication = await prisma.registerApplication.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends RegisterApplicationFindUniqueArgs>(args: SelectSubset<T, RegisterApplicationFindUniqueArgs<ExtArgs>>): Prisma__RegisterApplicationClient<$Result.GetResult<Prisma.$RegisterApplicationPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one RegisterApplication that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {RegisterApplicationFindUniqueOrThrowArgs} args - Arguments to find a RegisterApplication
* @example
* // Get one RegisterApplication
* const registerApplication = await prisma.registerApplication.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends RegisterApplicationFindUniqueOrThrowArgs>(args: SelectSubset<T, RegisterApplicationFindUniqueOrThrowArgs<ExtArgs>>): Prisma__RegisterApplicationClient<$Result.GetResult<Prisma.$RegisterApplicationPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first RegisterApplication 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 {RegisterApplicationFindFirstArgs} args - Arguments to find a RegisterApplication
* @example
* // Get one RegisterApplication
* const registerApplication = await prisma.registerApplication.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends RegisterApplicationFindFirstArgs>(args?: SelectSubset<T, RegisterApplicationFindFirstArgs<ExtArgs>>): Prisma__RegisterApplicationClient<$Result.GetResult<Prisma.$RegisterApplicationPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first RegisterApplication 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 {RegisterApplicationFindFirstOrThrowArgs} args - Arguments to find a RegisterApplication
* @example
* // Get one RegisterApplication
* const registerApplication = await prisma.registerApplication.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends RegisterApplicationFindFirstOrThrowArgs>(args?: SelectSubset<T, RegisterApplicationFindFirstOrThrowArgs<ExtArgs>>): Prisma__RegisterApplicationClient<$Result.GetResult<Prisma.$RegisterApplicationPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more RegisterApplications 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 {RegisterApplicationFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all RegisterApplications
* const registerApplications = await prisma.registerApplication.findMany()
*
* // Get first 10 RegisterApplications
* const registerApplications = await prisma.registerApplication.findMany({ take: 10 })
*
* // Only select the `id`
* const registerApplicationWithIdOnly = await prisma.registerApplication.findMany({ select: { id: true } })
*
*/
findMany<T extends RegisterApplicationFindManyArgs>(args?: SelectSubset<T, RegisterApplicationFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$RegisterApplicationPayload<ExtArgs>, T, "findMany">>
/**
* Create a RegisterApplication.
* @param {RegisterApplicationCreateArgs} args - Arguments to create a RegisterApplication.
* @example
* // Create one RegisterApplication
* const RegisterApplication = await prisma.registerApplication.create({
* data: {
* // ... data to create a RegisterApplication
* }
* })
*
*/
create<T extends RegisterApplicationCreateArgs>(args: SelectSubset<T, RegisterApplicationCreateArgs<ExtArgs>>): Prisma__RegisterApplicationClient<$Result.GetResult<Prisma.$RegisterApplicationPayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many RegisterApplications.
* @param {RegisterApplicationCreateManyArgs} args - Arguments to create many RegisterApplications.
* @example
* // Create many RegisterApplications
* const registerApplication = await prisma.registerApplication.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends RegisterApplicationCreateManyArgs>(args?: SelectSubset<T, RegisterApplicationCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many RegisterApplications and returns the data saved in the database.
* @param {RegisterApplicationCreateManyAndReturnArgs} args - Arguments to create many RegisterApplications.
* @example
* // Create many RegisterApplications
* const registerApplication = await prisma.registerApplication.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many RegisterApplications and only return the `id`
* const registerApplicationWithIdOnly = await prisma.registerApplication.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 RegisterApplicationCreateManyAndReturnArgs>(args?: SelectSubset<T, RegisterApplicationCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$RegisterApplicationPayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a RegisterApplication.
* @param {RegisterApplicationDeleteArgs} args - Arguments to delete one RegisterApplication.
* @example
* // Delete one RegisterApplication
* const RegisterApplication = await prisma.registerApplication.delete({
* where: {
* // ... filter to delete one RegisterApplication
* }
* })
*
*/
delete<T extends RegisterApplicationDeleteArgs>(args: SelectSubset<T, RegisterApplicationDeleteArgs<ExtArgs>>): Prisma__RegisterApplicationClient<$Result.GetResult<Prisma.$RegisterApplicationPayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one RegisterApplication.
* @param {RegisterApplicationUpdateArgs} args - Arguments to update one RegisterApplication.
* @example
* // Update one RegisterApplication
* const registerApplication = await prisma.registerApplication.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends RegisterApplicationUpdateArgs>(args: SelectSubset<T, RegisterApplicationUpdateArgs<ExtArgs>>): Prisma__RegisterApplicationClient<$Result.GetResult<Prisma.$RegisterApplicationPayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more RegisterApplications.
* @param {RegisterApplicationDeleteManyArgs} args - Arguments to filter RegisterApplications to delete.
* @example
* // Delete a few RegisterApplications
* const { count } = await prisma.registerApplication.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends RegisterApplicationDeleteManyArgs>(args?: SelectSubset<T, RegisterApplicationDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more RegisterApplications.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {RegisterApplicationUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many RegisterApplications
* const registerApplication = await prisma.registerApplication.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends RegisterApplicationUpdateManyArgs>(args: SelectSubset<T, RegisterApplicationUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one RegisterApplication.
* @param {RegisterApplicationUpsertArgs} args - Arguments to update or create a RegisterApplication.
* @example
* // Update or create a RegisterApplication
* const registerApplication = await prisma.registerApplication.upsert({
* create: {
* // ... data to create a RegisterApplication
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the RegisterApplication we want to update
* }
* })
*/
upsert<T extends RegisterApplicationUpsertArgs>(args: SelectSubset<T, RegisterApplicationUpsertArgs<ExtArgs>>): Prisma__RegisterApplicationClient<$Result.GetResult<Prisma.$RegisterApplicationPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of RegisterApplications.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {RegisterApplicationCountArgs} args - Arguments to filter RegisterApplications to count.
* @example
* // Count the number of RegisterApplications
* const count = await prisma.registerApplication.count({
* where: {
* // ... the filter for the RegisterApplications we want to count
* }
* })
**/
count<T extends RegisterApplicationCountArgs>(
args?: Subset<T, RegisterApplicationCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], RegisterApplicationCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a RegisterApplication.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {RegisterApplicationAggregateArgs} 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 RegisterApplicationAggregateArgs>(args: Subset<T, RegisterApplicationAggregateArgs>): Prisma.PrismaPromise<GetRegisterApplicationAggregateType<T>>
/**
* Group by RegisterApplication.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {RegisterApplicationGroupByArgs} 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 RegisterApplicationGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: RegisterApplicationGroupByArgs['orderBy'] }
: { orderBy?: RegisterApplicationGroupByArgs['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, RegisterApplicationGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetRegisterApplicationGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the RegisterApplication model
*/
readonly fields: RegisterApplicationFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for RegisterApplication.
* 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__RegisterApplicationClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
answers<T extends RegisterApplication$answersArgs<ExtArgs> = {}>(args?: Subset<T, RegisterApplication$answersArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$RegisterApplicationAnswerPayload<ExtArgs>, T, "findMany"> | Null>
notes<T extends RegisterApplication$notesArgs<ExtArgs> = {}>(args?: Subset<T, RegisterApplication$notesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$RegisterApplicationNotePayload<ExtArgs>, T, "findMany"> | Null>
form<T extends RegisterFormDefaultArgs<ExtArgs> = {}>(args?: Subset<T, RegisterFormDefaultArgs<ExtArgs>>): Prisma__RegisterFormClient<$Result.GetResult<Prisma.$RegisterFormPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the RegisterApplication model
*/
interface RegisterApplicationFieldRefs {
readonly id: FieldRef<"RegisterApplication", 'String'>
readonly guildId: FieldRef<"RegisterApplication", 'String'>
readonly userId: FieldRef<"RegisterApplication", 'String'>
readonly formId: FieldRef<"RegisterApplication", 'String'>
readonly status: FieldRef<"RegisterApplication", 'String'>
readonly reviewedBy: FieldRef<"RegisterApplication", 'String'>
readonly createdAt: FieldRef<"RegisterApplication", 'DateTime'>
readonly updatedAt: FieldRef<"RegisterApplication", 'DateTime'>
}
// Custom InputTypes
/**
* RegisterApplication findUnique
*/
export type RegisterApplicationFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterApplication
*/
select?: RegisterApplicationSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterApplicationInclude<ExtArgs> | null
/**
* Filter, which RegisterApplication to fetch.
*/
where: RegisterApplicationWhereUniqueInput
}
/**
* RegisterApplication findUniqueOrThrow
*/
export type RegisterApplicationFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterApplication
*/
select?: RegisterApplicationSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterApplicationInclude<ExtArgs> | null
/**
* Filter, which RegisterApplication to fetch.
*/
where: RegisterApplicationWhereUniqueInput
}
/**
* RegisterApplication findFirst
*/
export type RegisterApplicationFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterApplication
*/
select?: RegisterApplicationSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterApplicationInclude<ExtArgs> | null
/**
* Filter, which RegisterApplication to fetch.
*/
where?: RegisterApplicationWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of RegisterApplications to fetch.
*/
orderBy?: RegisterApplicationOrderByWithRelationInput | RegisterApplicationOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for RegisterApplications.
*/
cursor?: RegisterApplicationWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` RegisterApplications 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` RegisterApplications.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of RegisterApplications.
*/
distinct?: RegisterApplicationScalarFieldEnum | RegisterApplicationScalarFieldEnum[]
}
/**
* RegisterApplication findFirstOrThrow
*/
export type RegisterApplicationFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterApplication
*/
select?: RegisterApplicationSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterApplicationInclude<ExtArgs> | null
/**
* Filter, which RegisterApplication to fetch.
*/
where?: RegisterApplicationWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of RegisterApplications to fetch.
*/
orderBy?: RegisterApplicationOrderByWithRelationInput | RegisterApplicationOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for RegisterApplications.
*/
cursor?: RegisterApplicationWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` RegisterApplications 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` RegisterApplications.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of RegisterApplications.
*/
distinct?: RegisterApplicationScalarFieldEnum | RegisterApplicationScalarFieldEnum[]
}
/**
* RegisterApplication findMany
*/
export type RegisterApplicationFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterApplication
*/
select?: RegisterApplicationSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterApplicationInclude<ExtArgs> | null
/**
* Filter, which RegisterApplications to fetch.
*/
where?: RegisterApplicationWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of RegisterApplications to fetch.
*/
orderBy?: RegisterApplicationOrderByWithRelationInput | RegisterApplicationOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing RegisterApplications.
*/
cursor?: RegisterApplicationWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` RegisterApplications 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` RegisterApplications.
*/
skip?: number
distinct?: RegisterApplicationScalarFieldEnum | RegisterApplicationScalarFieldEnum[]
}
/**
* RegisterApplication create
*/
export type RegisterApplicationCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterApplication
*/
select?: RegisterApplicationSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterApplicationInclude<ExtArgs> | null
/**
* The data needed to create a RegisterApplication.
*/
data: XOR<RegisterApplicationCreateInput, RegisterApplicationUncheckedCreateInput>
}
/**
* RegisterApplication createMany
*/
export type RegisterApplicationCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many RegisterApplications.
*/
data: RegisterApplicationCreateManyInput | RegisterApplicationCreateManyInput[]
skipDuplicates?: boolean
}
/**
* RegisterApplication createManyAndReturn
*/
export type RegisterApplicationCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterApplication
*/
select?: RegisterApplicationSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many RegisterApplications.
*/
data: RegisterApplicationCreateManyInput | RegisterApplicationCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterApplicationIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* RegisterApplication update
*/
export type RegisterApplicationUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterApplication
*/
select?: RegisterApplicationSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterApplicationInclude<ExtArgs> | null
/**
* The data needed to update a RegisterApplication.
*/
data: XOR<RegisterApplicationUpdateInput, RegisterApplicationUncheckedUpdateInput>
/**
* Choose, which RegisterApplication to update.
*/
where: RegisterApplicationWhereUniqueInput
}
/**
* RegisterApplication updateMany
*/
export type RegisterApplicationUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update RegisterApplications.
*/
data: XOR<RegisterApplicationUpdateManyMutationInput, RegisterApplicationUncheckedUpdateManyInput>
/**
* Filter which RegisterApplications to update
*/
where?: RegisterApplicationWhereInput
}
/**
* RegisterApplication upsert
*/
export type RegisterApplicationUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterApplication
*/
select?: RegisterApplicationSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterApplicationInclude<ExtArgs> | null
/**
* The filter to search for the RegisterApplication to update in case it exists.
*/
where: RegisterApplicationWhereUniqueInput
/**
* In case the RegisterApplication found by the `where` argument doesn't exist, create a new RegisterApplication with this data.
*/
create: XOR<RegisterApplicationCreateInput, RegisterApplicationUncheckedCreateInput>
/**
* In case the RegisterApplication was found with the provided `where` argument, update it with this data.
*/
update: XOR<RegisterApplicationUpdateInput, RegisterApplicationUncheckedUpdateInput>
}
/**
* RegisterApplication delete
*/
export type RegisterApplicationDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterApplication
*/
select?: RegisterApplicationSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterApplicationInclude<ExtArgs> | null
/**
* Filter which RegisterApplication to delete.
*/
where: RegisterApplicationWhereUniqueInput
}
/**
* RegisterApplication deleteMany
*/
export type RegisterApplicationDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which RegisterApplications to delete
*/
where?: RegisterApplicationWhereInput
}
/**
* RegisterApplication.answers
*/
export type RegisterApplication$answersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterApplicationAnswer
*/
select?: RegisterApplicationAnswerSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterApplicationAnswerInclude<ExtArgs> | null
where?: RegisterApplicationAnswerWhereInput
orderBy?: RegisterApplicationAnswerOrderByWithRelationInput | RegisterApplicationAnswerOrderByWithRelationInput[]
cursor?: RegisterApplicationAnswerWhereUniqueInput
take?: number
skip?: number
distinct?: RegisterApplicationAnswerScalarFieldEnum | RegisterApplicationAnswerScalarFieldEnum[]
}
/**
* RegisterApplication.notes
*/
export type RegisterApplication$notesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterApplicationNote
*/
select?: RegisterApplicationNoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterApplicationNoteInclude<ExtArgs> | null
where?: RegisterApplicationNoteWhereInput
orderBy?: RegisterApplicationNoteOrderByWithRelationInput | RegisterApplicationNoteOrderByWithRelationInput[]
cursor?: RegisterApplicationNoteWhereUniqueInput
take?: number
skip?: number
distinct?: RegisterApplicationNoteScalarFieldEnum | RegisterApplicationNoteScalarFieldEnum[]
}
/**
* RegisterApplication without action
*/
export type RegisterApplicationDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterApplication
*/
select?: RegisterApplicationSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterApplicationInclude<ExtArgs> | null
}
/**
* Model RegisterApplicationAnswer
*/
export type AggregateRegisterApplicationAnswer = {
_count: RegisterApplicationAnswerCountAggregateOutputType | null
_min: RegisterApplicationAnswerMinAggregateOutputType | null
_max: RegisterApplicationAnswerMaxAggregateOutputType | null
}
export type RegisterApplicationAnswerMinAggregateOutputType = {
id: string | null
applicationId: string | null
fieldId: string | null
value: string | null
}
export type RegisterApplicationAnswerMaxAggregateOutputType = {
id: string | null
applicationId: string | null
fieldId: string | null
value: string | null
}
export type RegisterApplicationAnswerCountAggregateOutputType = {
id: number
applicationId: number
fieldId: number
value: number
_all: number
}
export type RegisterApplicationAnswerMinAggregateInputType = {
id?: true
applicationId?: true
fieldId?: true
value?: true
}
export type RegisterApplicationAnswerMaxAggregateInputType = {
id?: true
applicationId?: true
fieldId?: true
value?: true
}
export type RegisterApplicationAnswerCountAggregateInputType = {
id?: true
applicationId?: true
fieldId?: true
value?: true
_all?: true
}
export type RegisterApplicationAnswerAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which RegisterApplicationAnswer to aggregate.
*/
where?: RegisterApplicationAnswerWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of RegisterApplicationAnswers to fetch.
*/
orderBy?: RegisterApplicationAnswerOrderByWithRelationInput | RegisterApplicationAnswerOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: RegisterApplicationAnswerWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` RegisterApplicationAnswers 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` RegisterApplicationAnswers.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned RegisterApplicationAnswers
**/
_count?: true | RegisterApplicationAnswerCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: RegisterApplicationAnswerMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: RegisterApplicationAnswerMaxAggregateInputType
}
export type GetRegisterApplicationAnswerAggregateType<T extends RegisterApplicationAnswerAggregateArgs> = {
[P in keyof T & keyof AggregateRegisterApplicationAnswer]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateRegisterApplicationAnswer[P]>
: GetScalarType<T[P], AggregateRegisterApplicationAnswer[P]>
}
export type RegisterApplicationAnswerGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: RegisterApplicationAnswerWhereInput
orderBy?: RegisterApplicationAnswerOrderByWithAggregationInput | RegisterApplicationAnswerOrderByWithAggregationInput[]
by: RegisterApplicationAnswerScalarFieldEnum[] | RegisterApplicationAnswerScalarFieldEnum
having?: RegisterApplicationAnswerScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: RegisterApplicationAnswerCountAggregateInputType | true
_min?: RegisterApplicationAnswerMinAggregateInputType
_max?: RegisterApplicationAnswerMaxAggregateInputType
}
export type RegisterApplicationAnswerGroupByOutputType = {
id: string
applicationId: string
fieldId: string
value: string
_count: RegisterApplicationAnswerCountAggregateOutputType | null
_min: RegisterApplicationAnswerMinAggregateOutputType | null
_max: RegisterApplicationAnswerMaxAggregateOutputType | null
}
type GetRegisterApplicationAnswerGroupByPayload<T extends RegisterApplicationAnswerGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<RegisterApplicationAnswerGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof RegisterApplicationAnswerGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], RegisterApplicationAnswerGroupByOutputType[P]>
: GetScalarType<T[P], RegisterApplicationAnswerGroupByOutputType[P]>
}
>
>
export type RegisterApplicationAnswerSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
applicationId?: boolean
fieldId?: boolean
value?: boolean
application?: boolean | RegisterApplicationDefaultArgs<ExtArgs>
}, ExtArgs["result"]["registerApplicationAnswer"]>
export type RegisterApplicationAnswerSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
applicationId?: boolean
fieldId?: boolean
value?: boolean
application?: boolean | RegisterApplicationDefaultArgs<ExtArgs>
}, ExtArgs["result"]["registerApplicationAnswer"]>
export type RegisterApplicationAnswerSelectScalar = {
id?: boolean
applicationId?: boolean
fieldId?: boolean
value?: boolean
}
export type RegisterApplicationAnswerInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
application?: boolean | RegisterApplicationDefaultArgs<ExtArgs>
}
export type RegisterApplicationAnswerIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
application?: boolean | RegisterApplicationDefaultArgs<ExtArgs>
}
export type $RegisterApplicationAnswerPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "RegisterApplicationAnswer"
objects: {
application: Prisma.$RegisterApplicationPayload<ExtArgs>
}
scalars: $Extensions.GetPayloadResult<{
id: string
applicationId: string
fieldId: string
value: string
}, ExtArgs["result"]["registerApplicationAnswer"]>
composites: {}
}
type RegisterApplicationAnswerGetPayload<S extends boolean | null | undefined | RegisterApplicationAnswerDefaultArgs> = $Result.GetResult<Prisma.$RegisterApplicationAnswerPayload, S>
type RegisterApplicationAnswerCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<RegisterApplicationAnswerFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: RegisterApplicationAnswerCountAggregateInputType | true
}
export interface RegisterApplicationAnswerDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['RegisterApplicationAnswer'], meta: { name: 'RegisterApplicationAnswer' } }
/**
* Find zero or one RegisterApplicationAnswer that matches the filter.
* @param {RegisterApplicationAnswerFindUniqueArgs} args - Arguments to find a RegisterApplicationAnswer
* @example
* // Get one RegisterApplicationAnswer
* const registerApplicationAnswer = await prisma.registerApplicationAnswer.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends RegisterApplicationAnswerFindUniqueArgs>(args: SelectSubset<T, RegisterApplicationAnswerFindUniqueArgs<ExtArgs>>): Prisma__RegisterApplicationAnswerClient<$Result.GetResult<Prisma.$RegisterApplicationAnswerPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one RegisterApplicationAnswer that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {RegisterApplicationAnswerFindUniqueOrThrowArgs} args - Arguments to find a RegisterApplicationAnswer
* @example
* // Get one RegisterApplicationAnswer
* const registerApplicationAnswer = await prisma.registerApplicationAnswer.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends RegisterApplicationAnswerFindUniqueOrThrowArgs>(args: SelectSubset<T, RegisterApplicationAnswerFindUniqueOrThrowArgs<ExtArgs>>): Prisma__RegisterApplicationAnswerClient<$Result.GetResult<Prisma.$RegisterApplicationAnswerPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first RegisterApplicationAnswer 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 {RegisterApplicationAnswerFindFirstArgs} args - Arguments to find a RegisterApplicationAnswer
* @example
* // Get one RegisterApplicationAnswer
* const registerApplicationAnswer = await prisma.registerApplicationAnswer.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends RegisterApplicationAnswerFindFirstArgs>(args?: SelectSubset<T, RegisterApplicationAnswerFindFirstArgs<ExtArgs>>): Prisma__RegisterApplicationAnswerClient<$Result.GetResult<Prisma.$RegisterApplicationAnswerPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first RegisterApplicationAnswer 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 {RegisterApplicationAnswerFindFirstOrThrowArgs} args - Arguments to find a RegisterApplicationAnswer
* @example
* // Get one RegisterApplicationAnswer
* const registerApplicationAnswer = await prisma.registerApplicationAnswer.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends RegisterApplicationAnswerFindFirstOrThrowArgs>(args?: SelectSubset<T, RegisterApplicationAnswerFindFirstOrThrowArgs<ExtArgs>>): Prisma__RegisterApplicationAnswerClient<$Result.GetResult<Prisma.$RegisterApplicationAnswerPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more RegisterApplicationAnswers 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 {RegisterApplicationAnswerFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all RegisterApplicationAnswers
* const registerApplicationAnswers = await prisma.registerApplicationAnswer.findMany()
*
* // Get first 10 RegisterApplicationAnswers
* const registerApplicationAnswers = await prisma.registerApplicationAnswer.findMany({ take: 10 })
*
* // Only select the `id`
* const registerApplicationAnswerWithIdOnly = await prisma.registerApplicationAnswer.findMany({ select: { id: true } })
*
*/
findMany<T extends RegisterApplicationAnswerFindManyArgs>(args?: SelectSubset<T, RegisterApplicationAnswerFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$RegisterApplicationAnswerPayload<ExtArgs>, T, "findMany">>
/**
* Create a RegisterApplicationAnswer.
* @param {RegisterApplicationAnswerCreateArgs} args - Arguments to create a RegisterApplicationAnswer.
* @example
* // Create one RegisterApplicationAnswer
* const RegisterApplicationAnswer = await prisma.registerApplicationAnswer.create({
* data: {
* // ... data to create a RegisterApplicationAnswer
* }
* })
*
*/
create<T extends RegisterApplicationAnswerCreateArgs>(args: SelectSubset<T, RegisterApplicationAnswerCreateArgs<ExtArgs>>): Prisma__RegisterApplicationAnswerClient<$Result.GetResult<Prisma.$RegisterApplicationAnswerPayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many RegisterApplicationAnswers.
* @param {RegisterApplicationAnswerCreateManyArgs} args - Arguments to create many RegisterApplicationAnswers.
* @example
* // Create many RegisterApplicationAnswers
* const registerApplicationAnswer = await prisma.registerApplicationAnswer.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends RegisterApplicationAnswerCreateManyArgs>(args?: SelectSubset<T, RegisterApplicationAnswerCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many RegisterApplicationAnswers and returns the data saved in the database.
* @param {RegisterApplicationAnswerCreateManyAndReturnArgs} args - Arguments to create many RegisterApplicationAnswers.
* @example
* // Create many RegisterApplicationAnswers
* const registerApplicationAnswer = await prisma.registerApplicationAnswer.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many RegisterApplicationAnswers and only return the `id`
* const registerApplicationAnswerWithIdOnly = await prisma.registerApplicationAnswer.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 RegisterApplicationAnswerCreateManyAndReturnArgs>(args?: SelectSubset<T, RegisterApplicationAnswerCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$RegisterApplicationAnswerPayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a RegisterApplicationAnswer.
* @param {RegisterApplicationAnswerDeleteArgs} args - Arguments to delete one RegisterApplicationAnswer.
* @example
* // Delete one RegisterApplicationAnswer
* const RegisterApplicationAnswer = await prisma.registerApplicationAnswer.delete({
* where: {
* // ... filter to delete one RegisterApplicationAnswer
* }
* })
*
*/
delete<T extends RegisterApplicationAnswerDeleteArgs>(args: SelectSubset<T, RegisterApplicationAnswerDeleteArgs<ExtArgs>>): Prisma__RegisterApplicationAnswerClient<$Result.GetResult<Prisma.$RegisterApplicationAnswerPayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one RegisterApplicationAnswer.
* @param {RegisterApplicationAnswerUpdateArgs} args - Arguments to update one RegisterApplicationAnswer.
* @example
* // Update one RegisterApplicationAnswer
* const registerApplicationAnswer = await prisma.registerApplicationAnswer.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends RegisterApplicationAnswerUpdateArgs>(args: SelectSubset<T, RegisterApplicationAnswerUpdateArgs<ExtArgs>>): Prisma__RegisterApplicationAnswerClient<$Result.GetResult<Prisma.$RegisterApplicationAnswerPayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more RegisterApplicationAnswers.
* @param {RegisterApplicationAnswerDeleteManyArgs} args - Arguments to filter RegisterApplicationAnswers to delete.
* @example
* // Delete a few RegisterApplicationAnswers
* const { count } = await prisma.registerApplicationAnswer.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends RegisterApplicationAnswerDeleteManyArgs>(args?: SelectSubset<T, RegisterApplicationAnswerDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more RegisterApplicationAnswers.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {RegisterApplicationAnswerUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many RegisterApplicationAnswers
* const registerApplicationAnswer = await prisma.registerApplicationAnswer.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends RegisterApplicationAnswerUpdateManyArgs>(args: SelectSubset<T, RegisterApplicationAnswerUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one RegisterApplicationAnswer.
* @param {RegisterApplicationAnswerUpsertArgs} args - Arguments to update or create a RegisterApplicationAnswer.
* @example
* // Update or create a RegisterApplicationAnswer
* const registerApplicationAnswer = await prisma.registerApplicationAnswer.upsert({
* create: {
* // ... data to create a RegisterApplicationAnswer
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the RegisterApplicationAnswer we want to update
* }
* })
*/
upsert<T extends RegisterApplicationAnswerUpsertArgs>(args: SelectSubset<T, RegisterApplicationAnswerUpsertArgs<ExtArgs>>): Prisma__RegisterApplicationAnswerClient<$Result.GetResult<Prisma.$RegisterApplicationAnswerPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of RegisterApplicationAnswers.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {RegisterApplicationAnswerCountArgs} args - Arguments to filter RegisterApplicationAnswers to count.
* @example
* // Count the number of RegisterApplicationAnswers
* const count = await prisma.registerApplicationAnswer.count({
* where: {
* // ... the filter for the RegisterApplicationAnswers we want to count
* }
* })
**/
count<T extends RegisterApplicationAnswerCountArgs>(
args?: Subset<T, RegisterApplicationAnswerCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], RegisterApplicationAnswerCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a RegisterApplicationAnswer.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {RegisterApplicationAnswerAggregateArgs} 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 RegisterApplicationAnswerAggregateArgs>(args: Subset<T, RegisterApplicationAnswerAggregateArgs>): Prisma.PrismaPromise<GetRegisterApplicationAnswerAggregateType<T>>
/**
* Group by RegisterApplicationAnswer.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {RegisterApplicationAnswerGroupByArgs} 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 RegisterApplicationAnswerGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: RegisterApplicationAnswerGroupByArgs['orderBy'] }
: { orderBy?: RegisterApplicationAnswerGroupByArgs['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, RegisterApplicationAnswerGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetRegisterApplicationAnswerGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the RegisterApplicationAnswer model
*/
readonly fields: RegisterApplicationAnswerFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for RegisterApplicationAnswer.
* 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__RegisterApplicationAnswerClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
application<T extends RegisterApplicationDefaultArgs<ExtArgs> = {}>(args?: Subset<T, RegisterApplicationDefaultArgs<ExtArgs>>): Prisma__RegisterApplicationClient<$Result.GetResult<Prisma.$RegisterApplicationPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the RegisterApplicationAnswer model
*/
interface RegisterApplicationAnswerFieldRefs {
readonly id: FieldRef<"RegisterApplicationAnswer", 'String'>
readonly applicationId: FieldRef<"RegisterApplicationAnswer", 'String'>
readonly fieldId: FieldRef<"RegisterApplicationAnswer", 'String'>
readonly value: FieldRef<"RegisterApplicationAnswer", 'String'>
}
// Custom InputTypes
/**
* RegisterApplicationAnswer findUnique
*/
export type RegisterApplicationAnswerFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterApplicationAnswer
*/
select?: RegisterApplicationAnswerSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterApplicationAnswerInclude<ExtArgs> | null
/**
* Filter, which RegisterApplicationAnswer to fetch.
*/
where: RegisterApplicationAnswerWhereUniqueInput
}
/**
* RegisterApplicationAnswer findUniqueOrThrow
*/
export type RegisterApplicationAnswerFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterApplicationAnswer
*/
select?: RegisterApplicationAnswerSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterApplicationAnswerInclude<ExtArgs> | null
/**
* Filter, which RegisterApplicationAnswer to fetch.
*/
where: RegisterApplicationAnswerWhereUniqueInput
}
/**
* RegisterApplicationAnswer findFirst
*/
export type RegisterApplicationAnswerFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterApplicationAnswer
*/
select?: RegisterApplicationAnswerSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterApplicationAnswerInclude<ExtArgs> | null
/**
* Filter, which RegisterApplicationAnswer to fetch.
*/
where?: RegisterApplicationAnswerWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of RegisterApplicationAnswers to fetch.
*/
orderBy?: RegisterApplicationAnswerOrderByWithRelationInput | RegisterApplicationAnswerOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for RegisterApplicationAnswers.
*/
cursor?: RegisterApplicationAnswerWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` RegisterApplicationAnswers 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` RegisterApplicationAnswers.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of RegisterApplicationAnswers.
*/
distinct?: RegisterApplicationAnswerScalarFieldEnum | RegisterApplicationAnswerScalarFieldEnum[]
}
/**
* RegisterApplicationAnswer findFirstOrThrow
*/
export type RegisterApplicationAnswerFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterApplicationAnswer
*/
select?: RegisterApplicationAnswerSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterApplicationAnswerInclude<ExtArgs> | null
/**
* Filter, which RegisterApplicationAnswer to fetch.
*/
where?: RegisterApplicationAnswerWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of RegisterApplicationAnswers to fetch.
*/
orderBy?: RegisterApplicationAnswerOrderByWithRelationInput | RegisterApplicationAnswerOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for RegisterApplicationAnswers.
*/
cursor?: RegisterApplicationAnswerWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` RegisterApplicationAnswers 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` RegisterApplicationAnswers.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of RegisterApplicationAnswers.
*/
distinct?: RegisterApplicationAnswerScalarFieldEnum | RegisterApplicationAnswerScalarFieldEnum[]
}
/**
* RegisterApplicationAnswer findMany
*/
export type RegisterApplicationAnswerFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterApplicationAnswer
*/
select?: RegisterApplicationAnswerSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterApplicationAnswerInclude<ExtArgs> | null
/**
* Filter, which RegisterApplicationAnswers to fetch.
*/
where?: RegisterApplicationAnswerWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of RegisterApplicationAnswers to fetch.
*/
orderBy?: RegisterApplicationAnswerOrderByWithRelationInput | RegisterApplicationAnswerOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing RegisterApplicationAnswers.
*/
cursor?: RegisterApplicationAnswerWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` RegisterApplicationAnswers 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` RegisterApplicationAnswers.
*/
skip?: number
distinct?: RegisterApplicationAnswerScalarFieldEnum | RegisterApplicationAnswerScalarFieldEnum[]
}
/**
* RegisterApplicationAnswer create
*/
export type RegisterApplicationAnswerCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterApplicationAnswer
*/
select?: RegisterApplicationAnswerSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterApplicationAnswerInclude<ExtArgs> | null
/**
* The data needed to create a RegisterApplicationAnswer.
*/
data: XOR<RegisterApplicationAnswerCreateInput, RegisterApplicationAnswerUncheckedCreateInput>
}
/**
* RegisterApplicationAnswer createMany
*/
export type RegisterApplicationAnswerCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many RegisterApplicationAnswers.
*/
data: RegisterApplicationAnswerCreateManyInput | RegisterApplicationAnswerCreateManyInput[]
skipDuplicates?: boolean
}
/**
* RegisterApplicationAnswer createManyAndReturn
*/
export type RegisterApplicationAnswerCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterApplicationAnswer
*/
select?: RegisterApplicationAnswerSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many RegisterApplicationAnswers.
*/
data: RegisterApplicationAnswerCreateManyInput | RegisterApplicationAnswerCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterApplicationAnswerIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* RegisterApplicationAnswer update
*/
export type RegisterApplicationAnswerUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterApplicationAnswer
*/
select?: RegisterApplicationAnswerSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterApplicationAnswerInclude<ExtArgs> | null
/**
* The data needed to update a RegisterApplicationAnswer.
*/
data: XOR<RegisterApplicationAnswerUpdateInput, RegisterApplicationAnswerUncheckedUpdateInput>
/**
* Choose, which RegisterApplicationAnswer to update.
*/
where: RegisterApplicationAnswerWhereUniqueInput
}
/**
* RegisterApplicationAnswer updateMany
*/
export type RegisterApplicationAnswerUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update RegisterApplicationAnswers.
*/
data: XOR<RegisterApplicationAnswerUpdateManyMutationInput, RegisterApplicationAnswerUncheckedUpdateManyInput>
/**
* Filter which RegisterApplicationAnswers to update
*/
where?: RegisterApplicationAnswerWhereInput
}
/**
* RegisterApplicationAnswer upsert
*/
export type RegisterApplicationAnswerUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterApplicationAnswer
*/
select?: RegisterApplicationAnswerSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterApplicationAnswerInclude<ExtArgs> | null
/**
* The filter to search for the RegisterApplicationAnswer to update in case it exists.
*/
where: RegisterApplicationAnswerWhereUniqueInput
/**
* In case the RegisterApplicationAnswer found by the `where` argument doesn't exist, create a new RegisterApplicationAnswer with this data.
*/
create: XOR<RegisterApplicationAnswerCreateInput, RegisterApplicationAnswerUncheckedCreateInput>
/**
* In case the RegisterApplicationAnswer was found with the provided `where` argument, update it with this data.
*/
update: XOR<RegisterApplicationAnswerUpdateInput, RegisterApplicationAnswerUncheckedUpdateInput>
}
/**
* RegisterApplicationAnswer delete
*/
export type RegisterApplicationAnswerDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterApplicationAnswer
*/
select?: RegisterApplicationAnswerSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterApplicationAnswerInclude<ExtArgs> | null
/**
* Filter which RegisterApplicationAnswer to delete.
*/
where: RegisterApplicationAnswerWhereUniqueInput
}
/**
* RegisterApplicationAnswer deleteMany
*/
export type RegisterApplicationAnswerDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which RegisterApplicationAnswers to delete
*/
where?: RegisterApplicationAnswerWhereInput
}
/**
* RegisterApplicationAnswer without action
*/
export type RegisterApplicationAnswerDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterApplicationAnswer
*/
select?: RegisterApplicationAnswerSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterApplicationAnswerInclude<ExtArgs> | null
}
/**
* Model RegisterApplicationNote
*/
export type AggregateRegisterApplicationNote = {
_count: RegisterApplicationNoteCountAggregateOutputType | null
_min: RegisterApplicationNoteMinAggregateOutputType | null
_max: RegisterApplicationNoteMaxAggregateOutputType | null
}
export type RegisterApplicationNoteMinAggregateOutputType = {
id: string | null
applicationId: string | null
authorId: string | null
authorTag: string | null
body: string | null
createdAt: Date | null
}
export type RegisterApplicationNoteMaxAggregateOutputType = {
id: string | null
applicationId: string | null
authorId: string | null
authorTag: string | null
body: string | null
createdAt: Date | null
}
export type RegisterApplicationNoteCountAggregateOutputType = {
id: number
applicationId: number
authorId: number
authorTag: number
body: number
createdAt: number
_all: number
}
export type RegisterApplicationNoteMinAggregateInputType = {
id?: true
applicationId?: true
authorId?: true
authorTag?: true
body?: true
createdAt?: true
}
export type RegisterApplicationNoteMaxAggregateInputType = {
id?: true
applicationId?: true
authorId?: true
authorTag?: true
body?: true
createdAt?: true
}
export type RegisterApplicationNoteCountAggregateInputType = {
id?: true
applicationId?: true
authorId?: true
authorTag?: true
body?: true
createdAt?: true
_all?: true
}
export type RegisterApplicationNoteAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which RegisterApplicationNote to aggregate.
*/
where?: RegisterApplicationNoteWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of RegisterApplicationNotes to fetch.
*/
orderBy?: RegisterApplicationNoteOrderByWithRelationInput | RegisterApplicationNoteOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: RegisterApplicationNoteWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` RegisterApplicationNotes 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` RegisterApplicationNotes.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned RegisterApplicationNotes
**/
_count?: true | RegisterApplicationNoteCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: RegisterApplicationNoteMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: RegisterApplicationNoteMaxAggregateInputType
}
export type GetRegisterApplicationNoteAggregateType<T extends RegisterApplicationNoteAggregateArgs> = {
[P in keyof T & keyof AggregateRegisterApplicationNote]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateRegisterApplicationNote[P]>
: GetScalarType<T[P], AggregateRegisterApplicationNote[P]>
}
export type RegisterApplicationNoteGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: RegisterApplicationNoteWhereInput
orderBy?: RegisterApplicationNoteOrderByWithAggregationInput | RegisterApplicationNoteOrderByWithAggregationInput[]
by: RegisterApplicationNoteScalarFieldEnum[] | RegisterApplicationNoteScalarFieldEnum
having?: RegisterApplicationNoteScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: RegisterApplicationNoteCountAggregateInputType | true
_min?: RegisterApplicationNoteMinAggregateInputType
_max?: RegisterApplicationNoteMaxAggregateInputType
}
export type RegisterApplicationNoteGroupByOutputType = {
id: string
applicationId: string
authorId: string
authorTag: string
body: string
createdAt: Date
_count: RegisterApplicationNoteCountAggregateOutputType | null
_min: RegisterApplicationNoteMinAggregateOutputType | null
_max: RegisterApplicationNoteMaxAggregateOutputType | null
}
type GetRegisterApplicationNoteGroupByPayload<T extends RegisterApplicationNoteGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<RegisterApplicationNoteGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof RegisterApplicationNoteGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], RegisterApplicationNoteGroupByOutputType[P]>
: GetScalarType<T[P], RegisterApplicationNoteGroupByOutputType[P]>
}
>
>
export type RegisterApplicationNoteSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
applicationId?: boolean
authorId?: boolean
authorTag?: boolean
body?: boolean
createdAt?: boolean
application?: boolean | RegisterApplicationDefaultArgs<ExtArgs>
}, ExtArgs["result"]["registerApplicationNote"]>
export type RegisterApplicationNoteSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
applicationId?: boolean
authorId?: boolean
authorTag?: boolean
body?: boolean
createdAt?: boolean
application?: boolean | RegisterApplicationDefaultArgs<ExtArgs>
}, ExtArgs["result"]["registerApplicationNote"]>
export type RegisterApplicationNoteSelectScalar = {
id?: boolean
applicationId?: boolean
authorId?: boolean
authorTag?: boolean
body?: boolean
createdAt?: boolean
}
export type RegisterApplicationNoteInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
application?: boolean | RegisterApplicationDefaultArgs<ExtArgs>
}
export type RegisterApplicationNoteIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
application?: boolean | RegisterApplicationDefaultArgs<ExtArgs>
}
export type $RegisterApplicationNotePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "RegisterApplicationNote"
objects: {
application: Prisma.$RegisterApplicationPayload<ExtArgs>
}
scalars: $Extensions.GetPayloadResult<{
id: string
applicationId: string
authorId: string
authorTag: string
body: string
createdAt: Date
}, ExtArgs["result"]["registerApplicationNote"]>
composites: {}
}
type RegisterApplicationNoteGetPayload<S extends boolean | null | undefined | RegisterApplicationNoteDefaultArgs> = $Result.GetResult<Prisma.$RegisterApplicationNotePayload, S>
type RegisterApplicationNoteCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<RegisterApplicationNoteFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: RegisterApplicationNoteCountAggregateInputType | true
}
export interface RegisterApplicationNoteDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['RegisterApplicationNote'], meta: { name: 'RegisterApplicationNote' } }
/**
* Find zero or one RegisterApplicationNote that matches the filter.
* @param {RegisterApplicationNoteFindUniqueArgs} args - Arguments to find a RegisterApplicationNote
* @example
* // Get one RegisterApplicationNote
* const registerApplicationNote = await prisma.registerApplicationNote.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends RegisterApplicationNoteFindUniqueArgs>(args: SelectSubset<T, RegisterApplicationNoteFindUniqueArgs<ExtArgs>>): Prisma__RegisterApplicationNoteClient<$Result.GetResult<Prisma.$RegisterApplicationNotePayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one RegisterApplicationNote that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {RegisterApplicationNoteFindUniqueOrThrowArgs} args - Arguments to find a RegisterApplicationNote
* @example
* // Get one RegisterApplicationNote
* const registerApplicationNote = await prisma.registerApplicationNote.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends RegisterApplicationNoteFindUniqueOrThrowArgs>(args: SelectSubset<T, RegisterApplicationNoteFindUniqueOrThrowArgs<ExtArgs>>): Prisma__RegisterApplicationNoteClient<$Result.GetResult<Prisma.$RegisterApplicationNotePayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first RegisterApplicationNote 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 {RegisterApplicationNoteFindFirstArgs} args - Arguments to find a RegisterApplicationNote
* @example
* // Get one RegisterApplicationNote
* const registerApplicationNote = await prisma.registerApplicationNote.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends RegisterApplicationNoteFindFirstArgs>(args?: SelectSubset<T, RegisterApplicationNoteFindFirstArgs<ExtArgs>>): Prisma__RegisterApplicationNoteClient<$Result.GetResult<Prisma.$RegisterApplicationNotePayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first RegisterApplicationNote 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 {RegisterApplicationNoteFindFirstOrThrowArgs} args - Arguments to find a RegisterApplicationNote
* @example
* // Get one RegisterApplicationNote
* const registerApplicationNote = await prisma.registerApplicationNote.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends RegisterApplicationNoteFindFirstOrThrowArgs>(args?: SelectSubset<T, RegisterApplicationNoteFindFirstOrThrowArgs<ExtArgs>>): Prisma__RegisterApplicationNoteClient<$Result.GetResult<Prisma.$RegisterApplicationNotePayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more RegisterApplicationNotes 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 {RegisterApplicationNoteFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all RegisterApplicationNotes
* const registerApplicationNotes = await prisma.registerApplicationNote.findMany()
*
* // Get first 10 RegisterApplicationNotes
* const registerApplicationNotes = await prisma.registerApplicationNote.findMany({ take: 10 })
*
* // Only select the `id`
* const registerApplicationNoteWithIdOnly = await prisma.registerApplicationNote.findMany({ select: { id: true } })
*
*/
findMany<T extends RegisterApplicationNoteFindManyArgs>(args?: SelectSubset<T, RegisterApplicationNoteFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$RegisterApplicationNotePayload<ExtArgs>, T, "findMany">>
/**
* Create a RegisterApplicationNote.
* @param {RegisterApplicationNoteCreateArgs} args - Arguments to create a RegisterApplicationNote.
* @example
* // Create one RegisterApplicationNote
* const RegisterApplicationNote = await prisma.registerApplicationNote.create({
* data: {
* // ... data to create a RegisterApplicationNote
* }
* })
*
*/
create<T extends RegisterApplicationNoteCreateArgs>(args: SelectSubset<T, RegisterApplicationNoteCreateArgs<ExtArgs>>): Prisma__RegisterApplicationNoteClient<$Result.GetResult<Prisma.$RegisterApplicationNotePayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many RegisterApplicationNotes.
* @param {RegisterApplicationNoteCreateManyArgs} args - Arguments to create many RegisterApplicationNotes.
* @example
* // Create many RegisterApplicationNotes
* const registerApplicationNote = await prisma.registerApplicationNote.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends RegisterApplicationNoteCreateManyArgs>(args?: SelectSubset<T, RegisterApplicationNoteCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many RegisterApplicationNotes and returns the data saved in the database.
* @param {RegisterApplicationNoteCreateManyAndReturnArgs} args - Arguments to create many RegisterApplicationNotes.
* @example
* // Create many RegisterApplicationNotes
* const registerApplicationNote = await prisma.registerApplicationNote.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many RegisterApplicationNotes and only return the `id`
* const registerApplicationNoteWithIdOnly = await prisma.registerApplicationNote.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 RegisterApplicationNoteCreateManyAndReturnArgs>(args?: SelectSubset<T, RegisterApplicationNoteCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$RegisterApplicationNotePayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a RegisterApplicationNote.
* @param {RegisterApplicationNoteDeleteArgs} args - Arguments to delete one RegisterApplicationNote.
* @example
* // Delete one RegisterApplicationNote
* const RegisterApplicationNote = await prisma.registerApplicationNote.delete({
* where: {
* // ... filter to delete one RegisterApplicationNote
* }
* })
*
*/
delete<T extends RegisterApplicationNoteDeleteArgs>(args: SelectSubset<T, RegisterApplicationNoteDeleteArgs<ExtArgs>>): Prisma__RegisterApplicationNoteClient<$Result.GetResult<Prisma.$RegisterApplicationNotePayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one RegisterApplicationNote.
* @param {RegisterApplicationNoteUpdateArgs} args - Arguments to update one RegisterApplicationNote.
* @example
* // Update one RegisterApplicationNote
* const registerApplicationNote = await prisma.registerApplicationNote.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends RegisterApplicationNoteUpdateArgs>(args: SelectSubset<T, RegisterApplicationNoteUpdateArgs<ExtArgs>>): Prisma__RegisterApplicationNoteClient<$Result.GetResult<Prisma.$RegisterApplicationNotePayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more RegisterApplicationNotes.
* @param {RegisterApplicationNoteDeleteManyArgs} args - Arguments to filter RegisterApplicationNotes to delete.
* @example
* // Delete a few RegisterApplicationNotes
* const { count } = await prisma.registerApplicationNote.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends RegisterApplicationNoteDeleteManyArgs>(args?: SelectSubset<T, RegisterApplicationNoteDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more RegisterApplicationNotes.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {RegisterApplicationNoteUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many RegisterApplicationNotes
* const registerApplicationNote = await prisma.registerApplicationNote.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends RegisterApplicationNoteUpdateManyArgs>(args: SelectSubset<T, RegisterApplicationNoteUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one RegisterApplicationNote.
* @param {RegisterApplicationNoteUpsertArgs} args - Arguments to update or create a RegisterApplicationNote.
* @example
* // Update or create a RegisterApplicationNote
* const registerApplicationNote = await prisma.registerApplicationNote.upsert({
* create: {
* // ... data to create a RegisterApplicationNote
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the RegisterApplicationNote we want to update
* }
* })
*/
upsert<T extends RegisterApplicationNoteUpsertArgs>(args: SelectSubset<T, RegisterApplicationNoteUpsertArgs<ExtArgs>>): Prisma__RegisterApplicationNoteClient<$Result.GetResult<Prisma.$RegisterApplicationNotePayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of RegisterApplicationNotes.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {RegisterApplicationNoteCountArgs} args - Arguments to filter RegisterApplicationNotes to count.
* @example
* // Count the number of RegisterApplicationNotes
* const count = await prisma.registerApplicationNote.count({
* where: {
* // ... the filter for the RegisterApplicationNotes we want to count
* }
* })
**/
count<T extends RegisterApplicationNoteCountArgs>(
args?: Subset<T, RegisterApplicationNoteCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], RegisterApplicationNoteCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a RegisterApplicationNote.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {RegisterApplicationNoteAggregateArgs} 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 RegisterApplicationNoteAggregateArgs>(args: Subset<T, RegisterApplicationNoteAggregateArgs>): Prisma.PrismaPromise<GetRegisterApplicationNoteAggregateType<T>>
/**
* Group by RegisterApplicationNote.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {RegisterApplicationNoteGroupByArgs} 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 RegisterApplicationNoteGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: RegisterApplicationNoteGroupByArgs['orderBy'] }
: { orderBy?: RegisterApplicationNoteGroupByArgs['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, RegisterApplicationNoteGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetRegisterApplicationNoteGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the RegisterApplicationNote model
*/
readonly fields: RegisterApplicationNoteFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for RegisterApplicationNote.
* 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__RegisterApplicationNoteClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
application<T extends RegisterApplicationDefaultArgs<ExtArgs> = {}>(args?: Subset<T, RegisterApplicationDefaultArgs<ExtArgs>>): Prisma__RegisterApplicationClient<$Result.GetResult<Prisma.$RegisterApplicationPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the RegisterApplicationNote model
*/
interface RegisterApplicationNoteFieldRefs {
readonly id: FieldRef<"RegisterApplicationNote", 'String'>
readonly applicationId: FieldRef<"RegisterApplicationNote", 'String'>
readonly authorId: FieldRef<"RegisterApplicationNote", 'String'>
readonly authorTag: FieldRef<"RegisterApplicationNote", 'String'>
readonly body: FieldRef<"RegisterApplicationNote", 'String'>
readonly createdAt: FieldRef<"RegisterApplicationNote", 'DateTime'>
}
// Custom InputTypes
/**
* RegisterApplicationNote findUnique
*/
export type RegisterApplicationNoteFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterApplicationNote
*/
select?: RegisterApplicationNoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterApplicationNoteInclude<ExtArgs> | null
/**
* Filter, which RegisterApplicationNote to fetch.
*/
where: RegisterApplicationNoteWhereUniqueInput
}
/**
* RegisterApplicationNote findUniqueOrThrow
*/
export type RegisterApplicationNoteFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterApplicationNote
*/
select?: RegisterApplicationNoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterApplicationNoteInclude<ExtArgs> | null
/**
* Filter, which RegisterApplicationNote to fetch.
*/
where: RegisterApplicationNoteWhereUniqueInput
}
/**
* RegisterApplicationNote findFirst
*/
export type RegisterApplicationNoteFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterApplicationNote
*/
select?: RegisterApplicationNoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterApplicationNoteInclude<ExtArgs> | null
/**
* Filter, which RegisterApplicationNote to fetch.
*/
where?: RegisterApplicationNoteWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of RegisterApplicationNotes to fetch.
*/
orderBy?: RegisterApplicationNoteOrderByWithRelationInput | RegisterApplicationNoteOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for RegisterApplicationNotes.
*/
cursor?: RegisterApplicationNoteWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` RegisterApplicationNotes 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` RegisterApplicationNotes.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of RegisterApplicationNotes.
*/
distinct?: RegisterApplicationNoteScalarFieldEnum | RegisterApplicationNoteScalarFieldEnum[]
}
/**
* RegisterApplicationNote findFirstOrThrow
*/
export type RegisterApplicationNoteFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterApplicationNote
*/
select?: RegisterApplicationNoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterApplicationNoteInclude<ExtArgs> | null
/**
* Filter, which RegisterApplicationNote to fetch.
*/
where?: RegisterApplicationNoteWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of RegisterApplicationNotes to fetch.
*/
orderBy?: RegisterApplicationNoteOrderByWithRelationInput | RegisterApplicationNoteOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for RegisterApplicationNotes.
*/
cursor?: RegisterApplicationNoteWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` RegisterApplicationNotes 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` RegisterApplicationNotes.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of RegisterApplicationNotes.
*/
distinct?: RegisterApplicationNoteScalarFieldEnum | RegisterApplicationNoteScalarFieldEnum[]
}
/**
* RegisterApplicationNote findMany
*/
export type RegisterApplicationNoteFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterApplicationNote
*/
select?: RegisterApplicationNoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterApplicationNoteInclude<ExtArgs> | null
/**
* Filter, which RegisterApplicationNotes to fetch.
*/
where?: RegisterApplicationNoteWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of RegisterApplicationNotes to fetch.
*/
orderBy?: RegisterApplicationNoteOrderByWithRelationInput | RegisterApplicationNoteOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing RegisterApplicationNotes.
*/
cursor?: RegisterApplicationNoteWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` RegisterApplicationNotes 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` RegisterApplicationNotes.
*/
skip?: number
distinct?: RegisterApplicationNoteScalarFieldEnum | RegisterApplicationNoteScalarFieldEnum[]
}
/**
* RegisterApplicationNote create
*/
export type RegisterApplicationNoteCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterApplicationNote
*/
select?: RegisterApplicationNoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterApplicationNoteInclude<ExtArgs> | null
/**
* The data needed to create a RegisterApplicationNote.
*/
data: XOR<RegisterApplicationNoteCreateInput, RegisterApplicationNoteUncheckedCreateInput>
}
/**
* RegisterApplicationNote createMany
*/
export type RegisterApplicationNoteCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many RegisterApplicationNotes.
*/
data: RegisterApplicationNoteCreateManyInput | RegisterApplicationNoteCreateManyInput[]
skipDuplicates?: boolean
}
/**
* RegisterApplicationNote createManyAndReturn
*/
export type RegisterApplicationNoteCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterApplicationNote
*/
select?: RegisterApplicationNoteSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many RegisterApplicationNotes.
*/
data: RegisterApplicationNoteCreateManyInput | RegisterApplicationNoteCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterApplicationNoteIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* RegisterApplicationNote update
*/
export type RegisterApplicationNoteUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterApplicationNote
*/
select?: RegisterApplicationNoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterApplicationNoteInclude<ExtArgs> | null
/**
* The data needed to update a RegisterApplicationNote.
*/
data: XOR<RegisterApplicationNoteUpdateInput, RegisterApplicationNoteUncheckedUpdateInput>
/**
* Choose, which RegisterApplicationNote to update.
*/
where: RegisterApplicationNoteWhereUniqueInput
}
/**
* RegisterApplicationNote updateMany
*/
export type RegisterApplicationNoteUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update RegisterApplicationNotes.
*/
data: XOR<RegisterApplicationNoteUpdateManyMutationInput, RegisterApplicationNoteUncheckedUpdateManyInput>
/**
* Filter which RegisterApplicationNotes to update
*/
where?: RegisterApplicationNoteWhereInput
}
/**
* RegisterApplicationNote upsert
*/
export type RegisterApplicationNoteUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterApplicationNote
*/
select?: RegisterApplicationNoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterApplicationNoteInclude<ExtArgs> | null
/**
* The filter to search for the RegisterApplicationNote to update in case it exists.
*/
where: RegisterApplicationNoteWhereUniqueInput
/**
* In case the RegisterApplicationNote found by the `where` argument doesn't exist, create a new RegisterApplicationNote with this data.
*/
create: XOR<RegisterApplicationNoteCreateInput, RegisterApplicationNoteUncheckedCreateInput>
/**
* In case the RegisterApplicationNote was found with the provided `where` argument, update it with this data.
*/
update: XOR<RegisterApplicationNoteUpdateInput, RegisterApplicationNoteUncheckedUpdateInput>
}
/**
* RegisterApplicationNote delete
*/
export type RegisterApplicationNoteDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterApplicationNote
*/
select?: RegisterApplicationNoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterApplicationNoteInclude<ExtArgs> | null
/**
* Filter which RegisterApplicationNote to delete.
*/
where: RegisterApplicationNoteWhereUniqueInput
}
/**
* RegisterApplicationNote deleteMany
*/
export type RegisterApplicationNoteDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which RegisterApplicationNotes to delete
*/
where?: RegisterApplicationNoteWhereInput
}
/**
* RegisterApplicationNote without action
*/
export type RegisterApplicationNoteDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the RegisterApplicationNote
*/
select?: RegisterApplicationNoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: RegisterApplicationNoteInclude<ExtArgs> | null
}
/**
* Model AutomodStrike
*/
export type AggregateAutomodStrike = {
_count: AutomodStrikeCountAggregateOutputType | null
_avg: AutomodStrikeAvgAggregateOutputType | null
_sum: AutomodStrikeSumAggregateOutputType | null
_min: AutomodStrikeMinAggregateOutputType | null
_max: AutomodStrikeMaxAggregateOutputType | null
}
export type AutomodStrikeAvgAggregateOutputType = {
weight: number | null
}
export type AutomodStrikeSumAggregateOutputType = {
weight: number | null
}
export type AutomodStrikeMinAggregateOutputType = {
id: string | null
guildId: string | null
userId: string | null
filterKey: string | null
weight: number | null
reason: string | null
createdAt: Date | null
}
export type AutomodStrikeMaxAggregateOutputType = {
id: string | null
guildId: string | null
userId: string | null
filterKey: string | null
weight: number | null
reason: string | null
createdAt: Date | null
}
export type AutomodStrikeCountAggregateOutputType = {
id: number
guildId: number
userId: number
filterKey: number
weight: number
reason: number
createdAt: number
_all: number
}
export type AutomodStrikeAvgAggregateInputType = {
weight?: true
}
export type AutomodStrikeSumAggregateInputType = {
weight?: true
}
export type AutomodStrikeMinAggregateInputType = {
id?: true
guildId?: true
userId?: true
filterKey?: true
weight?: true
reason?: true
createdAt?: true
}
export type AutomodStrikeMaxAggregateInputType = {
id?: true
guildId?: true
userId?: true
filterKey?: true
weight?: true
reason?: true
createdAt?: true
}
export type AutomodStrikeCountAggregateInputType = {
id?: true
guildId?: true
userId?: true
filterKey?: true
weight?: true
reason?: true
createdAt?: true
_all?: true
}
export type AutomodStrikeAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which AutomodStrike to aggregate.
*/
where?: AutomodStrikeWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AutomodStrikes to fetch.
*/
orderBy?: AutomodStrikeOrderByWithRelationInput | AutomodStrikeOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: AutomodStrikeWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AutomodStrikes 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` AutomodStrikes.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned AutomodStrikes
**/
_count?: true | AutomodStrikeCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: AutomodStrikeAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: AutomodStrikeSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: AutomodStrikeMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: AutomodStrikeMaxAggregateInputType
}
export type GetAutomodStrikeAggregateType<T extends AutomodStrikeAggregateArgs> = {
[P in keyof T & keyof AggregateAutomodStrike]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateAutomodStrike[P]>
: GetScalarType<T[P], AggregateAutomodStrike[P]>
}
export type AutomodStrikeGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: AutomodStrikeWhereInput
orderBy?: AutomodStrikeOrderByWithAggregationInput | AutomodStrikeOrderByWithAggregationInput[]
by: AutomodStrikeScalarFieldEnum[] | AutomodStrikeScalarFieldEnum
having?: AutomodStrikeScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: AutomodStrikeCountAggregateInputType | true
_avg?: AutomodStrikeAvgAggregateInputType
_sum?: AutomodStrikeSumAggregateInputType
_min?: AutomodStrikeMinAggregateInputType
_max?: AutomodStrikeMaxAggregateInputType
}
export type AutomodStrikeGroupByOutputType = {
id: string
guildId: string
userId: string
filterKey: string
weight: number
reason: string | null
createdAt: Date
_count: AutomodStrikeCountAggregateOutputType | null
_avg: AutomodStrikeAvgAggregateOutputType | null
_sum: AutomodStrikeSumAggregateOutputType | null
_min: AutomodStrikeMinAggregateOutputType | null
_max: AutomodStrikeMaxAggregateOutputType | null
}
type GetAutomodStrikeGroupByPayload<T extends AutomodStrikeGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<AutomodStrikeGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof AutomodStrikeGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], AutomodStrikeGroupByOutputType[P]>
: GetScalarType<T[P], AutomodStrikeGroupByOutputType[P]>
}
>
>
export type AutomodStrikeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
guildId?: boolean
userId?: boolean
filterKey?: boolean
weight?: boolean
reason?: boolean
createdAt?: boolean
}, ExtArgs["result"]["automodStrike"]>
export type AutomodStrikeSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
guildId?: boolean
userId?: boolean
filterKey?: boolean
weight?: boolean
reason?: boolean
createdAt?: boolean
}, ExtArgs["result"]["automodStrike"]>
export type AutomodStrikeSelectScalar = {
id?: boolean
guildId?: boolean
userId?: boolean
filterKey?: boolean
weight?: boolean
reason?: boolean
createdAt?: boolean
}
export type $AutomodStrikePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "AutomodStrike"
objects: {}
scalars: $Extensions.GetPayloadResult<{
id: string
guildId: string
userId: string
filterKey: string
weight: number
reason: string | null
createdAt: Date
}, ExtArgs["result"]["automodStrike"]>
composites: {}
}
type AutomodStrikeGetPayload<S extends boolean | null | undefined | AutomodStrikeDefaultArgs> = $Result.GetResult<Prisma.$AutomodStrikePayload, S>
type AutomodStrikeCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<AutomodStrikeFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: AutomodStrikeCountAggregateInputType | true
}
export interface AutomodStrikeDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AutomodStrike'], meta: { name: 'AutomodStrike' } }
/**
* Find zero or one AutomodStrike that matches the filter.
* @param {AutomodStrikeFindUniqueArgs} args - Arguments to find a AutomodStrike
* @example
* // Get one AutomodStrike
* const automodStrike = await prisma.automodStrike.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends AutomodStrikeFindUniqueArgs>(args: SelectSubset<T, AutomodStrikeFindUniqueArgs<ExtArgs>>): Prisma__AutomodStrikeClient<$Result.GetResult<Prisma.$AutomodStrikePayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one AutomodStrike that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {AutomodStrikeFindUniqueOrThrowArgs} args - Arguments to find a AutomodStrike
* @example
* // Get one AutomodStrike
* const automodStrike = await prisma.automodStrike.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends AutomodStrikeFindUniqueOrThrowArgs>(args: SelectSubset<T, AutomodStrikeFindUniqueOrThrowArgs<ExtArgs>>): Prisma__AutomodStrikeClient<$Result.GetResult<Prisma.$AutomodStrikePayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first AutomodStrike 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 {AutomodStrikeFindFirstArgs} args - Arguments to find a AutomodStrike
* @example
* // Get one AutomodStrike
* const automodStrike = await prisma.automodStrike.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends AutomodStrikeFindFirstArgs>(args?: SelectSubset<T, AutomodStrikeFindFirstArgs<ExtArgs>>): Prisma__AutomodStrikeClient<$Result.GetResult<Prisma.$AutomodStrikePayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first AutomodStrike 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 {AutomodStrikeFindFirstOrThrowArgs} args - Arguments to find a AutomodStrike
* @example
* // Get one AutomodStrike
* const automodStrike = await prisma.automodStrike.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends AutomodStrikeFindFirstOrThrowArgs>(args?: SelectSubset<T, AutomodStrikeFindFirstOrThrowArgs<ExtArgs>>): Prisma__AutomodStrikeClient<$Result.GetResult<Prisma.$AutomodStrikePayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more AutomodStrikes 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 {AutomodStrikeFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all AutomodStrikes
* const automodStrikes = await prisma.automodStrike.findMany()
*
* // Get first 10 AutomodStrikes
* const automodStrikes = await prisma.automodStrike.findMany({ take: 10 })
*
* // Only select the `id`
* const automodStrikeWithIdOnly = await prisma.automodStrike.findMany({ select: { id: true } })
*
*/
findMany<T extends AutomodStrikeFindManyArgs>(args?: SelectSubset<T, AutomodStrikeFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AutomodStrikePayload<ExtArgs>, T, "findMany">>
/**
* Create a AutomodStrike.
* @param {AutomodStrikeCreateArgs} args - Arguments to create a AutomodStrike.
* @example
* // Create one AutomodStrike
* const AutomodStrike = await prisma.automodStrike.create({
* data: {
* // ... data to create a AutomodStrike
* }
* })
*
*/
create<T extends AutomodStrikeCreateArgs>(args: SelectSubset<T, AutomodStrikeCreateArgs<ExtArgs>>): Prisma__AutomodStrikeClient<$Result.GetResult<Prisma.$AutomodStrikePayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many AutomodStrikes.
* @param {AutomodStrikeCreateManyArgs} args - Arguments to create many AutomodStrikes.
* @example
* // Create many AutomodStrikes
* const automodStrike = await prisma.automodStrike.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends AutomodStrikeCreateManyArgs>(args?: SelectSubset<T, AutomodStrikeCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many AutomodStrikes and returns the data saved in the database.
* @param {AutomodStrikeCreateManyAndReturnArgs} args - Arguments to create many AutomodStrikes.
* @example
* // Create many AutomodStrikes
* const automodStrike = await prisma.automodStrike.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many AutomodStrikes and only return the `id`
* const automodStrikeWithIdOnly = await prisma.automodStrike.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 AutomodStrikeCreateManyAndReturnArgs>(args?: SelectSubset<T, AutomodStrikeCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AutomodStrikePayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a AutomodStrike.
* @param {AutomodStrikeDeleteArgs} args - Arguments to delete one AutomodStrike.
* @example
* // Delete one AutomodStrike
* const AutomodStrike = await prisma.automodStrike.delete({
* where: {
* // ... filter to delete one AutomodStrike
* }
* })
*
*/
delete<T extends AutomodStrikeDeleteArgs>(args: SelectSubset<T, AutomodStrikeDeleteArgs<ExtArgs>>): Prisma__AutomodStrikeClient<$Result.GetResult<Prisma.$AutomodStrikePayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one AutomodStrike.
* @param {AutomodStrikeUpdateArgs} args - Arguments to update one AutomodStrike.
* @example
* // Update one AutomodStrike
* const automodStrike = await prisma.automodStrike.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends AutomodStrikeUpdateArgs>(args: SelectSubset<T, AutomodStrikeUpdateArgs<ExtArgs>>): Prisma__AutomodStrikeClient<$Result.GetResult<Prisma.$AutomodStrikePayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more AutomodStrikes.
* @param {AutomodStrikeDeleteManyArgs} args - Arguments to filter AutomodStrikes to delete.
* @example
* // Delete a few AutomodStrikes
* const { count } = await prisma.automodStrike.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends AutomodStrikeDeleteManyArgs>(args?: SelectSubset<T, AutomodStrikeDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more AutomodStrikes.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AutomodStrikeUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many AutomodStrikes
* const automodStrike = await prisma.automodStrike.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends AutomodStrikeUpdateManyArgs>(args: SelectSubset<T, AutomodStrikeUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one AutomodStrike.
* @param {AutomodStrikeUpsertArgs} args - Arguments to update or create a AutomodStrike.
* @example
* // Update or create a AutomodStrike
* const automodStrike = await prisma.automodStrike.upsert({
* create: {
* // ... data to create a AutomodStrike
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the AutomodStrike we want to update
* }
* })
*/
upsert<T extends AutomodStrikeUpsertArgs>(args: SelectSubset<T, AutomodStrikeUpsertArgs<ExtArgs>>): Prisma__AutomodStrikeClient<$Result.GetResult<Prisma.$AutomodStrikePayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of AutomodStrikes.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AutomodStrikeCountArgs} args - Arguments to filter AutomodStrikes to count.
* @example
* // Count the number of AutomodStrikes
* const count = await prisma.automodStrike.count({
* where: {
* // ... the filter for the AutomodStrikes we want to count
* }
* })
**/
count<T extends AutomodStrikeCountArgs>(
args?: Subset<T, AutomodStrikeCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], AutomodStrikeCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a AutomodStrike.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AutomodStrikeAggregateArgs} 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 AutomodStrikeAggregateArgs>(args: Subset<T, AutomodStrikeAggregateArgs>): Prisma.PrismaPromise<GetAutomodStrikeAggregateType<T>>
/**
* Group by AutomodStrike.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AutomodStrikeGroupByArgs} 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 AutomodStrikeGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: AutomodStrikeGroupByArgs['orderBy'] }
: { orderBy?: AutomodStrikeGroupByArgs['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, AutomodStrikeGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAutomodStrikeGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the AutomodStrike model
*/
readonly fields: AutomodStrikeFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for AutomodStrike.
* 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__AutomodStrikeClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the AutomodStrike model
*/
interface AutomodStrikeFieldRefs {
readonly id: FieldRef<"AutomodStrike", 'String'>
readonly guildId: FieldRef<"AutomodStrike", 'String'>
readonly userId: FieldRef<"AutomodStrike", 'String'>
readonly filterKey: FieldRef<"AutomodStrike", 'String'>
readonly weight: FieldRef<"AutomodStrike", 'Int'>
readonly reason: FieldRef<"AutomodStrike", 'String'>
readonly createdAt: FieldRef<"AutomodStrike", 'DateTime'>
}
// Custom InputTypes
/**
* AutomodStrike findUnique
*/
export type AutomodStrikeFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AutomodStrike
*/
select?: AutomodStrikeSelect<ExtArgs> | null
/**
* Filter, which AutomodStrike to fetch.
*/
where: AutomodStrikeWhereUniqueInput
}
/**
* AutomodStrike findUniqueOrThrow
*/
export type AutomodStrikeFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AutomodStrike
*/
select?: AutomodStrikeSelect<ExtArgs> | null
/**
* Filter, which AutomodStrike to fetch.
*/
where: AutomodStrikeWhereUniqueInput
}
/**
* AutomodStrike findFirst
*/
export type AutomodStrikeFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AutomodStrike
*/
select?: AutomodStrikeSelect<ExtArgs> | null
/**
* Filter, which AutomodStrike to fetch.
*/
where?: AutomodStrikeWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AutomodStrikes to fetch.
*/
orderBy?: AutomodStrikeOrderByWithRelationInput | AutomodStrikeOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for AutomodStrikes.
*/
cursor?: AutomodStrikeWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AutomodStrikes 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` AutomodStrikes.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of AutomodStrikes.
*/
distinct?: AutomodStrikeScalarFieldEnum | AutomodStrikeScalarFieldEnum[]
}
/**
* AutomodStrike findFirstOrThrow
*/
export type AutomodStrikeFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AutomodStrike
*/
select?: AutomodStrikeSelect<ExtArgs> | null
/**
* Filter, which AutomodStrike to fetch.
*/
where?: AutomodStrikeWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AutomodStrikes to fetch.
*/
orderBy?: AutomodStrikeOrderByWithRelationInput | AutomodStrikeOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for AutomodStrikes.
*/
cursor?: AutomodStrikeWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AutomodStrikes 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` AutomodStrikes.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of AutomodStrikes.
*/
distinct?: AutomodStrikeScalarFieldEnum | AutomodStrikeScalarFieldEnum[]
}
/**
* AutomodStrike findMany
*/
export type AutomodStrikeFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AutomodStrike
*/
select?: AutomodStrikeSelect<ExtArgs> | null
/**
* Filter, which AutomodStrikes to fetch.
*/
where?: AutomodStrikeWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AutomodStrikes to fetch.
*/
orderBy?: AutomodStrikeOrderByWithRelationInput | AutomodStrikeOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing AutomodStrikes.
*/
cursor?: AutomodStrikeWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AutomodStrikes 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` AutomodStrikes.
*/
skip?: number
distinct?: AutomodStrikeScalarFieldEnum | AutomodStrikeScalarFieldEnum[]
}
/**
* AutomodStrike create
*/
export type AutomodStrikeCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AutomodStrike
*/
select?: AutomodStrikeSelect<ExtArgs> | null
/**
* The data needed to create a AutomodStrike.
*/
data: XOR<AutomodStrikeCreateInput, AutomodStrikeUncheckedCreateInput>
}
/**
* AutomodStrike createMany
*/
export type AutomodStrikeCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many AutomodStrikes.
*/
data: AutomodStrikeCreateManyInput | AutomodStrikeCreateManyInput[]
skipDuplicates?: boolean
}
/**
* AutomodStrike createManyAndReturn
*/
export type AutomodStrikeCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AutomodStrike
*/
select?: AutomodStrikeSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many AutomodStrikes.
*/
data: AutomodStrikeCreateManyInput | AutomodStrikeCreateManyInput[]
skipDuplicates?: boolean
}
/**
* AutomodStrike update
*/
export type AutomodStrikeUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AutomodStrike
*/
select?: AutomodStrikeSelect<ExtArgs> | null
/**
* The data needed to update a AutomodStrike.
*/
data: XOR<AutomodStrikeUpdateInput, AutomodStrikeUncheckedUpdateInput>
/**
* Choose, which AutomodStrike to update.
*/
where: AutomodStrikeWhereUniqueInput
}
/**
* AutomodStrike updateMany
*/
export type AutomodStrikeUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update AutomodStrikes.
*/
data: XOR<AutomodStrikeUpdateManyMutationInput, AutomodStrikeUncheckedUpdateManyInput>
/**
* Filter which AutomodStrikes to update
*/
where?: AutomodStrikeWhereInput
}
/**
* AutomodStrike upsert
*/
export type AutomodStrikeUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AutomodStrike
*/
select?: AutomodStrikeSelect<ExtArgs> | null
/**
* The filter to search for the AutomodStrike to update in case it exists.
*/
where: AutomodStrikeWhereUniqueInput
/**
* In case the AutomodStrike found by the `where` argument doesn't exist, create a new AutomodStrike with this data.
*/
create: XOR<AutomodStrikeCreateInput, AutomodStrikeUncheckedCreateInput>
/**
* In case the AutomodStrike was found with the provided `where` argument, update it with this data.
*/
update: XOR<AutomodStrikeUpdateInput, AutomodStrikeUncheckedUpdateInput>
}
/**
* AutomodStrike delete
*/
export type AutomodStrikeDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AutomodStrike
*/
select?: AutomodStrikeSelect<ExtArgs> | null
/**
* Filter which AutomodStrike to delete.
*/
where: AutomodStrikeWhereUniqueInput
}
/**
* AutomodStrike deleteMany
*/
export type AutomodStrikeDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which AutomodStrikes to delete
*/
where?: AutomodStrikeWhereInput
}
/**
* AutomodStrike without action
*/
export type AutomodStrikeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AutomodStrike
*/
select?: AutomodStrikeSelect<ExtArgs> | null
}
/**
* Model StaffTask
*/
export type AggregateStaffTask = {
_count: StaffTaskCountAggregateOutputType | null
_min: StaffTaskMinAggregateOutputType | null
_max: StaffTaskMaxAggregateOutputType | null
}
export type StaffTaskMinAggregateOutputType = {
id: string | null
guildId: string | null
title: string | null
description: string | null
status: string | null
assigneeId: string | null
createdBy: string | null
createdByTag: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type StaffTaskMaxAggregateOutputType = {
id: string | null
guildId: string | null
title: string | null
description: string | null
status: string | null
assigneeId: string | null
createdBy: string | null
createdByTag: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type StaffTaskCountAggregateOutputType = {
id: number
guildId: number
title: number
description: number
status: number
assigneeId: number
createdBy: number
createdByTag: number
createdAt: number
updatedAt: number
_all: number
}
export type StaffTaskMinAggregateInputType = {
id?: true
guildId?: true
title?: true
description?: true
status?: true
assigneeId?: true
createdBy?: true
createdByTag?: true
createdAt?: true
updatedAt?: true
}
export type StaffTaskMaxAggregateInputType = {
id?: true
guildId?: true
title?: true
description?: true
status?: true
assigneeId?: true
createdBy?: true
createdByTag?: true
createdAt?: true
updatedAt?: true
}
export type StaffTaskCountAggregateInputType = {
id?: true
guildId?: true
title?: true
description?: true
status?: true
assigneeId?: true
createdBy?: true
createdByTag?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type StaffTaskAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which StaffTask to aggregate.
*/
where?: StaffTaskWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of StaffTasks to fetch.
*/
orderBy?: StaffTaskOrderByWithRelationInput | StaffTaskOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: StaffTaskWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` StaffTasks 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` StaffTasks.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned StaffTasks
**/
_count?: true | StaffTaskCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: StaffTaskMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: StaffTaskMaxAggregateInputType
}
export type GetStaffTaskAggregateType<T extends StaffTaskAggregateArgs> = {
[P in keyof T & keyof AggregateStaffTask]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateStaffTask[P]>
: GetScalarType<T[P], AggregateStaffTask[P]>
}
export type StaffTaskGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: StaffTaskWhereInput
orderBy?: StaffTaskOrderByWithAggregationInput | StaffTaskOrderByWithAggregationInput[]
by: StaffTaskScalarFieldEnum[] | StaffTaskScalarFieldEnum
having?: StaffTaskScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: StaffTaskCountAggregateInputType | true
_min?: StaffTaskMinAggregateInputType
_max?: StaffTaskMaxAggregateInputType
}
export type StaffTaskGroupByOutputType = {
id: string
guildId: string
title: string
description: string | null
status: string
assigneeId: string | null
createdBy: string
createdByTag: string
createdAt: Date
updatedAt: Date
_count: StaffTaskCountAggregateOutputType | null
_min: StaffTaskMinAggregateOutputType | null
_max: StaffTaskMaxAggregateOutputType | null
}
type GetStaffTaskGroupByPayload<T extends StaffTaskGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<StaffTaskGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof StaffTaskGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], StaffTaskGroupByOutputType[P]>
: GetScalarType<T[P], StaffTaskGroupByOutputType[P]>
}
>
>
export type StaffTaskSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
guildId?: boolean
title?: boolean
description?: boolean
status?: boolean
assigneeId?: boolean
createdBy?: boolean
createdByTag?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["staffTask"]>
export type StaffTaskSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
guildId?: boolean
title?: boolean
description?: boolean
status?: boolean
assigneeId?: boolean
createdBy?: boolean
createdByTag?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["staffTask"]>
export type StaffTaskSelectScalar = {
id?: boolean
guildId?: boolean
title?: boolean
description?: boolean
status?: boolean
assigneeId?: boolean
createdBy?: boolean
createdByTag?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type $StaffTaskPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "StaffTask"
objects: {}
scalars: $Extensions.GetPayloadResult<{
id: string
guildId: string
title: string
description: string | null
status: string
assigneeId: string | null
createdBy: string
createdByTag: string
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["staffTask"]>
composites: {}
}
type StaffTaskGetPayload<S extends boolean | null | undefined | StaffTaskDefaultArgs> = $Result.GetResult<Prisma.$StaffTaskPayload, S>
type StaffTaskCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<StaffTaskFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: StaffTaskCountAggregateInputType | true
}
export interface StaffTaskDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['StaffTask'], meta: { name: 'StaffTask' } }
/**
* Find zero or one StaffTask that matches the filter.
* @param {StaffTaskFindUniqueArgs} args - Arguments to find a StaffTask
* @example
* // Get one StaffTask
* const staffTask = await prisma.staffTask.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends StaffTaskFindUniqueArgs>(args: SelectSubset<T, StaffTaskFindUniqueArgs<ExtArgs>>): Prisma__StaffTaskClient<$Result.GetResult<Prisma.$StaffTaskPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one StaffTask that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {StaffTaskFindUniqueOrThrowArgs} args - Arguments to find a StaffTask
* @example
* // Get one StaffTask
* const staffTask = await prisma.staffTask.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends StaffTaskFindUniqueOrThrowArgs>(args: SelectSubset<T, StaffTaskFindUniqueOrThrowArgs<ExtArgs>>): Prisma__StaffTaskClient<$Result.GetResult<Prisma.$StaffTaskPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first StaffTask 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 {StaffTaskFindFirstArgs} args - Arguments to find a StaffTask
* @example
* // Get one StaffTask
* const staffTask = await prisma.staffTask.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends StaffTaskFindFirstArgs>(args?: SelectSubset<T, StaffTaskFindFirstArgs<ExtArgs>>): Prisma__StaffTaskClient<$Result.GetResult<Prisma.$StaffTaskPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first StaffTask 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 {StaffTaskFindFirstOrThrowArgs} args - Arguments to find a StaffTask
* @example
* // Get one StaffTask
* const staffTask = await prisma.staffTask.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends StaffTaskFindFirstOrThrowArgs>(args?: SelectSubset<T, StaffTaskFindFirstOrThrowArgs<ExtArgs>>): Prisma__StaffTaskClient<$Result.GetResult<Prisma.$StaffTaskPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more StaffTasks 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 {StaffTaskFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all StaffTasks
* const staffTasks = await prisma.staffTask.findMany()
*
* // Get first 10 StaffTasks
* const staffTasks = await prisma.staffTask.findMany({ take: 10 })
*
* // Only select the `id`
* const staffTaskWithIdOnly = await prisma.staffTask.findMany({ select: { id: true } })
*
*/
findMany<T extends StaffTaskFindManyArgs>(args?: SelectSubset<T, StaffTaskFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$StaffTaskPayload<ExtArgs>, T, "findMany">>
/**
* Create a StaffTask.
* @param {StaffTaskCreateArgs} args - Arguments to create a StaffTask.
* @example
* // Create one StaffTask
* const StaffTask = await prisma.staffTask.create({
* data: {
* // ... data to create a StaffTask
* }
* })
*
*/
create<T extends StaffTaskCreateArgs>(args: SelectSubset<T, StaffTaskCreateArgs<ExtArgs>>): Prisma__StaffTaskClient<$Result.GetResult<Prisma.$StaffTaskPayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many StaffTasks.
* @param {StaffTaskCreateManyArgs} args - Arguments to create many StaffTasks.
* @example
* // Create many StaffTasks
* const staffTask = await prisma.staffTask.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends StaffTaskCreateManyArgs>(args?: SelectSubset<T, StaffTaskCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many StaffTasks and returns the data saved in the database.
* @param {StaffTaskCreateManyAndReturnArgs} args - Arguments to create many StaffTasks.
* @example
* // Create many StaffTasks
* const staffTask = await prisma.staffTask.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many StaffTasks and only return the `id`
* const staffTaskWithIdOnly = await prisma.staffTask.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 StaffTaskCreateManyAndReturnArgs>(args?: SelectSubset<T, StaffTaskCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$StaffTaskPayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a StaffTask.
* @param {StaffTaskDeleteArgs} args - Arguments to delete one StaffTask.
* @example
* // Delete one StaffTask
* const StaffTask = await prisma.staffTask.delete({
* where: {
* // ... filter to delete one StaffTask
* }
* })
*
*/
delete<T extends StaffTaskDeleteArgs>(args: SelectSubset<T, StaffTaskDeleteArgs<ExtArgs>>): Prisma__StaffTaskClient<$Result.GetResult<Prisma.$StaffTaskPayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one StaffTask.
* @param {StaffTaskUpdateArgs} args - Arguments to update one StaffTask.
* @example
* // Update one StaffTask
* const staffTask = await prisma.staffTask.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends StaffTaskUpdateArgs>(args: SelectSubset<T, StaffTaskUpdateArgs<ExtArgs>>): Prisma__StaffTaskClient<$Result.GetResult<Prisma.$StaffTaskPayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more StaffTasks.
* @param {StaffTaskDeleteManyArgs} args - Arguments to filter StaffTasks to delete.
* @example
* // Delete a few StaffTasks
* const { count } = await prisma.staffTask.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends StaffTaskDeleteManyArgs>(args?: SelectSubset<T, StaffTaskDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more StaffTasks.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {StaffTaskUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many StaffTasks
* const staffTask = await prisma.staffTask.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends StaffTaskUpdateManyArgs>(args: SelectSubset<T, StaffTaskUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one StaffTask.
* @param {StaffTaskUpsertArgs} args - Arguments to update or create a StaffTask.
* @example
* // Update or create a StaffTask
* const staffTask = await prisma.staffTask.upsert({
* create: {
* // ... data to create a StaffTask
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the StaffTask we want to update
* }
* })
*/
upsert<T extends StaffTaskUpsertArgs>(args: SelectSubset<T, StaffTaskUpsertArgs<ExtArgs>>): Prisma__StaffTaskClient<$Result.GetResult<Prisma.$StaffTaskPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of StaffTasks.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {StaffTaskCountArgs} args - Arguments to filter StaffTasks to count.
* @example
* // Count the number of StaffTasks
* const count = await prisma.staffTask.count({
* where: {
* // ... the filter for the StaffTasks we want to count
* }
* })
**/
count<T extends StaffTaskCountArgs>(
args?: Subset<T, StaffTaskCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], StaffTaskCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a StaffTask.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {StaffTaskAggregateArgs} 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 StaffTaskAggregateArgs>(args: Subset<T, StaffTaskAggregateArgs>): Prisma.PrismaPromise<GetStaffTaskAggregateType<T>>
/**
* Group by StaffTask.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {StaffTaskGroupByArgs} 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 StaffTaskGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: StaffTaskGroupByArgs['orderBy'] }
: { orderBy?: StaffTaskGroupByArgs['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, StaffTaskGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetStaffTaskGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the StaffTask model
*/
readonly fields: StaffTaskFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for StaffTask.
* 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__StaffTaskClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the StaffTask model
*/
interface StaffTaskFieldRefs {
readonly id: FieldRef<"StaffTask", 'String'>
readonly guildId: FieldRef<"StaffTask", 'String'>
readonly title: FieldRef<"StaffTask", 'String'>
readonly description: FieldRef<"StaffTask", 'String'>
readonly status: FieldRef<"StaffTask", 'String'>
readonly assigneeId: FieldRef<"StaffTask", 'String'>
readonly createdBy: FieldRef<"StaffTask", 'String'>
readonly createdByTag: FieldRef<"StaffTask", 'String'>
readonly createdAt: FieldRef<"StaffTask", 'DateTime'>
readonly updatedAt: FieldRef<"StaffTask", 'DateTime'>
}
// Custom InputTypes
/**
* StaffTask findUnique
*/
export type StaffTaskFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the StaffTask
*/
select?: StaffTaskSelect<ExtArgs> | null
/**
* Filter, which StaffTask to fetch.
*/
where: StaffTaskWhereUniqueInput
}
/**
* StaffTask findUniqueOrThrow
*/
export type StaffTaskFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the StaffTask
*/
select?: StaffTaskSelect<ExtArgs> | null
/**
* Filter, which StaffTask to fetch.
*/
where: StaffTaskWhereUniqueInput
}
/**
* StaffTask findFirst
*/
export type StaffTaskFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the StaffTask
*/
select?: StaffTaskSelect<ExtArgs> | null
/**
* Filter, which StaffTask to fetch.
*/
where?: StaffTaskWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of StaffTasks to fetch.
*/
orderBy?: StaffTaskOrderByWithRelationInput | StaffTaskOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for StaffTasks.
*/
cursor?: StaffTaskWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` StaffTasks 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` StaffTasks.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of StaffTasks.
*/
distinct?: StaffTaskScalarFieldEnum | StaffTaskScalarFieldEnum[]
}
/**
* StaffTask findFirstOrThrow
*/
export type StaffTaskFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the StaffTask
*/
select?: StaffTaskSelect<ExtArgs> | null
/**
* Filter, which StaffTask to fetch.
*/
where?: StaffTaskWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of StaffTasks to fetch.
*/
orderBy?: StaffTaskOrderByWithRelationInput | StaffTaskOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for StaffTasks.
*/
cursor?: StaffTaskWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` StaffTasks 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` StaffTasks.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of StaffTasks.
*/
distinct?: StaffTaskScalarFieldEnum | StaffTaskScalarFieldEnum[]
}
/**
* StaffTask findMany
*/
export type StaffTaskFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the StaffTask
*/
select?: StaffTaskSelect<ExtArgs> | null
/**
* Filter, which StaffTasks to fetch.
*/
where?: StaffTaskWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of StaffTasks to fetch.
*/
orderBy?: StaffTaskOrderByWithRelationInput | StaffTaskOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing StaffTasks.
*/
cursor?: StaffTaskWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` StaffTasks 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` StaffTasks.
*/
skip?: number
distinct?: StaffTaskScalarFieldEnum | StaffTaskScalarFieldEnum[]
}
/**
* StaffTask create
*/
export type StaffTaskCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the StaffTask
*/
select?: StaffTaskSelect<ExtArgs> | null
/**
* The data needed to create a StaffTask.
*/
data: XOR<StaffTaskCreateInput, StaffTaskUncheckedCreateInput>
}
/**
* StaffTask createMany
*/
export type StaffTaskCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many StaffTasks.
*/
data: StaffTaskCreateManyInput | StaffTaskCreateManyInput[]
skipDuplicates?: boolean
}
/**
* StaffTask createManyAndReturn
*/
export type StaffTaskCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the StaffTask
*/
select?: StaffTaskSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many StaffTasks.
*/
data: StaffTaskCreateManyInput | StaffTaskCreateManyInput[]
skipDuplicates?: boolean
}
/**
* StaffTask update
*/
export type StaffTaskUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the StaffTask
*/
select?: StaffTaskSelect<ExtArgs> | null
/**
* The data needed to update a StaffTask.
*/
data: XOR<StaffTaskUpdateInput, StaffTaskUncheckedUpdateInput>
/**
* Choose, which StaffTask to update.
*/
where: StaffTaskWhereUniqueInput
}
/**
* StaffTask updateMany
*/
export type StaffTaskUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update StaffTasks.
*/
data: XOR<StaffTaskUpdateManyMutationInput, StaffTaskUncheckedUpdateManyInput>
/**
* Filter which StaffTasks to update
*/
where?: StaffTaskWhereInput
}
/**
* StaffTask upsert
*/
export type StaffTaskUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the StaffTask
*/
select?: StaffTaskSelect<ExtArgs> | null
/**
* The filter to search for the StaffTask to update in case it exists.
*/
where: StaffTaskWhereUniqueInput
/**
* In case the StaffTask found by the `where` argument doesn't exist, create a new StaffTask with this data.
*/
create: XOR<StaffTaskCreateInput, StaffTaskUncheckedCreateInput>
/**
* In case the StaffTask was found with the provided `where` argument, update it with this data.
*/
update: XOR<StaffTaskUpdateInput, StaffTaskUncheckedUpdateInput>
}
/**
* StaffTask delete
*/
export type StaffTaskDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the StaffTask
*/
select?: StaffTaskSelect<ExtArgs> | null
/**
* Filter which StaffTask to delete.
*/
where: StaffTaskWhereUniqueInput
}
/**
* StaffTask deleteMany
*/
export type StaffTaskDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which StaffTasks to delete
*/
where?: StaffTaskWhereInput
}
/**
* StaffTask without action
*/
export type StaffTaskDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the StaffTask
*/
select?: StaffTaskSelect<ExtArgs> | null
}
/**
* Model ModCase
*/
export type AggregateModCase = {
_count: ModCaseCountAggregateOutputType | null
_min: ModCaseMinAggregateOutputType | null
_max: ModCaseMaxAggregateOutputType | null
}
export type ModCaseMinAggregateOutputType = {
id: string | null
guildId: string | null
userId: string | null
type: string | null
reason: string | null
moderatorId: string | null
moderatorTag: string | null
createdAt: Date | null
}
export type ModCaseMaxAggregateOutputType = {
id: string | null
guildId: string | null
userId: string | null
type: string | null
reason: string | null
moderatorId: string | null
moderatorTag: string | null
createdAt: Date | null
}
export type ModCaseCountAggregateOutputType = {
id: number
guildId: number
userId: number
type: number
reason: number
moderatorId: number
moderatorTag: number
createdAt: number
_all: number
}
export type ModCaseMinAggregateInputType = {
id?: true
guildId?: true
userId?: true
type?: true
reason?: true
moderatorId?: true
moderatorTag?: true
createdAt?: true
}
export type ModCaseMaxAggregateInputType = {
id?: true
guildId?: true
userId?: true
type?: true
reason?: true
moderatorId?: true
moderatorTag?: true
createdAt?: true
}
export type ModCaseCountAggregateInputType = {
id?: true
guildId?: true
userId?: true
type?: true
reason?: true
moderatorId?: true
moderatorTag?: true
createdAt?: true
_all?: true
}
export type ModCaseAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which ModCase to aggregate.
*/
where?: ModCaseWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of ModCases to fetch.
*/
orderBy?: ModCaseOrderByWithRelationInput | ModCaseOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: ModCaseWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` ModCases 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` ModCases.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned ModCases
**/
_count?: true | ModCaseCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: ModCaseMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: ModCaseMaxAggregateInputType
}
export type GetModCaseAggregateType<T extends ModCaseAggregateArgs> = {
[P in keyof T & keyof AggregateModCase]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateModCase[P]>
: GetScalarType<T[P], AggregateModCase[P]>
}
export type ModCaseGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: ModCaseWhereInput
orderBy?: ModCaseOrderByWithAggregationInput | ModCaseOrderByWithAggregationInput[]
by: ModCaseScalarFieldEnum[] | ModCaseScalarFieldEnum
having?: ModCaseScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: ModCaseCountAggregateInputType | true
_min?: ModCaseMinAggregateInputType
_max?: ModCaseMaxAggregateInputType
}
export type ModCaseGroupByOutputType = {
id: string
guildId: string
userId: string
type: string
reason: string | null
moderatorId: string
moderatorTag: string
createdAt: Date
_count: ModCaseCountAggregateOutputType | null
_min: ModCaseMinAggregateOutputType | null
_max: ModCaseMaxAggregateOutputType | null
}
type GetModCaseGroupByPayload<T extends ModCaseGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<ModCaseGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof ModCaseGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], ModCaseGroupByOutputType[P]>
: GetScalarType<T[P], ModCaseGroupByOutputType[P]>
}
>
>
export type ModCaseSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
guildId?: boolean
userId?: boolean
type?: boolean
reason?: boolean
moderatorId?: boolean
moderatorTag?: boolean
createdAt?: boolean
}, ExtArgs["result"]["modCase"]>
export type ModCaseSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
guildId?: boolean
userId?: boolean
type?: boolean
reason?: boolean
moderatorId?: boolean
moderatorTag?: boolean
createdAt?: boolean
}, ExtArgs["result"]["modCase"]>
export type ModCaseSelectScalar = {
id?: boolean
guildId?: boolean
userId?: boolean
type?: boolean
reason?: boolean
moderatorId?: boolean
moderatorTag?: boolean
createdAt?: boolean
}
export type $ModCasePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "ModCase"
objects: {}
scalars: $Extensions.GetPayloadResult<{
id: string
guildId: string
userId: string
type: string
reason: string | null
moderatorId: string
moderatorTag: string
createdAt: Date
}, ExtArgs["result"]["modCase"]>
composites: {}
}
type ModCaseGetPayload<S extends boolean | null | undefined | ModCaseDefaultArgs> = $Result.GetResult<Prisma.$ModCasePayload, S>
type ModCaseCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<ModCaseFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: ModCaseCountAggregateInputType | true
}
export interface ModCaseDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ModCase'], meta: { name: 'ModCase' } }
/**
* Find zero or one ModCase that matches the filter.
* @param {ModCaseFindUniqueArgs} args - Arguments to find a ModCase
* @example
* // Get one ModCase
* const modCase = await prisma.modCase.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends ModCaseFindUniqueArgs>(args: SelectSubset<T, ModCaseFindUniqueArgs<ExtArgs>>): Prisma__ModCaseClient<$Result.GetResult<Prisma.$ModCasePayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one ModCase that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {ModCaseFindUniqueOrThrowArgs} args - Arguments to find a ModCase
* @example
* // Get one ModCase
* const modCase = await prisma.modCase.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends ModCaseFindUniqueOrThrowArgs>(args: SelectSubset<T, ModCaseFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ModCaseClient<$Result.GetResult<Prisma.$ModCasePayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first ModCase 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 {ModCaseFindFirstArgs} args - Arguments to find a ModCase
* @example
* // Get one ModCase
* const modCase = await prisma.modCase.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends ModCaseFindFirstArgs>(args?: SelectSubset<T, ModCaseFindFirstArgs<ExtArgs>>): Prisma__ModCaseClient<$Result.GetResult<Prisma.$ModCasePayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first ModCase 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 {ModCaseFindFirstOrThrowArgs} args - Arguments to find a ModCase
* @example
* // Get one ModCase
* const modCase = await prisma.modCase.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends ModCaseFindFirstOrThrowArgs>(args?: SelectSubset<T, ModCaseFindFirstOrThrowArgs<ExtArgs>>): Prisma__ModCaseClient<$Result.GetResult<Prisma.$ModCasePayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more ModCases 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 {ModCaseFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all ModCases
* const modCases = await prisma.modCase.findMany()
*
* // Get first 10 ModCases
* const modCases = await prisma.modCase.findMany({ take: 10 })
*
* // Only select the `id`
* const modCaseWithIdOnly = await prisma.modCase.findMany({ select: { id: true } })
*
*/
findMany<T extends ModCaseFindManyArgs>(args?: SelectSubset<T, ModCaseFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ModCasePayload<ExtArgs>, T, "findMany">>
/**
* Create a ModCase.
* @param {ModCaseCreateArgs} args - Arguments to create a ModCase.
* @example
* // Create one ModCase
* const ModCase = await prisma.modCase.create({
* data: {
* // ... data to create a ModCase
* }
* })
*
*/
create<T extends ModCaseCreateArgs>(args: SelectSubset<T, ModCaseCreateArgs<ExtArgs>>): Prisma__ModCaseClient<$Result.GetResult<Prisma.$ModCasePayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many ModCases.
* @param {ModCaseCreateManyArgs} args - Arguments to create many ModCases.
* @example
* // Create many ModCases
* const modCase = await prisma.modCase.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends ModCaseCreateManyArgs>(args?: SelectSubset<T, ModCaseCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many ModCases and returns the data saved in the database.
* @param {ModCaseCreateManyAndReturnArgs} args - Arguments to create many ModCases.
* @example
* // Create many ModCases
* const modCase = await prisma.modCase.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many ModCases and only return the `id`
* const modCaseWithIdOnly = await prisma.modCase.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 ModCaseCreateManyAndReturnArgs>(args?: SelectSubset<T, ModCaseCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ModCasePayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a ModCase.
* @param {ModCaseDeleteArgs} args - Arguments to delete one ModCase.
* @example
* // Delete one ModCase
* const ModCase = await prisma.modCase.delete({
* where: {
* // ... filter to delete one ModCase
* }
* })
*
*/
delete<T extends ModCaseDeleteArgs>(args: SelectSubset<T, ModCaseDeleteArgs<ExtArgs>>): Prisma__ModCaseClient<$Result.GetResult<Prisma.$ModCasePayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one ModCase.
* @param {ModCaseUpdateArgs} args - Arguments to update one ModCase.
* @example
* // Update one ModCase
* const modCase = await prisma.modCase.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends ModCaseUpdateArgs>(args: SelectSubset<T, ModCaseUpdateArgs<ExtArgs>>): Prisma__ModCaseClient<$Result.GetResult<Prisma.$ModCasePayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more ModCases.
* @param {ModCaseDeleteManyArgs} args - Arguments to filter ModCases to delete.
* @example
* // Delete a few ModCases
* const { count } = await prisma.modCase.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends ModCaseDeleteManyArgs>(args?: SelectSubset<T, ModCaseDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more ModCases.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ModCaseUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many ModCases
* const modCase = await prisma.modCase.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends ModCaseUpdateManyArgs>(args: SelectSubset<T, ModCaseUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one ModCase.
* @param {ModCaseUpsertArgs} args - Arguments to update or create a ModCase.
* @example
* // Update or create a ModCase
* const modCase = await prisma.modCase.upsert({
* create: {
* // ... data to create a ModCase
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the ModCase we want to update
* }
* })
*/
upsert<T extends ModCaseUpsertArgs>(args: SelectSubset<T, ModCaseUpsertArgs<ExtArgs>>): Prisma__ModCaseClient<$Result.GetResult<Prisma.$ModCasePayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of ModCases.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ModCaseCountArgs} args - Arguments to filter ModCases to count.
* @example
* // Count the number of ModCases
* const count = await prisma.modCase.count({
* where: {
* // ... the filter for the ModCases we want to count
* }
* })
**/
count<T extends ModCaseCountArgs>(
args?: Subset<T, ModCaseCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], ModCaseCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a ModCase.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ModCaseAggregateArgs} 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 ModCaseAggregateArgs>(args: Subset<T, ModCaseAggregateArgs>): Prisma.PrismaPromise<GetModCaseAggregateType<T>>
/**
* Group by ModCase.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ModCaseGroupByArgs} 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 ModCaseGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: ModCaseGroupByArgs['orderBy'] }
: { orderBy?: ModCaseGroupByArgs['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, ModCaseGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetModCaseGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the ModCase model
*/
readonly fields: ModCaseFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for ModCase.
* 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__ModCaseClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the ModCase model
*/
interface ModCaseFieldRefs {
readonly id: FieldRef<"ModCase", 'String'>
readonly guildId: FieldRef<"ModCase", 'String'>
readonly userId: FieldRef<"ModCase", 'String'>
readonly type: FieldRef<"ModCase", 'String'>
readonly reason: FieldRef<"ModCase", 'String'>
readonly moderatorId: FieldRef<"ModCase", 'String'>
readonly moderatorTag: FieldRef<"ModCase", 'String'>
readonly createdAt: FieldRef<"ModCase", 'DateTime'>
}
// Custom InputTypes
/**
* ModCase findUnique
*/
export type ModCaseFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ModCase
*/
select?: ModCaseSelect<ExtArgs> | null
/**
* Filter, which ModCase to fetch.
*/
where: ModCaseWhereUniqueInput
}
/**
* ModCase findUniqueOrThrow
*/
export type ModCaseFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ModCase
*/
select?: ModCaseSelect<ExtArgs> | null
/**
* Filter, which ModCase to fetch.
*/
where: ModCaseWhereUniqueInput
}
/**
* ModCase findFirst
*/
export type ModCaseFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ModCase
*/
select?: ModCaseSelect<ExtArgs> | null
/**
* Filter, which ModCase to fetch.
*/
where?: ModCaseWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of ModCases to fetch.
*/
orderBy?: ModCaseOrderByWithRelationInput | ModCaseOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for ModCases.
*/
cursor?: ModCaseWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` ModCases 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` ModCases.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of ModCases.
*/
distinct?: ModCaseScalarFieldEnum | ModCaseScalarFieldEnum[]
}
/**
* ModCase findFirstOrThrow
*/
export type ModCaseFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ModCase
*/
select?: ModCaseSelect<ExtArgs> | null
/**
* Filter, which ModCase to fetch.
*/
where?: ModCaseWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of ModCases to fetch.
*/
orderBy?: ModCaseOrderByWithRelationInput | ModCaseOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for ModCases.
*/
cursor?: ModCaseWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` ModCases 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` ModCases.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of ModCases.
*/
distinct?: ModCaseScalarFieldEnum | ModCaseScalarFieldEnum[]
}
/**
* ModCase findMany
*/
export type ModCaseFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ModCase
*/
select?: ModCaseSelect<ExtArgs> | null
/**
* Filter, which ModCases to fetch.
*/
where?: ModCaseWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of ModCases to fetch.
*/
orderBy?: ModCaseOrderByWithRelationInput | ModCaseOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing ModCases.
*/
cursor?: ModCaseWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` ModCases 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` ModCases.
*/
skip?: number
distinct?: ModCaseScalarFieldEnum | ModCaseScalarFieldEnum[]
}
/**
* ModCase create
*/
export type ModCaseCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ModCase
*/
select?: ModCaseSelect<ExtArgs> | null
/**
* The data needed to create a ModCase.
*/
data: XOR<ModCaseCreateInput, ModCaseUncheckedCreateInput>
}
/**
* ModCase createMany
*/
export type ModCaseCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many ModCases.
*/
data: ModCaseCreateManyInput | ModCaseCreateManyInput[]
skipDuplicates?: boolean
}
/**
* ModCase createManyAndReturn
*/
export type ModCaseCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ModCase
*/
select?: ModCaseSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many ModCases.
*/
data: ModCaseCreateManyInput | ModCaseCreateManyInput[]
skipDuplicates?: boolean
}
/**
* ModCase update
*/
export type ModCaseUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ModCase
*/
select?: ModCaseSelect<ExtArgs> | null
/**
* The data needed to update a ModCase.
*/
data: XOR<ModCaseUpdateInput, ModCaseUncheckedUpdateInput>
/**
* Choose, which ModCase to update.
*/
where: ModCaseWhereUniqueInput
}
/**
* ModCase updateMany
*/
export type ModCaseUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update ModCases.
*/
data: XOR<ModCaseUpdateManyMutationInput, ModCaseUncheckedUpdateManyInput>
/**
* Filter which ModCases to update
*/
where?: ModCaseWhereInput
}
/**
* ModCase upsert
*/
export type ModCaseUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ModCase
*/
select?: ModCaseSelect<ExtArgs> | null
/**
* The filter to search for the ModCase to update in case it exists.
*/
where: ModCaseWhereUniqueInput
/**
* In case the ModCase found by the `where` argument doesn't exist, create a new ModCase with this data.
*/
create: XOR<ModCaseCreateInput, ModCaseUncheckedCreateInput>
/**
* In case the ModCase was found with the provided `where` argument, update it with this data.
*/
update: XOR<ModCaseUpdateInput, ModCaseUncheckedUpdateInput>
}
/**
* ModCase delete
*/
export type ModCaseDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ModCase
*/
select?: ModCaseSelect<ExtArgs> | null
/**
* Filter which ModCase to delete.
*/
where: ModCaseWhereUniqueInput
}
/**
* ModCase deleteMany
*/
export type ModCaseDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which ModCases to delete
*/
where?: ModCaseWhereInput
}
/**
* ModCase without action
*/
export type ModCaseDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ModCase
*/
select?: ModCaseSelect<ExtArgs> | null
}
/**
* Model Watchlist
*/
export type AggregateWatchlist = {
_count: WatchlistCountAggregateOutputType | null
_min: WatchlistMinAggregateOutputType | null
_max: WatchlistMaxAggregateOutputType | null
}
export type WatchlistMinAggregateOutputType = {
id: string | null
guildId: string | null
userId: string | null
reason: string | null
addedBy: string | null
addedAt: Date | null
active: boolean | null
}
export type WatchlistMaxAggregateOutputType = {
id: string | null
guildId: string | null
userId: string | null
reason: string | null
addedBy: string | null
addedAt: Date | null
active: boolean | null
}
export type WatchlistCountAggregateOutputType = {
id: number
guildId: number
userId: number
reason: number
addedBy: number
addedAt: number
active: number
_all: number
}
export type WatchlistMinAggregateInputType = {
id?: true
guildId?: true
userId?: true
reason?: true
addedBy?: true
addedAt?: true
active?: true
}
export type WatchlistMaxAggregateInputType = {
id?: true
guildId?: true
userId?: true
reason?: true
addedBy?: true
addedAt?: true
active?: true
}
export type WatchlistCountAggregateInputType = {
id?: true
guildId?: true
userId?: true
reason?: true
addedBy?: true
addedAt?: true
active?: true
_all?: true
}
export type WatchlistAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Watchlist to aggregate.
*/
where?: WatchlistWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Watchlists to fetch.
*/
orderBy?: WatchlistOrderByWithRelationInput | WatchlistOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: WatchlistWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Watchlists 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` Watchlists.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned Watchlists
**/
_count?: true | WatchlistCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: WatchlistMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: WatchlistMaxAggregateInputType
}
export type GetWatchlistAggregateType<T extends WatchlistAggregateArgs> = {
[P in keyof T & keyof AggregateWatchlist]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateWatchlist[P]>
: GetScalarType<T[P], AggregateWatchlist[P]>
}
export type WatchlistGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: WatchlistWhereInput
orderBy?: WatchlistOrderByWithAggregationInput | WatchlistOrderByWithAggregationInput[]
by: WatchlistScalarFieldEnum[] | WatchlistScalarFieldEnum
having?: WatchlistScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: WatchlistCountAggregateInputType | true
_min?: WatchlistMinAggregateInputType
_max?: WatchlistMaxAggregateInputType
}
export type WatchlistGroupByOutputType = {
id: string
guildId: string
userId: string
reason: string | null
addedBy: string
addedAt: Date
active: boolean
_count: WatchlistCountAggregateOutputType | null
_min: WatchlistMinAggregateOutputType | null
_max: WatchlistMaxAggregateOutputType | null
}
type GetWatchlistGroupByPayload<T extends WatchlistGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<WatchlistGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof WatchlistGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], WatchlistGroupByOutputType[P]>
: GetScalarType<T[P], WatchlistGroupByOutputType[P]>
}
>
>
export type WatchlistSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
guildId?: boolean
userId?: boolean
reason?: boolean
addedBy?: boolean
addedAt?: boolean
active?: boolean
}, ExtArgs["result"]["watchlist"]>
export type WatchlistSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
guildId?: boolean
userId?: boolean
reason?: boolean
addedBy?: boolean
addedAt?: boolean
active?: boolean
}, ExtArgs["result"]["watchlist"]>
export type WatchlistSelectScalar = {
id?: boolean
guildId?: boolean
userId?: boolean
reason?: boolean
addedBy?: boolean
addedAt?: boolean
active?: boolean
}
export type $WatchlistPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "Watchlist"
objects: {}
scalars: $Extensions.GetPayloadResult<{
id: string
guildId: string
userId: string
reason: string | null
addedBy: string
addedAt: Date
active: boolean
}, ExtArgs["result"]["watchlist"]>
composites: {}
}
type WatchlistGetPayload<S extends boolean | null | undefined | WatchlistDefaultArgs> = $Result.GetResult<Prisma.$WatchlistPayload, S>
type WatchlistCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<WatchlistFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: WatchlistCountAggregateInputType | true
}
export interface WatchlistDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Watchlist'], meta: { name: 'Watchlist' } }
/**
* Find zero or one Watchlist that matches the filter.
* @param {WatchlistFindUniqueArgs} args - Arguments to find a Watchlist
* @example
* // Get one Watchlist
* const watchlist = await prisma.watchlist.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends WatchlistFindUniqueArgs>(args: SelectSubset<T, WatchlistFindUniqueArgs<ExtArgs>>): Prisma__WatchlistClient<$Result.GetResult<Prisma.$WatchlistPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one Watchlist that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {WatchlistFindUniqueOrThrowArgs} args - Arguments to find a Watchlist
* @example
* // Get one Watchlist
* const watchlist = await prisma.watchlist.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends WatchlistFindUniqueOrThrowArgs>(args: SelectSubset<T, WatchlistFindUniqueOrThrowArgs<ExtArgs>>): Prisma__WatchlistClient<$Result.GetResult<Prisma.$WatchlistPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first Watchlist 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 {WatchlistFindFirstArgs} args - Arguments to find a Watchlist
* @example
* // Get one Watchlist
* const watchlist = await prisma.watchlist.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends WatchlistFindFirstArgs>(args?: SelectSubset<T, WatchlistFindFirstArgs<ExtArgs>>): Prisma__WatchlistClient<$Result.GetResult<Prisma.$WatchlistPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first Watchlist 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 {WatchlistFindFirstOrThrowArgs} args - Arguments to find a Watchlist
* @example
* // Get one Watchlist
* const watchlist = await prisma.watchlist.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends WatchlistFindFirstOrThrowArgs>(args?: SelectSubset<T, WatchlistFindFirstOrThrowArgs<ExtArgs>>): Prisma__WatchlistClient<$Result.GetResult<Prisma.$WatchlistPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more Watchlists 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 {WatchlistFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Watchlists
* const watchlists = await prisma.watchlist.findMany()
*
* // Get first 10 Watchlists
* const watchlists = await prisma.watchlist.findMany({ take: 10 })
*
* // Only select the `id`
* const watchlistWithIdOnly = await prisma.watchlist.findMany({ select: { id: true } })
*
*/
findMany<T extends WatchlistFindManyArgs>(args?: SelectSubset<T, WatchlistFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$WatchlistPayload<ExtArgs>, T, "findMany">>
/**
* Create a Watchlist.
* @param {WatchlistCreateArgs} args - Arguments to create a Watchlist.
* @example
* // Create one Watchlist
* const Watchlist = await prisma.watchlist.create({
* data: {
* // ... data to create a Watchlist
* }
* })
*
*/
create<T extends WatchlistCreateArgs>(args: SelectSubset<T, WatchlistCreateArgs<ExtArgs>>): Prisma__WatchlistClient<$Result.GetResult<Prisma.$WatchlistPayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many Watchlists.
* @param {WatchlistCreateManyArgs} args - Arguments to create many Watchlists.
* @example
* // Create many Watchlists
* const watchlist = await prisma.watchlist.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends WatchlistCreateManyArgs>(args?: SelectSubset<T, WatchlistCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many Watchlists and returns the data saved in the database.
* @param {WatchlistCreateManyAndReturnArgs} args - Arguments to create many Watchlists.
* @example
* // Create many Watchlists
* const watchlist = await prisma.watchlist.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Watchlists and only return the `id`
* const watchlistWithIdOnly = await prisma.watchlist.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 WatchlistCreateManyAndReturnArgs>(args?: SelectSubset<T, WatchlistCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$WatchlistPayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a Watchlist.
* @param {WatchlistDeleteArgs} args - Arguments to delete one Watchlist.
* @example
* // Delete one Watchlist
* const Watchlist = await prisma.watchlist.delete({
* where: {
* // ... filter to delete one Watchlist
* }
* })
*
*/
delete<T extends WatchlistDeleteArgs>(args: SelectSubset<T, WatchlistDeleteArgs<ExtArgs>>): Prisma__WatchlistClient<$Result.GetResult<Prisma.$WatchlistPayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one Watchlist.
* @param {WatchlistUpdateArgs} args - Arguments to update one Watchlist.
* @example
* // Update one Watchlist
* const watchlist = await prisma.watchlist.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends WatchlistUpdateArgs>(args: SelectSubset<T, WatchlistUpdateArgs<ExtArgs>>): Prisma__WatchlistClient<$Result.GetResult<Prisma.$WatchlistPayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more Watchlists.
* @param {WatchlistDeleteManyArgs} args - Arguments to filter Watchlists to delete.
* @example
* // Delete a few Watchlists
* const { count } = await prisma.watchlist.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends WatchlistDeleteManyArgs>(args?: SelectSubset<T, WatchlistDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Watchlists.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {WatchlistUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Watchlists
* const watchlist = await prisma.watchlist.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends WatchlistUpdateManyArgs>(args: SelectSubset<T, WatchlistUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one Watchlist.
* @param {WatchlistUpsertArgs} args - Arguments to update or create a Watchlist.
* @example
* // Update or create a Watchlist
* const watchlist = await prisma.watchlist.upsert({
* create: {
* // ... data to create a Watchlist
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Watchlist we want to update
* }
* })
*/
upsert<T extends WatchlistUpsertArgs>(args: SelectSubset<T, WatchlistUpsertArgs<ExtArgs>>): Prisma__WatchlistClient<$Result.GetResult<Prisma.$WatchlistPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of Watchlists.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {WatchlistCountArgs} args - Arguments to filter Watchlists to count.
* @example
* // Count the number of Watchlists
* const count = await prisma.watchlist.count({
* where: {
* // ... the filter for the Watchlists we want to count
* }
* })
**/
count<T extends WatchlistCountArgs>(
args?: Subset<T, WatchlistCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], WatchlistCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Watchlist.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {WatchlistAggregateArgs} 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 WatchlistAggregateArgs>(args: Subset<T, WatchlistAggregateArgs>): Prisma.PrismaPromise<GetWatchlistAggregateType<T>>
/**
* Group by Watchlist.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {WatchlistGroupByArgs} 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 WatchlistGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: WatchlistGroupByArgs['orderBy'] }
: { orderBy?: WatchlistGroupByArgs['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, WatchlistGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetWatchlistGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the Watchlist model
*/
readonly fields: WatchlistFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for Watchlist.
* 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__WatchlistClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the Watchlist model
*/
interface WatchlistFieldRefs {
readonly id: FieldRef<"Watchlist", 'String'>
readonly guildId: FieldRef<"Watchlist", 'String'>
readonly userId: FieldRef<"Watchlist", 'String'>
readonly reason: FieldRef<"Watchlist", 'String'>
readonly addedBy: FieldRef<"Watchlist", 'String'>
readonly addedAt: FieldRef<"Watchlist", 'DateTime'>
readonly active: FieldRef<"Watchlist", 'Boolean'>
}
// Custom InputTypes
/**
* Watchlist findUnique
*/
export type WatchlistFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Watchlist
*/
select?: WatchlistSelect<ExtArgs> | null
/**
* Filter, which Watchlist to fetch.
*/
where: WatchlistWhereUniqueInput
}
/**
* Watchlist findUniqueOrThrow
*/
export type WatchlistFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Watchlist
*/
select?: WatchlistSelect<ExtArgs> | null
/**
* Filter, which Watchlist to fetch.
*/
where: WatchlistWhereUniqueInput
}
/**
* Watchlist findFirst
*/
export type WatchlistFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Watchlist
*/
select?: WatchlistSelect<ExtArgs> | null
/**
* Filter, which Watchlist to fetch.
*/
where?: WatchlistWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Watchlists to fetch.
*/
orderBy?: WatchlistOrderByWithRelationInput | WatchlistOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Watchlists.
*/
cursor?: WatchlistWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Watchlists 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` Watchlists.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Watchlists.
*/
distinct?: WatchlistScalarFieldEnum | WatchlistScalarFieldEnum[]
}
/**
* Watchlist findFirstOrThrow
*/
export type WatchlistFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Watchlist
*/
select?: WatchlistSelect<ExtArgs> | null
/**
* Filter, which Watchlist to fetch.
*/
where?: WatchlistWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Watchlists to fetch.
*/
orderBy?: WatchlistOrderByWithRelationInput | WatchlistOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Watchlists.
*/
cursor?: WatchlistWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Watchlists 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` Watchlists.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Watchlists.
*/
distinct?: WatchlistScalarFieldEnum | WatchlistScalarFieldEnum[]
}
/**
* Watchlist findMany
*/
export type WatchlistFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Watchlist
*/
select?: WatchlistSelect<ExtArgs> | null
/**
* Filter, which Watchlists to fetch.
*/
where?: WatchlistWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Watchlists to fetch.
*/
orderBy?: WatchlistOrderByWithRelationInput | WatchlistOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing Watchlists.
*/
cursor?: WatchlistWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Watchlists 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` Watchlists.
*/
skip?: number
distinct?: WatchlistScalarFieldEnum | WatchlistScalarFieldEnum[]
}
/**
* Watchlist create
*/
export type WatchlistCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Watchlist
*/
select?: WatchlistSelect<ExtArgs> | null
/**
* The data needed to create a Watchlist.
*/
data: XOR<WatchlistCreateInput, WatchlistUncheckedCreateInput>
}
/**
* Watchlist createMany
*/
export type WatchlistCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many Watchlists.
*/
data: WatchlistCreateManyInput | WatchlistCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Watchlist createManyAndReturn
*/
export type WatchlistCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Watchlist
*/
select?: WatchlistSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many Watchlists.
*/
data: WatchlistCreateManyInput | WatchlistCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Watchlist update
*/
export type WatchlistUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Watchlist
*/
select?: WatchlistSelect<ExtArgs> | null
/**
* The data needed to update a Watchlist.
*/
data: XOR<WatchlistUpdateInput, WatchlistUncheckedUpdateInput>
/**
* Choose, which Watchlist to update.
*/
where: WatchlistWhereUniqueInput
}
/**
* Watchlist updateMany
*/
export type WatchlistUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update Watchlists.
*/
data: XOR<WatchlistUpdateManyMutationInput, WatchlistUncheckedUpdateManyInput>
/**
* Filter which Watchlists to update
*/
where?: WatchlistWhereInput
}
/**
* Watchlist upsert
*/
export type WatchlistUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Watchlist
*/
select?: WatchlistSelect<ExtArgs> | null
/**
* The filter to search for the Watchlist to update in case it exists.
*/
where: WatchlistWhereUniqueInput
/**
* In case the Watchlist found by the `where` argument doesn't exist, create a new Watchlist with this data.
*/
create: XOR<WatchlistCreateInput, WatchlistUncheckedCreateInput>
/**
* In case the Watchlist was found with the provided `where` argument, update it with this data.
*/
update: XOR<WatchlistUpdateInput, WatchlistUncheckedUpdateInput>
}
/**
* Watchlist delete
*/
export type WatchlistDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Watchlist
*/
select?: WatchlistSelect<ExtArgs> | null
/**
* Filter which Watchlist to delete.
*/
where: WatchlistWhereUniqueInput
}
/**
* Watchlist deleteMany
*/
export type WatchlistDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Watchlists to delete
*/
where?: WatchlistWhereInput
}
/**
* Watchlist without action
*/
export type WatchlistDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Watchlist
*/
select?: WatchlistSelect<ExtArgs> | null
}
/**
* Model UserBadge
*/
export type AggregateUserBadge = {
_count: UserBadgeCountAggregateOutputType | null
_min: UserBadgeMinAggregateOutputType | null
_max: UserBadgeMaxAggregateOutputType | null
}
export type UserBadgeMinAggregateOutputType = {
id: string | null
guildId: string | null
userId: string | null
badgeKey: string | null
awardedAt: Date | null
}
export type UserBadgeMaxAggregateOutputType = {
id: string | null
guildId: string | null
userId: string | null
badgeKey: string | null
awardedAt: Date | null
}
export type UserBadgeCountAggregateOutputType = {
id: number
guildId: number
userId: number
badgeKey: number
awardedAt: number
_all: number
}
export type UserBadgeMinAggregateInputType = {
id?: true
guildId?: true
userId?: true
badgeKey?: true
awardedAt?: true
}
export type UserBadgeMaxAggregateInputType = {
id?: true
guildId?: true
userId?: true
badgeKey?: true
awardedAt?: true
}
export type UserBadgeCountAggregateInputType = {
id?: true
guildId?: true
userId?: true
badgeKey?: true
awardedAt?: true
_all?: true
}
export type UserBadgeAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which UserBadge to aggregate.
*/
where?: UserBadgeWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of UserBadges to fetch.
*/
orderBy?: UserBadgeOrderByWithRelationInput | UserBadgeOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: UserBadgeWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` UserBadges 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` UserBadges.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned UserBadges
**/
_count?: true | UserBadgeCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: UserBadgeMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: UserBadgeMaxAggregateInputType
}
export type GetUserBadgeAggregateType<T extends UserBadgeAggregateArgs> = {
[P in keyof T & keyof AggregateUserBadge]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateUserBadge[P]>
: GetScalarType<T[P], AggregateUserBadge[P]>
}
export type UserBadgeGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: UserBadgeWhereInput
orderBy?: UserBadgeOrderByWithAggregationInput | UserBadgeOrderByWithAggregationInput[]
by: UserBadgeScalarFieldEnum[] | UserBadgeScalarFieldEnum
having?: UserBadgeScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: UserBadgeCountAggregateInputType | true
_min?: UserBadgeMinAggregateInputType
_max?: UserBadgeMaxAggregateInputType
}
export type UserBadgeGroupByOutputType = {
id: string
guildId: string
userId: string
badgeKey: string
awardedAt: Date
_count: UserBadgeCountAggregateOutputType | null
_min: UserBadgeMinAggregateOutputType | null
_max: UserBadgeMaxAggregateOutputType | null
}
type GetUserBadgeGroupByPayload<T extends UserBadgeGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<UserBadgeGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof UserBadgeGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], UserBadgeGroupByOutputType[P]>
: GetScalarType<T[P], UserBadgeGroupByOutputType[P]>
}
>
>
export type UserBadgeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
guildId?: boolean
userId?: boolean
badgeKey?: boolean
awardedAt?: boolean
}, ExtArgs["result"]["userBadge"]>
export type UserBadgeSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
guildId?: boolean
userId?: boolean
badgeKey?: boolean
awardedAt?: boolean
}, ExtArgs["result"]["userBadge"]>
export type UserBadgeSelectScalar = {
id?: boolean
guildId?: boolean
userId?: boolean
badgeKey?: boolean
awardedAt?: boolean
}
export type $UserBadgePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "UserBadge"
objects: {}
scalars: $Extensions.GetPayloadResult<{
id: string
guildId: string
userId: string
badgeKey: string
awardedAt: Date
}, ExtArgs["result"]["userBadge"]>
composites: {}
}
type UserBadgeGetPayload<S extends boolean | null | undefined | UserBadgeDefaultArgs> = $Result.GetResult<Prisma.$UserBadgePayload, S>
type UserBadgeCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<UserBadgeFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: UserBadgeCountAggregateInputType | true
}
export interface UserBadgeDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['UserBadge'], meta: { name: 'UserBadge' } }
/**
* Find zero or one UserBadge that matches the filter.
* @param {UserBadgeFindUniqueArgs} args - Arguments to find a UserBadge
* @example
* // Get one UserBadge
* const userBadge = await prisma.userBadge.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends UserBadgeFindUniqueArgs>(args: SelectSubset<T, UserBadgeFindUniqueArgs<ExtArgs>>): Prisma__UserBadgeClient<$Result.GetResult<Prisma.$UserBadgePayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one UserBadge that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {UserBadgeFindUniqueOrThrowArgs} args - Arguments to find a UserBadge
* @example
* // Get one UserBadge
* const userBadge = await prisma.userBadge.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends UserBadgeFindUniqueOrThrowArgs>(args: SelectSubset<T, UserBadgeFindUniqueOrThrowArgs<ExtArgs>>): Prisma__UserBadgeClient<$Result.GetResult<Prisma.$UserBadgePayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first UserBadge 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 {UserBadgeFindFirstArgs} args - Arguments to find a UserBadge
* @example
* // Get one UserBadge
* const userBadge = await prisma.userBadge.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends UserBadgeFindFirstArgs>(args?: SelectSubset<T, UserBadgeFindFirstArgs<ExtArgs>>): Prisma__UserBadgeClient<$Result.GetResult<Prisma.$UserBadgePayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first UserBadge 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 {UserBadgeFindFirstOrThrowArgs} args - Arguments to find a UserBadge
* @example
* // Get one UserBadge
* const userBadge = await prisma.userBadge.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends UserBadgeFindFirstOrThrowArgs>(args?: SelectSubset<T, UserBadgeFindFirstOrThrowArgs<ExtArgs>>): Prisma__UserBadgeClient<$Result.GetResult<Prisma.$UserBadgePayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more UserBadges 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 {UserBadgeFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all UserBadges
* const userBadges = await prisma.userBadge.findMany()
*
* // Get first 10 UserBadges
* const userBadges = await prisma.userBadge.findMany({ take: 10 })
*
* // Only select the `id`
* const userBadgeWithIdOnly = await prisma.userBadge.findMany({ select: { id: true } })
*
*/
findMany<T extends UserBadgeFindManyArgs>(args?: SelectSubset<T, UserBadgeFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserBadgePayload<ExtArgs>, T, "findMany">>
/**
* Create a UserBadge.
* @param {UserBadgeCreateArgs} args - Arguments to create a UserBadge.
* @example
* // Create one UserBadge
* const UserBadge = await prisma.userBadge.create({
* data: {
* // ... data to create a UserBadge
* }
* })
*
*/
create<T extends UserBadgeCreateArgs>(args: SelectSubset<T, UserBadgeCreateArgs<ExtArgs>>): Prisma__UserBadgeClient<$Result.GetResult<Prisma.$UserBadgePayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many UserBadges.
* @param {UserBadgeCreateManyArgs} args - Arguments to create many UserBadges.
* @example
* // Create many UserBadges
* const userBadge = await prisma.userBadge.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends UserBadgeCreateManyArgs>(args?: SelectSubset<T, UserBadgeCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many UserBadges and returns the data saved in the database.
* @param {UserBadgeCreateManyAndReturnArgs} args - Arguments to create many UserBadges.
* @example
* // Create many UserBadges
* const userBadge = await prisma.userBadge.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many UserBadges and only return the `id`
* const userBadgeWithIdOnly = await prisma.userBadge.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 UserBadgeCreateManyAndReturnArgs>(args?: SelectSubset<T, UserBadgeCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserBadgePayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a UserBadge.
* @param {UserBadgeDeleteArgs} args - Arguments to delete one UserBadge.
* @example
* // Delete one UserBadge
* const UserBadge = await prisma.userBadge.delete({
* where: {
* // ... filter to delete one UserBadge
* }
* })
*
*/
delete<T extends UserBadgeDeleteArgs>(args: SelectSubset<T, UserBadgeDeleteArgs<ExtArgs>>): Prisma__UserBadgeClient<$Result.GetResult<Prisma.$UserBadgePayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one UserBadge.
* @param {UserBadgeUpdateArgs} args - Arguments to update one UserBadge.
* @example
* // Update one UserBadge
* const userBadge = await prisma.userBadge.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends UserBadgeUpdateArgs>(args: SelectSubset<T, UserBadgeUpdateArgs<ExtArgs>>): Prisma__UserBadgeClient<$Result.GetResult<Prisma.$UserBadgePayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more UserBadges.
* @param {UserBadgeDeleteManyArgs} args - Arguments to filter UserBadges to delete.
* @example
* // Delete a few UserBadges
* const { count } = await prisma.userBadge.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends UserBadgeDeleteManyArgs>(args?: SelectSubset<T, UserBadgeDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more UserBadges.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserBadgeUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many UserBadges
* const userBadge = await prisma.userBadge.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends UserBadgeUpdateManyArgs>(args: SelectSubset<T, UserBadgeUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one UserBadge.
* @param {UserBadgeUpsertArgs} args - Arguments to update or create a UserBadge.
* @example
* // Update or create a UserBadge
* const userBadge = await prisma.userBadge.upsert({
* create: {
* // ... data to create a UserBadge
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the UserBadge we want to update
* }
* })
*/
upsert<T extends UserBadgeUpsertArgs>(args: SelectSubset<T, UserBadgeUpsertArgs<ExtArgs>>): Prisma__UserBadgeClient<$Result.GetResult<Prisma.$UserBadgePayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of UserBadges.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserBadgeCountArgs} args - Arguments to filter UserBadges to count.
* @example
* // Count the number of UserBadges
* const count = await prisma.userBadge.count({
* where: {
* // ... the filter for the UserBadges we want to count
* }
* })
**/
count<T extends UserBadgeCountArgs>(
args?: Subset<T, UserBadgeCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], UserBadgeCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a UserBadge.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserBadgeAggregateArgs} 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 UserBadgeAggregateArgs>(args: Subset<T, UserBadgeAggregateArgs>): Prisma.PrismaPromise<GetUserBadgeAggregateType<T>>
/**
* Group by UserBadge.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserBadgeGroupByArgs} 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 UserBadgeGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: UserBadgeGroupByArgs['orderBy'] }
: { orderBy?: UserBadgeGroupByArgs['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, UserBadgeGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUserBadgeGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the UserBadge model
*/
readonly fields: UserBadgeFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for UserBadge.
* 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__UserBadgeClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the UserBadge model
*/
interface UserBadgeFieldRefs {
readonly id: FieldRef<"UserBadge", 'String'>
readonly guildId: FieldRef<"UserBadge", 'String'>
readonly userId: FieldRef<"UserBadge", 'String'>
readonly badgeKey: FieldRef<"UserBadge", 'String'>
readonly awardedAt: FieldRef<"UserBadge", 'DateTime'>
}
// Custom InputTypes
/**
* UserBadge findUnique
*/
export type UserBadgeFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserBadge
*/
select?: UserBadgeSelect<ExtArgs> | null
/**
* Filter, which UserBadge to fetch.
*/
where: UserBadgeWhereUniqueInput
}
/**
* UserBadge findUniqueOrThrow
*/
export type UserBadgeFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserBadge
*/
select?: UserBadgeSelect<ExtArgs> | null
/**
* Filter, which UserBadge to fetch.
*/
where: UserBadgeWhereUniqueInput
}
/**
* UserBadge findFirst
*/
export type UserBadgeFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserBadge
*/
select?: UserBadgeSelect<ExtArgs> | null
/**
* Filter, which UserBadge to fetch.
*/
where?: UserBadgeWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of UserBadges to fetch.
*/
orderBy?: UserBadgeOrderByWithRelationInput | UserBadgeOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for UserBadges.
*/
cursor?: UserBadgeWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` UserBadges 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` UserBadges.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of UserBadges.
*/
distinct?: UserBadgeScalarFieldEnum | UserBadgeScalarFieldEnum[]
}
/**
* UserBadge findFirstOrThrow
*/
export type UserBadgeFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserBadge
*/
select?: UserBadgeSelect<ExtArgs> | null
/**
* Filter, which UserBadge to fetch.
*/
where?: UserBadgeWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of UserBadges to fetch.
*/
orderBy?: UserBadgeOrderByWithRelationInput | UserBadgeOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for UserBadges.
*/
cursor?: UserBadgeWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` UserBadges 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` UserBadges.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of UserBadges.
*/
distinct?: UserBadgeScalarFieldEnum | UserBadgeScalarFieldEnum[]
}
/**
* UserBadge findMany
*/
export type UserBadgeFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserBadge
*/
select?: UserBadgeSelect<ExtArgs> | null
/**
* Filter, which UserBadges to fetch.
*/
where?: UserBadgeWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of UserBadges to fetch.
*/
orderBy?: UserBadgeOrderByWithRelationInput | UserBadgeOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing UserBadges.
*/
cursor?: UserBadgeWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` UserBadges 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` UserBadges.
*/
skip?: number
distinct?: UserBadgeScalarFieldEnum | UserBadgeScalarFieldEnum[]
}
/**
* UserBadge create
*/
export type UserBadgeCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserBadge
*/
select?: UserBadgeSelect<ExtArgs> | null
/**
* The data needed to create a UserBadge.
*/
data: XOR<UserBadgeCreateInput, UserBadgeUncheckedCreateInput>
}
/**
* UserBadge createMany
*/
export type UserBadgeCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many UserBadges.
*/
data: UserBadgeCreateManyInput | UserBadgeCreateManyInput[]
skipDuplicates?: boolean
}
/**
* UserBadge createManyAndReturn
*/
export type UserBadgeCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserBadge
*/
select?: UserBadgeSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many UserBadges.
*/
data: UserBadgeCreateManyInput | UserBadgeCreateManyInput[]
skipDuplicates?: boolean
}
/**
* UserBadge update
*/
export type UserBadgeUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserBadge
*/
select?: UserBadgeSelect<ExtArgs> | null
/**
* The data needed to update a UserBadge.
*/
data: XOR<UserBadgeUpdateInput, UserBadgeUncheckedUpdateInput>
/**
* Choose, which UserBadge to update.
*/
where: UserBadgeWhereUniqueInput
}
/**
* UserBadge updateMany
*/
export type UserBadgeUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update UserBadges.
*/
data: XOR<UserBadgeUpdateManyMutationInput, UserBadgeUncheckedUpdateManyInput>
/**
* Filter which UserBadges to update
*/
where?: UserBadgeWhereInput
}
/**
* UserBadge upsert
*/
export type UserBadgeUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserBadge
*/
select?: UserBadgeSelect<ExtArgs> | null
/**
* The filter to search for the UserBadge to update in case it exists.
*/
where: UserBadgeWhereUniqueInput
/**
* In case the UserBadge found by the `where` argument doesn't exist, create a new UserBadge with this data.
*/
create: XOR<UserBadgeCreateInput, UserBadgeUncheckedCreateInput>
/**
* In case the UserBadge was found with the provided `where` argument, update it with this data.
*/
update: XOR<UserBadgeUpdateInput, UserBadgeUncheckedUpdateInput>
}
/**
* UserBadge delete
*/
export type UserBadgeDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserBadge
*/
select?: UserBadgeSelect<ExtArgs> | null
/**
* Filter which UserBadge to delete.
*/
where: UserBadgeWhereUniqueInput
}
/**
* UserBadge deleteMany
*/
export type UserBadgeDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which UserBadges to delete
*/
where?: UserBadgeWhereInput
}
/**
* UserBadge without action
*/
export type UserBadgeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserBadge
*/
select?: UserBadgeSelect<ExtArgs> | null
}
/**
* Model UserActivity
*/
export type AggregateUserActivity = {
_count: UserActivityCountAggregateOutputType | null
_avg: UserActivityAvgAggregateOutputType | null
_sum: UserActivitySumAggregateOutputType | null
_min: UserActivityMinAggregateOutputType | null
_max: UserActivityMaxAggregateOutputType | null
}
export type UserActivityAvgAggregateOutputType = {
messageCount: number | null
activeDays: number | null
}
export type UserActivitySumAggregateOutputType = {
messageCount: number | null
activeDays: number | null
}
export type UserActivityMinAggregateOutputType = {
id: string | null
guildId: string | null
userId: string | null
messageCount: number | null
activeDays: number | null
lastActiveDay: string | null
}
export type UserActivityMaxAggregateOutputType = {
id: string | null
guildId: string | null
userId: string | null
messageCount: number | null
activeDays: number | null
lastActiveDay: string | null
}
export type UserActivityCountAggregateOutputType = {
id: number
guildId: number
userId: number
messageCount: number
activeDays: number
lastActiveDay: number
_all: number
}
export type UserActivityAvgAggregateInputType = {
messageCount?: true
activeDays?: true
}
export type UserActivitySumAggregateInputType = {
messageCount?: true
activeDays?: true
}
export type UserActivityMinAggregateInputType = {
id?: true
guildId?: true
userId?: true
messageCount?: true
activeDays?: true
lastActiveDay?: true
}
export type UserActivityMaxAggregateInputType = {
id?: true
guildId?: true
userId?: true
messageCount?: true
activeDays?: true
lastActiveDay?: true
}
export type UserActivityCountAggregateInputType = {
id?: true
guildId?: true
userId?: true
messageCount?: true
activeDays?: true
lastActiveDay?: true
_all?: true
}
export type UserActivityAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which UserActivity to aggregate.
*/
where?: UserActivityWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of UserActivities to fetch.
*/
orderBy?: UserActivityOrderByWithRelationInput | UserActivityOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: UserActivityWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` UserActivities 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` UserActivities.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned UserActivities
**/
_count?: true | UserActivityCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: UserActivityAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: UserActivitySumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: UserActivityMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: UserActivityMaxAggregateInputType
}
export type GetUserActivityAggregateType<T extends UserActivityAggregateArgs> = {
[P in keyof T & keyof AggregateUserActivity]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateUserActivity[P]>
: GetScalarType<T[P], AggregateUserActivity[P]>
}
export type UserActivityGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: UserActivityWhereInput
orderBy?: UserActivityOrderByWithAggregationInput | UserActivityOrderByWithAggregationInput[]
by: UserActivityScalarFieldEnum[] | UserActivityScalarFieldEnum
having?: UserActivityScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: UserActivityCountAggregateInputType | true
_avg?: UserActivityAvgAggregateInputType
_sum?: UserActivitySumAggregateInputType
_min?: UserActivityMinAggregateInputType
_max?: UserActivityMaxAggregateInputType
}
export type UserActivityGroupByOutputType = {
id: string
guildId: string
userId: string
messageCount: number
activeDays: number
lastActiveDay: string | null
_count: UserActivityCountAggregateOutputType | null
_avg: UserActivityAvgAggregateOutputType | null
_sum: UserActivitySumAggregateOutputType | null
_min: UserActivityMinAggregateOutputType | null
_max: UserActivityMaxAggregateOutputType | null
}
type GetUserActivityGroupByPayload<T extends UserActivityGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<UserActivityGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof UserActivityGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], UserActivityGroupByOutputType[P]>
: GetScalarType<T[P], UserActivityGroupByOutputType[P]>
}
>
>
export type UserActivitySelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
guildId?: boolean
userId?: boolean
messageCount?: boolean
activeDays?: boolean
lastActiveDay?: boolean
}, ExtArgs["result"]["userActivity"]>
export type UserActivitySelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
guildId?: boolean
userId?: boolean
messageCount?: boolean
activeDays?: boolean
lastActiveDay?: boolean
}, ExtArgs["result"]["userActivity"]>
export type UserActivitySelectScalar = {
id?: boolean
guildId?: boolean
userId?: boolean
messageCount?: boolean
activeDays?: boolean
lastActiveDay?: boolean
}
export type $UserActivityPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "UserActivity"
objects: {}
scalars: $Extensions.GetPayloadResult<{
id: string
guildId: string
userId: string
messageCount: number
activeDays: number
lastActiveDay: string | null
}, ExtArgs["result"]["userActivity"]>
composites: {}
}
type UserActivityGetPayload<S extends boolean | null | undefined | UserActivityDefaultArgs> = $Result.GetResult<Prisma.$UserActivityPayload, S>
type UserActivityCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<UserActivityFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: UserActivityCountAggregateInputType | true
}
export interface UserActivityDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['UserActivity'], meta: { name: 'UserActivity' } }
/**
* Find zero or one UserActivity that matches the filter.
* @param {UserActivityFindUniqueArgs} args - Arguments to find a UserActivity
* @example
* // Get one UserActivity
* const userActivity = await prisma.userActivity.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends UserActivityFindUniqueArgs>(args: SelectSubset<T, UserActivityFindUniqueArgs<ExtArgs>>): Prisma__UserActivityClient<$Result.GetResult<Prisma.$UserActivityPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one UserActivity that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {UserActivityFindUniqueOrThrowArgs} args - Arguments to find a UserActivity
* @example
* // Get one UserActivity
* const userActivity = await prisma.userActivity.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends UserActivityFindUniqueOrThrowArgs>(args: SelectSubset<T, UserActivityFindUniqueOrThrowArgs<ExtArgs>>): Prisma__UserActivityClient<$Result.GetResult<Prisma.$UserActivityPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first UserActivity 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 {UserActivityFindFirstArgs} args - Arguments to find a UserActivity
* @example
* // Get one UserActivity
* const userActivity = await prisma.userActivity.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends UserActivityFindFirstArgs>(args?: SelectSubset<T, UserActivityFindFirstArgs<ExtArgs>>): Prisma__UserActivityClient<$Result.GetResult<Prisma.$UserActivityPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first UserActivity 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 {UserActivityFindFirstOrThrowArgs} args - Arguments to find a UserActivity
* @example
* // Get one UserActivity
* const userActivity = await prisma.userActivity.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends UserActivityFindFirstOrThrowArgs>(args?: SelectSubset<T, UserActivityFindFirstOrThrowArgs<ExtArgs>>): Prisma__UserActivityClient<$Result.GetResult<Prisma.$UserActivityPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more UserActivities 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 {UserActivityFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all UserActivities
* const userActivities = await prisma.userActivity.findMany()
*
* // Get first 10 UserActivities
* const userActivities = await prisma.userActivity.findMany({ take: 10 })
*
* // Only select the `id`
* const userActivityWithIdOnly = await prisma.userActivity.findMany({ select: { id: true } })
*
*/
findMany<T extends UserActivityFindManyArgs>(args?: SelectSubset<T, UserActivityFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserActivityPayload<ExtArgs>, T, "findMany">>
/**
* Create a UserActivity.
* @param {UserActivityCreateArgs} args - Arguments to create a UserActivity.
* @example
* // Create one UserActivity
* const UserActivity = await prisma.userActivity.create({
* data: {
* // ... data to create a UserActivity
* }
* })
*
*/
create<T extends UserActivityCreateArgs>(args: SelectSubset<T, UserActivityCreateArgs<ExtArgs>>): Prisma__UserActivityClient<$Result.GetResult<Prisma.$UserActivityPayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many UserActivities.
* @param {UserActivityCreateManyArgs} args - Arguments to create many UserActivities.
* @example
* // Create many UserActivities
* const userActivity = await prisma.userActivity.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends UserActivityCreateManyArgs>(args?: SelectSubset<T, UserActivityCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many UserActivities and returns the data saved in the database.
* @param {UserActivityCreateManyAndReturnArgs} args - Arguments to create many UserActivities.
* @example
* // Create many UserActivities
* const userActivity = await prisma.userActivity.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many UserActivities and only return the `id`
* const userActivityWithIdOnly = await prisma.userActivity.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 UserActivityCreateManyAndReturnArgs>(args?: SelectSubset<T, UserActivityCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserActivityPayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a UserActivity.
* @param {UserActivityDeleteArgs} args - Arguments to delete one UserActivity.
* @example
* // Delete one UserActivity
* const UserActivity = await prisma.userActivity.delete({
* where: {
* // ... filter to delete one UserActivity
* }
* })
*
*/
delete<T extends UserActivityDeleteArgs>(args: SelectSubset<T, UserActivityDeleteArgs<ExtArgs>>): Prisma__UserActivityClient<$Result.GetResult<Prisma.$UserActivityPayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one UserActivity.
* @param {UserActivityUpdateArgs} args - Arguments to update one UserActivity.
* @example
* // Update one UserActivity
* const userActivity = await prisma.userActivity.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends UserActivityUpdateArgs>(args: SelectSubset<T, UserActivityUpdateArgs<ExtArgs>>): Prisma__UserActivityClient<$Result.GetResult<Prisma.$UserActivityPayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more UserActivities.
* @param {UserActivityDeleteManyArgs} args - Arguments to filter UserActivities to delete.
* @example
* // Delete a few UserActivities
* const { count } = await prisma.userActivity.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends UserActivityDeleteManyArgs>(args?: SelectSubset<T, UserActivityDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more UserActivities.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserActivityUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many UserActivities
* const userActivity = await prisma.userActivity.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends UserActivityUpdateManyArgs>(args: SelectSubset<T, UserActivityUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one UserActivity.
* @param {UserActivityUpsertArgs} args - Arguments to update or create a UserActivity.
* @example
* // Update or create a UserActivity
* const userActivity = await prisma.userActivity.upsert({
* create: {
* // ... data to create a UserActivity
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the UserActivity we want to update
* }
* })
*/
upsert<T extends UserActivityUpsertArgs>(args: SelectSubset<T, UserActivityUpsertArgs<ExtArgs>>): Prisma__UserActivityClient<$Result.GetResult<Prisma.$UserActivityPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of UserActivities.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserActivityCountArgs} args - Arguments to filter UserActivities to count.
* @example
* // Count the number of UserActivities
* const count = await prisma.userActivity.count({
* where: {
* // ... the filter for the UserActivities we want to count
* }
* })
**/
count<T extends UserActivityCountArgs>(
args?: Subset<T, UserActivityCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], UserActivityCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a UserActivity.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserActivityAggregateArgs} 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 UserActivityAggregateArgs>(args: Subset<T, UserActivityAggregateArgs>): Prisma.PrismaPromise<GetUserActivityAggregateType<T>>
/**
* Group by UserActivity.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserActivityGroupByArgs} 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 UserActivityGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: UserActivityGroupByArgs['orderBy'] }
: { orderBy?: UserActivityGroupByArgs['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, UserActivityGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUserActivityGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the UserActivity model
*/
readonly fields: UserActivityFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for UserActivity.
* 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__UserActivityClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the UserActivity model
*/
interface UserActivityFieldRefs {
readonly id: FieldRef<"UserActivity", 'String'>
readonly guildId: FieldRef<"UserActivity", 'String'>
readonly userId: FieldRef<"UserActivity", 'String'>
readonly messageCount: FieldRef<"UserActivity", 'Int'>
readonly activeDays: FieldRef<"UserActivity", 'Int'>
readonly lastActiveDay: FieldRef<"UserActivity", 'String'>
}
// Custom InputTypes
/**
* UserActivity findUnique
*/
export type UserActivityFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserActivity
*/
select?: UserActivitySelect<ExtArgs> | null
/**
* Filter, which UserActivity to fetch.
*/
where: UserActivityWhereUniqueInput
}
/**
* UserActivity findUniqueOrThrow
*/
export type UserActivityFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserActivity
*/
select?: UserActivitySelect<ExtArgs> | null
/**
* Filter, which UserActivity to fetch.
*/
where: UserActivityWhereUniqueInput
}
/**
* UserActivity findFirst
*/
export type UserActivityFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserActivity
*/
select?: UserActivitySelect<ExtArgs> | null
/**
* Filter, which UserActivity to fetch.
*/
where?: UserActivityWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of UserActivities to fetch.
*/
orderBy?: UserActivityOrderByWithRelationInput | UserActivityOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for UserActivities.
*/
cursor?: UserActivityWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` UserActivities 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` UserActivities.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of UserActivities.
*/
distinct?: UserActivityScalarFieldEnum | UserActivityScalarFieldEnum[]
}
/**
* UserActivity findFirstOrThrow
*/
export type UserActivityFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserActivity
*/
select?: UserActivitySelect<ExtArgs> | null
/**
* Filter, which UserActivity to fetch.
*/
where?: UserActivityWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of UserActivities to fetch.
*/
orderBy?: UserActivityOrderByWithRelationInput | UserActivityOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for UserActivities.
*/
cursor?: UserActivityWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` UserActivities 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` UserActivities.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of UserActivities.
*/
distinct?: UserActivityScalarFieldEnum | UserActivityScalarFieldEnum[]
}
/**
* UserActivity findMany
*/
export type UserActivityFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserActivity
*/
select?: UserActivitySelect<ExtArgs> | null
/**
* Filter, which UserActivities to fetch.
*/
where?: UserActivityWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of UserActivities to fetch.
*/
orderBy?: UserActivityOrderByWithRelationInput | UserActivityOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing UserActivities.
*/
cursor?: UserActivityWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` UserActivities 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` UserActivities.
*/
skip?: number
distinct?: UserActivityScalarFieldEnum | UserActivityScalarFieldEnum[]
}
/**
* UserActivity create
*/
export type UserActivityCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserActivity
*/
select?: UserActivitySelect<ExtArgs> | null
/**
* The data needed to create a UserActivity.
*/
data: XOR<UserActivityCreateInput, UserActivityUncheckedCreateInput>
}
/**
* UserActivity createMany
*/
export type UserActivityCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many UserActivities.
*/
data: UserActivityCreateManyInput | UserActivityCreateManyInput[]
skipDuplicates?: boolean
}
/**
* UserActivity createManyAndReturn
*/
export type UserActivityCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserActivity
*/
select?: UserActivitySelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many UserActivities.
*/
data: UserActivityCreateManyInput | UserActivityCreateManyInput[]
skipDuplicates?: boolean
}
/**
* UserActivity update
*/
export type UserActivityUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserActivity
*/
select?: UserActivitySelect<ExtArgs> | null
/**
* The data needed to update a UserActivity.
*/
data: XOR<UserActivityUpdateInput, UserActivityUncheckedUpdateInput>
/**
* Choose, which UserActivity to update.
*/
where: UserActivityWhereUniqueInput
}
/**
* UserActivity updateMany
*/
export type UserActivityUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update UserActivities.
*/
data: XOR<UserActivityUpdateManyMutationInput, UserActivityUncheckedUpdateManyInput>
/**
* Filter which UserActivities to update
*/
where?: UserActivityWhereInput
}
/**
* UserActivity upsert
*/
export type UserActivityUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserActivity
*/
select?: UserActivitySelect<ExtArgs> | null
/**
* The filter to search for the UserActivity to update in case it exists.
*/
where: UserActivityWhereUniqueInput
/**
* In case the UserActivity found by the `where` argument doesn't exist, create a new UserActivity with this data.
*/
create: XOR<UserActivityCreateInput, UserActivityUncheckedCreateInput>
/**
* In case the UserActivity was found with the provided `where` argument, update it with this data.
*/
update: XOR<UserActivityUpdateInput, UserActivityUncheckedUpdateInput>
}
/**
* UserActivity delete
*/
export type UserActivityDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserActivity
*/
select?: UserActivitySelect<ExtArgs> | null
/**
* Filter which UserActivity to delete.
*/
where: UserActivityWhereUniqueInput
}
/**
* UserActivity deleteMany
*/
export type UserActivityDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which UserActivities to delete
*/
where?: UserActivityWhereInput
}
/**
* UserActivity without action
*/
export type UserActivityDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserActivity
*/
select?: UserActivitySelect<ExtArgs> | null
}
/**
* Model WeeklyPlan
*/
export type AggregateWeeklyPlan = {
_count: WeeklyPlanCountAggregateOutputType | null
_min: WeeklyPlanMinAggregateOutputType | null
_max: WeeklyPlanMaxAggregateOutputType | null
}
export type WeeklyPlanMinAggregateOutputType = {
id: string | null
guildId: string | null
channelId: string | null
messageId: string | null
title: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type WeeklyPlanMaxAggregateOutputType = {
id: string | null
guildId: string | null
channelId: string | null
messageId: string | null
title: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type WeeklyPlanCountAggregateOutputType = {
id: number
guildId: number
channelId: number
messageId: number
title: number
entries: number
createdAt: number
updatedAt: number
_all: number
}
export type WeeklyPlanMinAggregateInputType = {
id?: true
guildId?: true
channelId?: true
messageId?: true
title?: true
createdAt?: true
updatedAt?: true
}
export type WeeklyPlanMaxAggregateInputType = {
id?: true
guildId?: true
channelId?: true
messageId?: true
title?: true
createdAt?: true
updatedAt?: true
}
export type WeeklyPlanCountAggregateInputType = {
id?: true
guildId?: true
channelId?: true
messageId?: true
title?: true
entries?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type WeeklyPlanAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which WeeklyPlan to aggregate.
*/
where?: WeeklyPlanWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of WeeklyPlans to fetch.
*/
orderBy?: WeeklyPlanOrderByWithRelationInput | WeeklyPlanOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: WeeklyPlanWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` WeeklyPlans 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` WeeklyPlans.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned WeeklyPlans
**/
_count?: true | WeeklyPlanCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: WeeklyPlanMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: WeeklyPlanMaxAggregateInputType
}
export type GetWeeklyPlanAggregateType<T extends WeeklyPlanAggregateArgs> = {
[P in keyof T & keyof AggregateWeeklyPlan]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateWeeklyPlan[P]>
: GetScalarType<T[P], AggregateWeeklyPlan[P]>
}
export type WeeklyPlanGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: WeeklyPlanWhereInput
orderBy?: WeeklyPlanOrderByWithAggregationInput | WeeklyPlanOrderByWithAggregationInput[]
by: WeeklyPlanScalarFieldEnum[] | WeeklyPlanScalarFieldEnum
having?: WeeklyPlanScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: WeeklyPlanCountAggregateInputType | true
_min?: WeeklyPlanMinAggregateInputType
_max?: WeeklyPlanMaxAggregateInputType
}
export type WeeklyPlanGroupByOutputType = {
id: string
guildId: string
channelId: string
messageId: string | null
title: string
entries: JsonValue
createdAt: Date
updatedAt: Date
_count: WeeklyPlanCountAggregateOutputType | null
_min: WeeklyPlanMinAggregateOutputType | null
_max: WeeklyPlanMaxAggregateOutputType | null
}
type GetWeeklyPlanGroupByPayload<T extends WeeklyPlanGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<WeeklyPlanGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof WeeklyPlanGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], WeeklyPlanGroupByOutputType[P]>
: GetScalarType<T[P], WeeklyPlanGroupByOutputType[P]>
}
>
>
export type WeeklyPlanSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
guildId?: boolean
channelId?: boolean
messageId?: boolean
title?: boolean
entries?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["weeklyPlan"]>
export type WeeklyPlanSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
guildId?: boolean
channelId?: boolean
messageId?: boolean
title?: boolean
entries?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["weeklyPlan"]>
export type WeeklyPlanSelectScalar = {
id?: boolean
guildId?: boolean
channelId?: boolean
messageId?: boolean
title?: boolean
entries?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type $WeeklyPlanPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "WeeklyPlan"
objects: {}
scalars: $Extensions.GetPayloadResult<{
id: string
guildId: string
channelId: string
messageId: string | null
title: string
entries: Prisma.JsonValue
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["weeklyPlan"]>
composites: {}
}
type WeeklyPlanGetPayload<S extends boolean | null | undefined | WeeklyPlanDefaultArgs> = $Result.GetResult<Prisma.$WeeklyPlanPayload, S>
type WeeklyPlanCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<WeeklyPlanFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: WeeklyPlanCountAggregateInputType | true
}
export interface WeeklyPlanDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['WeeklyPlan'], meta: { name: 'WeeklyPlan' } }
/**
* Find zero or one WeeklyPlan that matches the filter.
* @param {WeeklyPlanFindUniqueArgs} args - Arguments to find a WeeklyPlan
* @example
* // Get one WeeklyPlan
* const weeklyPlan = await prisma.weeklyPlan.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends WeeklyPlanFindUniqueArgs>(args: SelectSubset<T, WeeklyPlanFindUniqueArgs<ExtArgs>>): Prisma__WeeklyPlanClient<$Result.GetResult<Prisma.$WeeklyPlanPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one WeeklyPlan that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {WeeklyPlanFindUniqueOrThrowArgs} args - Arguments to find a WeeklyPlan
* @example
* // Get one WeeklyPlan
* const weeklyPlan = await prisma.weeklyPlan.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends WeeklyPlanFindUniqueOrThrowArgs>(args: SelectSubset<T, WeeklyPlanFindUniqueOrThrowArgs<ExtArgs>>): Prisma__WeeklyPlanClient<$Result.GetResult<Prisma.$WeeklyPlanPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first WeeklyPlan 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 {WeeklyPlanFindFirstArgs} args - Arguments to find a WeeklyPlan
* @example
* // Get one WeeklyPlan
* const weeklyPlan = await prisma.weeklyPlan.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends WeeklyPlanFindFirstArgs>(args?: SelectSubset<T, WeeklyPlanFindFirstArgs<ExtArgs>>): Prisma__WeeklyPlanClient<$Result.GetResult<Prisma.$WeeklyPlanPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first WeeklyPlan 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 {WeeklyPlanFindFirstOrThrowArgs} args - Arguments to find a WeeklyPlan
* @example
* // Get one WeeklyPlan
* const weeklyPlan = await prisma.weeklyPlan.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends WeeklyPlanFindFirstOrThrowArgs>(args?: SelectSubset<T, WeeklyPlanFindFirstOrThrowArgs<ExtArgs>>): Prisma__WeeklyPlanClient<$Result.GetResult<Prisma.$WeeklyPlanPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more WeeklyPlans 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 {WeeklyPlanFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all WeeklyPlans
* const weeklyPlans = await prisma.weeklyPlan.findMany()
*
* // Get first 10 WeeklyPlans
* const weeklyPlans = await prisma.weeklyPlan.findMany({ take: 10 })
*
* // Only select the `id`
* const weeklyPlanWithIdOnly = await prisma.weeklyPlan.findMany({ select: { id: true } })
*
*/
findMany<T extends WeeklyPlanFindManyArgs>(args?: SelectSubset<T, WeeklyPlanFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$WeeklyPlanPayload<ExtArgs>, T, "findMany">>
/**
* Create a WeeklyPlan.
* @param {WeeklyPlanCreateArgs} args - Arguments to create a WeeklyPlan.
* @example
* // Create one WeeklyPlan
* const WeeklyPlan = await prisma.weeklyPlan.create({
* data: {
* // ... data to create a WeeklyPlan
* }
* })
*
*/
create<T extends WeeklyPlanCreateArgs>(args: SelectSubset<T, WeeklyPlanCreateArgs<ExtArgs>>): Prisma__WeeklyPlanClient<$Result.GetResult<Prisma.$WeeklyPlanPayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many WeeklyPlans.
* @param {WeeklyPlanCreateManyArgs} args - Arguments to create many WeeklyPlans.
* @example
* // Create many WeeklyPlans
* const weeklyPlan = await prisma.weeklyPlan.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends WeeklyPlanCreateManyArgs>(args?: SelectSubset<T, WeeklyPlanCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many WeeklyPlans and returns the data saved in the database.
* @param {WeeklyPlanCreateManyAndReturnArgs} args - Arguments to create many WeeklyPlans.
* @example
* // Create many WeeklyPlans
* const weeklyPlan = await prisma.weeklyPlan.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many WeeklyPlans and only return the `id`
* const weeklyPlanWithIdOnly = await prisma.weeklyPlan.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 WeeklyPlanCreateManyAndReturnArgs>(args?: SelectSubset<T, WeeklyPlanCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$WeeklyPlanPayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a WeeklyPlan.
* @param {WeeklyPlanDeleteArgs} args - Arguments to delete one WeeklyPlan.
* @example
* // Delete one WeeklyPlan
* const WeeklyPlan = await prisma.weeklyPlan.delete({
* where: {
* // ... filter to delete one WeeklyPlan
* }
* })
*
*/
delete<T extends WeeklyPlanDeleteArgs>(args: SelectSubset<T, WeeklyPlanDeleteArgs<ExtArgs>>): Prisma__WeeklyPlanClient<$Result.GetResult<Prisma.$WeeklyPlanPayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one WeeklyPlan.
* @param {WeeklyPlanUpdateArgs} args - Arguments to update one WeeklyPlan.
* @example
* // Update one WeeklyPlan
* const weeklyPlan = await prisma.weeklyPlan.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends WeeklyPlanUpdateArgs>(args: SelectSubset<T, WeeklyPlanUpdateArgs<ExtArgs>>): Prisma__WeeklyPlanClient<$Result.GetResult<Prisma.$WeeklyPlanPayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more WeeklyPlans.
* @param {WeeklyPlanDeleteManyArgs} args - Arguments to filter WeeklyPlans to delete.
* @example
* // Delete a few WeeklyPlans
* const { count } = await prisma.weeklyPlan.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends WeeklyPlanDeleteManyArgs>(args?: SelectSubset<T, WeeklyPlanDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more WeeklyPlans.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {WeeklyPlanUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many WeeklyPlans
* const weeklyPlan = await prisma.weeklyPlan.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends WeeklyPlanUpdateManyArgs>(args: SelectSubset<T, WeeklyPlanUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one WeeklyPlan.
* @param {WeeklyPlanUpsertArgs} args - Arguments to update or create a WeeklyPlan.
* @example
* // Update or create a WeeklyPlan
* const weeklyPlan = await prisma.weeklyPlan.upsert({
* create: {
* // ... data to create a WeeklyPlan
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the WeeklyPlan we want to update
* }
* })
*/
upsert<T extends WeeklyPlanUpsertArgs>(args: SelectSubset<T, WeeklyPlanUpsertArgs<ExtArgs>>): Prisma__WeeklyPlanClient<$Result.GetResult<Prisma.$WeeklyPlanPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of WeeklyPlans.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {WeeklyPlanCountArgs} args - Arguments to filter WeeklyPlans to count.
* @example
* // Count the number of WeeklyPlans
* const count = await prisma.weeklyPlan.count({
* where: {
* // ... the filter for the WeeklyPlans we want to count
* }
* })
**/
count<T extends WeeklyPlanCountArgs>(
args?: Subset<T, WeeklyPlanCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], WeeklyPlanCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a WeeklyPlan.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {WeeklyPlanAggregateArgs} 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 WeeklyPlanAggregateArgs>(args: Subset<T, WeeklyPlanAggregateArgs>): Prisma.PrismaPromise<GetWeeklyPlanAggregateType<T>>
/**
* Group by WeeklyPlan.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {WeeklyPlanGroupByArgs} 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 WeeklyPlanGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: WeeklyPlanGroupByArgs['orderBy'] }
: { orderBy?: WeeklyPlanGroupByArgs['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, WeeklyPlanGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetWeeklyPlanGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the WeeklyPlan model
*/
readonly fields: WeeklyPlanFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for WeeklyPlan.
* 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__WeeklyPlanClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the WeeklyPlan model
*/
interface WeeklyPlanFieldRefs {
readonly id: FieldRef<"WeeklyPlan", 'String'>
readonly guildId: FieldRef<"WeeklyPlan", 'String'>
readonly channelId: FieldRef<"WeeklyPlan", 'String'>
readonly messageId: FieldRef<"WeeklyPlan", 'String'>
readonly title: FieldRef<"WeeklyPlan", 'String'>
readonly entries: FieldRef<"WeeklyPlan", 'Json'>
readonly createdAt: FieldRef<"WeeklyPlan", 'DateTime'>
readonly updatedAt: FieldRef<"WeeklyPlan", 'DateTime'>
}
// Custom InputTypes
/**
* WeeklyPlan findUnique
*/
export type WeeklyPlanFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WeeklyPlan
*/
select?: WeeklyPlanSelect<ExtArgs> | null
/**
* Filter, which WeeklyPlan to fetch.
*/
where: WeeklyPlanWhereUniqueInput
}
/**
* WeeklyPlan findUniqueOrThrow
*/
export type WeeklyPlanFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WeeklyPlan
*/
select?: WeeklyPlanSelect<ExtArgs> | null
/**
* Filter, which WeeklyPlan to fetch.
*/
where: WeeklyPlanWhereUniqueInput
}
/**
* WeeklyPlan findFirst
*/
export type WeeklyPlanFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WeeklyPlan
*/
select?: WeeklyPlanSelect<ExtArgs> | null
/**
* Filter, which WeeklyPlan to fetch.
*/
where?: WeeklyPlanWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of WeeklyPlans to fetch.
*/
orderBy?: WeeklyPlanOrderByWithRelationInput | WeeklyPlanOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for WeeklyPlans.
*/
cursor?: WeeklyPlanWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` WeeklyPlans 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` WeeklyPlans.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of WeeklyPlans.
*/
distinct?: WeeklyPlanScalarFieldEnum | WeeklyPlanScalarFieldEnum[]
}
/**
* WeeklyPlan findFirstOrThrow
*/
export type WeeklyPlanFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WeeklyPlan
*/
select?: WeeklyPlanSelect<ExtArgs> | null
/**
* Filter, which WeeklyPlan to fetch.
*/
where?: WeeklyPlanWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of WeeklyPlans to fetch.
*/
orderBy?: WeeklyPlanOrderByWithRelationInput | WeeklyPlanOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for WeeklyPlans.
*/
cursor?: WeeklyPlanWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` WeeklyPlans 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` WeeklyPlans.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of WeeklyPlans.
*/
distinct?: WeeklyPlanScalarFieldEnum | WeeklyPlanScalarFieldEnum[]
}
/**
* WeeklyPlan findMany
*/
export type WeeklyPlanFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WeeklyPlan
*/
select?: WeeklyPlanSelect<ExtArgs> | null
/**
* Filter, which WeeklyPlans to fetch.
*/
where?: WeeklyPlanWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of WeeklyPlans to fetch.
*/
orderBy?: WeeklyPlanOrderByWithRelationInput | WeeklyPlanOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing WeeklyPlans.
*/
cursor?: WeeklyPlanWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` WeeklyPlans 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` WeeklyPlans.
*/
skip?: number
distinct?: WeeklyPlanScalarFieldEnum | WeeklyPlanScalarFieldEnum[]
}
/**
* WeeklyPlan create
*/
export type WeeklyPlanCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WeeklyPlan
*/
select?: WeeklyPlanSelect<ExtArgs> | null
/**
* The data needed to create a WeeklyPlan.
*/
data: XOR<WeeklyPlanCreateInput, WeeklyPlanUncheckedCreateInput>
}
/**
* WeeklyPlan createMany
*/
export type WeeklyPlanCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many WeeklyPlans.
*/
data: WeeklyPlanCreateManyInput | WeeklyPlanCreateManyInput[]
skipDuplicates?: boolean
}
/**
* WeeklyPlan createManyAndReturn
*/
export type WeeklyPlanCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WeeklyPlan
*/
select?: WeeklyPlanSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many WeeklyPlans.
*/
data: WeeklyPlanCreateManyInput | WeeklyPlanCreateManyInput[]
skipDuplicates?: boolean
}
/**
* WeeklyPlan update
*/
export type WeeklyPlanUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WeeklyPlan
*/
select?: WeeklyPlanSelect<ExtArgs> | null
/**
* The data needed to update a WeeklyPlan.
*/
data: XOR<WeeklyPlanUpdateInput, WeeklyPlanUncheckedUpdateInput>
/**
* Choose, which WeeklyPlan to update.
*/
where: WeeklyPlanWhereUniqueInput
}
/**
* WeeklyPlan updateMany
*/
export type WeeklyPlanUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update WeeklyPlans.
*/
data: XOR<WeeklyPlanUpdateManyMutationInput, WeeklyPlanUncheckedUpdateManyInput>
/**
* Filter which WeeklyPlans to update
*/
where?: WeeklyPlanWhereInput
}
/**
* WeeklyPlan upsert
*/
export type WeeklyPlanUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WeeklyPlan
*/
select?: WeeklyPlanSelect<ExtArgs> | null
/**
* The filter to search for the WeeklyPlan to update in case it exists.
*/
where: WeeklyPlanWhereUniqueInput
/**
* In case the WeeklyPlan found by the `where` argument doesn't exist, create a new WeeklyPlan with this data.
*/
create: XOR<WeeklyPlanCreateInput, WeeklyPlanUncheckedCreateInput>
/**
* In case the WeeklyPlan was found with the provided `where` argument, update it with this data.
*/
update: XOR<WeeklyPlanUpdateInput, WeeklyPlanUncheckedUpdateInput>
}
/**
* WeeklyPlan delete
*/
export type WeeklyPlanDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WeeklyPlan
*/
select?: WeeklyPlanSelect<ExtArgs> | null
/**
* Filter which WeeklyPlan to delete.
*/
where: WeeklyPlanWhereUniqueInput
}
/**
* WeeklyPlan deleteMany
*/
export type WeeklyPlanDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which WeeklyPlans to delete
*/
where?: WeeklyPlanWhereInput
}
/**
* WeeklyPlan without action
*/
export type WeeklyPlanDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WeeklyPlan
*/
select?: WeeklyPlanSelect<ExtArgs> | null
}
/**
* Model WeeklyPlanRsvp
*/
export type AggregateWeeklyPlanRsvp = {
_count: WeeklyPlanRsvpCountAggregateOutputType | null
_min: WeeklyPlanRsvpMinAggregateOutputType | null
_max: WeeklyPlanRsvpMaxAggregateOutputType | null
}
export type WeeklyPlanRsvpMinAggregateOutputType = {
id: string | null
planId: string | null
entryId: string | null
userId: string | null
createdAt: Date | null
}
export type WeeklyPlanRsvpMaxAggregateOutputType = {
id: string | null
planId: string | null
entryId: string | null
userId: string | null
createdAt: Date | null
}
export type WeeklyPlanRsvpCountAggregateOutputType = {
id: number
planId: number
entryId: number
userId: number
createdAt: number
_all: number
}
export type WeeklyPlanRsvpMinAggregateInputType = {
id?: true
planId?: true
entryId?: true
userId?: true
createdAt?: true
}
export type WeeklyPlanRsvpMaxAggregateInputType = {
id?: true
planId?: true
entryId?: true
userId?: true
createdAt?: true
}
export type WeeklyPlanRsvpCountAggregateInputType = {
id?: true
planId?: true
entryId?: true
userId?: true
createdAt?: true
_all?: true
}
export type WeeklyPlanRsvpAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which WeeklyPlanRsvp to aggregate.
*/
where?: WeeklyPlanRsvpWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of WeeklyPlanRsvps to fetch.
*/
orderBy?: WeeklyPlanRsvpOrderByWithRelationInput | WeeklyPlanRsvpOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: WeeklyPlanRsvpWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` WeeklyPlanRsvps 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` WeeklyPlanRsvps.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned WeeklyPlanRsvps
**/
_count?: true | WeeklyPlanRsvpCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: WeeklyPlanRsvpMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: WeeklyPlanRsvpMaxAggregateInputType
}
export type GetWeeklyPlanRsvpAggregateType<T extends WeeklyPlanRsvpAggregateArgs> = {
[P in keyof T & keyof AggregateWeeklyPlanRsvp]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateWeeklyPlanRsvp[P]>
: GetScalarType<T[P], AggregateWeeklyPlanRsvp[P]>
}
export type WeeklyPlanRsvpGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: WeeklyPlanRsvpWhereInput
orderBy?: WeeklyPlanRsvpOrderByWithAggregationInput | WeeklyPlanRsvpOrderByWithAggregationInput[]
by: WeeklyPlanRsvpScalarFieldEnum[] | WeeklyPlanRsvpScalarFieldEnum
having?: WeeklyPlanRsvpScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: WeeklyPlanRsvpCountAggregateInputType | true
_min?: WeeklyPlanRsvpMinAggregateInputType
_max?: WeeklyPlanRsvpMaxAggregateInputType
}
export type WeeklyPlanRsvpGroupByOutputType = {
id: string
planId: string
entryId: string
userId: string
createdAt: Date
_count: WeeklyPlanRsvpCountAggregateOutputType | null
_min: WeeklyPlanRsvpMinAggregateOutputType | null
_max: WeeklyPlanRsvpMaxAggregateOutputType | null
}
type GetWeeklyPlanRsvpGroupByPayload<T extends WeeklyPlanRsvpGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<WeeklyPlanRsvpGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof WeeklyPlanRsvpGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], WeeklyPlanRsvpGroupByOutputType[P]>
: GetScalarType<T[P], WeeklyPlanRsvpGroupByOutputType[P]>
}
>
>
export type WeeklyPlanRsvpSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
planId?: boolean
entryId?: boolean
userId?: boolean
createdAt?: boolean
}, ExtArgs["result"]["weeklyPlanRsvp"]>
export type WeeklyPlanRsvpSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
planId?: boolean
entryId?: boolean
userId?: boolean
createdAt?: boolean
}, ExtArgs["result"]["weeklyPlanRsvp"]>
export type WeeklyPlanRsvpSelectScalar = {
id?: boolean
planId?: boolean
entryId?: boolean
userId?: boolean
createdAt?: boolean
}
export type $WeeklyPlanRsvpPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "WeeklyPlanRsvp"
objects: {}
scalars: $Extensions.GetPayloadResult<{
id: string
planId: string
entryId: string
userId: string
createdAt: Date
}, ExtArgs["result"]["weeklyPlanRsvp"]>
composites: {}
}
type WeeklyPlanRsvpGetPayload<S extends boolean | null | undefined | WeeklyPlanRsvpDefaultArgs> = $Result.GetResult<Prisma.$WeeklyPlanRsvpPayload, S>
type WeeklyPlanRsvpCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<WeeklyPlanRsvpFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: WeeklyPlanRsvpCountAggregateInputType | true
}
export interface WeeklyPlanRsvpDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['WeeklyPlanRsvp'], meta: { name: 'WeeklyPlanRsvp' } }
/**
* Find zero or one WeeklyPlanRsvp that matches the filter.
* @param {WeeklyPlanRsvpFindUniqueArgs} args - Arguments to find a WeeklyPlanRsvp
* @example
* // Get one WeeklyPlanRsvp
* const weeklyPlanRsvp = await prisma.weeklyPlanRsvp.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends WeeklyPlanRsvpFindUniqueArgs>(args: SelectSubset<T, WeeklyPlanRsvpFindUniqueArgs<ExtArgs>>): Prisma__WeeklyPlanRsvpClient<$Result.GetResult<Prisma.$WeeklyPlanRsvpPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one WeeklyPlanRsvp that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {WeeklyPlanRsvpFindUniqueOrThrowArgs} args - Arguments to find a WeeklyPlanRsvp
* @example
* // Get one WeeklyPlanRsvp
* const weeklyPlanRsvp = await prisma.weeklyPlanRsvp.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends WeeklyPlanRsvpFindUniqueOrThrowArgs>(args: SelectSubset<T, WeeklyPlanRsvpFindUniqueOrThrowArgs<ExtArgs>>): Prisma__WeeklyPlanRsvpClient<$Result.GetResult<Prisma.$WeeklyPlanRsvpPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first WeeklyPlanRsvp 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 {WeeklyPlanRsvpFindFirstArgs} args - Arguments to find a WeeklyPlanRsvp
* @example
* // Get one WeeklyPlanRsvp
* const weeklyPlanRsvp = await prisma.weeklyPlanRsvp.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends WeeklyPlanRsvpFindFirstArgs>(args?: SelectSubset<T, WeeklyPlanRsvpFindFirstArgs<ExtArgs>>): Prisma__WeeklyPlanRsvpClient<$Result.GetResult<Prisma.$WeeklyPlanRsvpPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first WeeklyPlanRsvp 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 {WeeklyPlanRsvpFindFirstOrThrowArgs} args - Arguments to find a WeeklyPlanRsvp
* @example
* // Get one WeeklyPlanRsvp
* const weeklyPlanRsvp = await prisma.weeklyPlanRsvp.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends WeeklyPlanRsvpFindFirstOrThrowArgs>(args?: SelectSubset<T, WeeklyPlanRsvpFindFirstOrThrowArgs<ExtArgs>>): Prisma__WeeklyPlanRsvpClient<$Result.GetResult<Prisma.$WeeklyPlanRsvpPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more WeeklyPlanRsvps 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 {WeeklyPlanRsvpFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all WeeklyPlanRsvps
* const weeklyPlanRsvps = await prisma.weeklyPlanRsvp.findMany()
*
* // Get first 10 WeeklyPlanRsvps
* const weeklyPlanRsvps = await prisma.weeklyPlanRsvp.findMany({ take: 10 })
*
* // Only select the `id`
* const weeklyPlanRsvpWithIdOnly = await prisma.weeklyPlanRsvp.findMany({ select: { id: true } })
*
*/
findMany<T extends WeeklyPlanRsvpFindManyArgs>(args?: SelectSubset<T, WeeklyPlanRsvpFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$WeeklyPlanRsvpPayload<ExtArgs>, T, "findMany">>
/**
* Create a WeeklyPlanRsvp.
* @param {WeeklyPlanRsvpCreateArgs} args - Arguments to create a WeeklyPlanRsvp.
* @example
* // Create one WeeklyPlanRsvp
* const WeeklyPlanRsvp = await prisma.weeklyPlanRsvp.create({
* data: {
* // ... data to create a WeeklyPlanRsvp
* }
* })
*
*/
create<T extends WeeklyPlanRsvpCreateArgs>(args: SelectSubset<T, WeeklyPlanRsvpCreateArgs<ExtArgs>>): Prisma__WeeklyPlanRsvpClient<$Result.GetResult<Prisma.$WeeklyPlanRsvpPayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many WeeklyPlanRsvps.
* @param {WeeklyPlanRsvpCreateManyArgs} args - Arguments to create many WeeklyPlanRsvps.
* @example
* // Create many WeeklyPlanRsvps
* const weeklyPlanRsvp = await prisma.weeklyPlanRsvp.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends WeeklyPlanRsvpCreateManyArgs>(args?: SelectSubset<T, WeeklyPlanRsvpCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many WeeklyPlanRsvps and returns the data saved in the database.
* @param {WeeklyPlanRsvpCreateManyAndReturnArgs} args - Arguments to create many WeeklyPlanRsvps.
* @example
* // Create many WeeklyPlanRsvps
* const weeklyPlanRsvp = await prisma.weeklyPlanRsvp.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many WeeklyPlanRsvps and only return the `id`
* const weeklyPlanRsvpWithIdOnly = await prisma.weeklyPlanRsvp.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 WeeklyPlanRsvpCreateManyAndReturnArgs>(args?: SelectSubset<T, WeeklyPlanRsvpCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$WeeklyPlanRsvpPayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a WeeklyPlanRsvp.
* @param {WeeklyPlanRsvpDeleteArgs} args - Arguments to delete one WeeklyPlanRsvp.
* @example
* // Delete one WeeklyPlanRsvp
* const WeeklyPlanRsvp = await prisma.weeklyPlanRsvp.delete({
* where: {
* // ... filter to delete one WeeklyPlanRsvp
* }
* })
*
*/
delete<T extends WeeklyPlanRsvpDeleteArgs>(args: SelectSubset<T, WeeklyPlanRsvpDeleteArgs<ExtArgs>>): Prisma__WeeklyPlanRsvpClient<$Result.GetResult<Prisma.$WeeklyPlanRsvpPayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one WeeklyPlanRsvp.
* @param {WeeklyPlanRsvpUpdateArgs} args - Arguments to update one WeeklyPlanRsvp.
* @example
* // Update one WeeklyPlanRsvp
* const weeklyPlanRsvp = await prisma.weeklyPlanRsvp.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends WeeklyPlanRsvpUpdateArgs>(args: SelectSubset<T, WeeklyPlanRsvpUpdateArgs<ExtArgs>>): Prisma__WeeklyPlanRsvpClient<$Result.GetResult<Prisma.$WeeklyPlanRsvpPayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more WeeklyPlanRsvps.
* @param {WeeklyPlanRsvpDeleteManyArgs} args - Arguments to filter WeeklyPlanRsvps to delete.
* @example
* // Delete a few WeeklyPlanRsvps
* const { count } = await prisma.weeklyPlanRsvp.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends WeeklyPlanRsvpDeleteManyArgs>(args?: SelectSubset<T, WeeklyPlanRsvpDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more WeeklyPlanRsvps.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {WeeklyPlanRsvpUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many WeeklyPlanRsvps
* const weeklyPlanRsvp = await prisma.weeklyPlanRsvp.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends WeeklyPlanRsvpUpdateManyArgs>(args: SelectSubset<T, WeeklyPlanRsvpUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one WeeklyPlanRsvp.
* @param {WeeklyPlanRsvpUpsertArgs} args - Arguments to update or create a WeeklyPlanRsvp.
* @example
* // Update or create a WeeklyPlanRsvp
* const weeklyPlanRsvp = await prisma.weeklyPlanRsvp.upsert({
* create: {
* // ... data to create a WeeklyPlanRsvp
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the WeeklyPlanRsvp we want to update
* }
* })
*/
upsert<T extends WeeklyPlanRsvpUpsertArgs>(args: SelectSubset<T, WeeklyPlanRsvpUpsertArgs<ExtArgs>>): Prisma__WeeklyPlanRsvpClient<$Result.GetResult<Prisma.$WeeklyPlanRsvpPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of WeeklyPlanRsvps.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {WeeklyPlanRsvpCountArgs} args - Arguments to filter WeeklyPlanRsvps to count.
* @example
* // Count the number of WeeklyPlanRsvps
* const count = await prisma.weeklyPlanRsvp.count({
* where: {
* // ... the filter for the WeeklyPlanRsvps we want to count
* }
* })
**/
count<T extends WeeklyPlanRsvpCountArgs>(
args?: Subset<T, WeeklyPlanRsvpCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], WeeklyPlanRsvpCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a WeeklyPlanRsvp.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {WeeklyPlanRsvpAggregateArgs} 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 WeeklyPlanRsvpAggregateArgs>(args: Subset<T, WeeklyPlanRsvpAggregateArgs>): Prisma.PrismaPromise<GetWeeklyPlanRsvpAggregateType<T>>
/**
* Group by WeeklyPlanRsvp.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {WeeklyPlanRsvpGroupByArgs} 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 WeeklyPlanRsvpGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: WeeklyPlanRsvpGroupByArgs['orderBy'] }
: { orderBy?: WeeklyPlanRsvpGroupByArgs['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, WeeklyPlanRsvpGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetWeeklyPlanRsvpGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the WeeklyPlanRsvp model
*/
readonly fields: WeeklyPlanRsvpFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for WeeklyPlanRsvp.
* 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__WeeklyPlanRsvpClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the WeeklyPlanRsvp model
*/
interface WeeklyPlanRsvpFieldRefs {
readonly id: FieldRef<"WeeklyPlanRsvp", 'String'>
readonly planId: FieldRef<"WeeklyPlanRsvp", 'String'>
readonly entryId: FieldRef<"WeeklyPlanRsvp", 'String'>
readonly userId: FieldRef<"WeeklyPlanRsvp", 'String'>
readonly createdAt: FieldRef<"WeeklyPlanRsvp", 'DateTime'>
}
// Custom InputTypes
/**
* WeeklyPlanRsvp findUnique
*/
export type WeeklyPlanRsvpFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WeeklyPlanRsvp
*/
select?: WeeklyPlanRsvpSelect<ExtArgs> | null
/**
* Filter, which WeeklyPlanRsvp to fetch.
*/
where: WeeklyPlanRsvpWhereUniqueInput
}
/**
* WeeklyPlanRsvp findUniqueOrThrow
*/
export type WeeklyPlanRsvpFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WeeklyPlanRsvp
*/
select?: WeeklyPlanRsvpSelect<ExtArgs> | null
/**
* Filter, which WeeklyPlanRsvp to fetch.
*/
where: WeeklyPlanRsvpWhereUniqueInput
}
/**
* WeeklyPlanRsvp findFirst
*/
export type WeeklyPlanRsvpFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WeeklyPlanRsvp
*/
select?: WeeklyPlanRsvpSelect<ExtArgs> | null
/**
* Filter, which WeeklyPlanRsvp to fetch.
*/
where?: WeeklyPlanRsvpWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of WeeklyPlanRsvps to fetch.
*/
orderBy?: WeeklyPlanRsvpOrderByWithRelationInput | WeeklyPlanRsvpOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for WeeklyPlanRsvps.
*/
cursor?: WeeklyPlanRsvpWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` WeeklyPlanRsvps 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` WeeklyPlanRsvps.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of WeeklyPlanRsvps.
*/
distinct?: WeeklyPlanRsvpScalarFieldEnum | WeeklyPlanRsvpScalarFieldEnum[]
}
/**
* WeeklyPlanRsvp findFirstOrThrow
*/
export type WeeklyPlanRsvpFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WeeklyPlanRsvp
*/
select?: WeeklyPlanRsvpSelect<ExtArgs> | null
/**
* Filter, which WeeklyPlanRsvp to fetch.
*/
where?: WeeklyPlanRsvpWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of WeeklyPlanRsvps to fetch.
*/
orderBy?: WeeklyPlanRsvpOrderByWithRelationInput | WeeklyPlanRsvpOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for WeeklyPlanRsvps.
*/
cursor?: WeeklyPlanRsvpWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` WeeklyPlanRsvps 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` WeeklyPlanRsvps.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of WeeklyPlanRsvps.
*/
distinct?: WeeklyPlanRsvpScalarFieldEnum | WeeklyPlanRsvpScalarFieldEnum[]
}
/**
* WeeklyPlanRsvp findMany
*/
export type WeeklyPlanRsvpFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WeeklyPlanRsvp
*/
select?: WeeklyPlanRsvpSelect<ExtArgs> | null
/**
* Filter, which WeeklyPlanRsvps to fetch.
*/
where?: WeeklyPlanRsvpWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of WeeklyPlanRsvps to fetch.
*/
orderBy?: WeeklyPlanRsvpOrderByWithRelationInput | WeeklyPlanRsvpOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing WeeklyPlanRsvps.
*/
cursor?: WeeklyPlanRsvpWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` WeeklyPlanRsvps 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` WeeklyPlanRsvps.
*/
skip?: number
distinct?: WeeklyPlanRsvpScalarFieldEnum | WeeklyPlanRsvpScalarFieldEnum[]
}
/**
* WeeklyPlanRsvp create
*/
export type WeeklyPlanRsvpCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WeeklyPlanRsvp
*/
select?: WeeklyPlanRsvpSelect<ExtArgs> | null
/**
* The data needed to create a WeeklyPlanRsvp.
*/
data: XOR<WeeklyPlanRsvpCreateInput, WeeklyPlanRsvpUncheckedCreateInput>
}
/**
* WeeklyPlanRsvp createMany
*/
export type WeeklyPlanRsvpCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many WeeklyPlanRsvps.
*/
data: WeeklyPlanRsvpCreateManyInput | WeeklyPlanRsvpCreateManyInput[]
skipDuplicates?: boolean
}
/**
* WeeklyPlanRsvp createManyAndReturn
*/
export type WeeklyPlanRsvpCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WeeklyPlanRsvp
*/
select?: WeeklyPlanRsvpSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many WeeklyPlanRsvps.
*/
data: WeeklyPlanRsvpCreateManyInput | WeeklyPlanRsvpCreateManyInput[]
skipDuplicates?: boolean
}
/**
* WeeklyPlanRsvp update
*/
export type WeeklyPlanRsvpUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WeeklyPlanRsvp
*/
select?: WeeklyPlanRsvpSelect<ExtArgs> | null
/**
* The data needed to update a WeeklyPlanRsvp.
*/
data: XOR<WeeklyPlanRsvpUpdateInput, WeeklyPlanRsvpUncheckedUpdateInput>
/**
* Choose, which WeeklyPlanRsvp to update.
*/
where: WeeklyPlanRsvpWhereUniqueInput
}
/**
* WeeklyPlanRsvp updateMany
*/
export type WeeklyPlanRsvpUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update WeeklyPlanRsvps.
*/
data: XOR<WeeklyPlanRsvpUpdateManyMutationInput, WeeklyPlanRsvpUncheckedUpdateManyInput>
/**
* Filter which WeeklyPlanRsvps to update
*/
where?: WeeklyPlanRsvpWhereInput
}
/**
* WeeklyPlanRsvp upsert
*/
export type WeeklyPlanRsvpUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WeeklyPlanRsvp
*/
select?: WeeklyPlanRsvpSelect<ExtArgs> | null
/**
* The filter to search for the WeeklyPlanRsvp to update in case it exists.
*/
where: WeeklyPlanRsvpWhereUniqueInput
/**
* In case the WeeklyPlanRsvp found by the `where` argument doesn't exist, create a new WeeklyPlanRsvp with this data.
*/
create: XOR<WeeklyPlanRsvpCreateInput, WeeklyPlanRsvpUncheckedCreateInput>
/**
* In case the WeeklyPlanRsvp was found with the provided `where` argument, update it with this data.
*/
update: XOR<WeeklyPlanRsvpUpdateInput, WeeklyPlanRsvpUncheckedUpdateInput>
}
/**
* WeeklyPlanRsvp delete
*/
export type WeeklyPlanRsvpDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WeeklyPlanRsvp
*/
select?: WeeklyPlanRsvpSelect<ExtArgs> | null
/**
* Filter which WeeklyPlanRsvp to delete.
*/
where: WeeklyPlanRsvpWhereUniqueInput
}
/**
* WeeklyPlanRsvp deleteMany
*/
export type WeeklyPlanRsvpDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which WeeklyPlanRsvps to delete
*/
where?: WeeklyPlanRsvpWhereInput
}
/**
* WeeklyPlanRsvp without action
*/
export type WeeklyPlanRsvpDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the WeeklyPlanRsvp
*/
select?: WeeklyPlanRsvpSelect<ExtArgs> | null
}
/**
* Model Poll
*/
export type AggregatePoll = {
_count: PollCountAggregateOutputType | null
_min: PollMinAggregateOutputType | null
_max: PollMaxAggregateOutputType | null
}
export type PollMinAggregateOutputType = {
id: string | null
guildId: string | null
channelId: string | null
messageId: string | null
question: string | null
anonymous: boolean | null
closesAt: Date | null
closed: boolean | null
createdBy: string | null
createdAt: Date | null
}
export type PollMaxAggregateOutputType = {
id: string | null
guildId: string | null
channelId: string | null
messageId: string | null
question: string | null
anonymous: boolean | null
closesAt: Date | null
closed: boolean | null
createdBy: string | null
createdAt: Date | null
}
export type PollCountAggregateOutputType = {
id: number
guildId: number
channelId: number
messageId: number
question: number
options: number
anonymous: number
closesAt: number
closed: number
createdBy: number
createdAt: number
_all: number
}
export type PollMinAggregateInputType = {
id?: true
guildId?: true
channelId?: true
messageId?: true
question?: true
anonymous?: true
closesAt?: true
closed?: true
createdBy?: true
createdAt?: true
}
export type PollMaxAggregateInputType = {
id?: true
guildId?: true
channelId?: true
messageId?: true
question?: true
anonymous?: true
closesAt?: true
closed?: true
createdBy?: true
createdAt?: true
}
export type PollCountAggregateInputType = {
id?: true
guildId?: true
channelId?: true
messageId?: true
question?: true
options?: true
anonymous?: true
closesAt?: true
closed?: true
createdBy?: true
createdAt?: true
_all?: true
}
export type PollAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Poll to aggregate.
*/
where?: PollWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Polls to fetch.
*/
orderBy?: PollOrderByWithRelationInput | PollOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: PollWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Polls 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` Polls.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned Polls
**/
_count?: true | PollCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: PollMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: PollMaxAggregateInputType
}
export type GetPollAggregateType<T extends PollAggregateArgs> = {
[P in keyof T & keyof AggregatePoll]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregatePoll[P]>
: GetScalarType<T[P], AggregatePoll[P]>
}
export type PollGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: PollWhereInput
orderBy?: PollOrderByWithAggregationInput | PollOrderByWithAggregationInput[]
by: PollScalarFieldEnum[] | PollScalarFieldEnum
having?: PollScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: PollCountAggregateInputType | true
_min?: PollMinAggregateInputType
_max?: PollMaxAggregateInputType
}
export type PollGroupByOutputType = {
id: string
guildId: string
channelId: string
messageId: string | null
question: string
options: JsonValue
anonymous: boolean
closesAt: Date | null
closed: boolean
createdBy: string
createdAt: Date
_count: PollCountAggregateOutputType | null
_min: PollMinAggregateOutputType | null
_max: PollMaxAggregateOutputType | null
}
type GetPollGroupByPayload<T extends PollGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<PollGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof PollGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], PollGroupByOutputType[P]>
: GetScalarType<T[P], PollGroupByOutputType[P]>
}
>
>
export type PollSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
guildId?: boolean
channelId?: boolean
messageId?: boolean
question?: boolean
options?: boolean
anonymous?: boolean
closesAt?: boolean
closed?: boolean
createdBy?: boolean
createdAt?: boolean
votes?: boolean | Poll$votesArgs<ExtArgs>
_count?: boolean | PollCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["poll"]>
export type PollSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
guildId?: boolean
channelId?: boolean
messageId?: boolean
question?: boolean
options?: boolean
anonymous?: boolean
closesAt?: boolean
closed?: boolean
createdBy?: boolean
createdAt?: boolean
}, ExtArgs["result"]["poll"]>
export type PollSelectScalar = {
id?: boolean
guildId?: boolean
channelId?: boolean
messageId?: boolean
question?: boolean
options?: boolean
anonymous?: boolean
closesAt?: boolean
closed?: boolean
createdBy?: boolean
createdAt?: boolean
}
export type PollInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
votes?: boolean | Poll$votesArgs<ExtArgs>
_count?: boolean | PollCountOutputTypeDefaultArgs<ExtArgs>
}
export type PollIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {}
export type $PollPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "Poll"
objects: {
votes: Prisma.$PollVotePayload<ExtArgs>[]
}
scalars: $Extensions.GetPayloadResult<{
id: string
guildId: string
channelId: string
messageId: string | null
question: string
options: Prisma.JsonValue
anonymous: boolean
closesAt: Date | null
closed: boolean
createdBy: string
createdAt: Date
}, ExtArgs["result"]["poll"]>
composites: {}
}
type PollGetPayload<S extends boolean | null | undefined | PollDefaultArgs> = $Result.GetResult<Prisma.$PollPayload, S>
type PollCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<PollFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: PollCountAggregateInputType | true
}
export interface PollDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Poll'], meta: { name: 'Poll' } }
/**
* Find zero or one Poll that matches the filter.
* @param {PollFindUniqueArgs} args - Arguments to find a Poll
* @example
* // Get one Poll
* const poll = await prisma.poll.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends PollFindUniqueArgs>(args: SelectSubset<T, PollFindUniqueArgs<ExtArgs>>): Prisma__PollClient<$Result.GetResult<Prisma.$PollPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one Poll that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {PollFindUniqueOrThrowArgs} args - Arguments to find a Poll
* @example
* // Get one Poll
* const poll = await prisma.poll.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends PollFindUniqueOrThrowArgs>(args: SelectSubset<T, PollFindUniqueOrThrowArgs<ExtArgs>>): Prisma__PollClient<$Result.GetResult<Prisma.$PollPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first Poll 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 {PollFindFirstArgs} args - Arguments to find a Poll
* @example
* // Get one Poll
* const poll = await prisma.poll.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends PollFindFirstArgs>(args?: SelectSubset<T, PollFindFirstArgs<ExtArgs>>): Prisma__PollClient<$Result.GetResult<Prisma.$PollPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first Poll 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 {PollFindFirstOrThrowArgs} args - Arguments to find a Poll
* @example
* // Get one Poll
* const poll = await prisma.poll.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends PollFindFirstOrThrowArgs>(args?: SelectSubset<T, PollFindFirstOrThrowArgs<ExtArgs>>): Prisma__PollClient<$Result.GetResult<Prisma.$PollPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more Polls 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 {PollFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Polls
* const polls = await prisma.poll.findMany()
*
* // Get first 10 Polls
* const polls = await prisma.poll.findMany({ take: 10 })
*
* // Only select the `id`
* const pollWithIdOnly = await prisma.poll.findMany({ select: { id: true } })
*
*/
findMany<T extends PollFindManyArgs>(args?: SelectSubset<T, PollFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PollPayload<ExtArgs>, T, "findMany">>
/**
* Create a Poll.
* @param {PollCreateArgs} args - Arguments to create a Poll.
* @example
* // Create one Poll
* const Poll = await prisma.poll.create({
* data: {
* // ... data to create a Poll
* }
* })
*
*/
create<T extends PollCreateArgs>(args: SelectSubset<T, PollCreateArgs<ExtArgs>>): Prisma__PollClient<$Result.GetResult<Prisma.$PollPayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many Polls.
* @param {PollCreateManyArgs} args - Arguments to create many Polls.
* @example
* // Create many Polls
* const poll = await prisma.poll.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends PollCreateManyArgs>(args?: SelectSubset<T, PollCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many Polls and returns the data saved in the database.
* @param {PollCreateManyAndReturnArgs} args - Arguments to create many Polls.
* @example
* // Create many Polls
* const poll = await prisma.poll.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Polls and only return the `id`
* const pollWithIdOnly = await prisma.poll.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 PollCreateManyAndReturnArgs>(args?: SelectSubset<T, PollCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PollPayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a Poll.
* @param {PollDeleteArgs} args - Arguments to delete one Poll.
* @example
* // Delete one Poll
* const Poll = await prisma.poll.delete({
* where: {
* // ... filter to delete one Poll
* }
* })
*
*/
delete<T extends PollDeleteArgs>(args: SelectSubset<T, PollDeleteArgs<ExtArgs>>): Prisma__PollClient<$Result.GetResult<Prisma.$PollPayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one Poll.
* @param {PollUpdateArgs} args - Arguments to update one Poll.
* @example
* // Update one Poll
* const poll = await prisma.poll.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends PollUpdateArgs>(args: SelectSubset<T, PollUpdateArgs<ExtArgs>>): Prisma__PollClient<$Result.GetResult<Prisma.$PollPayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more Polls.
* @param {PollDeleteManyArgs} args - Arguments to filter Polls to delete.
* @example
* // Delete a few Polls
* const { count } = await prisma.poll.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends PollDeleteManyArgs>(args?: SelectSubset<T, PollDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Polls.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {PollUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Polls
* const poll = await prisma.poll.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends PollUpdateManyArgs>(args: SelectSubset<T, PollUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one Poll.
* @param {PollUpsertArgs} args - Arguments to update or create a Poll.
* @example
* // Update or create a Poll
* const poll = await prisma.poll.upsert({
* create: {
* // ... data to create a Poll
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Poll we want to update
* }
* })
*/
upsert<T extends PollUpsertArgs>(args: SelectSubset<T, PollUpsertArgs<ExtArgs>>): Prisma__PollClient<$Result.GetResult<Prisma.$PollPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of Polls.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {PollCountArgs} args - Arguments to filter Polls to count.
* @example
* // Count the number of Polls
* const count = await prisma.poll.count({
* where: {
* // ... the filter for the Polls we want to count
* }
* })
**/
count<T extends PollCountArgs>(
args?: Subset<T, PollCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], PollCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Poll.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {PollAggregateArgs} 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 PollAggregateArgs>(args: Subset<T, PollAggregateArgs>): Prisma.PrismaPromise<GetPollAggregateType<T>>
/**
* Group by Poll.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {PollGroupByArgs} 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 PollGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: PollGroupByArgs['orderBy'] }
: { orderBy?: PollGroupByArgs['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, PollGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPollGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the Poll model
*/
readonly fields: PollFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for Poll.
* 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__PollClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
votes<T extends Poll$votesArgs<ExtArgs> = {}>(args?: Subset<T, Poll$votesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PollVotePayload<ExtArgs>, T, "findMany"> | Null>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the Poll model
*/
interface PollFieldRefs {
readonly id: FieldRef<"Poll", 'String'>
readonly guildId: FieldRef<"Poll", 'String'>
readonly channelId: FieldRef<"Poll", 'String'>
readonly messageId: FieldRef<"Poll", 'String'>
readonly question: FieldRef<"Poll", 'String'>
readonly options: FieldRef<"Poll", 'Json'>
readonly anonymous: FieldRef<"Poll", 'Boolean'>
readonly closesAt: FieldRef<"Poll", 'DateTime'>
readonly closed: FieldRef<"Poll", 'Boolean'>
readonly createdBy: FieldRef<"Poll", 'String'>
readonly createdAt: FieldRef<"Poll", 'DateTime'>
}
// Custom InputTypes
/**
* Poll findUnique
*/
export type PollFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Poll
*/
select?: PollSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: PollInclude<ExtArgs> | null
/**
* Filter, which Poll to fetch.
*/
where: PollWhereUniqueInput
}
/**
* Poll findUniqueOrThrow
*/
export type PollFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Poll
*/
select?: PollSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: PollInclude<ExtArgs> | null
/**
* Filter, which Poll to fetch.
*/
where: PollWhereUniqueInput
}
/**
* Poll findFirst
*/
export type PollFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Poll
*/
select?: PollSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: PollInclude<ExtArgs> | null
/**
* Filter, which Poll to fetch.
*/
where?: PollWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Polls to fetch.
*/
orderBy?: PollOrderByWithRelationInput | PollOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Polls.
*/
cursor?: PollWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Polls 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` Polls.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Polls.
*/
distinct?: PollScalarFieldEnum | PollScalarFieldEnum[]
}
/**
* Poll findFirstOrThrow
*/
export type PollFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Poll
*/
select?: PollSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: PollInclude<ExtArgs> | null
/**
* Filter, which Poll to fetch.
*/
where?: PollWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Polls to fetch.
*/
orderBy?: PollOrderByWithRelationInput | PollOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Polls.
*/
cursor?: PollWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Polls 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` Polls.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Polls.
*/
distinct?: PollScalarFieldEnum | PollScalarFieldEnum[]
}
/**
* Poll findMany
*/
export type PollFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Poll
*/
select?: PollSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: PollInclude<ExtArgs> | null
/**
* Filter, which Polls to fetch.
*/
where?: PollWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Polls to fetch.
*/
orderBy?: PollOrderByWithRelationInput | PollOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing Polls.
*/
cursor?: PollWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Polls 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` Polls.
*/
skip?: number
distinct?: PollScalarFieldEnum | PollScalarFieldEnum[]
}
/**
* Poll create
*/
export type PollCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Poll
*/
select?: PollSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: PollInclude<ExtArgs> | null
/**
* The data needed to create a Poll.
*/
data: XOR<PollCreateInput, PollUncheckedCreateInput>
}
/**
* Poll createMany
*/
export type PollCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many Polls.
*/
data: PollCreateManyInput | PollCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Poll createManyAndReturn
*/
export type PollCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Poll
*/
select?: PollSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many Polls.
*/
data: PollCreateManyInput | PollCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Poll update
*/
export type PollUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Poll
*/
select?: PollSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: PollInclude<ExtArgs> | null
/**
* The data needed to update a Poll.
*/
data: XOR<PollUpdateInput, PollUncheckedUpdateInput>
/**
* Choose, which Poll to update.
*/
where: PollWhereUniqueInput
}
/**
* Poll updateMany
*/
export type PollUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update Polls.
*/
data: XOR<PollUpdateManyMutationInput, PollUncheckedUpdateManyInput>
/**
* Filter which Polls to update
*/
where?: PollWhereInput
}
/**
* Poll upsert
*/
export type PollUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Poll
*/
select?: PollSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: PollInclude<ExtArgs> | null
/**
* The filter to search for the Poll to update in case it exists.
*/
where: PollWhereUniqueInput
/**
* In case the Poll found by the `where` argument doesn't exist, create a new Poll with this data.
*/
create: XOR<PollCreateInput, PollUncheckedCreateInput>
/**
* In case the Poll was found with the provided `where` argument, update it with this data.
*/
update: XOR<PollUpdateInput, PollUncheckedUpdateInput>
}
/**
* Poll delete
*/
export type PollDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Poll
*/
select?: PollSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: PollInclude<ExtArgs> | null
/**
* Filter which Poll to delete.
*/
where: PollWhereUniqueInput
}
/**
* Poll deleteMany
*/
export type PollDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Polls to delete
*/
where?: PollWhereInput
}
/**
* Poll.votes
*/
export type Poll$votesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the PollVote
*/
select?: PollVoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: PollVoteInclude<ExtArgs> | null
where?: PollVoteWhereInput
orderBy?: PollVoteOrderByWithRelationInput | PollVoteOrderByWithRelationInput[]
cursor?: PollVoteWhereUniqueInput
take?: number
skip?: number
distinct?: PollVoteScalarFieldEnum | PollVoteScalarFieldEnum[]
}
/**
* Poll without action
*/
export type PollDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Poll
*/
select?: PollSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: PollInclude<ExtArgs> | null
}
/**
* Model PollVote
*/
export type AggregatePollVote = {
_count: PollVoteCountAggregateOutputType | null
_min: PollVoteMinAggregateOutputType | null
_max: PollVoteMaxAggregateOutputType | null
}
export type PollVoteMinAggregateOutputType = {
id: string | null
pollId: string | null
userId: string | null
optionId: string | null
createdAt: Date | null
}
export type PollVoteMaxAggregateOutputType = {
id: string | null
pollId: string | null
userId: string | null
optionId: string | null
createdAt: Date | null
}
export type PollVoteCountAggregateOutputType = {
id: number
pollId: number
userId: number
optionId: number
createdAt: number
_all: number
}
export type PollVoteMinAggregateInputType = {
id?: true
pollId?: true
userId?: true
optionId?: true
createdAt?: true
}
export type PollVoteMaxAggregateInputType = {
id?: true
pollId?: true
userId?: true
optionId?: true
createdAt?: true
}
export type PollVoteCountAggregateInputType = {
id?: true
pollId?: true
userId?: true
optionId?: true
createdAt?: true
_all?: true
}
export type PollVoteAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which PollVote to aggregate.
*/
where?: PollVoteWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of PollVotes to fetch.
*/
orderBy?: PollVoteOrderByWithRelationInput | PollVoteOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: PollVoteWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` PollVotes 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` PollVotes.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned PollVotes
**/
_count?: true | PollVoteCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: PollVoteMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: PollVoteMaxAggregateInputType
}
export type GetPollVoteAggregateType<T extends PollVoteAggregateArgs> = {
[P in keyof T & keyof AggregatePollVote]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregatePollVote[P]>
: GetScalarType<T[P], AggregatePollVote[P]>
}
export type PollVoteGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: PollVoteWhereInput
orderBy?: PollVoteOrderByWithAggregationInput | PollVoteOrderByWithAggregationInput[]
by: PollVoteScalarFieldEnum[] | PollVoteScalarFieldEnum
having?: PollVoteScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: PollVoteCountAggregateInputType | true
_min?: PollVoteMinAggregateInputType
_max?: PollVoteMaxAggregateInputType
}
export type PollVoteGroupByOutputType = {
id: string
pollId: string
userId: string
optionId: string
createdAt: Date
_count: PollVoteCountAggregateOutputType | null
_min: PollVoteMinAggregateOutputType | null
_max: PollVoteMaxAggregateOutputType | null
}
type GetPollVoteGroupByPayload<T extends PollVoteGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<PollVoteGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof PollVoteGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], PollVoteGroupByOutputType[P]>
: GetScalarType<T[P], PollVoteGroupByOutputType[P]>
}
>
>
export type PollVoteSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
pollId?: boolean
userId?: boolean
optionId?: boolean
createdAt?: boolean
poll?: boolean | PollDefaultArgs<ExtArgs>
}, ExtArgs["result"]["pollVote"]>
export type PollVoteSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
pollId?: boolean
userId?: boolean
optionId?: boolean
createdAt?: boolean
poll?: boolean | PollDefaultArgs<ExtArgs>
}, ExtArgs["result"]["pollVote"]>
export type PollVoteSelectScalar = {
id?: boolean
pollId?: boolean
userId?: boolean
optionId?: boolean
createdAt?: boolean
}
export type PollVoteInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
poll?: boolean | PollDefaultArgs<ExtArgs>
}
export type PollVoteIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
poll?: boolean | PollDefaultArgs<ExtArgs>
}
export type $PollVotePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "PollVote"
objects: {
poll: Prisma.$PollPayload<ExtArgs>
}
scalars: $Extensions.GetPayloadResult<{
id: string
pollId: string
userId: string
optionId: string
createdAt: Date
}, ExtArgs["result"]["pollVote"]>
composites: {}
}
type PollVoteGetPayload<S extends boolean | null | undefined | PollVoteDefaultArgs> = $Result.GetResult<Prisma.$PollVotePayload, S>
type PollVoteCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<PollVoteFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: PollVoteCountAggregateInputType | true
}
export interface PollVoteDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['PollVote'], meta: { name: 'PollVote' } }
/**
* Find zero or one PollVote that matches the filter.
* @param {PollVoteFindUniqueArgs} args - Arguments to find a PollVote
* @example
* // Get one PollVote
* const pollVote = await prisma.pollVote.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends PollVoteFindUniqueArgs>(args: SelectSubset<T, PollVoteFindUniqueArgs<ExtArgs>>): Prisma__PollVoteClient<$Result.GetResult<Prisma.$PollVotePayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one PollVote that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {PollVoteFindUniqueOrThrowArgs} args - Arguments to find a PollVote
* @example
* // Get one PollVote
* const pollVote = await prisma.pollVote.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends PollVoteFindUniqueOrThrowArgs>(args: SelectSubset<T, PollVoteFindUniqueOrThrowArgs<ExtArgs>>): Prisma__PollVoteClient<$Result.GetResult<Prisma.$PollVotePayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first PollVote 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 {PollVoteFindFirstArgs} args - Arguments to find a PollVote
* @example
* // Get one PollVote
* const pollVote = await prisma.pollVote.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends PollVoteFindFirstArgs>(args?: SelectSubset<T, PollVoteFindFirstArgs<ExtArgs>>): Prisma__PollVoteClient<$Result.GetResult<Prisma.$PollVotePayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first PollVote 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 {PollVoteFindFirstOrThrowArgs} args - Arguments to find a PollVote
* @example
* // Get one PollVote
* const pollVote = await prisma.pollVote.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends PollVoteFindFirstOrThrowArgs>(args?: SelectSubset<T, PollVoteFindFirstOrThrowArgs<ExtArgs>>): Prisma__PollVoteClient<$Result.GetResult<Prisma.$PollVotePayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more PollVotes 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 {PollVoteFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all PollVotes
* const pollVotes = await prisma.pollVote.findMany()
*
* // Get first 10 PollVotes
* const pollVotes = await prisma.pollVote.findMany({ take: 10 })
*
* // Only select the `id`
* const pollVoteWithIdOnly = await prisma.pollVote.findMany({ select: { id: true } })
*
*/
findMany<T extends PollVoteFindManyArgs>(args?: SelectSubset<T, PollVoteFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PollVotePayload<ExtArgs>, T, "findMany">>
/**
* Create a PollVote.
* @param {PollVoteCreateArgs} args - Arguments to create a PollVote.
* @example
* // Create one PollVote
* const PollVote = await prisma.pollVote.create({
* data: {
* // ... data to create a PollVote
* }
* })
*
*/
create<T extends PollVoteCreateArgs>(args: SelectSubset<T, PollVoteCreateArgs<ExtArgs>>): Prisma__PollVoteClient<$Result.GetResult<Prisma.$PollVotePayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many PollVotes.
* @param {PollVoteCreateManyArgs} args - Arguments to create many PollVotes.
* @example
* // Create many PollVotes
* const pollVote = await prisma.pollVote.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends PollVoteCreateManyArgs>(args?: SelectSubset<T, PollVoteCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many PollVotes and returns the data saved in the database.
* @param {PollVoteCreateManyAndReturnArgs} args - Arguments to create many PollVotes.
* @example
* // Create many PollVotes
* const pollVote = await prisma.pollVote.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many PollVotes and only return the `id`
* const pollVoteWithIdOnly = await prisma.pollVote.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 PollVoteCreateManyAndReturnArgs>(args?: SelectSubset<T, PollVoteCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PollVotePayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a PollVote.
* @param {PollVoteDeleteArgs} args - Arguments to delete one PollVote.
* @example
* // Delete one PollVote
* const PollVote = await prisma.pollVote.delete({
* where: {
* // ... filter to delete one PollVote
* }
* })
*
*/
delete<T extends PollVoteDeleteArgs>(args: SelectSubset<T, PollVoteDeleteArgs<ExtArgs>>): Prisma__PollVoteClient<$Result.GetResult<Prisma.$PollVotePayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one PollVote.
* @param {PollVoteUpdateArgs} args - Arguments to update one PollVote.
* @example
* // Update one PollVote
* const pollVote = await prisma.pollVote.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends PollVoteUpdateArgs>(args: SelectSubset<T, PollVoteUpdateArgs<ExtArgs>>): Prisma__PollVoteClient<$Result.GetResult<Prisma.$PollVotePayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more PollVotes.
* @param {PollVoteDeleteManyArgs} args - Arguments to filter PollVotes to delete.
* @example
* // Delete a few PollVotes
* const { count } = await prisma.pollVote.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends PollVoteDeleteManyArgs>(args?: SelectSubset<T, PollVoteDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more PollVotes.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {PollVoteUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many PollVotes
* const pollVote = await prisma.pollVote.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends PollVoteUpdateManyArgs>(args: SelectSubset<T, PollVoteUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one PollVote.
* @param {PollVoteUpsertArgs} args - Arguments to update or create a PollVote.
* @example
* // Update or create a PollVote
* const pollVote = await prisma.pollVote.upsert({
* create: {
* // ... data to create a PollVote
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the PollVote we want to update
* }
* })
*/
upsert<T extends PollVoteUpsertArgs>(args: SelectSubset<T, PollVoteUpsertArgs<ExtArgs>>): Prisma__PollVoteClient<$Result.GetResult<Prisma.$PollVotePayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of PollVotes.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {PollVoteCountArgs} args - Arguments to filter PollVotes to count.
* @example
* // Count the number of PollVotes
* const count = await prisma.pollVote.count({
* where: {
* // ... the filter for the PollVotes we want to count
* }
* })
**/
count<T extends PollVoteCountArgs>(
args?: Subset<T, PollVoteCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], PollVoteCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a PollVote.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {PollVoteAggregateArgs} 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 PollVoteAggregateArgs>(args: Subset<T, PollVoteAggregateArgs>): Prisma.PrismaPromise<GetPollVoteAggregateType<T>>
/**
* Group by PollVote.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {PollVoteGroupByArgs} 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 PollVoteGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: PollVoteGroupByArgs['orderBy'] }
: { orderBy?: PollVoteGroupByArgs['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, PollVoteGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPollVoteGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the PollVote model
*/
readonly fields: PollVoteFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for PollVote.
* 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__PollVoteClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
poll<T extends PollDefaultArgs<ExtArgs> = {}>(args?: Subset<T, PollDefaultArgs<ExtArgs>>): Prisma__PollClient<$Result.GetResult<Prisma.$PollPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the PollVote model
*/
interface PollVoteFieldRefs {
readonly id: FieldRef<"PollVote", 'String'>
readonly pollId: FieldRef<"PollVote", 'String'>
readonly userId: FieldRef<"PollVote", 'String'>
readonly optionId: FieldRef<"PollVote", 'String'>
readonly createdAt: FieldRef<"PollVote", 'DateTime'>
}
// Custom InputTypes
/**
* PollVote findUnique
*/
export type PollVoteFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the PollVote
*/
select?: PollVoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: PollVoteInclude<ExtArgs> | null
/**
* Filter, which PollVote to fetch.
*/
where: PollVoteWhereUniqueInput
}
/**
* PollVote findUniqueOrThrow
*/
export type PollVoteFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the PollVote
*/
select?: PollVoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: PollVoteInclude<ExtArgs> | null
/**
* Filter, which PollVote to fetch.
*/
where: PollVoteWhereUniqueInput
}
/**
* PollVote findFirst
*/
export type PollVoteFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the PollVote
*/
select?: PollVoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: PollVoteInclude<ExtArgs> | null
/**
* Filter, which PollVote to fetch.
*/
where?: PollVoteWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of PollVotes to fetch.
*/
orderBy?: PollVoteOrderByWithRelationInput | PollVoteOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for PollVotes.
*/
cursor?: PollVoteWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` PollVotes 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` PollVotes.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of PollVotes.
*/
distinct?: PollVoteScalarFieldEnum | PollVoteScalarFieldEnum[]
}
/**
* PollVote findFirstOrThrow
*/
export type PollVoteFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the PollVote
*/
select?: PollVoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: PollVoteInclude<ExtArgs> | null
/**
* Filter, which PollVote to fetch.
*/
where?: PollVoteWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of PollVotes to fetch.
*/
orderBy?: PollVoteOrderByWithRelationInput | PollVoteOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for PollVotes.
*/
cursor?: PollVoteWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` PollVotes 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` PollVotes.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of PollVotes.
*/
distinct?: PollVoteScalarFieldEnum | PollVoteScalarFieldEnum[]
}
/**
* PollVote findMany
*/
export type PollVoteFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the PollVote
*/
select?: PollVoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: PollVoteInclude<ExtArgs> | null
/**
* Filter, which PollVotes to fetch.
*/
where?: PollVoteWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of PollVotes to fetch.
*/
orderBy?: PollVoteOrderByWithRelationInput | PollVoteOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing PollVotes.
*/
cursor?: PollVoteWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` PollVotes 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` PollVotes.
*/
skip?: number
distinct?: PollVoteScalarFieldEnum | PollVoteScalarFieldEnum[]
}
/**
* PollVote create
*/
export type PollVoteCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the PollVote
*/
select?: PollVoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: PollVoteInclude<ExtArgs> | null
/**
* The data needed to create a PollVote.
*/
data: XOR<PollVoteCreateInput, PollVoteUncheckedCreateInput>
}
/**
* PollVote createMany
*/
export type PollVoteCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many PollVotes.
*/
data: PollVoteCreateManyInput | PollVoteCreateManyInput[]
skipDuplicates?: boolean
}
/**
* PollVote createManyAndReturn
*/
export type PollVoteCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the PollVote
*/
select?: PollVoteSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many PollVotes.
*/
data: PollVoteCreateManyInput | PollVoteCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: PollVoteIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* PollVote update
*/
export type PollVoteUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the PollVote
*/
select?: PollVoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: PollVoteInclude<ExtArgs> | null
/**
* The data needed to update a PollVote.
*/
data: XOR<PollVoteUpdateInput, PollVoteUncheckedUpdateInput>
/**
* Choose, which PollVote to update.
*/
where: PollVoteWhereUniqueInput
}
/**
* PollVote updateMany
*/
export type PollVoteUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update PollVotes.
*/
data: XOR<PollVoteUpdateManyMutationInput, PollVoteUncheckedUpdateManyInput>
/**
* Filter which PollVotes to update
*/
where?: PollVoteWhereInput
}
/**
* PollVote upsert
*/
export type PollVoteUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the PollVote
*/
select?: PollVoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: PollVoteInclude<ExtArgs> | null
/**
* The filter to search for the PollVote to update in case it exists.
*/
where: PollVoteWhereUniqueInput
/**
* In case the PollVote found by the `where` argument doesn't exist, create a new PollVote with this data.
*/
create: XOR<PollVoteCreateInput, PollVoteUncheckedCreateInput>
/**
* In case the PollVote was found with the provided `where` argument, update it with this data.
*/
update: XOR<PollVoteUpdateInput, PollVoteUncheckedUpdateInput>
}
/**
* PollVote delete
*/
export type PollVoteDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the PollVote
*/
select?: PollVoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: PollVoteInclude<ExtArgs> | null
/**
* Filter which PollVote to delete.
*/
where: PollVoteWhereUniqueInput
}
/**
* PollVote deleteMany
*/
export type PollVoteDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which PollVotes to delete
*/
where?: PollVoteWhereInput
}
/**
* PollVote without action
*/
export type PollVoteDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the PollVote
*/
select?: PollVoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: PollVoteInclude<ExtArgs> | null
}
/**
* Model Suggestion
*/
export type AggregateSuggestion = {
_count: SuggestionCountAggregateOutputType | null
_min: SuggestionMinAggregateOutputType | null
_max: SuggestionMaxAggregateOutputType | null
}
export type SuggestionMinAggregateOutputType = {
id: string | null
guildId: string | null
channelId: string | null
messageId: string | null
userId: string | null
userTag: string | null
content: string | null
status: string | null
createdAt: Date | null
}
export type SuggestionMaxAggregateOutputType = {
id: string | null
guildId: string | null
channelId: string | null
messageId: string | null
userId: string | null
userTag: string | null
content: string | null
status: string | null
createdAt: Date | null
}
export type SuggestionCountAggregateOutputType = {
id: number
guildId: number
channelId: number
messageId: number
userId: number
userTag: number
content: number
status: number
createdAt: number
_all: number
}
export type SuggestionMinAggregateInputType = {
id?: true
guildId?: true
channelId?: true
messageId?: true
userId?: true
userTag?: true
content?: true
status?: true
createdAt?: true
}
export type SuggestionMaxAggregateInputType = {
id?: true
guildId?: true
channelId?: true
messageId?: true
userId?: true
userTag?: true
content?: true
status?: true
createdAt?: true
}
export type SuggestionCountAggregateInputType = {
id?: true
guildId?: true
channelId?: true
messageId?: true
userId?: true
userTag?: true
content?: true
status?: true
createdAt?: true
_all?: true
}
export type SuggestionAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Suggestion to aggregate.
*/
where?: SuggestionWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Suggestions to fetch.
*/
orderBy?: SuggestionOrderByWithRelationInput | SuggestionOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: SuggestionWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Suggestions 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` Suggestions.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned Suggestions
**/
_count?: true | SuggestionCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: SuggestionMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: SuggestionMaxAggregateInputType
}
export type GetSuggestionAggregateType<T extends SuggestionAggregateArgs> = {
[P in keyof T & keyof AggregateSuggestion]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateSuggestion[P]>
: GetScalarType<T[P], AggregateSuggestion[P]>
}
export type SuggestionGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: SuggestionWhereInput
orderBy?: SuggestionOrderByWithAggregationInput | SuggestionOrderByWithAggregationInput[]
by: SuggestionScalarFieldEnum[] | SuggestionScalarFieldEnum
having?: SuggestionScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: SuggestionCountAggregateInputType | true
_min?: SuggestionMinAggregateInputType
_max?: SuggestionMaxAggregateInputType
}
export type SuggestionGroupByOutputType = {
id: string
guildId: string
channelId: string
messageId: string | null
userId: string
userTag: string
content: string
status: string
createdAt: Date
_count: SuggestionCountAggregateOutputType | null
_min: SuggestionMinAggregateOutputType | null
_max: SuggestionMaxAggregateOutputType | null
}
type GetSuggestionGroupByPayload<T extends SuggestionGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<SuggestionGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof SuggestionGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], SuggestionGroupByOutputType[P]>
: GetScalarType<T[P], SuggestionGroupByOutputType[P]>
}
>
>
export type SuggestionSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
guildId?: boolean
channelId?: boolean
messageId?: boolean
userId?: boolean
userTag?: boolean
content?: boolean
status?: boolean
createdAt?: boolean
votes?: boolean | Suggestion$votesArgs<ExtArgs>
_count?: boolean | SuggestionCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["suggestion"]>
export type SuggestionSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
guildId?: boolean
channelId?: boolean
messageId?: boolean
userId?: boolean
userTag?: boolean
content?: boolean
status?: boolean
createdAt?: boolean
}, ExtArgs["result"]["suggestion"]>
export type SuggestionSelectScalar = {
id?: boolean
guildId?: boolean
channelId?: boolean
messageId?: boolean
userId?: boolean
userTag?: boolean
content?: boolean
status?: boolean
createdAt?: boolean
}
export type SuggestionInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
votes?: boolean | Suggestion$votesArgs<ExtArgs>
_count?: boolean | SuggestionCountOutputTypeDefaultArgs<ExtArgs>
}
export type SuggestionIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {}
export type $SuggestionPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "Suggestion"
objects: {
votes: Prisma.$SuggestionVotePayload<ExtArgs>[]
}
scalars: $Extensions.GetPayloadResult<{
id: string
guildId: string
channelId: string
messageId: string | null
userId: string
userTag: string
content: string
status: string
createdAt: Date
}, ExtArgs["result"]["suggestion"]>
composites: {}
}
type SuggestionGetPayload<S extends boolean | null | undefined | SuggestionDefaultArgs> = $Result.GetResult<Prisma.$SuggestionPayload, S>
type SuggestionCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<SuggestionFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: SuggestionCountAggregateInputType | true
}
export interface SuggestionDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Suggestion'], meta: { name: 'Suggestion' } }
/**
* Find zero or one Suggestion that matches the filter.
* @param {SuggestionFindUniqueArgs} args - Arguments to find a Suggestion
* @example
* // Get one Suggestion
* const suggestion = await prisma.suggestion.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends SuggestionFindUniqueArgs>(args: SelectSubset<T, SuggestionFindUniqueArgs<ExtArgs>>): Prisma__SuggestionClient<$Result.GetResult<Prisma.$SuggestionPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one Suggestion that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {SuggestionFindUniqueOrThrowArgs} args - Arguments to find a Suggestion
* @example
* // Get one Suggestion
* const suggestion = await prisma.suggestion.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends SuggestionFindUniqueOrThrowArgs>(args: SelectSubset<T, SuggestionFindUniqueOrThrowArgs<ExtArgs>>): Prisma__SuggestionClient<$Result.GetResult<Prisma.$SuggestionPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first Suggestion 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 {SuggestionFindFirstArgs} args - Arguments to find a Suggestion
* @example
* // Get one Suggestion
* const suggestion = await prisma.suggestion.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends SuggestionFindFirstArgs>(args?: SelectSubset<T, SuggestionFindFirstArgs<ExtArgs>>): Prisma__SuggestionClient<$Result.GetResult<Prisma.$SuggestionPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first Suggestion 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 {SuggestionFindFirstOrThrowArgs} args - Arguments to find a Suggestion
* @example
* // Get one Suggestion
* const suggestion = await prisma.suggestion.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends SuggestionFindFirstOrThrowArgs>(args?: SelectSubset<T, SuggestionFindFirstOrThrowArgs<ExtArgs>>): Prisma__SuggestionClient<$Result.GetResult<Prisma.$SuggestionPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more Suggestions 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 {SuggestionFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Suggestions
* const suggestions = await prisma.suggestion.findMany()
*
* // Get first 10 Suggestions
* const suggestions = await prisma.suggestion.findMany({ take: 10 })
*
* // Only select the `id`
* const suggestionWithIdOnly = await prisma.suggestion.findMany({ select: { id: true } })
*
*/
findMany<T extends SuggestionFindManyArgs>(args?: SelectSubset<T, SuggestionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SuggestionPayload<ExtArgs>, T, "findMany">>
/**
* Create a Suggestion.
* @param {SuggestionCreateArgs} args - Arguments to create a Suggestion.
* @example
* // Create one Suggestion
* const Suggestion = await prisma.suggestion.create({
* data: {
* // ... data to create a Suggestion
* }
* })
*
*/
create<T extends SuggestionCreateArgs>(args: SelectSubset<T, SuggestionCreateArgs<ExtArgs>>): Prisma__SuggestionClient<$Result.GetResult<Prisma.$SuggestionPayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many Suggestions.
* @param {SuggestionCreateManyArgs} args - Arguments to create many Suggestions.
* @example
* // Create many Suggestions
* const suggestion = await prisma.suggestion.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends SuggestionCreateManyArgs>(args?: SelectSubset<T, SuggestionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many Suggestions and returns the data saved in the database.
* @param {SuggestionCreateManyAndReturnArgs} args - Arguments to create many Suggestions.
* @example
* // Create many Suggestions
* const suggestion = await prisma.suggestion.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Suggestions and only return the `id`
* const suggestionWithIdOnly = await prisma.suggestion.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 SuggestionCreateManyAndReturnArgs>(args?: SelectSubset<T, SuggestionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SuggestionPayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a Suggestion.
* @param {SuggestionDeleteArgs} args - Arguments to delete one Suggestion.
* @example
* // Delete one Suggestion
* const Suggestion = await prisma.suggestion.delete({
* where: {
* // ... filter to delete one Suggestion
* }
* })
*
*/
delete<T extends SuggestionDeleteArgs>(args: SelectSubset<T, SuggestionDeleteArgs<ExtArgs>>): Prisma__SuggestionClient<$Result.GetResult<Prisma.$SuggestionPayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one Suggestion.
* @param {SuggestionUpdateArgs} args - Arguments to update one Suggestion.
* @example
* // Update one Suggestion
* const suggestion = await prisma.suggestion.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends SuggestionUpdateArgs>(args: SelectSubset<T, SuggestionUpdateArgs<ExtArgs>>): Prisma__SuggestionClient<$Result.GetResult<Prisma.$SuggestionPayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more Suggestions.
* @param {SuggestionDeleteManyArgs} args - Arguments to filter Suggestions to delete.
* @example
* // Delete a few Suggestions
* const { count } = await prisma.suggestion.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends SuggestionDeleteManyArgs>(args?: SelectSubset<T, SuggestionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more Suggestions.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {SuggestionUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Suggestions
* const suggestion = await prisma.suggestion.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends SuggestionUpdateManyArgs>(args: SelectSubset<T, SuggestionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one Suggestion.
* @param {SuggestionUpsertArgs} args - Arguments to update or create a Suggestion.
* @example
* // Update or create a Suggestion
* const suggestion = await prisma.suggestion.upsert({
* create: {
* // ... data to create a Suggestion
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Suggestion we want to update
* }
* })
*/
upsert<T extends SuggestionUpsertArgs>(args: SelectSubset<T, SuggestionUpsertArgs<ExtArgs>>): Prisma__SuggestionClient<$Result.GetResult<Prisma.$SuggestionPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of Suggestions.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {SuggestionCountArgs} args - Arguments to filter Suggestions to count.
* @example
* // Count the number of Suggestions
* const count = await prisma.suggestion.count({
* where: {
* // ... the filter for the Suggestions we want to count
* }
* })
**/
count<T extends SuggestionCountArgs>(
args?: Subset<T, SuggestionCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], SuggestionCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Suggestion.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {SuggestionAggregateArgs} 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 SuggestionAggregateArgs>(args: Subset<T, SuggestionAggregateArgs>): Prisma.PrismaPromise<GetSuggestionAggregateType<T>>
/**
* Group by Suggestion.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {SuggestionGroupByArgs} 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 SuggestionGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: SuggestionGroupByArgs['orderBy'] }
: { orderBy?: SuggestionGroupByArgs['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, SuggestionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSuggestionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the Suggestion model
*/
readonly fields: SuggestionFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for Suggestion.
* 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__SuggestionClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
votes<T extends Suggestion$votesArgs<ExtArgs> = {}>(args?: Subset<T, Suggestion$votesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SuggestionVotePayload<ExtArgs>, T, "findMany"> | Null>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the Suggestion model
*/
interface SuggestionFieldRefs {
readonly id: FieldRef<"Suggestion", 'String'>
readonly guildId: FieldRef<"Suggestion", 'String'>
readonly channelId: FieldRef<"Suggestion", 'String'>
readonly messageId: FieldRef<"Suggestion", 'String'>
readonly userId: FieldRef<"Suggestion", 'String'>
readonly userTag: FieldRef<"Suggestion", 'String'>
readonly content: FieldRef<"Suggestion", 'String'>
readonly status: FieldRef<"Suggestion", 'String'>
readonly createdAt: FieldRef<"Suggestion", 'DateTime'>
}
// Custom InputTypes
/**
* Suggestion findUnique
*/
export type SuggestionFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Suggestion
*/
select?: SuggestionSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: SuggestionInclude<ExtArgs> | null
/**
* Filter, which Suggestion to fetch.
*/
where: SuggestionWhereUniqueInput
}
/**
* Suggestion findUniqueOrThrow
*/
export type SuggestionFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Suggestion
*/
select?: SuggestionSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: SuggestionInclude<ExtArgs> | null
/**
* Filter, which Suggestion to fetch.
*/
where: SuggestionWhereUniqueInput
}
/**
* Suggestion findFirst
*/
export type SuggestionFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Suggestion
*/
select?: SuggestionSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: SuggestionInclude<ExtArgs> | null
/**
* Filter, which Suggestion to fetch.
*/
where?: SuggestionWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Suggestions to fetch.
*/
orderBy?: SuggestionOrderByWithRelationInput | SuggestionOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Suggestions.
*/
cursor?: SuggestionWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Suggestions 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` Suggestions.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Suggestions.
*/
distinct?: SuggestionScalarFieldEnum | SuggestionScalarFieldEnum[]
}
/**
* Suggestion findFirstOrThrow
*/
export type SuggestionFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Suggestion
*/
select?: SuggestionSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: SuggestionInclude<ExtArgs> | null
/**
* Filter, which Suggestion to fetch.
*/
where?: SuggestionWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Suggestions to fetch.
*/
orderBy?: SuggestionOrderByWithRelationInput | SuggestionOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Suggestions.
*/
cursor?: SuggestionWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Suggestions 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` Suggestions.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Suggestions.
*/
distinct?: SuggestionScalarFieldEnum | SuggestionScalarFieldEnum[]
}
/**
* Suggestion findMany
*/
export type SuggestionFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Suggestion
*/
select?: SuggestionSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: SuggestionInclude<ExtArgs> | null
/**
* Filter, which Suggestions to fetch.
*/
where?: SuggestionWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Suggestions to fetch.
*/
orderBy?: SuggestionOrderByWithRelationInput | SuggestionOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing Suggestions.
*/
cursor?: SuggestionWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Suggestions 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` Suggestions.
*/
skip?: number
distinct?: SuggestionScalarFieldEnum | SuggestionScalarFieldEnum[]
}
/**
* Suggestion create
*/
export type SuggestionCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Suggestion
*/
select?: SuggestionSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: SuggestionInclude<ExtArgs> | null
/**
* The data needed to create a Suggestion.
*/
data: XOR<SuggestionCreateInput, SuggestionUncheckedCreateInput>
}
/**
* Suggestion createMany
*/
export type SuggestionCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many Suggestions.
*/
data: SuggestionCreateManyInput | SuggestionCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Suggestion createManyAndReturn
*/
export type SuggestionCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Suggestion
*/
select?: SuggestionSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many Suggestions.
*/
data: SuggestionCreateManyInput | SuggestionCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Suggestion update
*/
export type SuggestionUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Suggestion
*/
select?: SuggestionSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: SuggestionInclude<ExtArgs> | null
/**
* The data needed to update a Suggestion.
*/
data: XOR<SuggestionUpdateInput, SuggestionUncheckedUpdateInput>
/**
* Choose, which Suggestion to update.
*/
where: SuggestionWhereUniqueInput
}
/**
* Suggestion updateMany
*/
export type SuggestionUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update Suggestions.
*/
data: XOR<SuggestionUpdateManyMutationInput, SuggestionUncheckedUpdateManyInput>
/**
* Filter which Suggestions to update
*/
where?: SuggestionWhereInput
}
/**
* Suggestion upsert
*/
export type SuggestionUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Suggestion
*/
select?: SuggestionSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: SuggestionInclude<ExtArgs> | null
/**
* The filter to search for the Suggestion to update in case it exists.
*/
where: SuggestionWhereUniqueInput
/**
* In case the Suggestion found by the `where` argument doesn't exist, create a new Suggestion with this data.
*/
create: XOR<SuggestionCreateInput, SuggestionUncheckedCreateInput>
/**
* In case the Suggestion was found with the provided `where` argument, update it with this data.
*/
update: XOR<SuggestionUpdateInput, SuggestionUncheckedUpdateInput>
}
/**
* Suggestion delete
*/
export type SuggestionDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Suggestion
*/
select?: SuggestionSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: SuggestionInclude<ExtArgs> | null
/**
* Filter which Suggestion to delete.
*/
where: SuggestionWhereUniqueInput
}
/**
* Suggestion deleteMany
*/
export type SuggestionDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Suggestions to delete
*/
where?: SuggestionWhereInput
}
/**
* Suggestion.votes
*/
export type Suggestion$votesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SuggestionVote
*/
select?: SuggestionVoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: SuggestionVoteInclude<ExtArgs> | null
where?: SuggestionVoteWhereInput
orderBy?: SuggestionVoteOrderByWithRelationInput | SuggestionVoteOrderByWithRelationInput[]
cursor?: SuggestionVoteWhereUniqueInput
take?: number
skip?: number
distinct?: SuggestionVoteScalarFieldEnum | SuggestionVoteScalarFieldEnum[]
}
/**
* Suggestion without action
*/
export type SuggestionDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Suggestion
*/
select?: SuggestionSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: SuggestionInclude<ExtArgs> | null
}
/**
* Model SuggestionVote
*/
export type AggregateSuggestionVote = {
_count: SuggestionVoteCountAggregateOutputType | null
_avg: SuggestionVoteAvgAggregateOutputType | null
_sum: SuggestionVoteSumAggregateOutputType | null
_min: SuggestionVoteMinAggregateOutputType | null
_max: SuggestionVoteMaxAggregateOutputType | null
}
export type SuggestionVoteAvgAggregateOutputType = {
value: number | null
}
export type SuggestionVoteSumAggregateOutputType = {
value: number | null
}
export type SuggestionVoteMinAggregateOutputType = {
id: string | null
suggestionId: string | null
userId: string | null
value: number | null
}
export type SuggestionVoteMaxAggregateOutputType = {
id: string | null
suggestionId: string | null
userId: string | null
value: number | null
}
export type SuggestionVoteCountAggregateOutputType = {
id: number
suggestionId: number
userId: number
value: number
_all: number
}
export type SuggestionVoteAvgAggregateInputType = {
value?: true
}
export type SuggestionVoteSumAggregateInputType = {
value?: true
}
export type SuggestionVoteMinAggregateInputType = {
id?: true
suggestionId?: true
userId?: true
value?: true
}
export type SuggestionVoteMaxAggregateInputType = {
id?: true
suggestionId?: true
userId?: true
value?: true
}
export type SuggestionVoteCountAggregateInputType = {
id?: true
suggestionId?: true
userId?: true
value?: true
_all?: true
}
export type SuggestionVoteAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which SuggestionVote to aggregate.
*/
where?: SuggestionVoteWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of SuggestionVotes to fetch.
*/
orderBy?: SuggestionVoteOrderByWithRelationInput | SuggestionVoteOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: SuggestionVoteWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` SuggestionVotes 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` SuggestionVotes.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned SuggestionVotes
**/
_count?: true | SuggestionVoteCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: SuggestionVoteAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: SuggestionVoteSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: SuggestionVoteMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: SuggestionVoteMaxAggregateInputType
}
export type GetSuggestionVoteAggregateType<T extends SuggestionVoteAggregateArgs> = {
[P in keyof T & keyof AggregateSuggestionVote]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateSuggestionVote[P]>
: GetScalarType<T[P], AggregateSuggestionVote[P]>
}
export type SuggestionVoteGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: SuggestionVoteWhereInput
orderBy?: SuggestionVoteOrderByWithAggregationInput | SuggestionVoteOrderByWithAggregationInput[]
by: SuggestionVoteScalarFieldEnum[] | SuggestionVoteScalarFieldEnum
having?: SuggestionVoteScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: SuggestionVoteCountAggregateInputType | true
_avg?: SuggestionVoteAvgAggregateInputType
_sum?: SuggestionVoteSumAggregateInputType
_min?: SuggestionVoteMinAggregateInputType
_max?: SuggestionVoteMaxAggregateInputType
}
export type SuggestionVoteGroupByOutputType = {
id: string
suggestionId: string
userId: string
value: number
_count: SuggestionVoteCountAggregateOutputType | null
_avg: SuggestionVoteAvgAggregateOutputType | null
_sum: SuggestionVoteSumAggregateOutputType | null
_min: SuggestionVoteMinAggregateOutputType | null
_max: SuggestionVoteMaxAggregateOutputType | null
}
type GetSuggestionVoteGroupByPayload<T extends SuggestionVoteGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<SuggestionVoteGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof SuggestionVoteGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], SuggestionVoteGroupByOutputType[P]>
: GetScalarType<T[P], SuggestionVoteGroupByOutputType[P]>
}
>
>
export type SuggestionVoteSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
suggestionId?: boolean
userId?: boolean
value?: boolean
suggestion?: boolean | SuggestionDefaultArgs<ExtArgs>
}, ExtArgs["result"]["suggestionVote"]>
export type SuggestionVoteSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
suggestionId?: boolean
userId?: boolean
value?: boolean
suggestion?: boolean | SuggestionDefaultArgs<ExtArgs>
}, ExtArgs["result"]["suggestionVote"]>
export type SuggestionVoteSelectScalar = {
id?: boolean
suggestionId?: boolean
userId?: boolean
value?: boolean
}
export type SuggestionVoteInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
suggestion?: boolean | SuggestionDefaultArgs<ExtArgs>
}
export type SuggestionVoteIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
suggestion?: boolean | SuggestionDefaultArgs<ExtArgs>
}
export type $SuggestionVotePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "SuggestionVote"
objects: {
suggestion: Prisma.$SuggestionPayload<ExtArgs>
}
scalars: $Extensions.GetPayloadResult<{
id: string
suggestionId: string
userId: string
value: number
}, ExtArgs["result"]["suggestionVote"]>
composites: {}
}
type SuggestionVoteGetPayload<S extends boolean | null | undefined | SuggestionVoteDefaultArgs> = $Result.GetResult<Prisma.$SuggestionVotePayload, S>
type SuggestionVoteCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<SuggestionVoteFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: SuggestionVoteCountAggregateInputType | true
}
export interface SuggestionVoteDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['SuggestionVote'], meta: { name: 'SuggestionVote' } }
/**
* Find zero or one SuggestionVote that matches the filter.
* @param {SuggestionVoteFindUniqueArgs} args - Arguments to find a SuggestionVote
* @example
* // Get one SuggestionVote
* const suggestionVote = await prisma.suggestionVote.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends SuggestionVoteFindUniqueArgs>(args: SelectSubset<T, SuggestionVoteFindUniqueArgs<ExtArgs>>): Prisma__SuggestionVoteClient<$Result.GetResult<Prisma.$SuggestionVotePayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one SuggestionVote that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {SuggestionVoteFindUniqueOrThrowArgs} args - Arguments to find a SuggestionVote
* @example
* // Get one SuggestionVote
* const suggestionVote = await prisma.suggestionVote.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends SuggestionVoteFindUniqueOrThrowArgs>(args: SelectSubset<T, SuggestionVoteFindUniqueOrThrowArgs<ExtArgs>>): Prisma__SuggestionVoteClient<$Result.GetResult<Prisma.$SuggestionVotePayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first SuggestionVote 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 {SuggestionVoteFindFirstArgs} args - Arguments to find a SuggestionVote
* @example
* // Get one SuggestionVote
* const suggestionVote = await prisma.suggestionVote.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends SuggestionVoteFindFirstArgs>(args?: SelectSubset<T, SuggestionVoteFindFirstArgs<ExtArgs>>): Prisma__SuggestionVoteClient<$Result.GetResult<Prisma.$SuggestionVotePayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first SuggestionVote 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 {SuggestionVoteFindFirstOrThrowArgs} args - Arguments to find a SuggestionVote
* @example
* // Get one SuggestionVote
* const suggestionVote = await prisma.suggestionVote.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends SuggestionVoteFindFirstOrThrowArgs>(args?: SelectSubset<T, SuggestionVoteFindFirstOrThrowArgs<ExtArgs>>): Prisma__SuggestionVoteClient<$Result.GetResult<Prisma.$SuggestionVotePayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more SuggestionVotes 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 {SuggestionVoteFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all SuggestionVotes
* const suggestionVotes = await prisma.suggestionVote.findMany()
*
* // Get first 10 SuggestionVotes
* const suggestionVotes = await prisma.suggestionVote.findMany({ take: 10 })
*
* // Only select the `id`
* const suggestionVoteWithIdOnly = await prisma.suggestionVote.findMany({ select: { id: true } })
*
*/
findMany<T extends SuggestionVoteFindManyArgs>(args?: SelectSubset<T, SuggestionVoteFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SuggestionVotePayload<ExtArgs>, T, "findMany">>
/**
* Create a SuggestionVote.
* @param {SuggestionVoteCreateArgs} args - Arguments to create a SuggestionVote.
* @example
* // Create one SuggestionVote
* const SuggestionVote = await prisma.suggestionVote.create({
* data: {
* // ... data to create a SuggestionVote
* }
* })
*
*/
create<T extends SuggestionVoteCreateArgs>(args: SelectSubset<T, SuggestionVoteCreateArgs<ExtArgs>>): Prisma__SuggestionVoteClient<$Result.GetResult<Prisma.$SuggestionVotePayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many SuggestionVotes.
* @param {SuggestionVoteCreateManyArgs} args - Arguments to create many SuggestionVotes.
* @example
* // Create many SuggestionVotes
* const suggestionVote = await prisma.suggestionVote.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends SuggestionVoteCreateManyArgs>(args?: SelectSubset<T, SuggestionVoteCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many SuggestionVotes and returns the data saved in the database.
* @param {SuggestionVoteCreateManyAndReturnArgs} args - Arguments to create many SuggestionVotes.
* @example
* // Create many SuggestionVotes
* const suggestionVote = await prisma.suggestionVote.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many SuggestionVotes and only return the `id`
* const suggestionVoteWithIdOnly = await prisma.suggestionVote.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 SuggestionVoteCreateManyAndReturnArgs>(args?: SelectSubset<T, SuggestionVoteCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SuggestionVotePayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a SuggestionVote.
* @param {SuggestionVoteDeleteArgs} args - Arguments to delete one SuggestionVote.
* @example
* // Delete one SuggestionVote
* const SuggestionVote = await prisma.suggestionVote.delete({
* where: {
* // ... filter to delete one SuggestionVote
* }
* })
*
*/
delete<T extends SuggestionVoteDeleteArgs>(args: SelectSubset<T, SuggestionVoteDeleteArgs<ExtArgs>>): Prisma__SuggestionVoteClient<$Result.GetResult<Prisma.$SuggestionVotePayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one SuggestionVote.
* @param {SuggestionVoteUpdateArgs} args - Arguments to update one SuggestionVote.
* @example
* // Update one SuggestionVote
* const suggestionVote = await prisma.suggestionVote.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends SuggestionVoteUpdateArgs>(args: SelectSubset<T, SuggestionVoteUpdateArgs<ExtArgs>>): Prisma__SuggestionVoteClient<$Result.GetResult<Prisma.$SuggestionVotePayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more SuggestionVotes.
* @param {SuggestionVoteDeleteManyArgs} args - Arguments to filter SuggestionVotes to delete.
* @example
* // Delete a few SuggestionVotes
* const { count } = await prisma.suggestionVote.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends SuggestionVoteDeleteManyArgs>(args?: SelectSubset<T, SuggestionVoteDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more SuggestionVotes.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {SuggestionVoteUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many SuggestionVotes
* const suggestionVote = await prisma.suggestionVote.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends SuggestionVoteUpdateManyArgs>(args: SelectSubset<T, SuggestionVoteUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one SuggestionVote.
* @param {SuggestionVoteUpsertArgs} args - Arguments to update or create a SuggestionVote.
* @example
* // Update or create a SuggestionVote
* const suggestionVote = await prisma.suggestionVote.upsert({
* create: {
* // ... data to create a SuggestionVote
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the SuggestionVote we want to update
* }
* })
*/
upsert<T extends SuggestionVoteUpsertArgs>(args: SelectSubset<T, SuggestionVoteUpsertArgs<ExtArgs>>): Prisma__SuggestionVoteClient<$Result.GetResult<Prisma.$SuggestionVotePayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of SuggestionVotes.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {SuggestionVoteCountArgs} args - Arguments to filter SuggestionVotes to count.
* @example
* // Count the number of SuggestionVotes
* const count = await prisma.suggestionVote.count({
* where: {
* // ... the filter for the SuggestionVotes we want to count
* }
* })
**/
count<T extends SuggestionVoteCountArgs>(
args?: Subset<T, SuggestionVoteCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], SuggestionVoteCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a SuggestionVote.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {SuggestionVoteAggregateArgs} 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 SuggestionVoteAggregateArgs>(args: Subset<T, SuggestionVoteAggregateArgs>): Prisma.PrismaPromise<GetSuggestionVoteAggregateType<T>>
/**
* Group by SuggestionVote.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {SuggestionVoteGroupByArgs} 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 SuggestionVoteGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: SuggestionVoteGroupByArgs['orderBy'] }
: { orderBy?: SuggestionVoteGroupByArgs['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, SuggestionVoteGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSuggestionVoteGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the SuggestionVote model
*/
readonly fields: SuggestionVoteFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for SuggestionVote.
* 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__SuggestionVoteClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
suggestion<T extends SuggestionDefaultArgs<ExtArgs> = {}>(args?: Subset<T, SuggestionDefaultArgs<ExtArgs>>): Prisma__SuggestionClient<$Result.GetResult<Prisma.$SuggestionPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the SuggestionVote model
*/
interface SuggestionVoteFieldRefs {
readonly id: FieldRef<"SuggestionVote", 'String'>
readonly suggestionId: FieldRef<"SuggestionVote", 'String'>
readonly userId: FieldRef<"SuggestionVote", 'String'>
readonly value: FieldRef<"SuggestionVote", 'Int'>
}
// Custom InputTypes
/**
* SuggestionVote findUnique
*/
export type SuggestionVoteFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SuggestionVote
*/
select?: SuggestionVoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: SuggestionVoteInclude<ExtArgs> | null
/**
* Filter, which SuggestionVote to fetch.
*/
where: SuggestionVoteWhereUniqueInput
}
/**
* SuggestionVote findUniqueOrThrow
*/
export type SuggestionVoteFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SuggestionVote
*/
select?: SuggestionVoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: SuggestionVoteInclude<ExtArgs> | null
/**
* Filter, which SuggestionVote to fetch.
*/
where: SuggestionVoteWhereUniqueInput
}
/**
* SuggestionVote findFirst
*/
export type SuggestionVoteFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SuggestionVote
*/
select?: SuggestionVoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: SuggestionVoteInclude<ExtArgs> | null
/**
* Filter, which SuggestionVote to fetch.
*/
where?: SuggestionVoteWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of SuggestionVotes to fetch.
*/
orderBy?: SuggestionVoteOrderByWithRelationInput | SuggestionVoteOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for SuggestionVotes.
*/
cursor?: SuggestionVoteWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` SuggestionVotes 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` SuggestionVotes.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of SuggestionVotes.
*/
distinct?: SuggestionVoteScalarFieldEnum | SuggestionVoteScalarFieldEnum[]
}
/**
* SuggestionVote findFirstOrThrow
*/
export type SuggestionVoteFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SuggestionVote
*/
select?: SuggestionVoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: SuggestionVoteInclude<ExtArgs> | null
/**
* Filter, which SuggestionVote to fetch.
*/
where?: SuggestionVoteWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of SuggestionVotes to fetch.
*/
orderBy?: SuggestionVoteOrderByWithRelationInput | SuggestionVoteOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for SuggestionVotes.
*/
cursor?: SuggestionVoteWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` SuggestionVotes 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` SuggestionVotes.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of SuggestionVotes.
*/
distinct?: SuggestionVoteScalarFieldEnum | SuggestionVoteScalarFieldEnum[]
}
/**
* SuggestionVote findMany
*/
export type SuggestionVoteFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SuggestionVote
*/
select?: SuggestionVoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: SuggestionVoteInclude<ExtArgs> | null
/**
* Filter, which SuggestionVotes to fetch.
*/
where?: SuggestionVoteWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of SuggestionVotes to fetch.
*/
orderBy?: SuggestionVoteOrderByWithRelationInput | SuggestionVoteOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing SuggestionVotes.
*/
cursor?: SuggestionVoteWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` SuggestionVotes 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` SuggestionVotes.
*/
skip?: number
distinct?: SuggestionVoteScalarFieldEnum | SuggestionVoteScalarFieldEnum[]
}
/**
* SuggestionVote create
*/
export type SuggestionVoteCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SuggestionVote
*/
select?: SuggestionVoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: SuggestionVoteInclude<ExtArgs> | null
/**
* The data needed to create a SuggestionVote.
*/
data: XOR<SuggestionVoteCreateInput, SuggestionVoteUncheckedCreateInput>
}
/**
* SuggestionVote createMany
*/
export type SuggestionVoteCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many SuggestionVotes.
*/
data: SuggestionVoteCreateManyInput | SuggestionVoteCreateManyInput[]
skipDuplicates?: boolean
}
/**
* SuggestionVote createManyAndReturn
*/
export type SuggestionVoteCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SuggestionVote
*/
select?: SuggestionVoteSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many SuggestionVotes.
*/
data: SuggestionVoteCreateManyInput | SuggestionVoteCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: SuggestionVoteIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* SuggestionVote update
*/
export type SuggestionVoteUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SuggestionVote
*/
select?: SuggestionVoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: SuggestionVoteInclude<ExtArgs> | null
/**
* The data needed to update a SuggestionVote.
*/
data: XOR<SuggestionVoteUpdateInput, SuggestionVoteUncheckedUpdateInput>
/**
* Choose, which SuggestionVote to update.
*/
where: SuggestionVoteWhereUniqueInput
}
/**
* SuggestionVote updateMany
*/
export type SuggestionVoteUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update SuggestionVotes.
*/
data: XOR<SuggestionVoteUpdateManyMutationInput, SuggestionVoteUncheckedUpdateManyInput>
/**
* Filter which SuggestionVotes to update
*/
where?: SuggestionVoteWhereInput
}
/**
* SuggestionVote upsert
*/
export type SuggestionVoteUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SuggestionVote
*/
select?: SuggestionVoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: SuggestionVoteInclude<ExtArgs> | null
/**
* The filter to search for the SuggestionVote to update in case it exists.
*/
where: SuggestionVoteWhereUniqueInput
/**
* In case the SuggestionVote found by the `where` argument doesn't exist, create a new SuggestionVote with this data.
*/
create: XOR<SuggestionVoteCreateInput, SuggestionVoteUncheckedCreateInput>
/**
* In case the SuggestionVote was found with the provided `where` argument, update it with this data.
*/
update: XOR<SuggestionVoteUpdateInput, SuggestionVoteUncheckedUpdateInput>
}
/**
* SuggestionVote delete
*/
export type SuggestionVoteDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SuggestionVote
*/
select?: SuggestionVoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: SuggestionVoteInclude<ExtArgs> | null
/**
* Filter which SuggestionVote to delete.
*/
where: SuggestionVoteWhereUniqueInput
}
/**
* SuggestionVote deleteMany
*/
export type SuggestionVoteDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which SuggestionVotes to delete
*/
where?: SuggestionVoteWhereInput
}
/**
* SuggestionVote without action
*/
export type SuggestionVoteDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SuggestionVote
*/
select?: SuggestionVoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: SuggestionVoteInclude<ExtArgs> | null
}
/**
* Model PartnerRequest
*/
export type AggregatePartnerRequest = {
_count: PartnerRequestCountAggregateOutputType | null
_avg: PartnerRequestAvgAggregateOutputType | null
_sum: PartnerRequestSumAggregateOutputType | null
_min: PartnerRequestMinAggregateOutputType | null
_max: PartnerRequestMaxAggregateOutputType | null
}
export type PartnerRequestAvgAggregateOutputType = {
memberCount: number | null
}
export type PartnerRequestSumAggregateOutputType = {
memberCount: number | null
}
export type PartnerRequestMinAggregateOutputType = {
id: string | null
guildId: string | null
userId: string | null
userTag: string | null
serverName: string | null
inviteCode: string | null
memberCount: number | null
description: string | null
status: string | null
reviewedBy: string | null
createdAt: Date | null
}
export type PartnerRequestMaxAggregateOutputType = {
id: string | null
guildId: string | null
userId: string | null
userTag: string | null
serverName: string | null
inviteCode: string | null
memberCount: number | null
description: string | null
status: string | null
reviewedBy: string | null
createdAt: Date | null
}
export type PartnerRequestCountAggregateOutputType = {
id: number
guildId: number
userId: number
userTag: number
serverName: number
inviteCode: number
memberCount: number
description: number
status: number
reviewedBy: number
createdAt: number
_all: number
}
export type PartnerRequestAvgAggregateInputType = {
memberCount?: true
}
export type PartnerRequestSumAggregateInputType = {
memberCount?: true
}
export type PartnerRequestMinAggregateInputType = {
id?: true
guildId?: true
userId?: true
userTag?: true
serverName?: true
inviteCode?: true
memberCount?: true
description?: true
status?: true
reviewedBy?: true
createdAt?: true
}
export type PartnerRequestMaxAggregateInputType = {
id?: true
guildId?: true
userId?: true
userTag?: true
serverName?: true
inviteCode?: true
memberCount?: true
description?: true
status?: true
reviewedBy?: true
createdAt?: true
}
export type PartnerRequestCountAggregateInputType = {
id?: true
guildId?: true
userId?: true
userTag?: true
serverName?: true
inviteCode?: true
memberCount?: true
description?: true
status?: true
reviewedBy?: true
createdAt?: true
_all?: true
}
export type PartnerRequestAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which PartnerRequest to aggregate.
*/
where?: PartnerRequestWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of PartnerRequests to fetch.
*/
orderBy?: PartnerRequestOrderByWithRelationInput | PartnerRequestOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: PartnerRequestWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` PartnerRequests 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` PartnerRequests.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned PartnerRequests
**/
_count?: true | PartnerRequestCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: PartnerRequestAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: PartnerRequestSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: PartnerRequestMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: PartnerRequestMaxAggregateInputType
}
export type GetPartnerRequestAggregateType<T extends PartnerRequestAggregateArgs> = {
[P in keyof T & keyof AggregatePartnerRequest]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregatePartnerRequest[P]>
: GetScalarType<T[P], AggregatePartnerRequest[P]>
}
export type PartnerRequestGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: PartnerRequestWhereInput
orderBy?: PartnerRequestOrderByWithAggregationInput | PartnerRequestOrderByWithAggregationInput[]
by: PartnerRequestScalarFieldEnum[] | PartnerRequestScalarFieldEnum
having?: PartnerRequestScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: PartnerRequestCountAggregateInputType | true
_avg?: PartnerRequestAvgAggregateInputType
_sum?: PartnerRequestSumAggregateInputType
_min?: PartnerRequestMinAggregateInputType
_max?: PartnerRequestMaxAggregateInputType
}
export type PartnerRequestGroupByOutputType = {
id: string
guildId: string
userId: string
userTag: string
serverName: string
inviteCode: string
memberCount: number | null
description: string | null
status: string
reviewedBy: string | null
createdAt: Date
_count: PartnerRequestCountAggregateOutputType | null
_avg: PartnerRequestAvgAggregateOutputType | null
_sum: PartnerRequestSumAggregateOutputType | null
_min: PartnerRequestMinAggregateOutputType | null
_max: PartnerRequestMaxAggregateOutputType | null
}
type GetPartnerRequestGroupByPayload<T extends PartnerRequestGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<PartnerRequestGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof PartnerRequestGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], PartnerRequestGroupByOutputType[P]>
: GetScalarType<T[P], PartnerRequestGroupByOutputType[P]>
}
>
>
export type PartnerRequestSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
guildId?: boolean
userId?: boolean
userTag?: boolean
serverName?: boolean
inviteCode?: boolean
memberCount?: boolean
description?: boolean
status?: boolean
reviewedBy?: boolean
createdAt?: boolean
}, ExtArgs["result"]["partnerRequest"]>
export type PartnerRequestSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
guildId?: boolean
userId?: boolean
userTag?: boolean
serverName?: boolean
inviteCode?: boolean
memberCount?: boolean
description?: boolean
status?: boolean
reviewedBy?: boolean
createdAt?: boolean
}, ExtArgs["result"]["partnerRequest"]>
export type PartnerRequestSelectScalar = {
id?: boolean
guildId?: boolean
userId?: boolean
userTag?: boolean
serverName?: boolean
inviteCode?: boolean
memberCount?: boolean
description?: boolean
status?: boolean
reviewedBy?: boolean
createdAt?: boolean
}
export type $PartnerRequestPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "PartnerRequest"
objects: {}
scalars: $Extensions.GetPayloadResult<{
id: string
guildId: string
userId: string
userTag: string
serverName: string
inviteCode: string
memberCount: number | null
description: string | null
status: string
reviewedBy: string | null
createdAt: Date
}, ExtArgs["result"]["partnerRequest"]>
composites: {}
}
type PartnerRequestGetPayload<S extends boolean | null | undefined | PartnerRequestDefaultArgs> = $Result.GetResult<Prisma.$PartnerRequestPayload, S>
type PartnerRequestCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<PartnerRequestFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: PartnerRequestCountAggregateInputType | true
}
export interface PartnerRequestDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['PartnerRequest'], meta: { name: 'PartnerRequest' } }
/**
* Find zero or one PartnerRequest that matches the filter.
* @param {PartnerRequestFindUniqueArgs} args - Arguments to find a PartnerRequest
* @example
* // Get one PartnerRequest
* const partnerRequest = await prisma.partnerRequest.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends PartnerRequestFindUniqueArgs>(args: SelectSubset<T, PartnerRequestFindUniqueArgs<ExtArgs>>): Prisma__PartnerRequestClient<$Result.GetResult<Prisma.$PartnerRequestPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one PartnerRequest that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {PartnerRequestFindUniqueOrThrowArgs} args - Arguments to find a PartnerRequest
* @example
* // Get one PartnerRequest
* const partnerRequest = await prisma.partnerRequest.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends PartnerRequestFindUniqueOrThrowArgs>(args: SelectSubset<T, PartnerRequestFindUniqueOrThrowArgs<ExtArgs>>): Prisma__PartnerRequestClient<$Result.GetResult<Prisma.$PartnerRequestPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first PartnerRequest 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 {PartnerRequestFindFirstArgs} args - Arguments to find a PartnerRequest
* @example
* // Get one PartnerRequest
* const partnerRequest = await prisma.partnerRequest.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends PartnerRequestFindFirstArgs>(args?: SelectSubset<T, PartnerRequestFindFirstArgs<ExtArgs>>): Prisma__PartnerRequestClient<$Result.GetResult<Prisma.$PartnerRequestPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first PartnerRequest 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 {PartnerRequestFindFirstOrThrowArgs} args - Arguments to find a PartnerRequest
* @example
* // Get one PartnerRequest
* const partnerRequest = await prisma.partnerRequest.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends PartnerRequestFindFirstOrThrowArgs>(args?: SelectSubset<T, PartnerRequestFindFirstOrThrowArgs<ExtArgs>>): Prisma__PartnerRequestClient<$Result.GetResult<Prisma.$PartnerRequestPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more PartnerRequests 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 {PartnerRequestFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all PartnerRequests
* const partnerRequests = await prisma.partnerRequest.findMany()
*
* // Get first 10 PartnerRequests
* const partnerRequests = await prisma.partnerRequest.findMany({ take: 10 })
*
* // Only select the `id`
* const partnerRequestWithIdOnly = await prisma.partnerRequest.findMany({ select: { id: true } })
*
*/
findMany<T extends PartnerRequestFindManyArgs>(args?: SelectSubset<T, PartnerRequestFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PartnerRequestPayload<ExtArgs>, T, "findMany">>
/**
* Create a PartnerRequest.
* @param {PartnerRequestCreateArgs} args - Arguments to create a PartnerRequest.
* @example
* // Create one PartnerRequest
* const PartnerRequest = await prisma.partnerRequest.create({
* data: {
* // ... data to create a PartnerRequest
* }
* })
*
*/
create<T extends PartnerRequestCreateArgs>(args: SelectSubset<T, PartnerRequestCreateArgs<ExtArgs>>): Prisma__PartnerRequestClient<$Result.GetResult<Prisma.$PartnerRequestPayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many PartnerRequests.
* @param {PartnerRequestCreateManyArgs} args - Arguments to create many PartnerRequests.
* @example
* // Create many PartnerRequests
* const partnerRequest = await prisma.partnerRequest.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends PartnerRequestCreateManyArgs>(args?: SelectSubset<T, PartnerRequestCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many PartnerRequests and returns the data saved in the database.
* @param {PartnerRequestCreateManyAndReturnArgs} args - Arguments to create many PartnerRequests.
* @example
* // Create many PartnerRequests
* const partnerRequest = await prisma.partnerRequest.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many PartnerRequests and only return the `id`
* const partnerRequestWithIdOnly = await prisma.partnerRequest.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 PartnerRequestCreateManyAndReturnArgs>(args?: SelectSubset<T, PartnerRequestCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PartnerRequestPayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a PartnerRequest.
* @param {PartnerRequestDeleteArgs} args - Arguments to delete one PartnerRequest.
* @example
* // Delete one PartnerRequest
* const PartnerRequest = await prisma.partnerRequest.delete({
* where: {
* // ... filter to delete one PartnerRequest
* }
* })
*
*/
delete<T extends PartnerRequestDeleteArgs>(args: SelectSubset<T, PartnerRequestDeleteArgs<ExtArgs>>): Prisma__PartnerRequestClient<$Result.GetResult<Prisma.$PartnerRequestPayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one PartnerRequest.
* @param {PartnerRequestUpdateArgs} args - Arguments to update one PartnerRequest.
* @example
* // Update one PartnerRequest
* const partnerRequest = await prisma.partnerRequest.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends PartnerRequestUpdateArgs>(args: SelectSubset<T, PartnerRequestUpdateArgs<ExtArgs>>): Prisma__PartnerRequestClient<$Result.GetResult<Prisma.$PartnerRequestPayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more PartnerRequests.
* @param {PartnerRequestDeleteManyArgs} args - Arguments to filter PartnerRequests to delete.
* @example
* // Delete a few PartnerRequests
* const { count } = await prisma.partnerRequest.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends PartnerRequestDeleteManyArgs>(args?: SelectSubset<T, PartnerRequestDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more PartnerRequests.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {PartnerRequestUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many PartnerRequests
* const partnerRequest = await prisma.partnerRequest.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends PartnerRequestUpdateManyArgs>(args: SelectSubset<T, PartnerRequestUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one PartnerRequest.
* @param {PartnerRequestUpsertArgs} args - Arguments to update or create a PartnerRequest.
* @example
* // Update or create a PartnerRequest
* const partnerRequest = await prisma.partnerRequest.upsert({
* create: {
* // ... data to create a PartnerRequest
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the PartnerRequest we want to update
* }
* })
*/
upsert<T extends PartnerRequestUpsertArgs>(args: SelectSubset<T, PartnerRequestUpsertArgs<ExtArgs>>): Prisma__PartnerRequestClient<$Result.GetResult<Prisma.$PartnerRequestPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of PartnerRequests.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {PartnerRequestCountArgs} args - Arguments to filter PartnerRequests to count.
* @example
* // Count the number of PartnerRequests
* const count = await prisma.partnerRequest.count({
* where: {
* // ... the filter for the PartnerRequests we want to count
* }
* })
**/
count<T extends PartnerRequestCountArgs>(
args?: Subset<T, PartnerRequestCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], PartnerRequestCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a PartnerRequest.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {PartnerRequestAggregateArgs} 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 PartnerRequestAggregateArgs>(args: Subset<T, PartnerRequestAggregateArgs>): Prisma.PrismaPromise<GetPartnerRequestAggregateType<T>>
/**
* Group by PartnerRequest.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {PartnerRequestGroupByArgs} 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 PartnerRequestGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: PartnerRequestGroupByArgs['orderBy'] }
: { orderBy?: PartnerRequestGroupByArgs['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, PartnerRequestGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPartnerRequestGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the PartnerRequest model
*/
readonly fields: PartnerRequestFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for PartnerRequest.
* 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__PartnerRequestClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the PartnerRequest model
*/
interface PartnerRequestFieldRefs {
readonly id: FieldRef<"PartnerRequest", 'String'>
readonly guildId: FieldRef<"PartnerRequest", 'String'>
readonly userId: FieldRef<"PartnerRequest", 'String'>
readonly userTag: FieldRef<"PartnerRequest", 'String'>
readonly serverName: FieldRef<"PartnerRequest", 'String'>
readonly inviteCode: FieldRef<"PartnerRequest", 'String'>
readonly memberCount: FieldRef<"PartnerRequest", 'Int'>
readonly description: FieldRef<"PartnerRequest", 'String'>
readonly status: FieldRef<"PartnerRequest", 'String'>
readonly reviewedBy: FieldRef<"PartnerRequest", 'String'>
readonly createdAt: FieldRef<"PartnerRequest", 'DateTime'>
}
// Custom InputTypes
/**
* PartnerRequest findUnique
*/
export type PartnerRequestFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the PartnerRequest
*/
select?: PartnerRequestSelect<ExtArgs> | null
/**
* Filter, which PartnerRequest to fetch.
*/
where: PartnerRequestWhereUniqueInput
}
/**
* PartnerRequest findUniqueOrThrow
*/
export type PartnerRequestFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the PartnerRequest
*/
select?: PartnerRequestSelect<ExtArgs> | null
/**
* Filter, which PartnerRequest to fetch.
*/
where: PartnerRequestWhereUniqueInput
}
/**
* PartnerRequest findFirst
*/
export type PartnerRequestFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the PartnerRequest
*/
select?: PartnerRequestSelect<ExtArgs> | null
/**
* Filter, which PartnerRequest to fetch.
*/
where?: PartnerRequestWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of PartnerRequests to fetch.
*/
orderBy?: PartnerRequestOrderByWithRelationInput | PartnerRequestOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for PartnerRequests.
*/
cursor?: PartnerRequestWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` PartnerRequests 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` PartnerRequests.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of PartnerRequests.
*/
distinct?: PartnerRequestScalarFieldEnum | PartnerRequestScalarFieldEnum[]
}
/**
* PartnerRequest findFirstOrThrow
*/
export type PartnerRequestFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the PartnerRequest
*/
select?: PartnerRequestSelect<ExtArgs> | null
/**
* Filter, which PartnerRequest to fetch.
*/
where?: PartnerRequestWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of PartnerRequests to fetch.
*/
orderBy?: PartnerRequestOrderByWithRelationInput | PartnerRequestOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for PartnerRequests.
*/
cursor?: PartnerRequestWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` PartnerRequests 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` PartnerRequests.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of PartnerRequests.
*/
distinct?: PartnerRequestScalarFieldEnum | PartnerRequestScalarFieldEnum[]
}
/**
* PartnerRequest findMany
*/
export type PartnerRequestFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the PartnerRequest
*/
select?: PartnerRequestSelect<ExtArgs> | null
/**
* Filter, which PartnerRequests to fetch.
*/
where?: PartnerRequestWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of PartnerRequests to fetch.
*/
orderBy?: PartnerRequestOrderByWithRelationInput | PartnerRequestOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing PartnerRequests.
*/
cursor?: PartnerRequestWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` PartnerRequests 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` PartnerRequests.
*/
skip?: number
distinct?: PartnerRequestScalarFieldEnum | PartnerRequestScalarFieldEnum[]
}
/**
* PartnerRequest create
*/
export type PartnerRequestCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the PartnerRequest
*/
select?: PartnerRequestSelect<ExtArgs> | null
/**
* The data needed to create a PartnerRequest.
*/
data: XOR<PartnerRequestCreateInput, PartnerRequestUncheckedCreateInput>
}
/**
* PartnerRequest createMany
*/
export type PartnerRequestCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many PartnerRequests.
*/
data: PartnerRequestCreateManyInput | PartnerRequestCreateManyInput[]
skipDuplicates?: boolean
}
/**
* PartnerRequest createManyAndReturn
*/
export type PartnerRequestCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the PartnerRequest
*/
select?: PartnerRequestSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many PartnerRequests.
*/
data: PartnerRequestCreateManyInput | PartnerRequestCreateManyInput[]
skipDuplicates?: boolean
}
/**
* PartnerRequest update
*/
export type PartnerRequestUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the PartnerRequest
*/
select?: PartnerRequestSelect<ExtArgs> | null
/**
* The data needed to update a PartnerRequest.
*/
data: XOR<PartnerRequestUpdateInput, PartnerRequestUncheckedUpdateInput>
/**
* Choose, which PartnerRequest to update.
*/
where: PartnerRequestWhereUniqueInput
}
/**
* PartnerRequest updateMany
*/
export type PartnerRequestUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update PartnerRequests.
*/
data: XOR<PartnerRequestUpdateManyMutationInput, PartnerRequestUncheckedUpdateManyInput>
/**
* Filter which PartnerRequests to update
*/
where?: PartnerRequestWhereInput
}
/**
* PartnerRequest upsert
*/
export type PartnerRequestUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the PartnerRequest
*/
select?: PartnerRequestSelect<ExtArgs> | null
/**
* The filter to search for the PartnerRequest to update in case it exists.
*/
where: PartnerRequestWhereUniqueInput
/**
* In case the PartnerRequest found by the `where` argument doesn't exist, create a new PartnerRequest with this data.
*/
create: XOR<PartnerRequestCreateInput, PartnerRequestUncheckedCreateInput>
/**
* In case the PartnerRequest was found with the provided `where` argument, update it with this data.
*/
update: XOR<PartnerRequestUpdateInput, PartnerRequestUncheckedUpdateInput>
}
/**
* PartnerRequest delete
*/
export type PartnerRequestDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the PartnerRequest
*/
select?: PartnerRequestSelect<ExtArgs> | null
/**
* Filter which PartnerRequest to delete.
*/
where: PartnerRequestWhereUniqueInput
}
/**
* PartnerRequest deleteMany
*/
export type PartnerRequestDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which PartnerRequests to delete
*/
where?: PartnerRequestWhereInput
}
/**
* PartnerRequest without action
*/
export type PartnerRequestDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the PartnerRequest
*/
select?: PartnerRequestSelect<ExtArgs> | null
}
/**
* Model GalleryPost
*/
export type AggregateGalleryPost = {
_count: GalleryPostCountAggregateOutputType | null
_min: GalleryPostMinAggregateOutputType | null
_max: GalleryPostMaxAggregateOutputType | null
}
export type GalleryPostMinAggregateOutputType = {
id: string | null
guildId: string | null
channelId: string | null
messageId: string | null
userId: string | null
userTag: string | null
imageUrl: string | null
caption: string | null
createdAt: Date | null
}
export type GalleryPostMaxAggregateOutputType = {
id: string | null
guildId: string | null
channelId: string | null
messageId: string | null
userId: string | null
userTag: string | null
imageUrl: string | null
caption: string | null
createdAt: Date | null
}
export type GalleryPostCountAggregateOutputType = {
id: number
guildId: number
channelId: number
messageId: number
userId: number
userTag: number
imageUrl: number
caption: number
createdAt: number
_all: number
}
export type GalleryPostMinAggregateInputType = {
id?: true
guildId?: true
channelId?: true
messageId?: true
userId?: true
userTag?: true
imageUrl?: true
caption?: true
createdAt?: true
}
export type GalleryPostMaxAggregateInputType = {
id?: true
guildId?: true
channelId?: true
messageId?: true
userId?: true
userTag?: true
imageUrl?: true
caption?: true
createdAt?: true
}
export type GalleryPostCountAggregateInputType = {
id?: true
guildId?: true
channelId?: true
messageId?: true
userId?: true
userTag?: true
imageUrl?: true
caption?: true
createdAt?: true
_all?: true
}
export type GalleryPostAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which GalleryPost to aggregate.
*/
where?: GalleryPostWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of GalleryPosts to fetch.
*/
orderBy?: GalleryPostOrderByWithRelationInput | GalleryPostOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: GalleryPostWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` GalleryPosts 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` GalleryPosts.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned GalleryPosts
**/
_count?: true | GalleryPostCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: GalleryPostMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: GalleryPostMaxAggregateInputType
}
export type GetGalleryPostAggregateType<T extends GalleryPostAggregateArgs> = {
[P in keyof T & keyof AggregateGalleryPost]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateGalleryPost[P]>
: GetScalarType<T[P], AggregateGalleryPost[P]>
}
export type GalleryPostGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: GalleryPostWhereInput
orderBy?: GalleryPostOrderByWithAggregationInput | GalleryPostOrderByWithAggregationInput[]
by: GalleryPostScalarFieldEnum[] | GalleryPostScalarFieldEnum
having?: GalleryPostScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: GalleryPostCountAggregateInputType | true
_min?: GalleryPostMinAggregateInputType
_max?: GalleryPostMaxAggregateInputType
}
export type GalleryPostGroupByOutputType = {
id: string
guildId: string
channelId: string
messageId: string | null
userId: string
userTag: string
imageUrl: string
caption: string | null
createdAt: Date
_count: GalleryPostCountAggregateOutputType | null
_min: GalleryPostMinAggregateOutputType | null
_max: GalleryPostMaxAggregateOutputType | null
}
type GetGalleryPostGroupByPayload<T extends GalleryPostGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<GalleryPostGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof GalleryPostGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], GalleryPostGroupByOutputType[P]>
: GetScalarType<T[P], GalleryPostGroupByOutputType[P]>
}
>
>
export type GalleryPostSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
guildId?: boolean
channelId?: boolean
messageId?: boolean
userId?: boolean
userTag?: boolean
imageUrl?: boolean
caption?: boolean
createdAt?: boolean
votes?: boolean | GalleryPost$votesArgs<ExtArgs>
_count?: boolean | GalleryPostCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["galleryPost"]>
export type GalleryPostSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
guildId?: boolean
channelId?: boolean
messageId?: boolean
userId?: boolean
userTag?: boolean
imageUrl?: boolean
caption?: boolean
createdAt?: boolean
}, ExtArgs["result"]["galleryPost"]>
export type GalleryPostSelectScalar = {
id?: boolean
guildId?: boolean
channelId?: boolean
messageId?: boolean
userId?: boolean
userTag?: boolean
imageUrl?: boolean
caption?: boolean
createdAt?: boolean
}
export type GalleryPostInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
votes?: boolean | GalleryPost$votesArgs<ExtArgs>
_count?: boolean | GalleryPostCountOutputTypeDefaultArgs<ExtArgs>
}
export type GalleryPostIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {}
export type $GalleryPostPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "GalleryPost"
objects: {
votes: Prisma.$GalleryVotePayload<ExtArgs>[]
}
scalars: $Extensions.GetPayloadResult<{
id: string
guildId: string
channelId: string
messageId: string | null
userId: string
userTag: string
imageUrl: string
caption: string | null
createdAt: Date
}, ExtArgs["result"]["galleryPost"]>
composites: {}
}
type GalleryPostGetPayload<S extends boolean | null | undefined | GalleryPostDefaultArgs> = $Result.GetResult<Prisma.$GalleryPostPayload, S>
type GalleryPostCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<GalleryPostFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: GalleryPostCountAggregateInputType | true
}
export interface GalleryPostDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['GalleryPost'], meta: { name: 'GalleryPost' } }
/**
* Find zero or one GalleryPost that matches the filter.
* @param {GalleryPostFindUniqueArgs} args - Arguments to find a GalleryPost
* @example
* // Get one GalleryPost
* const galleryPost = await prisma.galleryPost.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends GalleryPostFindUniqueArgs>(args: SelectSubset<T, GalleryPostFindUniqueArgs<ExtArgs>>): Prisma__GalleryPostClient<$Result.GetResult<Prisma.$GalleryPostPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one GalleryPost that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {GalleryPostFindUniqueOrThrowArgs} args - Arguments to find a GalleryPost
* @example
* // Get one GalleryPost
* const galleryPost = await prisma.galleryPost.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends GalleryPostFindUniqueOrThrowArgs>(args: SelectSubset<T, GalleryPostFindUniqueOrThrowArgs<ExtArgs>>): Prisma__GalleryPostClient<$Result.GetResult<Prisma.$GalleryPostPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first GalleryPost 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 {GalleryPostFindFirstArgs} args - Arguments to find a GalleryPost
* @example
* // Get one GalleryPost
* const galleryPost = await prisma.galleryPost.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends GalleryPostFindFirstArgs>(args?: SelectSubset<T, GalleryPostFindFirstArgs<ExtArgs>>): Prisma__GalleryPostClient<$Result.GetResult<Prisma.$GalleryPostPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first GalleryPost 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 {GalleryPostFindFirstOrThrowArgs} args - Arguments to find a GalleryPost
* @example
* // Get one GalleryPost
* const galleryPost = await prisma.galleryPost.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends GalleryPostFindFirstOrThrowArgs>(args?: SelectSubset<T, GalleryPostFindFirstOrThrowArgs<ExtArgs>>): Prisma__GalleryPostClient<$Result.GetResult<Prisma.$GalleryPostPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more GalleryPosts 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 {GalleryPostFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all GalleryPosts
* const galleryPosts = await prisma.galleryPost.findMany()
*
* // Get first 10 GalleryPosts
* const galleryPosts = await prisma.galleryPost.findMany({ take: 10 })
*
* // Only select the `id`
* const galleryPostWithIdOnly = await prisma.galleryPost.findMany({ select: { id: true } })
*
*/
findMany<T extends GalleryPostFindManyArgs>(args?: SelectSubset<T, GalleryPostFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$GalleryPostPayload<ExtArgs>, T, "findMany">>
/**
* Create a GalleryPost.
* @param {GalleryPostCreateArgs} args - Arguments to create a GalleryPost.
* @example
* // Create one GalleryPost
* const GalleryPost = await prisma.galleryPost.create({
* data: {
* // ... data to create a GalleryPost
* }
* })
*
*/
create<T extends GalleryPostCreateArgs>(args: SelectSubset<T, GalleryPostCreateArgs<ExtArgs>>): Prisma__GalleryPostClient<$Result.GetResult<Prisma.$GalleryPostPayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many GalleryPosts.
* @param {GalleryPostCreateManyArgs} args - Arguments to create many GalleryPosts.
* @example
* // Create many GalleryPosts
* const galleryPost = await prisma.galleryPost.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends GalleryPostCreateManyArgs>(args?: SelectSubset<T, GalleryPostCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many GalleryPosts and returns the data saved in the database.
* @param {GalleryPostCreateManyAndReturnArgs} args - Arguments to create many GalleryPosts.
* @example
* // Create many GalleryPosts
* const galleryPost = await prisma.galleryPost.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many GalleryPosts and only return the `id`
* const galleryPostWithIdOnly = await prisma.galleryPost.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 GalleryPostCreateManyAndReturnArgs>(args?: SelectSubset<T, GalleryPostCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$GalleryPostPayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a GalleryPost.
* @param {GalleryPostDeleteArgs} args - Arguments to delete one GalleryPost.
* @example
* // Delete one GalleryPost
* const GalleryPost = await prisma.galleryPost.delete({
* where: {
* // ... filter to delete one GalleryPost
* }
* })
*
*/
delete<T extends GalleryPostDeleteArgs>(args: SelectSubset<T, GalleryPostDeleteArgs<ExtArgs>>): Prisma__GalleryPostClient<$Result.GetResult<Prisma.$GalleryPostPayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one GalleryPost.
* @param {GalleryPostUpdateArgs} args - Arguments to update one GalleryPost.
* @example
* // Update one GalleryPost
* const galleryPost = await prisma.galleryPost.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends GalleryPostUpdateArgs>(args: SelectSubset<T, GalleryPostUpdateArgs<ExtArgs>>): Prisma__GalleryPostClient<$Result.GetResult<Prisma.$GalleryPostPayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more GalleryPosts.
* @param {GalleryPostDeleteManyArgs} args - Arguments to filter GalleryPosts to delete.
* @example
* // Delete a few GalleryPosts
* const { count } = await prisma.galleryPost.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends GalleryPostDeleteManyArgs>(args?: SelectSubset<T, GalleryPostDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more GalleryPosts.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {GalleryPostUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many GalleryPosts
* const galleryPost = await prisma.galleryPost.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends GalleryPostUpdateManyArgs>(args: SelectSubset<T, GalleryPostUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one GalleryPost.
* @param {GalleryPostUpsertArgs} args - Arguments to update or create a GalleryPost.
* @example
* // Update or create a GalleryPost
* const galleryPost = await prisma.galleryPost.upsert({
* create: {
* // ... data to create a GalleryPost
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the GalleryPost we want to update
* }
* })
*/
upsert<T extends GalleryPostUpsertArgs>(args: SelectSubset<T, GalleryPostUpsertArgs<ExtArgs>>): Prisma__GalleryPostClient<$Result.GetResult<Prisma.$GalleryPostPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of GalleryPosts.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {GalleryPostCountArgs} args - Arguments to filter GalleryPosts to count.
* @example
* // Count the number of GalleryPosts
* const count = await prisma.galleryPost.count({
* where: {
* // ... the filter for the GalleryPosts we want to count
* }
* })
**/
count<T extends GalleryPostCountArgs>(
args?: Subset<T, GalleryPostCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], GalleryPostCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a GalleryPost.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {GalleryPostAggregateArgs} 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 GalleryPostAggregateArgs>(args: Subset<T, GalleryPostAggregateArgs>): Prisma.PrismaPromise<GetGalleryPostAggregateType<T>>
/**
* Group by GalleryPost.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {GalleryPostGroupByArgs} 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 GalleryPostGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: GalleryPostGroupByArgs['orderBy'] }
: { orderBy?: GalleryPostGroupByArgs['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, GalleryPostGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetGalleryPostGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the GalleryPost model
*/
readonly fields: GalleryPostFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for GalleryPost.
* 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__GalleryPostClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
votes<T extends GalleryPost$votesArgs<ExtArgs> = {}>(args?: Subset<T, GalleryPost$votesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$GalleryVotePayload<ExtArgs>, T, "findMany"> | Null>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the GalleryPost model
*/
interface GalleryPostFieldRefs {
readonly id: FieldRef<"GalleryPost", 'String'>
readonly guildId: FieldRef<"GalleryPost", 'String'>
readonly channelId: FieldRef<"GalleryPost", 'String'>
readonly messageId: FieldRef<"GalleryPost", 'String'>
readonly userId: FieldRef<"GalleryPost", 'String'>
readonly userTag: FieldRef<"GalleryPost", 'String'>
readonly imageUrl: FieldRef<"GalleryPost", 'String'>
readonly caption: FieldRef<"GalleryPost", 'String'>
readonly createdAt: FieldRef<"GalleryPost", 'DateTime'>
}
// Custom InputTypes
/**
* GalleryPost findUnique
*/
export type GalleryPostFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GalleryPost
*/
select?: GalleryPostSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: GalleryPostInclude<ExtArgs> | null
/**
* Filter, which GalleryPost to fetch.
*/
where: GalleryPostWhereUniqueInput
}
/**
* GalleryPost findUniqueOrThrow
*/
export type GalleryPostFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GalleryPost
*/
select?: GalleryPostSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: GalleryPostInclude<ExtArgs> | null
/**
* Filter, which GalleryPost to fetch.
*/
where: GalleryPostWhereUniqueInput
}
/**
* GalleryPost findFirst
*/
export type GalleryPostFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GalleryPost
*/
select?: GalleryPostSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: GalleryPostInclude<ExtArgs> | null
/**
* Filter, which GalleryPost to fetch.
*/
where?: GalleryPostWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of GalleryPosts to fetch.
*/
orderBy?: GalleryPostOrderByWithRelationInput | GalleryPostOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for GalleryPosts.
*/
cursor?: GalleryPostWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` GalleryPosts 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` GalleryPosts.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of GalleryPosts.
*/
distinct?: GalleryPostScalarFieldEnum | GalleryPostScalarFieldEnum[]
}
/**
* GalleryPost findFirstOrThrow
*/
export type GalleryPostFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GalleryPost
*/
select?: GalleryPostSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: GalleryPostInclude<ExtArgs> | null
/**
* Filter, which GalleryPost to fetch.
*/
where?: GalleryPostWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of GalleryPosts to fetch.
*/
orderBy?: GalleryPostOrderByWithRelationInput | GalleryPostOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for GalleryPosts.
*/
cursor?: GalleryPostWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` GalleryPosts 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` GalleryPosts.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of GalleryPosts.
*/
distinct?: GalleryPostScalarFieldEnum | GalleryPostScalarFieldEnum[]
}
/**
* GalleryPost findMany
*/
export type GalleryPostFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GalleryPost
*/
select?: GalleryPostSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: GalleryPostInclude<ExtArgs> | null
/**
* Filter, which GalleryPosts to fetch.
*/
where?: GalleryPostWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of GalleryPosts to fetch.
*/
orderBy?: GalleryPostOrderByWithRelationInput | GalleryPostOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing GalleryPosts.
*/
cursor?: GalleryPostWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` GalleryPosts 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` GalleryPosts.
*/
skip?: number
distinct?: GalleryPostScalarFieldEnum | GalleryPostScalarFieldEnum[]
}
/**
* GalleryPost create
*/
export type GalleryPostCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GalleryPost
*/
select?: GalleryPostSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: GalleryPostInclude<ExtArgs> | null
/**
* The data needed to create a GalleryPost.
*/
data: XOR<GalleryPostCreateInput, GalleryPostUncheckedCreateInput>
}
/**
* GalleryPost createMany
*/
export type GalleryPostCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many GalleryPosts.
*/
data: GalleryPostCreateManyInput | GalleryPostCreateManyInput[]
skipDuplicates?: boolean
}
/**
* GalleryPost createManyAndReturn
*/
export type GalleryPostCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GalleryPost
*/
select?: GalleryPostSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many GalleryPosts.
*/
data: GalleryPostCreateManyInput | GalleryPostCreateManyInput[]
skipDuplicates?: boolean
}
/**
* GalleryPost update
*/
export type GalleryPostUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GalleryPost
*/
select?: GalleryPostSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: GalleryPostInclude<ExtArgs> | null
/**
* The data needed to update a GalleryPost.
*/
data: XOR<GalleryPostUpdateInput, GalleryPostUncheckedUpdateInput>
/**
* Choose, which GalleryPost to update.
*/
where: GalleryPostWhereUniqueInput
}
/**
* GalleryPost updateMany
*/
export type GalleryPostUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update GalleryPosts.
*/
data: XOR<GalleryPostUpdateManyMutationInput, GalleryPostUncheckedUpdateManyInput>
/**
* Filter which GalleryPosts to update
*/
where?: GalleryPostWhereInput
}
/**
* GalleryPost upsert
*/
export type GalleryPostUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GalleryPost
*/
select?: GalleryPostSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: GalleryPostInclude<ExtArgs> | null
/**
* The filter to search for the GalleryPost to update in case it exists.
*/
where: GalleryPostWhereUniqueInput
/**
* In case the GalleryPost found by the `where` argument doesn't exist, create a new GalleryPost with this data.
*/
create: XOR<GalleryPostCreateInput, GalleryPostUncheckedCreateInput>
/**
* In case the GalleryPost was found with the provided `where` argument, update it with this data.
*/
update: XOR<GalleryPostUpdateInput, GalleryPostUncheckedUpdateInput>
}
/**
* GalleryPost delete
*/
export type GalleryPostDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GalleryPost
*/
select?: GalleryPostSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: GalleryPostInclude<ExtArgs> | null
/**
* Filter which GalleryPost to delete.
*/
where: GalleryPostWhereUniqueInput
}
/**
* GalleryPost deleteMany
*/
export type GalleryPostDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which GalleryPosts to delete
*/
where?: GalleryPostWhereInput
}
/**
* GalleryPost.votes
*/
export type GalleryPost$votesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GalleryVote
*/
select?: GalleryVoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: GalleryVoteInclude<ExtArgs> | null
where?: GalleryVoteWhereInput
orderBy?: GalleryVoteOrderByWithRelationInput | GalleryVoteOrderByWithRelationInput[]
cursor?: GalleryVoteWhereUniqueInput
take?: number
skip?: number
distinct?: GalleryVoteScalarFieldEnum | GalleryVoteScalarFieldEnum[]
}
/**
* GalleryPost without action
*/
export type GalleryPostDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GalleryPost
*/
select?: GalleryPostSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: GalleryPostInclude<ExtArgs> | null
}
/**
* Model GalleryVote
*/
export type AggregateGalleryVote = {
_count: GalleryVoteCountAggregateOutputType | null
_min: GalleryVoteMinAggregateOutputType | null
_max: GalleryVoteMaxAggregateOutputType | null
}
export type GalleryVoteMinAggregateOutputType = {
id: string | null
postId: string | null
userId: string | null
}
export type GalleryVoteMaxAggregateOutputType = {
id: string | null
postId: string | null
userId: string | null
}
export type GalleryVoteCountAggregateOutputType = {
id: number
postId: number
userId: number
_all: number
}
export type GalleryVoteMinAggregateInputType = {
id?: true
postId?: true
userId?: true
}
export type GalleryVoteMaxAggregateInputType = {
id?: true
postId?: true
userId?: true
}
export type GalleryVoteCountAggregateInputType = {
id?: true
postId?: true
userId?: true
_all?: true
}
export type GalleryVoteAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which GalleryVote to aggregate.
*/
where?: GalleryVoteWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of GalleryVotes to fetch.
*/
orderBy?: GalleryVoteOrderByWithRelationInput | GalleryVoteOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: GalleryVoteWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` GalleryVotes 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` GalleryVotes.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned GalleryVotes
**/
_count?: true | GalleryVoteCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: GalleryVoteMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: GalleryVoteMaxAggregateInputType
}
export type GetGalleryVoteAggregateType<T extends GalleryVoteAggregateArgs> = {
[P in keyof T & keyof AggregateGalleryVote]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateGalleryVote[P]>
: GetScalarType<T[P], AggregateGalleryVote[P]>
}
export type GalleryVoteGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: GalleryVoteWhereInput
orderBy?: GalleryVoteOrderByWithAggregationInput | GalleryVoteOrderByWithAggregationInput[]
by: GalleryVoteScalarFieldEnum[] | GalleryVoteScalarFieldEnum
having?: GalleryVoteScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: GalleryVoteCountAggregateInputType | true
_min?: GalleryVoteMinAggregateInputType
_max?: GalleryVoteMaxAggregateInputType
}
export type GalleryVoteGroupByOutputType = {
id: string
postId: string
userId: string
_count: GalleryVoteCountAggregateOutputType | null
_min: GalleryVoteMinAggregateOutputType | null
_max: GalleryVoteMaxAggregateOutputType | null
}
type GetGalleryVoteGroupByPayload<T extends GalleryVoteGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<GalleryVoteGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof GalleryVoteGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], GalleryVoteGroupByOutputType[P]>
: GetScalarType<T[P], GalleryVoteGroupByOutputType[P]>
}
>
>
export type GalleryVoteSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
postId?: boolean
userId?: boolean
post?: boolean | GalleryPostDefaultArgs<ExtArgs>
}, ExtArgs["result"]["galleryVote"]>
export type GalleryVoteSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
postId?: boolean
userId?: boolean
post?: boolean | GalleryPostDefaultArgs<ExtArgs>
}, ExtArgs["result"]["galleryVote"]>
export type GalleryVoteSelectScalar = {
id?: boolean
postId?: boolean
userId?: boolean
}
export type GalleryVoteInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
post?: boolean | GalleryPostDefaultArgs<ExtArgs>
}
export type GalleryVoteIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
post?: boolean | GalleryPostDefaultArgs<ExtArgs>
}
export type $GalleryVotePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "GalleryVote"
objects: {
post: Prisma.$GalleryPostPayload<ExtArgs>
}
scalars: $Extensions.GetPayloadResult<{
id: string
postId: string
userId: string
}, ExtArgs["result"]["galleryVote"]>
composites: {}
}
type GalleryVoteGetPayload<S extends boolean | null | undefined | GalleryVoteDefaultArgs> = $Result.GetResult<Prisma.$GalleryVotePayload, S>
type GalleryVoteCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<GalleryVoteFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: GalleryVoteCountAggregateInputType | true
}
export interface GalleryVoteDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['GalleryVote'], meta: { name: 'GalleryVote' } }
/**
* Find zero or one GalleryVote that matches the filter.
* @param {GalleryVoteFindUniqueArgs} args - Arguments to find a GalleryVote
* @example
* // Get one GalleryVote
* const galleryVote = await prisma.galleryVote.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends GalleryVoteFindUniqueArgs>(args: SelectSubset<T, GalleryVoteFindUniqueArgs<ExtArgs>>): Prisma__GalleryVoteClient<$Result.GetResult<Prisma.$GalleryVotePayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one GalleryVote that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {GalleryVoteFindUniqueOrThrowArgs} args - Arguments to find a GalleryVote
* @example
* // Get one GalleryVote
* const galleryVote = await prisma.galleryVote.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends GalleryVoteFindUniqueOrThrowArgs>(args: SelectSubset<T, GalleryVoteFindUniqueOrThrowArgs<ExtArgs>>): Prisma__GalleryVoteClient<$Result.GetResult<Prisma.$GalleryVotePayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first GalleryVote 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 {GalleryVoteFindFirstArgs} args - Arguments to find a GalleryVote
* @example
* // Get one GalleryVote
* const galleryVote = await prisma.galleryVote.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends GalleryVoteFindFirstArgs>(args?: SelectSubset<T, GalleryVoteFindFirstArgs<ExtArgs>>): Prisma__GalleryVoteClient<$Result.GetResult<Prisma.$GalleryVotePayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first GalleryVote 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 {GalleryVoteFindFirstOrThrowArgs} args - Arguments to find a GalleryVote
* @example
* // Get one GalleryVote
* const galleryVote = await prisma.galleryVote.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends GalleryVoteFindFirstOrThrowArgs>(args?: SelectSubset<T, GalleryVoteFindFirstOrThrowArgs<ExtArgs>>): Prisma__GalleryVoteClient<$Result.GetResult<Prisma.$GalleryVotePayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more GalleryVotes 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 {GalleryVoteFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all GalleryVotes
* const galleryVotes = await prisma.galleryVote.findMany()
*
* // Get first 10 GalleryVotes
* const galleryVotes = await prisma.galleryVote.findMany({ take: 10 })
*
* // Only select the `id`
* const galleryVoteWithIdOnly = await prisma.galleryVote.findMany({ select: { id: true } })
*
*/
findMany<T extends GalleryVoteFindManyArgs>(args?: SelectSubset<T, GalleryVoteFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$GalleryVotePayload<ExtArgs>, T, "findMany">>
/**
* Create a GalleryVote.
* @param {GalleryVoteCreateArgs} args - Arguments to create a GalleryVote.
* @example
* // Create one GalleryVote
* const GalleryVote = await prisma.galleryVote.create({
* data: {
* // ... data to create a GalleryVote
* }
* })
*
*/
create<T extends GalleryVoteCreateArgs>(args: SelectSubset<T, GalleryVoteCreateArgs<ExtArgs>>): Prisma__GalleryVoteClient<$Result.GetResult<Prisma.$GalleryVotePayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many GalleryVotes.
* @param {GalleryVoteCreateManyArgs} args - Arguments to create many GalleryVotes.
* @example
* // Create many GalleryVotes
* const galleryVote = await prisma.galleryVote.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends GalleryVoteCreateManyArgs>(args?: SelectSubset<T, GalleryVoteCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many GalleryVotes and returns the data saved in the database.
* @param {GalleryVoteCreateManyAndReturnArgs} args - Arguments to create many GalleryVotes.
* @example
* // Create many GalleryVotes
* const galleryVote = await prisma.galleryVote.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many GalleryVotes and only return the `id`
* const galleryVoteWithIdOnly = await prisma.galleryVote.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 GalleryVoteCreateManyAndReturnArgs>(args?: SelectSubset<T, GalleryVoteCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$GalleryVotePayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a GalleryVote.
* @param {GalleryVoteDeleteArgs} args - Arguments to delete one GalleryVote.
* @example
* // Delete one GalleryVote
* const GalleryVote = await prisma.galleryVote.delete({
* where: {
* // ... filter to delete one GalleryVote
* }
* })
*
*/
delete<T extends GalleryVoteDeleteArgs>(args: SelectSubset<T, GalleryVoteDeleteArgs<ExtArgs>>): Prisma__GalleryVoteClient<$Result.GetResult<Prisma.$GalleryVotePayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one GalleryVote.
* @param {GalleryVoteUpdateArgs} args - Arguments to update one GalleryVote.
* @example
* // Update one GalleryVote
* const galleryVote = await prisma.galleryVote.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends GalleryVoteUpdateArgs>(args: SelectSubset<T, GalleryVoteUpdateArgs<ExtArgs>>): Prisma__GalleryVoteClient<$Result.GetResult<Prisma.$GalleryVotePayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more GalleryVotes.
* @param {GalleryVoteDeleteManyArgs} args - Arguments to filter GalleryVotes to delete.
* @example
* // Delete a few GalleryVotes
* const { count } = await prisma.galleryVote.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends GalleryVoteDeleteManyArgs>(args?: SelectSubset<T, GalleryVoteDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more GalleryVotes.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {GalleryVoteUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many GalleryVotes
* const galleryVote = await prisma.galleryVote.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends GalleryVoteUpdateManyArgs>(args: SelectSubset<T, GalleryVoteUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one GalleryVote.
* @param {GalleryVoteUpsertArgs} args - Arguments to update or create a GalleryVote.
* @example
* // Update or create a GalleryVote
* const galleryVote = await prisma.galleryVote.upsert({
* create: {
* // ... data to create a GalleryVote
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the GalleryVote we want to update
* }
* })
*/
upsert<T extends GalleryVoteUpsertArgs>(args: SelectSubset<T, GalleryVoteUpsertArgs<ExtArgs>>): Prisma__GalleryVoteClient<$Result.GetResult<Prisma.$GalleryVotePayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of GalleryVotes.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {GalleryVoteCountArgs} args - Arguments to filter GalleryVotes to count.
* @example
* // Count the number of GalleryVotes
* const count = await prisma.galleryVote.count({
* where: {
* // ... the filter for the GalleryVotes we want to count
* }
* })
**/
count<T extends GalleryVoteCountArgs>(
args?: Subset<T, GalleryVoteCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], GalleryVoteCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a GalleryVote.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {GalleryVoteAggregateArgs} 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 GalleryVoteAggregateArgs>(args: Subset<T, GalleryVoteAggregateArgs>): Prisma.PrismaPromise<GetGalleryVoteAggregateType<T>>
/**
* Group by GalleryVote.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {GalleryVoteGroupByArgs} 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 GalleryVoteGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: GalleryVoteGroupByArgs['orderBy'] }
: { orderBy?: GalleryVoteGroupByArgs['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, GalleryVoteGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetGalleryVoteGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the GalleryVote model
*/
readonly fields: GalleryVoteFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for GalleryVote.
* 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__GalleryVoteClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
post<T extends GalleryPostDefaultArgs<ExtArgs> = {}>(args?: Subset<T, GalleryPostDefaultArgs<ExtArgs>>): Prisma__GalleryPostClient<$Result.GetResult<Prisma.$GalleryPostPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the GalleryVote model
*/
interface GalleryVoteFieldRefs {
readonly id: FieldRef<"GalleryVote", 'String'>
readonly postId: FieldRef<"GalleryVote", 'String'>
readonly userId: FieldRef<"GalleryVote", 'String'>
}
// Custom InputTypes
/**
* GalleryVote findUnique
*/
export type GalleryVoteFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GalleryVote
*/
select?: GalleryVoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: GalleryVoteInclude<ExtArgs> | null
/**
* Filter, which GalleryVote to fetch.
*/
where: GalleryVoteWhereUniqueInput
}
/**
* GalleryVote findUniqueOrThrow
*/
export type GalleryVoteFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GalleryVote
*/
select?: GalleryVoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: GalleryVoteInclude<ExtArgs> | null
/**
* Filter, which GalleryVote to fetch.
*/
where: GalleryVoteWhereUniqueInput
}
/**
* GalleryVote findFirst
*/
export type GalleryVoteFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GalleryVote
*/
select?: GalleryVoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: GalleryVoteInclude<ExtArgs> | null
/**
* Filter, which GalleryVote to fetch.
*/
where?: GalleryVoteWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of GalleryVotes to fetch.
*/
orderBy?: GalleryVoteOrderByWithRelationInput | GalleryVoteOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for GalleryVotes.
*/
cursor?: GalleryVoteWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` GalleryVotes 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` GalleryVotes.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of GalleryVotes.
*/
distinct?: GalleryVoteScalarFieldEnum | GalleryVoteScalarFieldEnum[]
}
/**
* GalleryVote findFirstOrThrow
*/
export type GalleryVoteFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GalleryVote
*/
select?: GalleryVoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: GalleryVoteInclude<ExtArgs> | null
/**
* Filter, which GalleryVote to fetch.
*/
where?: GalleryVoteWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of GalleryVotes to fetch.
*/
orderBy?: GalleryVoteOrderByWithRelationInput | GalleryVoteOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for GalleryVotes.
*/
cursor?: GalleryVoteWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` GalleryVotes 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` GalleryVotes.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of GalleryVotes.
*/
distinct?: GalleryVoteScalarFieldEnum | GalleryVoteScalarFieldEnum[]
}
/**
* GalleryVote findMany
*/
export type GalleryVoteFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GalleryVote
*/
select?: GalleryVoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: GalleryVoteInclude<ExtArgs> | null
/**
* Filter, which GalleryVotes to fetch.
*/
where?: GalleryVoteWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of GalleryVotes to fetch.
*/
orderBy?: GalleryVoteOrderByWithRelationInput | GalleryVoteOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing GalleryVotes.
*/
cursor?: GalleryVoteWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` GalleryVotes 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` GalleryVotes.
*/
skip?: number
distinct?: GalleryVoteScalarFieldEnum | GalleryVoteScalarFieldEnum[]
}
/**
* GalleryVote create
*/
export type GalleryVoteCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GalleryVote
*/
select?: GalleryVoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: GalleryVoteInclude<ExtArgs> | null
/**
* The data needed to create a GalleryVote.
*/
data: XOR<GalleryVoteCreateInput, GalleryVoteUncheckedCreateInput>
}
/**
* GalleryVote createMany
*/
export type GalleryVoteCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many GalleryVotes.
*/
data: GalleryVoteCreateManyInput | GalleryVoteCreateManyInput[]
skipDuplicates?: boolean
}
/**
* GalleryVote createManyAndReturn
*/
export type GalleryVoteCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GalleryVote
*/
select?: GalleryVoteSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many GalleryVotes.
*/
data: GalleryVoteCreateManyInput | GalleryVoteCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: GalleryVoteIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* GalleryVote update
*/
export type GalleryVoteUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GalleryVote
*/
select?: GalleryVoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: GalleryVoteInclude<ExtArgs> | null
/**
* The data needed to update a GalleryVote.
*/
data: XOR<GalleryVoteUpdateInput, GalleryVoteUncheckedUpdateInput>
/**
* Choose, which GalleryVote to update.
*/
where: GalleryVoteWhereUniqueInput
}
/**
* GalleryVote updateMany
*/
export type GalleryVoteUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update GalleryVotes.
*/
data: XOR<GalleryVoteUpdateManyMutationInput, GalleryVoteUncheckedUpdateManyInput>
/**
* Filter which GalleryVotes to update
*/
where?: GalleryVoteWhereInput
}
/**
* GalleryVote upsert
*/
export type GalleryVoteUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GalleryVote
*/
select?: GalleryVoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: GalleryVoteInclude<ExtArgs> | null
/**
* The filter to search for the GalleryVote to update in case it exists.
*/
where: GalleryVoteWhereUniqueInput
/**
* In case the GalleryVote found by the `where` argument doesn't exist, create a new GalleryVote with this data.
*/
create: XOR<GalleryVoteCreateInput, GalleryVoteUncheckedCreateInput>
/**
* In case the GalleryVote was found with the provided `where` argument, update it with this data.
*/
update: XOR<GalleryVoteUpdateInput, GalleryVoteUncheckedUpdateInput>
}
/**
* GalleryVote delete
*/
export type GalleryVoteDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GalleryVote
*/
select?: GalleryVoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: GalleryVoteInclude<ExtArgs> | null
/**
* Filter which GalleryVote to delete.
*/
where: GalleryVoteWhereUniqueInput
}
/**
* GalleryVote deleteMany
*/
export type GalleryVoteDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which GalleryVotes to delete
*/
where?: GalleryVoteWhereInput
}
/**
* GalleryVote without action
*/
export type GalleryVoteDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GalleryVote
*/
select?: GalleryVoteSelect<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: GalleryVoteInclude<ExtArgs> | null
}
/**
* Model GuildGrowthEvent
*/
export type AggregateGuildGrowthEvent = {
_count: GuildGrowthEventCountAggregateOutputType | null
_min: GuildGrowthEventMinAggregateOutputType | null
_max: GuildGrowthEventMaxAggregateOutputType | null
}
export type GuildGrowthEventMinAggregateOutputType = {
id: string | null
guildId: string | null
type: string | null
userId: string | null
inviteCode: string | null
inviterId: string | null
suspicious: boolean | null
createdAt: Date | null
}
export type GuildGrowthEventMaxAggregateOutputType = {
id: string | null
guildId: string | null
type: string | null
userId: string | null
inviteCode: string | null
inviterId: string | null
suspicious: boolean | null
createdAt: Date | null
}
export type GuildGrowthEventCountAggregateOutputType = {
id: number
guildId: number
type: number
userId: number
inviteCode: number
inviterId: number
suspicious: number
createdAt: number
_all: number
}
export type GuildGrowthEventMinAggregateInputType = {
id?: true
guildId?: true
type?: true
userId?: true
inviteCode?: true
inviterId?: true
suspicious?: true
createdAt?: true
}
export type GuildGrowthEventMaxAggregateInputType = {
id?: true
guildId?: true
type?: true
userId?: true
inviteCode?: true
inviterId?: true
suspicious?: true
createdAt?: true
}
export type GuildGrowthEventCountAggregateInputType = {
id?: true
guildId?: true
type?: true
userId?: true
inviteCode?: true
inviterId?: true
suspicious?: true
createdAt?: true
_all?: true
}
export type GuildGrowthEventAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which GuildGrowthEvent to aggregate.
*/
where?: GuildGrowthEventWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of GuildGrowthEvents to fetch.
*/
orderBy?: GuildGrowthEventOrderByWithRelationInput | GuildGrowthEventOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: GuildGrowthEventWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` GuildGrowthEvents 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` GuildGrowthEvents.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned GuildGrowthEvents
**/
_count?: true | GuildGrowthEventCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: GuildGrowthEventMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: GuildGrowthEventMaxAggregateInputType
}
export type GetGuildGrowthEventAggregateType<T extends GuildGrowthEventAggregateArgs> = {
[P in keyof T & keyof AggregateGuildGrowthEvent]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateGuildGrowthEvent[P]>
: GetScalarType<T[P], AggregateGuildGrowthEvent[P]>
}
export type GuildGrowthEventGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: GuildGrowthEventWhereInput
orderBy?: GuildGrowthEventOrderByWithAggregationInput | GuildGrowthEventOrderByWithAggregationInput[]
by: GuildGrowthEventScalarFieldEnum[] | GuildGrowthEventScalarFieldEnum
having?: GuildGrowthEventScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: GuildGrowthEventCountAggregateInputType | true
_min?: GuildGrowthEventMinAggregateInputType
_max?: GuildGrowthEventMaxAggregateInputType
}
export type GuildGrowthEventGroupByOutputType = {
id: string
guildId: string
type: string
userId: string
inviteCode: string | null
inviterId: string | null
suspicious: boolean
createdAt: Date
_count: GuildGrowthEventCountAggregateOutputType | null
_min: GuildGrowthEventMinAggregateOutputType | null
_max: GuildGrowthEventMaxAggregateOutputType | null
}
type GetGuildGrowthEventGroupByPayload<T extends GuildGrowthEventGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<GuildGrowthEventGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof GuildGrowthEventGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], GuildGrowthEventGroupByOutputType[P]>
: GetScalarType<T[P], GuildGrowthEventGroupByOutputType[P]>
}
>
>
export type GuildGrowthEventSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
guildId?: boolean
type?: boolean
userId?: boolean
inviteCode?: boolean
inviterId?: boolean
suspicious?: boolean
createdAt?: boolean
}, ExtArgs["result"]["guildGrowthEvent"]>
export type GuildGrowthEventSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
guildId?: boolean
type?: boolean
userId?: boolean
inviteCode?: boolean
inviterId?: boolean
suspicious?: boolean
createdAt?: boolean
}, ExtArgs["result"]["guildGrowthEvent"]>
export type GuildGrowthEventSelectScalar = {
id?: boolean
guildId?: boolean
type?: boolean
userId?: boolean
inviteCode?: boolean
inviterId?: boolean
suspicious?: boolean
createdAt?: boolean
}
export type $GuildGrowthEventPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "GuildGrowthEvent"
objects: {}
scalars: $Extensions.GetPayloadResult<{
id: string
guildId: string
type: string
userId: string
inviteCode: string | null
inviterId: string | null
suspicious: boolean
createdAt: Date
}, ExtArgs["result"]["guildGrowthEvent"]>
composites: {}
}
type GuildGrowthEventGetPayload<S extends boolean | null | undefined | GuildGrowthEventDefaultArgs> = $Result.GetResult<Prisma.$GuildGrowthEventPayload, S>
type GuildGrowthEventCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<GuildGrowthEventFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: GuildGrowthEventCountAggregateInputType | true
}
export interface GuildGrowthEventDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['GuildGrowthEvent'], meta: { name: 'GuildGrowthEvent' } }
/**
* Find zero or one GuildGrowthEvent that matches the filter.
* @param {GuildGrowthEventFindUniqueArgs} args - Arguments to find a GuildGrowthEvent
* @example
* // Get one GuildGrowthEvent
* const guildGrowthEvent = await prisma.guildGrowthEvent.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends GuildGrowthEventFindUniqueArgs>(args: SelectSubset<T, GuildGrowthEventFindUniqueArgs<ExtArgs>>): Prisma__GuildGrowthEventClient<$Result.GetResult<Prisma.$GuildGrowthEventPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one GuildGrowthEvent that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {GuildGrowthEventFindUniqueOrThrowArgs} args - Arguments to find a GuildGrowthEvent
* @example
* // Get one GuildGrowthEvent
* const guildGrowthEvent = await prisma.guildGrowthEvent.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends GuildGrowthEventFindUniqueOrThrowArgs>(args: SelectSubset<T, GuildGrowthEventFindUniqueOrThrowArgs<ExtArgs>>): Prisma__GuildGrowthEventClient<$Result.GetResult<Prisma.$GuildGrowthEventPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first GuildGrowthEvent 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 {GuildGrowthEventFindFirstArgs} args - Arguments to find a GuildGrowthEvent
* @example
* // Get one GuildGrowthEvent
* const guildGrowthEvent = await prisma.guildGrowthEvent.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends GuildGrowthEventFindFirstArgs>(args?: SelectSubset<T, GuildGrowthEventFindFirstArgs<ExtArgs>>): Prisma__GuildGrowthEventClient<$Result.GetResult<Prisma.$GuildGrowthEventPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first GuildGrowthEvent 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 {GuildGrowthEventFindFirstOrThrowArgs} args - Arguments to find a GuildGrowthEvent
* @example
* // Get one GuildGrowthEvent
* const guildGrowthEvent = await prisma.guildGrowthEvent.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends GuildGrowthEventFindFirstOrThrowArgs>(args?: SelectSubset<T, GuildGrowthEventFindFirstOrThrowArgs<ExtArgs>>): Prisma__GuildGrowthEventClient<$Result.GetResult<Prisma.$GuildGrowthEventPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more GuildGrowthEvents 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 {GuildGrowthEventFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all GuildGrowthEvents
* const guildGrowthEvents = await prisma.guildGrowthEvent.findMany()
*
* // Get first 10 GuildGrowthEvents
* const guildGrowthEvents = await prisma.guildGrowthEvent.findMany({ take: 10 })
*
* // Only select the `id`
* const guildGrowthEventWithIdOnly = await prisma.guildGrowthEvent.findMany({ select: { id: true } })
*
*/
findMany<T extends GuildGrowthEventFindManyArgs>(args?: SelectSubset<T, GuildGrowthEventFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$GuildGrowthEventPayload<ExtArgs>, T, "findMany">>
/**
* Create a GuildGrowthEvent.
* @param {GuildGrowthEventCreateArgs} args - Arguments to create a GuildGrowthEvent.
* @example
* // Create one GuildGrowthEvent
* const GuildGrowthEvent = await prisma.guildGrowthEvent.create({
* data: {
* // ... data to create a GuildGrowthEvent
* }
* })
*
*/
create<T extends GuildGrowthEventCreateArgs>(args: SelectSubset<T, GuildGrowthEventCreateArgs<ExtArgs>>): Prisma__GuildGrowthEventClient<$Result.GetResult<Prisma.$GuildGrowthEventPayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many GuildGrowthEvents.
* @param {GuildGrowthEventCreateManyArgs} args - Arguments to create many GuildGrowthEvents.
* @example
* // Create many GuildGrowthEvents
* const guildGrowthEvent = await prisma.guildGrowthEvent.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends GuildGrowthEventCreateManyArgs>(args?: SelectSubset<T, GuildGrowthEventCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many GuildGrowthEvents and returns the data saved in the database.
* @param {GuildGrowthEventCreateManyAndReturnArgs} args - Arguments to create many GuildGrowthEvents.
* @example
* // Create many GuildGrowthEvents
* const guildGrowthEvent = await prisma.guildGrowthEvent.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many GuildGrowthEvents and only return the `id`
* const guildGrowthEventWithIdOnly = await prisma.guildGrowthEvent.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 GuildGrowthEventCreateManyAndReturnArgs>(args?: SelectSubset<T, GuildGrowthEventCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$GuildGrowthEventPayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a GuildGrowthEvent.
* @param {GuildGrowthEventDeleteArgs} args - Arguments to delete one GuildGrowthEvent.
* @example
* // Delete one GuildGrowthEvent
* const GuildGrowthEvent = await prisma.guildGrowthEvent.delete({
* where: {
* // ... filter to delete one GuildGrowthEvent
* }
* })
*
*/
delete<T extends GuildGrowthEventDeleteArgs>(args: SelectSubset<T, GuildGrowthEventDeleteArgs<ExtArgs>>): Prisma__GuildGrowthEventClient<$Result.GetResult<Prisma.$GuildGrowthEventPayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one GuildGrowthEvent.
* @param {GuildGrowthEventUpdateArgs} args - Arguments to update one GuildGrowthEvent.
* @example
* // Update one GuildGrowthEvent
* const guildGrowthEvent = await prisma.guildGrowthEvent.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends GuildGrowthEventUpdateArgs>(args: SelectSubset<T, GuildGrowthEventUpdateArgs<ExtArgs>>): Prisma__GuildGrowthEventClient<$Result.GetResult<Prisma.$GuildGrowthEventPayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more GuildGrowthEvents.
* @param {GuildGrowthEventDeleteManyArgs} args - Arguments to filter GuildGrowthEvents to delete.
* @example
* // Delete a few GuildGrowthEvents
* const { count } = await prisma.guildGrowthEvent.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends GuildGrowthEventDeleteManyArgs>(args?: SelectSubset<T, GuildGrowthEventDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more GuildGrowthEvents.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {GuildGrowthEventUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many GuildGrowthEvents
* const guildGrowthEvent = await prisma.guildGrowthEvent.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends GuildGrowthEventUpdateManyArgs>(args: SelectSubset<T, GuildGrowthEventUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one GuildGrowthEvent.
* @param {GuildGrowthEventUpsertArgs} args - Arguments to update or create a GuildGrowthEvent.
* @example
* // Update or create a GuildGrowthEvent
* const guildGrowthEvent = await prisma.guildGrowthEvent.upsert({
* create: {
* // ... data to create a GuildGrowthEvent
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the GuildGrowthEvent we want to update
* }
* })
*/
upsert<T extends GuildGrowthEventUpsertArgs>(args: SelectSubset<T, GuildGrowthEventUpsertArgs<ExtArgs>>): Prisma__GuildGrowthEventClient<$Result.GetResult<Prisma.$GuildGrowthEventPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of GuildGrowthEvents.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {GuildGrowthEventCountArgs} args - Arguments to filter GuildGrowthEvents to count.
* @example
* // Count the number of GuildGrowthEvents
* const count = await prisma.guildGrowthEvent.count({
* where: {
* // ... the filter for the GuildGrowthEvents we want to count
* }
* })
**/
count<T extends GuildGrowthEventCountArgs>(
args?: Subset<T, GuildGrowthEventCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], GuildGrowthEventCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a GuildGrowthEvent.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {GuildGrowthEventAggregateArgs} 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 GuildGrowthEventAggregateArgs>(args: Subset<T, GuildGrowthEventAggregateArgs>): Prisma.PrismaPromise<GetGuildGrowthEventAggregateType<T>>
/**
* Group by GuildGrowthEvent.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {GuildGrowthEventGroupByArgs} 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 GuildGrowthEventGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: GuildGrowthEventGroupByArgs['orderBy'] }
: { orderBy?: GuildGrowthEventGroupByArgs['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, GuildGrowthEventGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetGuildGrowthEventGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the GuildGrowthEvent model
*/
readonly fields: GuildGrowthEventFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for GuildGrowthEvent.
* 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__GuildGrowthEventClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the GuildGrowthEvent model
*/
interface GuildGrowthEventFieldRefs {
readonly id: FieldRef<"GuildGrowthEvent", 'String'>
readonly guildId: FieldRef<"GuildGrowthEvent", 'String'>
readonly type: FieldRef<"GuildGrowthEvent", 'String'>
readonly userId: FieldRef<"GuildGrowthEvent", 'String'>
readonly inviteCode: FieldRef<"GuildGrowthEvent", 'String'>
readonly inviterId: FieldRef<"GuildGrowthEvent", 'String'>
readonly suspicious: FieldRef<"GuildGrowthEvent", 'Boolean'>
readonly createdAt: FieldRef<"GuildGrowthEvent", 'DateTime'>
}
// Custom InputTypes
/**
* GuildGrowthEvent findUnique
*/
export type GuildGrowthEventFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GuildGrowthEvent
*/
select?: GuildGrowthEventSelect<ExtArgs> | null
/**
* Filter, which GuildGrowthEvent to fetch.
*/
where: GuildGrowthEventWhereUniqueInput
}
/**
* GuildGrowthEvent findUniqueOrThrow
*/
export type GuildGrowthEventFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GuildGrowthEvent
*/
select?: GuildGrowthEventSelect<ExtArgs> | null
/**
* Filter, which GuildGrowthEvent to fetch.
*/
where: GuildGrowthEventWhereUniqueInput
}
/**
* GuildGrowthEvent findFirst
*/
export type GuildGrowthEventFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GuildGrowthEvent
*/
select?: GuildGrowthEventSelect<ExtArgs> | null
/**
* Filter, which GuildGrowthEvent to fetch.
*/
where?: GuildGrowthEventWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of GuildGrowthEvents to fetch.
*/
orderBy?: GuildGrowthEventOrderByWithRelationInput | GuildGrowthEventOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for GuildGrowthEvents.
*/
cursor?: GuildGrowthEventWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` GuildGrowthEvents 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` GuildGrowthEvents.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of GuildGrowthEvents.
*/
distinct?: GuildGrowthEventScalarFieldEnum | GuildGrowthEventScalarFieldEnum[]
}
/**
* GuildGrowthEvent findFirstOrThrow
*/
export type GuildGrowthEventFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GuildGrowthEvent
*/
select?: GuildGrowthEventSelect<ExtArgs> | null
/**
* Filter, which GuildGrowthEvent to fetch.
*/
where?: GuildGrowthEventWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of GuildGrowthEvents to fetch.
*/
orderBy?: GuildGrowthEventOrderByWithRelationInput | GuildGrowthEventOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for GuildGrowthEvents.
*/
cursor?: GuildGrowthEventWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` GuildGrowthEvents 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` GuildGrowthEvents.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of GuildGrowthEvents.
*/
distinct?: GuildGrowthEventScalarFieldEnum | GuildGrowthEventScalarFieldEnum[]
}
/**
* GuildGrowthEvent findMany
*/
export type GuildGrowthEventFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GuildGrowthEvent
*/
select?: GuildGrowthEventSelect<ExtArgs> | null
/**
* Filter, which GuildGrowthEvents to fetch.
*/
where?: GuildGrowthEventWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of GuildGrowthEvents to fetch.
*/
orderBy?: GuildGrowthEventOrderByWithRelationInput | GuildGrowthEventOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing GuildGrowthEvents.
*/
cursor?: GuildGrowthEventWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` GuildGrowthEvents 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` GuildGrowthEvents.
*/
skip?: number
distinct?: GuildGrowthEventScalarFieldEnum | GuildGrowthEventScalarFieldEnum[]
}
/**
* GuildGrowthEvent create
*/
export type GuildGrowthEventCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GuildGrowthEvent
*/
select?: GuildGrowthEventSelect<ExtArgs> | null
/**
* The data needed to create a GuildGrowthEvent.
*/
data: XOR<GuildGrowthEventCreateInput, GuildGrowthEventUncheckedCreateInput>
}
/**
* GuildGrowthEvent createMany
*/
export type GuildGrowthEventCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many GuildGrowthEvents.
*/
data: GuildGrowthEventCreateManyInput | GuildGrowthEventCreateManyInput[]
skipDuplicates?: boolean
}
/**
* GuildGrowthEvent createManyAndReturn
*/
export type GuildGrowthEventCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GuildGrowthEvent
*/
select?: GuildGrowthEventSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many GuildGrowthEvents.
*/
data: GuildGrowthEventCreateManyInput | GuildGrowthEventCreateManyInput[]
skipDuplicates?: boolean
}
/**
* GuildGrowthEvent update
*/
export type GuildGrowthEventUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GuildGrowthEvent
*/
select?: GuildGrowthEventSelect<ExtArgs> | null
/**
* The data needed to update a GuildGrowthEvent.
*/
data: XOR<GuildGrowthEventUpdateInput, GuildGrowthEventUncheckedUpdateInput>
/**
* Choose, which GuildGrowthEvent to update.
*/
where: GuildGrowthEventWhereUniqueInput
}
/**
* GuildGrowthEvent updateMany
*/
export type GuildGrowthEventUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update GuildGrowthEvents.
*/
data: XOR<GuildGrowthEventUpdateManyMutationInput, GuildGrowthEventUncheckedUpdateManyInput>
/**
* Filter which GuildGrowthEvents to update
*/
where?: GuildGrowthEventWhereInput
}
/**
* GuildGrowthEvent upsert
*/
export type GuildGrowthEventUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GuildGrowthEvent
*/
select?: GuildGrowthEventSelect<ExtArgs> | null
/**
* The filter to search for the GuildGrowthEvent to update in case it exists.
*/
where: GuildGrowthEventWhereUniqueInput
/**
* In case the GuildGrowthEvent found by the `where` argument doesn't exist, create a new GuildGrowthEvent with this data.
*/
create: XOR<GuildGrowthEventCreateInput, GuildGrowthEventUncheckedCreateInput>
/**
* In case the GuildGrowthEvent was found with the provided `where` argument, update it with this data.
*/
update: XOR<GuildGrowthEventUpdateInput, GuildGrowthEventUncheckedUpdateInput>
}
/**
* GuildGrowthEvent delete
*/
export type GuildGrowthEventDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GuildGrowthEvent
*/
select?: GuildGrowthEventSelect<ExtArgs> | null
/**
* Filter which GuildGrowthEvent to delete.
*/
where: GuildGrowthEventWhereUniqueInput
}
/**
* GuildGrowthEvent deleteMany
*/
export type GuildGrowthEventDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which GuildGrowthEvents to delete
*/
where?: GuildGrowthEventWhereInput
}
/**
* GuildGrowthEvent without action
*/
export type GuildGrowthEventDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GuildGrowthEvent
*/
select?: GuildGrowthEventSelect<ExtArgs> | null
}
/**
* Model InfoPanel
*/
export type AggregateInfoPanel = {
_count: InfoPanelCountAggregateOutputType | null
_min: InfoPanelMinAggregateOutputType | null
_max: InfoPanelMaxAggregateOutputType | null
}
export type InfoPanelMinAggregateOutputType = {
id: string | null
guildId: string | null
channelId: string | null
messageId: string | null
type: string | null
title: string | null
description: string | null
createdAt: Date | null
}
export type InfoPanelMaxAggregateOutputType = {
id: string | null
guildId: string | null
channelId: string | null
messageId: string | null
type: string | null
title: string | null
description: string | null
createdAt: Date | null
}
export type InfoPanelCountAggregateOutputType = {
id: number
guildId: number
channelId: number
messageId: number
type: number
title: number
description: number
items: number
createdAt: number
_all: number
}
export type InfoPanelMinAggregateInputType = {
id?: true
guildId?: true
channelId?: true
messageId?: true
type?: true
title?: true
description?: true
createdAt?: true
}
export type InfoPanelMaxAggregateInputType = {
id?: true
guildId?: true
channelId?: true
messageId?: true
type?: true
title?: true
description?: true
createdAt?: true
}
export type InfoPanelCountAggregateInputType = {
id?: true
guildId?: true
channelId?: true
messageId?: true
type?: true
title?: true
description?: true
items?: true
createdAt?: true
_all?: true
}
export type InfoPanelAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which InfoPanel to aggregate.
*/
where?: InfoPanelWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of InfoPanels to fetch.
*/
orderBy?: InfoPanelOrderByWithRelationInput | InfoPanelOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: InfoPanelWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` InfoPanels 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` InfoPanels.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned InfoPanels
**/
_count?: true | InfoPanelCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: InfoPanelMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: InfoPanelMaxAggregateInputType
}
export type GetInfoPanelAggregateType<T extends InfoPanelAggregateArgs> = {
[P in keyof T & keyof AggregateInfoPanel]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateInfoPanel[P]>
: GetScalarType<T[P], AggregateInfoPanel[P]>
}
export type InfoPanelGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: InfoPanelWhereInput
orderBy?: InfoPanelOrderByWithAggregationInput | InfoPanelOrderByWithAggregationInput[]
by: InfoPanelScalarFieldEnum[] | InfoPanelScalarFieldEnum
having?: InfoPanelScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: InfoPanelCountAggregateInputType | true
_min?: InfoPanelMinAggregateInputType
_max?: InfoPanelMaxAggregateInputType
}
export type InfoPanelGroupByOutputType = {
id: string
guildId: string
channelId: string
messageId: string | null
type: string
title: string
description: string | null
items: JsonValue | null
createdAt: Date
_count: InfoPanelCountAggregateOutputType | null
_min: InfoPanelMinAggregateOutputType | null
_max: InfoPanelMaxAggregateOutputType | null
}
type GetInfoPanelGroupByPayload<T extends InfoPanelGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<InfoPanelGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof InfoPanelGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], InfoPanelGroupByOutputType[P]>
: GetScalarType<T[P], InfoPanelGroupByOutputType[P]>
}
>
>
export type InfoPanelSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
guildId?: boolean
channelId?: boolean
messageId?: boolean
type?: boolean
title?: boolean
description?: boolean
items?: boolean
createdAt?: boolean
}, ExtArgs["result"]["infoPanel"]>
export type InfoPanelSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
guildId?: boolean
channelId?: boolean
messageId?: boolean
type?: boolean
title?: boolean
description?: boolean
items?: boolean
createdAt?: boolean
}, ExtArgs["result"]["infoPanel"]>
export type InfoPanelSelectScalar = {
id?: boolean
guildId?: boolean
channelId?: boolean
messageId?: boolean
type?: boolean
title?: boolean
description?: boolean
items?: boolean
createdAt?: boolean
}
export type $InfoPanelPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "InfoPanel"
objects: {}
scalars: $Extensions.GetPayloadResult<{
id: string
guildId: string
channelId: string
messageId: string | null
type: string
title: string
description: string | null
items: Prisma.JsonValue | null
createdAt: Date
}, ExtArgs["result"]["infoPanel"]>
composites: {}
}
type InfoPanelGetPayload<S extends boolean | null | undefined | InfoPanelDefaultArgs> = $Result.GetResult<Prisma.$InfoPanelPayload, S>
type InfoPanelCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<InfoPanelFindManyArgs, 'select' | 'include' | 'distinct'> & {
select?: InfoPanelCountAggregateInputType | true
}
export interface InfoPanelDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['InfoPanel'], meta: { name: 'InfoPanel' } }
/**
* Find zero or one InfoPanel that matches the filter.
* @param {InfoPanelFindUniqueArgs} args - Arguments to find a InfoPanel
* @example
* // Get one InfoPanel
* const infoPanel = await prisma.infoPanel.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends InfoPanelFindUniqueArgs>(args: SelectSubset<T, InfoPanelFindUniqueArgs<ExtArgs>>): Prisma__InfoPanelClient<$Result.GetResult<Prisma.$InfoPanelPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
/**
* Find one InfoPanel that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {InfoPanelFindUniqueOrThrowArgs} args - Arguments to find a InfoPanel
* @example
* // Get one InfoPanel
* const infoPanel = await prisma.infoPanel.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends InfoPanelFindUniqueOrThrowArgs>(args: SelectSubset<T, InfoPanelFindUniqueOrThrowArgs<ExtArgs>>): Prisma__InfoPanelClient<$Result.GetResult<Prisma.$InfoPanelPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
/**
* Find the first InfoPanel 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 {InfoPanelFindFirstArgs} args - Arguments to find a InfoPanel
* @example
* // Get one InfoPanel
* const infoPanel = await prisma.infoPanel.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends InfoPanelFindFirstArgs>(args?: SelectSubset<T, InfoPanelFindFirstArgs<ExtArgs>>): Prisma__InfoPanelClient<$Result.GetResult<Prisma.$InfoPanelPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
/**
* Find the first InfoPanel 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 {InfoPanelFindFirstOrThrowArgs} args - Arguments to find a InfoPanel
* @example
* // Get one InfoPanel
* const infoPanel = await prisma.infoPanel.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends InfoPanelFindFirstOrThrowArgs>(args?: SelectSubset<T, InfoPanelFindFirstOrThrowArgs<ExtArgs>>): Prisma__InfoPanelClient<$Result.GetResult<Prisma.$InfoPanelPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
/**
* Find zero or more InfoPanels 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 {InfoPanelFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all InfoPanels
* const infoPanels = await prisma.infoPanel.findMany()
*
* // Get first 10 InfoPanels
* const infoPanels = await prisma.infoPanel.findMany({ take: 10 })
*
* // Only select the `id`
* const infoPanelWithIdOnly = await prisma.infoPanel.findMany({ select: { id: true } })
*
*/
findMany<T extends InfoPanelFindManyArgs>(args?: SelectSubset<T, InfoPanelFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$InfoPanelPayload<ExtArgs>, T, "findMany">>
/**
* Create a InfoPanel.
* @param {InfoPanelCreateArgs} args - Arguments to create a InfoPanel.
* @example
* // Create one InfoPanel
* const InfoPanel = await prisma.infoPanel.create({
* data: {
* // ... data to create a InfoPanel
* }
* })
*
*/
create<T extends InfoPanelCreateArgs>(args: SelectSubset<T, InfoPanelCreateArgs<ExtArgs>>): Prisma__InfoPanelClient<$Result.GetResult<Prisma.$InfoPanelPayload<ExtArgs>, T, "create">, never, ExtArgs>
/**
* Create many InfoPanels.
* @param {InfoPanelCreateManyArgs} args - Arguments to create many InfoPanels.
* @example
* // Create many InfoPanels
* const infoPanel = await prisma.infoPanel.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends InfoPanelCreateManyArgs>(args?: SelectSubset<T, InfoPanelCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create many InfoPanels and returns the data saved in the database.
* @param {InfoPanelCreateManyAndReturnArgs} args - Arguments to create many InfoPanels.
* @example
* // Create many InfoPanels
* const infoPanel = await prisma.infoPanel.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many InfoPanels and only return the `id`
* const infoPanelWithIdOnly = await prisma.infoPanel.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 InfoPanelCreateManyAndReturnArgs>(args?: SelectSubset<T, InfoPanelCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$InfoPanelPayload<ExtArgs>, T, "createManyAndReturn">>
/**
* Delete a InfoPanel.
* @param {InfoPanelDeleteArgs} args - Arguments to delete one InfoPanel.
* @example
* // Delete one InfoPanel
* const InfoPanel = await prisma.infoPanel.delete({
* where: {
* // ... filter to delete one InfoPanel
* }
* })
*
*/
delete<T extends InfoPanelDeleteArgs>(args: SelectSubset<T, InfoPanelDeleteArgs<ExtArgs>>): Prisma__InfoPanelClient<$Result.GetResult<Prisma.$InfoPanelPayload<ExtArgs>, T, "delete">, never, ExtArgs>
/**
* Update one InfoPanel.
* @param {InfoPanelUpdateArgs} args - Arguments to update one InfoPanel.
* @example
* // Update one InfoPanel
* const infoPanel = await prisma.infoPanel.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends InfoPanelUpdateArgs>(args: SelectSubset<T, InfoPanelUpdateArgs<ExtArgs>>): Prisma__InfoPanelClient<$Result.GetResult<Prisma.$InfoPanelPayload<ExtArgs>, T, "update">, never, ExtArgs>
/**
* Delete zero or more InfoPanels.
* @param {InfoPanelDeleteManyArgs} args - Arguments to filter InfoPanels to delete.
* @example
* // Delete a few InfoPanels
* const { count } = await prisma.infoPanel.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends InfoPanelDeleteManyArgs>(args?: SelectSubset<T, InfoPanelDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Update zero or more InfoPanels.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {InfoPanelUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many InfoPanels
* const infoPanel = await prisma.infoPanel.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends InfoPanelUpdateManyArgs>(args: SelectSubset<T, InfoPanelUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* Create or update one InfoPanel.
* @param {InfoPanelUpsertArgs} args - Arguments to update or create a InfoPanel.
* @example
* // Update or create a InfoPanel
* const infoPanel = await prisma.infoPanel.upsert({
* create: {
* // ... data to create a InfoPanel
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the InfoPanel we want to update
* }
* })
*/
upsert<T extends InfoPanelUpsertArgs>(args: SelectSubset<T, InfoPanelUpsertArgs<ExtArgs>>): Prisma__InfoPanelClient<$Result.GetResult<Prisma.$InfoPanelPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
/**
* Count the number of InfoPanels.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {InfoPanelCountArgs} args - Arguments to filter InfoPanels to count.
* @example
* // Count the number of InfoPanels
* const count = await prisma.infoPanel.count({
* where: {
* // ... the filter for the InfoPanels we want to count
* }
* })
**/
count<T extends InfoPanelCountArgs>(
args?: Subset<T, InfoPanelCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], InfoPanelCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a InfoPanel.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {InfoPanelAggregateArgs} 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 InfoPanelAggregateArgs>(args: Subset<T, InfoPanelAggregateArgs>): Prisma.PrismaPromise<GetInfoPanelAggregateType<T>>
/**
* Group by InfoPanel.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {InfoPanelGroupByArgs} 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 InfoPanelGroupByArgs,
HasSelectOrTake extends Or<
Extends<'skip', Keys<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: InfoPanelGroupByArgs['orderBy'] }
: { orderBy?: InfoPanelGroupByArgs['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, InfoPanelGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetInfoPanelGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the InfoPanel model
*/
readonly fields: InfoPanelFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for InfoPanel.
* 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__InfoPanelClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
}
/**
* Fields of the InfoPanel model
*/
interface InfoPanelFieldRefs {
readonly id: FieldRef<"InfoPanel", 'String'>
readonly guildId: FieldRef<"InfoPanel", 'String'>
readonly channelId: FieldRef<"InfoPanel", 'String'>
readonly messageId: FieldRef<"InfoPanel", 'String'>
readonly type: FieldRef<"InfoPanel", 'String'>
readonly title: FieldRef<"InfoPanel", 'String'>
readonly description: FieldRef<"InfoPanel", 'String'>
readonly items: FieldRef<"InfoPanel", 'Json'>
readonly createdAt: FieldRef<"InfoPanel", 'DateTime'>
}
// Custom InputTypes
/**
* InfoPanel findUnique
*/
export type InfoPanelFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the InfoPanel
*/
select?: InfoPanelSelect<ExtArgs> | null
/**
* Filter, which InfoPanel to fetch.
*/
where: InfoPanelWhereUniqueInput
}
/**
* InfoPanel findUniqueOrThrow
*/
export type InfoPanelFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the InfoPanel
*/
select?: InfoPanelSelect<ExtArgs> | null
/**
* Filter, which InfoPanel to fetch.
*/
where: InfoPanelWhereUniqueInput
}
/**
* InfoPanel findFirst
*/
export type InfoPanelFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the InfoPanel
*/
select?: InfoPanelSelect<ExtArgs> | null
/**
* Filter, which InfoPanel to fetch.
*/
where?: InfoPanelWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of InfoPanels to fetch.
*/
orderBy?: InfoPanelOrderByWithRelationInput | InfoPanelOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for InfoPanels.
*/
cursor?: InfoPanelWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` InfoPanels 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` InfoPanels.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of InfoPanels.
*/
distinct?: InfoPanelScalarFieldEnum | InfoPanelScalarFieldEnum[]
}
/**
* InfoPanel findFirstOrThrow
*/
export type InfoPanelFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the InfoPanel
*/
select?: InfoPanelSelect<ExtArgs> | null
/**
* Filter, which InfoPanel to fetch.
*/
where?: InfoPanelWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of InfoPanels to fetch.
*/
orderBy?: InfoPanelOrderByWithRelationInput | InfoPanelOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for InfoPanels.
*/
cursor?: InfoPanelWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` InfoPanels 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` InfoPanels.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of InfoPanels.
*/
distinct?: InfoPanelScalarFieldEnum | InfoPanelScalarFieldEnum[]
}
/**
* InfoPanel findMany
*/
export type InfoPanelFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the InfoPanel
*/
select?: InfoPanelSelect<ExtArgs> | null
/**
* Filter, which InfoPanels to fetch.
*/
where?: InfoPanelWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of InfoPanels to fetch.
*/
orderBy?: InfoPanelOrderByWithRelationInput | InfoPanelOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing InfoPanels.
*/
cursor?: InfoPanelWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` InfoPanels 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` InfoPanels.
*/
skip?: number
distinct?: InfoPanelScalarFieldEnum | InfoPanelScalarFieldEnum[]
}
/**
* InfoPanel create
*/
export type InfoPanelCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the InfoPanel
*/
select?: InfoPanelSelect<ExtArgs> | null
/**
* The data needed to create a InfoPanel.
*/
data: XOR<InfoPanelCreateInput, InfoPanelUncheckedCreateInput>
}
/**
* InfoPanel createMany
*/
export type InfoPanelCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many InfoPanels.
*/
data: InfoPanelCreateManyInput | InfoPanelCreateManyInput[]
skipDuplicates?: boolean
}
/**
* InfoPanel createManyAndReturn
*/
export type InfoPanelCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the InfoPanel
*/
select?: InfoPanelSelectCreateManyAndReturn<ExtArgs> | null
/**
* The data used to create many InfoPanels.
*/
data: InfoPanelCreateManyInput | InfoPanelCreateManyInput[]
skipDuplicates?: boolean
}
/**
* InfoPanel update
*/
export type InfoPanelUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the InfoPanel
*/
select?: InfoPanelSelect<ExtArgs> | null
/**
* The data needed to update a InfoPanel.
*/
data: XOR<InfoPanelUpdateInput, InfoPanelUncheckedUpdateInput>
/**
* Choose, which InfoPanel to update.
*/
where: InfoPanelWhereUniqueInput
}
/**
* InfoPanel updateMany
*/
export type InfoPanelUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update InfoPanels.
*/
data: XOR<InfoPanelUpdateManyMutationInput, InfoPanelUncheckedUpdateManyInput>
/**
* Filter which InfoPanels to update
*/
where?: InfoPanelWhereInput
}
/**
* InfoPanel upsert
*/
export type InfoPanelUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the InfoPanel
*/
select?: InfoPanelSelect<ExtArgs> | null
/**
* The filter to search for the InfoPanel to update in case it exists.
*/
where: InfoPanelWhereUniqueInput
/**
* In case the InfoPanel found by the `where` argument doesn't exist, create a new InfoPanel with this data.
*/
create: XOR<InfoPanelCreateInput, InfoPanelUncheckedCreateInput>
/**
* In case the InfoPanel was found with the provided `where` argument, update it with this data.
*/
update: XOR<InfoPanelUpdateInput, InfoPanelUncheckedUpdateInput>
}
/**
* InfoPanel delete
*/
export type InfoPanelDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the InfoPanel
*/
select?: InfoPanelSelect<ExtArgs> | null
/**
* Filter which InfoPanel to delete.
*/
where: InfoPanelWhereUniqueInput
}
/**
* InfoPanel deleteMany
*/
export type InfoPanelDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which InfoPanels to delete
*/
where?: InfoPanelWhereInput
}
/**
* InfoPanel without action
*/
export type InfoPanelDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the InfoPanel
*/
select?: InfoPanelSelect<ExtArgs> | null
}
/**
* Enums
*/
export const TransactionIsolationLevel: {
ReadUncommitted: 'ReadUncommitted',
ReadCommitted: 'ReadCommitted',
RepeatableRead: 'RepeatableRead',
Serializable: 'Serializable'
};
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
export const GuildSettingsScalarFieldEnum: {
guildId: 'guildId',
welcomeChannelId: 'welcomeChannelId',
logChannelId: 'logChannelId',
automodEnabled: 'automodEnabled',
automodConfig: 'automodConfig',
levelingEnabled: 'levelingEnabled',
ticketsEnabled: 'ticketsEnabled',
musicEnabled: 'musicEnabled',
statuspageEnabled: 'statuspageEnabled',
statuspageConfig: 'statuspageConfig',
dynamicVoiceEnabled: 'dynamicVoiceEnabled',
dynamicVoiceConfig: 'dynamicVoiceConfig',
supportLoginConfig: 'supportLoginConfig',
birthdayEnabled: 'birthdayEnabled',
birthdayConfig: 'birthdayConfig',
reactionRolesEnabled: 'reactionRolesEnabled',
reactionRolesConfig: 'reactionRolesConfig',
eventsEnabled: 'eventsEnabled',
registerEnabled: 'registerEnabled',
registerConfig: 'registerConfig',
serverStatsEnabled: 'serverStatsEnabled',
serverStatsConfig: 'serverStatsConfig',
lockdownConfig: 'lockdownConfig',
tasksEnabled: 'tasksEnabled',
badgesEnabled: 'badgesEnabled',
brandingConfig: 'brandingConfig',
partnerConfig: 'partnerConfig',
galleryConfig: 'galleryConfig',
imageModerationConfig: 'imageModerationConfig',
ticketConfig: 'ticketConfig',
supportRoleId: 'supportRoleId',
updatedAt: 'updatedAt',
createdAt: 'createdAt'
};
export type GuildSettingsScalarFieldEnum = (typeof GuildSettingsScalarFieldEnum)[keyof typeof GuildSettingsScalarFieldEnum]
export const TicketScalarFieldEnum: {
id: 'id',
ticketNumber: 'ticketNumber',
userId: 'userId',
channelId: 'channelId',
guildId: 'guildId',
topic: 'topic',
priority: 'priority',
status: 'status',
claimedBy: 'claimedBy',
transcript: 'transcript',
firstClaimAt: 'firstClaimAt',
firstResponseAt: 'firstResponseAt',
kbSuggestionSentAt: 'kbSuggestionSentAt',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
export type TicketScalarFieldEnum = (typeof TicketScalarFieldEnum)[keyof typeof TicketScalarFieldEnum]
export const TicketAutomationRuleScalarFieldEnum: {
id: 'id',
guildId: 'guildId',
name: 'name',
condition: 'condition',
action: 'action',
active: 'active',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
export type TicketAutomationRuleScalarFieldEnum = (typeof TicketAutomationRuleScalarFieldEnum)[keyof typeof TicketAutomationRuleScalarFieldEnum]
export const KnowledgeBaseArticleScalarFieldEnum: {
id: 'id',
guildId: 'guildId',
title: 'title',
keywords: 'keywords',
content: 'content',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
export type KnowledgeBaseArticleScalarFieldEnum = (typeof KnowledgeBaseArticleScalarFieldEnum)[keyof typeof KnowledgeBaseArticleScalarFieldEnum]
export const LevelScalarFieldEnum: {
id: 'id',
userId: 'userId',
guildId: 'guildId',
xp: 'xp',
level: 'level',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
export type LevelScalarFieldEnum = (typeof LevelScalarFieldEnum)[keyof typeof LevelScalarFieldEnum]
export const TicketSupportSessionScalarFieldEnum: {
id: 'id',
guildId: 'guildId',
userId: 'userId',
roleId: 'roleId',
startedAt: 'startedAt',
endedAt: 'endedAt',
durationSeconds: 'durationSeconds'
};
export type TicketSupportSessionScalarFieldEnum = (typeof TicketSupportSessionScalarFieldEnum)[keyof typeof TicketSupportSessionScalarFieldEnum]
export const BirthdayScalarFieldEnum: {
id: 'id',
userId: 'userId',
guildId: 'guildId',
birthDate: 'birthDate',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
export type BirthdayScalarFieldEnum = (typeof BirthdayScalarFieldEnum)[keyof typeof BirthdayScalarFieldEnum]
export const ReactionRoleSetScalarFieldEnum: {
id: 'id',
guildId: 'guildId',
channelId: 'channelId',
messageId: 'messageId',
title: 'title',
description: 'description',
entries: 'entries',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
export type ReactionRoleSetScalarFieldEnum = (typeof ReactionRoleSetScalarFieldEnum)[keyof typeof ReactionRoleSetScalarFieldEnum]
export const EventScalarFieldEnum: {
id: 'id',
guildId: 'guildId',
title: 'title',
description: 'description',
channelId: 'channelId',
startTime: 'startTime',
repeatType: 'repeatType',
repeatConfig: 'repeatConfig',
reminderOffsetMinutes: 'reminderOffsetMinutes',
roleId: 'roleId',
isActive: 'isActive',
lastReminderAt: 'lastReminderAt',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
export type EventScalarFieldEnum = (typeof EventScalarFieldEnum)[keyof typeof EventScalarFieldEnum]
export const EventSignupScalarFieldEnum: {
id: 'id',
eventId: 'eventId',
guildId: 'guildId',
userId: 'userId',
createdAt: 'createdAt',
canceledAt: 'canceledAt'
};
export type EventSignupScalarFieldEnum = (typeof EventSignupScalarFieldEnum)[keyof typeof EventSignupScalarFieldEnum]
export const RegisterFormScalarFieldEnum: {
id: 'id',
guildId: 'guildId',
name: 'name',
description: 'description',
reviewChannelId: 'reviewChannelId',
notifyRoleIds: 'notifyRoleIds',
isActive: 'isActive',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
export type RegisterFormScalarFieldEnum = (typeof RegisterFormScalarFieldEnum)[keyof typeof RegisterFormScalarFieldEnum]
export const RegisterFormFieldScalarFieldEnum: {
id: 'id',
formId: 'formId',
label: 'label',
type: 'type',
required: 'required',
order: 'order'
};
export type RegisterFormFieldScalarFieldEnum = (typeof RegisterFormFieldScalarFieldEnum)[keyof typeof RegisterFormFieldScalarFieldEnum]
export const RegisterApplicationScalarFieldEnum: {
id: 'id',
guildId: 'guildId',
userId: 'userId',
formId: 'formId',
status: 'status',
reviewedBy: 'reviewedBy',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
export type RegisterApplicationScalarFieldEnum = (typeof RegisterApplicationScalarFieldEnum)[keyof typeof RegisterApplicationScalarFieldEnum]
export const RegisterApplicationAnswerScalarFieldEnum: {
id: 'id',
applicationId: 'applicationId',
fieldId: 'fieldId',
value: 'value'
};
export type RegisterApplicationAnswerScalarFieldEnum = (typeof RegisterApplicationAnswerScalarFieldEnum)[keyof typeof RegisterApplicationAnswerScalarFieldEnum]
export const RegisterApplicationNoteScalarFieldEnum: {
id: 'id',
applicationId: 'applicationId',
authorId: 'authorId',
authorTag: 'authorTag',
body: 'body',
createdAt: 'createdAt'
};
export type RegisterApplicationNoteScalarFieldEnum = (typeof RegisterApplicationNoteScalarFieldEnum)[keyof typeof RegisterApplicationNoteScalarFieldEnum]
export const AutomodStrikeScalarFieldEnum: {
id: 'id',
guildId: 'guildId',
userId: 'userId',
filterKey: 'filterKey',
weight: 'weight',
reason: 'reason',
createdAt: 'createdAt'
};
export type AutomodStrikeScalarFieldEnum = (typeof AutomodStrikeScalarFieldEnum)[keyof typeof AutomodStrikeScalarFieldEnum]
export const StaffTaskScalarFieldEnum: {
id: 'id',
guildId: 'guildId',
title: 'title',
description: 'description',
status: 'status',
assigneeId: 'assigneeId',
createdBy: 'createdBy',
createdByTag: 'createdByTag',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
export type StaffTaskScalarFieldEnum = (typeof StaffTaskScalarFieldEnum)[keyof typeof StaffTaskScalarFieldEnum]
export const ModCaseScalarFieldEnum: {
id: 'id',
guildId: 'guildId',
userId: 'userId',
type: 'type',
reason: 'reason',
moderatorId: 'moderatorId',
moderatorTag: 'moderatorTag',
createdAt: 'createdAt'
};
export type ModCaseScalarFieldEnum = (typeof ModCaseScalarFieldEnum)[keyof typeof ModCaseScalarFieldEnum]
export const WatchlistScalarFieldEnum: {
id: 'id',
guildId: 'guildId',
userId: 'userId',
reason: 'reason',
addedBy: 'addedBy',
addedAt: 'addedAt',
active: 'active'
};
export type WatchlistScalarFieldEnum = (typeof WatchlistScalarFieldEnum)[keyof typeof WatchlistScalarFieldEnum]
export const UserBadgeScalarFieldEnum: {
id: 'id',
guildId: 'guildId',
userId: 'userId',
badgeKey: 'badgeKey',
awardedAt: 'awardedAt'
};
export type UserBadgeScalarFieldEnum = (typeof UserBadgeScalarFieldEnum)[keyof typeof UserBadgeScalarFieldEnum]
export const UserActivityScalarFieldEnum: {
id: 'id',
guildId: 'guildId',
userId: 'userId',
messageCount: 'messageCount',
activeDays: 'activeDays',
lastActiveDay: 'lastActiveDay'
};
export type UserActivityScalarFieldEnum = (typeof UserActivityScalarFieldEnum)[keyof typeof UserActivityScalarFieldEnum]
export const WeeklyPlanScalarFieldEnum: {
id: 'id',
guildId: 'guildId',
channelId: 'channelId',
messageId: 'messageId',
title: 'title',
entries: 'entries',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
export type WeeklyPlanScalarFieldEnum = (typeof WeeklyPlanScalarFieldEnum)[keyof typeof WeeklyPlanScalarFieldEnum]
export const WeeklyPlanRsvpScalarFieldEnum: {
id: 'id',
planId: 'planId',
entryId: 'entryId',
userId: 'userId',
createdAt: 'createdAt'
};
export type WeeklyPlanRsvpScalarFieldEnum = (typeof WeeklyPlanRsvpScalarFieldEnum)[keyof typeof WeeklyPlanRsvpScalarFieldEnum]
export const PollScalarFieldEnum: {
id: 'id',
guildId: 'guildId',
channelId: 'channelId',
messageId: 'messageId',
question: 'question',
options: 'options',
anonymous: 'anonymous',
closesAt: 'closesAt',
closed: 'closed',
createdBy: 'createdBy',
createdAt: 'createdAt'
};
export type PollScalarFieldEnum = (typeof PollScalarFieldEnum)[keyof typeof PollScalarFieldEnum]
export const PollVoteScalarFieldEnum: {
id: 'id',
pollId: 'pollId',
userId: 'userId',
optionId: 'optionId',
createdAt: 'createdAt'
};
export type PollVoteScalarFieldEnum = (typeof PollVoteScalarFieldEnum)[keyof typeof PollVoteScalarFieldEnum]
export const SuggestionScalarFieldEnum: {
id: 'id',
guildId: 'guildId',
channelId: 'channelId',
messageId: 'messageId',
userId: 'userId',
userTag: 'userTag',
content: 'content',
status: 'status',
createdAt: 'createdAt'
};
export type SuggestionScalarFieldEnum = (typeof SuggestionScalarFieldEnum)[keyof typeof SuggestionScalarFieldEnum]
export const SuggestionVoteScalarFieldEnum: {
id: 'id',
suggestionId: 'suggestionId',
userId: 'userId',
value: 'value'
};
export type SuggestionVoteScalarFieldEnum = (typeof SuggestionVoteScalarFieldEnum)[keyof typeof SuggestionVoteScalarFieldEnum]
export const PartnerRequestScalarFieldEnum: {
id: 'id',
guildId: 'guildId',
userId: 'userId',
userTag: 'userTag',
serverName: 'serverName',
inviteCode: 'inviteCode',
memberCount: 'memberCount',
description: 'description',
status: 'status',
reviewedBy: 'reviewedBy',
createdAt: 'createdAt'
};
export type PartnerRequestScalarFieldEnum = (typeof PartnerRequestScalarFieldEnum)[keyof typeof PartnerRequestScalarFieldEnum]
export const GalleryPostScalarFieldEnum: {
id: 'id',
guildId: 'guildId',
channelId: 'channelId',
messageId: 'messageId',
userId: 'userId',
userTag: 'userTag',
imageUrl: 'imageUrl',
caption: 'caption',
createdAt: 'createdAt'
};
export type GalleryPostScalarFieldEnum = (typeof GalleryPostScalarFieldEnum)[keyof typeof GalleryPostScalarFieldEnum]
export const GalleryVoteScalarFieldEnum: {
id: 'id',
postId: 'postId',
userId: 'userId'
};
export type GalleryVoteScalarFieldEnum = (typeof GalleryVoteScalarFieldEnum)[keyof typeof GalleryVoteScalarFieldEnum]
export const GuildGrowthEventScalarFieldEnum: {
id: 'id',
guildId: 'guildId',
type: 'type',
userId: 'userId',
inviteCode: 'inviteCode',
inviterId: 'inviterId',
suspicious: 'suspicious',
createdAt: 'createdAt'
};
export type GuildGrowthEventScalarFieldEnum = (typeof GuildGrowthEventScalarFieldEnum)[keyof typeof GuildGrowthEventScalarFieldEnum]
export const InfoPanelScalarFieldEnum: {
id: 'id',
guildId: 'guildId',
channelId: 'channelId',
messageId: 'messageId',
type: 'type',
title: 'title',
description: 'description',
items: 'items',
createdAt: 'createdAt'
};
export type InfoPanelScalarFieldEnum = (typeof InfoPanelScalarFieldEnum)[keyof typeof InfoPanelScalarFieldEnum]
export const SortOrder: {
asc: 'asc',
desc: 'desc'
};
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
export const NullableJsonNullValueInput: {
DbNull: typeof DbNull,
JsonNull: typeof JsonNull
};
export type NullableJsonNullValueInput = (typeof NullableJsonNullValueInput)[keyof typeof NullableJsonNullValueInput]
export const JsonNullValueInput: {
JsonNull: typeof JsonNull
};
export type JsonNullValueInput = (typeof JsonNullValueInput)[keyof typeof JsonNullValueInput]
export const QueryMode: {
default: 'default',
insensitive: 'insensitive'
};
export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
export const JsonNullValueFilter: {
DbNull: typeof DbNull,
JsonNull: typeof JsonNull,
AnyNull: typeof AnyNull
};
export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter]
export const NullsOrder: {
first: 'first',
last: 'last'
};
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
/**
* Field references
*/
/**
* Reference to a field of type 'String'
*/
export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'>
/**
* Reference to a field of type 'String[]'
*/
export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String[]'>
/**
* Reference to a field of type 'Boolean'
*/
export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'>
/**
* Reference to a field of type 'Json'
*/
export type JsonFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Json'>
/**
* Reference to a field of type 'DateTime'
*/
export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'>
/**
* Reference to a field of type 'DateTime[]'
*/
export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime[]'>
/**
* Reference to a field of type 'Int'
*/
export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>
/**
* Reference to a field of type 'Int[]'
*/
export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'>
/**
* Reference to a field of type 'Float'
*/
export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'>
/**
* Reference to a field of type 'Float[]'
*/
export type ListFloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float[]'>
/**
* Deep Input Types
*/
export type GuildSettingsWhereInput = {
AND?: GuildSettingsWhereInput | GuildSettingsWhereInput[]
OR?: GuildSettingsWhereInput[]
NOT?: GuildSettingsWhereInput | GuildSettingsWhereInput[]
guildId?: StringFilter<"GuildSettings"> | string
welcomeChannelId?: StringNullableFilter<"GuildSettings"> | string | null
logChannelId?: StringNullableFilter<"GuildSettings"> | string | null
automodEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null
automodConfig?: JsonNullableFilter<"GuildSettings">
levelingEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null
ticketsEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null
musicEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null
statuspageEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null
statuspageConfig?: JsonNullableFilter<"GuildSettings">
dynamicVoiceEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null
dynamicVoiceConfig?: JsonNullableFilter<"GuildSettings">
supportLoginConfig?: JsonNullableFilter<"GuildSettings">
birthdayEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null
birthdayConfig?: JsonNullableFilter<"GuildSettings">
reactionRolesEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null
reactionRolesConfig?: JsonNullableFilter<"GuildSettings">
eventsEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null
registerEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null
registerConfig?: JsonNullableFilter<"GuildSettings">
serverStatsEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null
serverStatsConfig?: JsonNullableFilter<"GuildSettings">
lockdownConfig?: JsonNullableFilter<"GuildSettings">
tasksEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null
badgesEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null
brandingConfig?: JsonNullableFilter<"GuildSettings">
partnerConfig?: JsonNullableFilter<"GuildSettings">
galleryConfig?: JsonNullableFilter<"GuildSettings">
imageModerationConfig?: JsonNullableFilter<"GuildSettings">
ticketConfig?: JsonNullableFilter<"GuildSettings">
supportRoleId?: StringNullableFilter<"GuildSettings"> | string | null
updatedAt?: DateTimeFilter<"GuildSettings"> | Date | string
createdAt?: DateTimeFilter<"GuildSettings"> | Date | string
}
export type GuildSettingsOrderByWithRelationInput = {
guildId?: SortOrder
welcomeChannelId?: SortOrderInput | SortOrder
logChannelId?: SortOrderInput | SortOrder
automodEnabled?: SortOrderInput | SortOrder
automodConfig?: SortOrderInput | SortOrder
levelingEnabled?: SortOrderInput | SortOrder
ticketsEnabled?: SortOrderInput | SortOrder
musicEnabled?: SortOrderInput | SortOrder
statuspageEnabled?: SortOrderInput | SortOrder
statuspageConfig?: SortOrderInput | SortOrder
dynamicVoiceEnabled?: SortOrderInput | SortOrder
dynamicVoiceConfig?: SortOrderInput | SortOrder
supportLoginConfig?: SortOrderInput | SortOrder
birthdayEnabled?: SortOrderInput | SortOrder
birthdayConfig?: SortOrderInput | SortOrder
reactionRolesEnabled?: SortOrderInput | SortOrder
reactionRolesConfig?: SortOrderInput | SortOrder
eventsEnabled?: SortOrderInput | SortOrder
registerEnabled?: SortOrderInput | SortOrder
registerConfig?: SortOrderInput | SortOrder
serverStatsEnabled?: SortOrderInput | SortOrder
serverStatsConfig?: SortOrderInput | SortOrder
lockdownConfig?: SortOrderInput | SortOrder
tasksEnabled?: SortOrderInput | SortOrder
badgesEnabled?: SortOrderInput | SortOrder
brandingConfig?: SortOrderInput | SortOrder
partnerConfig?: SortOrderInput | SortOrder
galleryConfig?: SortOrderInput | SortOrder
imageModerationConfig?: SortOrderInput | SortOrder
ticketConfig?: SortOrderInput | SortOrder
supportRoleId?: SortOrderInput | SortOrder
updatedAt?: SortOrder
createdAt?: SortOrder
}
export type GuildSettingsWhereUniqueInput = Prisma.AtLeast<{
guildId?: string
AND?: GuildSettingsWhereInput | GuildSettingsWhereInput[]
OR?: GuildSettingsWhereInput[]
NOT?: GuildSettingsWhereInput | GuildSettingsWhereInput[]
welcomeChannelId?: StringNullableFilter<"GuildSettings"> | string | null
logChannelId?: StringNullableFilter<"GuildSettings"> | string | null
automodEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null
automodConfig?: JsonNullableFilter<"GuildSettings">
levelingEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null
ticketsEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null
musicEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null
statuspageEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null
statuspageConfig?: JsonNullableFilter<"GuildSettings">
dynamicVoiceEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null
dynamicVoiceConfig?: JsonNullableFilter<"GuildSettings">
supportLoginConfig?: JsonNullableFilter<"GuildSettings">
birthdayEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null
birthdayConfig?: JsonNullableFilter<"GuildSettings">
reactionRolesEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null
reactionRolesConfig?: JsonNullableFilter<"GuildSettings">
eventsEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null
registerEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null
registerConfig?: JsonNullableFilter<"GuildSettings">
serverStatsEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null
serverStatsConfig?: JsonNullableFilter<"GuildSettings">
lockdownConfig?: JsonNullableFilter<"GuildSettings">
tasksEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null
badgesEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null
brandingConfig?: JsonNullableFilter<"GuildSettings">
partnerConfig?: JsonNullableFilter<"GuildSettings">
galleryConfig?: JsonNullableFilter<"GuildSettings">
imageModerationConfig?: JsonNullableFilter<"GuildSettings">
ticketConfig?: JsonNullableFilter<"GuildSettings">
supportRoleId?: StringNullableFilter<"GuildSettings"> | string | null
updatedAt?: DateTimeFilter<"GuildSettings"> | Date | string
createdAt?: DateTimeFilter<"GuildSettings"> | Date | string
}, "guildId">
export type GuildSettingsOrderByWithAggregationInput = {
guildId?: SortOrder
welcomeChannelId?: SortOrderInput | SortOrder
logChannelId?: SortOrderInput | SortOrder
automodEnabled?: SortOrderInput | SortOrder
automodConfig?: SortOrderInput | SortOrder
levelingEnabled?: SortOrderInput | SortOrder
ticketsEnabled?: SortOrderInput | SortOrder
musicEnabled?: SortOrderInput | SortOrder
statuspageEnabled?: SortOrderInput | SortOrder
statuspageConfig?: SortOrderInput | SortOrder
dynamicVoiceEnabled?: SortOrderInput | SortOrder
dynamicVoiceConfig?: SortOrderInput | SortOrder
supportLoginConfig?: SortOrderInput | SortOrder
birthdayEnabled?: SortOrderInput | SortOrder
birthdayConfig?: SortOrderInput | SortOrder
reactionRolesEnabled?: SortOrderInput | SortOrder
reactionRolesConfig?: SortOrderInput | SortOrder
eventsEnabled?: SortOrderInput | SortOrder
registerEnabled?: SortOrderInput | SortOrder
registerConfig?: SortOrderInput | SortOrder
serverStatsEnabled?: SortOrderInput | SortOrder
serverStatsConfig?: SortOrderInput | SortOrder
lockdownConfig?: SortOrderInput | SortOrder
tasksEnabled?: SortOrderInput | SortOrder
badgesEnabled?: SortOrderInput | SortOrder
brandingConfig?: SortOrderInput | SortOrder
partnerConfig?: SortOrderInput | SortOrder
galleryConfig?: SortOrderInput | SortOrder
imageModerationConfig?: SortOrderInput | SortOrder
ticketConfig?: SortOrderInput | SortOrder
supportRoleId?: SortOrderInput | SortOrder
updatedAt?: SortOrder
createdAt?: SortOrder
_count?: GuildSettingsCountOrderByAggregateInput
_max?: GuildSettingsMaxOrderByAggregateInput
_min?: GuildSettingsMinOrderByAggregateInput
}
export type GuildSettingsScalarWhereWithAggregatesInput = {
AND?: GuildSettingsScalarWhereWithAggregatesInput | GuildSettingsScalarWhereWithAggregatesInput[]
OR?: GuildSettingsScalarWhereWithAggregatesInput[]
NOT?: GuildSettingsScalarWhereWithAggregatesInput | GuildSettingsScalarWhereWithAggregatesInput[]
guildId?: StringWithAggregatesFilter<"GuildSettings"> | string
welcomeChannelId?: StringNullableWithAggregatesFilter<"GuildSettings"> | string | null
logChannelId?: StringNullableWithAggregatesFilter<"GuildSettings"> | string | null
automodEnabled?: BoolNullableWithAggregatesFilter<"GuildSettings"> | boolean | null
automodConfig?: JsonNullableWithAggregatesFilter<"GuildSettings">
levelingEnabled?: BoolNullableWithAggregatesFilter<"GuildSettings"> | boolean | null
ticketsEnabled?: BoolNullableWithAggregatesFilter<"GuildSettings"> | boolean | null
musicEnabled?: BoolNullableWithAggregatesFilter<"GuildSettings"> | boolean | null
statuspageEnabled?: BoolNullableWithAggregatesFilter<"GuildSettings"> | boolean | null
statuspageConfig?: JsonNullableWithAggregatesFilter<"GuildSettings">
dynamicVoiceEnabled?: BoolNullableWithAggregatesFilter<"GuildSettings"> | boolean | null
dynamicVoiceConfig?: JsonNullableWithAggregatesFilter<"GuildSettings">
supportLoginConfig?: JsonNullableWithAggregatesFilter<"GuildSettings">
birthdayEnabled?: BoolNullableWithAggregatesFilter<"GuildSettings"> | boolean | null
birthdayConfig?: JsonNullableWithAggregatesFilter<"GuildSettings">
reactionRolesEnabled?: BoolNullableWithAggregatesFilter<"GuildSettings"> | boolean | null
reactionRolesConfig?: JsonNullableWithAggregatesFilter<"GuildSettings">
eventsEnabled?: BoolNullableWithAggregatesFilter<"GuildSettings"> | boolean | null
registerEnabled?: BoolNullableWithAggregatesFilter<"GuildSettings"> | boolean | null
registerConfig?: JsonNullableWithAggregatesFilter<"GuildSettings">
serverStatsEnabled?: BoolNullableWithAggregatesFilter<"GuildSettings"> | boolean | null
serverStatsConfig?: JsonNullableWithAggregatesFilter<"GuildSettings">
lockdownConfig?: JsonNullableWithAggregatesFilter<"GuildSettings">
tasksEnabled?: BoolNullableWithAggregatesFilter<"GuildSettings"> | boolean | null
badgesEnabled?: BoolNullableWithAggregatesFilter<"GuildSettings"> | boolean | null
brandingConfig?: JsonNullableWithAggregatesFilter<"GuildSettings">
partnerConfig?: JsonNullableWithAggregatesFilter<"GuildSettings">
galleryConfig?: JsonNullableWithAggregatesFilter<"GuildSettings">
imageModerationConfig?: JsonNullableWithAggregatesFilter<"GuildSettings">
ticketConfig?: JsonNullableWithAggregatesFilter<"GuildSettings">
supportRoleId?: StringNullableWithAggregatesFilter<"GuildSettings"> | string | null
updatedAt?: DateTimeWithAggregatesFilter<"GuildSettings"> | Date | string
createdAt?: DateTimeWithAggregatesFilter<"GuildSettings"> | Date | string
}
export type TicketWhereInput = {
AND?: TicketWhereInput | TicketWhereInput[]
OR?: TicketWhereInput[]
NOT?: TicketWhereInput | TicketWhereInput[]
id?: StringFilter<"Ticket"> | string
ticketNumber?: IntFilter<"Ticket"> | number
userId?: StringFilter<"Ticket"> | string
channelId?: StringFilter<"Ticket"> | string
guildId?: StringFilter<"Ticket"> | string
topic?: StringNullableFilter<"Ticket"> | string | null
priority?: StringFilter<"Ticket"> | string
status?: StringFilter<"Ticket"> | string
claimedBy?: StringNullableFilter<"Ticket"> | string | null
transcript?: StringNullableFilter<"Ticket"> | string | null
firstClaimAt?: DateTimeNullableFilter<"Ticket"> | Date | string | null
firstResponseAt?: DateTimeNullableFilter<"Ticket"> | Date | string | null
kbSuggestionSentAt?: DateTimeNullableFilter<"Ticket"> | Date | string | null
createdAt?: DateTimeFilter<"Ticket"> | Date | string
updatedAt?: DateTimeFilter<"Ticket"> | Date | string
}
export type TicketOrderByWithRelationInput = {
id?: SortOrder
ticketNumber?: SortOrder
userId?: SortOrder
channelId?: SortOrder
guildId?: SortOrder
topic?: SortOrderInput | SortOrder
priority?: SortOrder
status?: SortOrder
claimedBy?: SortOrderInput | SortOrder
transcript?: SortOrderInput | SortOrder
firstClaimAt?: SortOrderInput | SortOrder
firstResponseAt?: SortOrderInput | SortOrder
kbSuggestionSentAt?: SortOrderInput | SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type TicketWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: TicketWhereInput | TicketWhereInput[]
OR?: TicketWhereInput[]
NOT?: TicketWhereInput | TicketWhereInput[]
ticketNumber?: IntFilter<"Ticket"> | number
userId?: StringFilter<"Ticket"> | string
channelId?: StringFilter<"Ticket"> | string
guildId?: StringFilter<"Ticket"> | string
topic?: StringNullableFilter<"Ticket"> | string | null
priority?: StringFilter<"Ticket"> | string
status?: StringFilter<"Ticket"> | string
claimedBy?: StringNullableFilter<"Ticket"> | string | null
transcript?: StringNullableFilter<"Ticket"> | string | null
firstClaimAt?: DateTimeNullableFilter<"Ticket"> | Date | string | null
firstResponseAt?: DateTimeNullableFilter<"Ticket"> | Date | string | null
kbSuggestionSentAt?: DateTimeNullableFilter<"Ticket"> | Date | string | null
createdAt?: DateTimeFilter<"Ticket"> | Date | string
updatedAt?: DateTimeFilter<"Ticket"> | Date | string
}, "id">
export type TicketOrderByWithAggregationInput = {
id?: SortOrder
ticketNumber?: SortOrder
userId?: SortOrder
channelId?: SortOrder
guildId?: SortOrder
topic?: SortOrderInput | SortOrder
priority?: SortOrder
status?: SortOrder
claimedBy?: SortOrderInput | SortOrder
transcript?: SortOrderInput | SortOrder
firstClaimAt?: SortOrderInput | SortOrder
firstResponseAt?: SortOrderInput | SortOrder
kbSuggestionSentAt?: SortOrderInput | SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
_count?: TicketCountOrderByAggregateInput
_avg?: TicketAvgOrderByAggregateInput
_max?: TicketMaxOrderByAggregateInput
_min?: TicketMinOrderByAggregateInput
_sum?: TicketSumOrderByAggregateInput
}
export type TicketScalarWhereWithAggregatesInput = {
AND?: TicketScalarWhereWithAggregatesInput | TicketScalarWhereWithAggregatesInput[]
OR?: TicketScalarWhereWithAggregatesInput[]
NOT?: TicketScalarWhereWithAggregatesInput | TicketScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"Ticket"> | string
ticketNumber?: IntWithAggregatesFilter<"Ticket"> | number
userId?: StringWithAggregatesFilter<"Ticket"> | string
channelId?: StringWithAggregatesFilter<"Ticket"> | string
guildId?: StringWithAggregatesFilter<"Ticket"> | string
topic?: StringNullableWithAggregatesFilter<"Ticket"> | string | null
priority?: StringWithAggregatesFilter<"Ticket"> | string
status?: StringWithAggregatesFilter<"Ticket"> | string
claimedBy?: StringNullableWithAggregatesFilter<"Ticket"> | string | null
transcript?: StringNullableWithAggregatesFilter<"Ticket"> | string | null
firstClaimAt?: DateTimeNullableWithAggregatesFilter<"Ticket"> | Date | string | null
firstResponseAt?: DateTimeNullableWithAggregatesFilter<"Ticket"> | Date | string | null
kbSuggestionSentAt?: DateTimeNullableWithAggregatesFilter<"Ticket"> | Date | string | null
createdAt?: DateTimeWithAggregatesFilter<"Ticket"> | Date | string
updatedAt?: DateTimeWithAggregatesFilter<"Ticket"> | Date | string
}
export type TicketAutomationRuleWhereInput = {
AND?: TicketAutomationRuleWhereInput | TicketAutomationRuleWhereInput[]
OR?: TicketAutomationRuleWhereInput[]
NOT?: TicketAutomationRuleWhereInput | TicketAutomationRuleWhereInput[]
id?: StringFilter<"TicketAutomationRule"> | string
guildId?: StringFilter<"TicketAutomationRule"> | string
name?: StringFilter<"TicketAutomationRule"> | string
condition?: JsonFilter<"TicketAutomationRule">
action?: JsonFilter<"TicketAutomationRule">
active?: BoolFilter<"TicketAutomationRule"> | boolean
createdAt?: DateTimeFilter<"TicketAutomationRule"> | Date | string
updatedAt?: DateTimeFilter<"TicketAutomationRule"> | Date | string
}
export type TicketAutomationRuleOrderByWithRelationInput = {
id?: SortOrder
guildId?: SortOrder
name?: SortOrder
condition?: SortOrder
action?: SortOrder
active?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type TicketAutomationRuleWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: TicketAutomationRuleWhereInput | TicketAutomationRuleWhereInput[]
OR?: TicketAutomationRuleWhereInput[]
NOT?: TicketAutomationRuleWhereInput | TicketAutomationRuleWhereInput[]
guildId?: StringFilter<"TicketAutomationRule"> | string
name?: StringFilter<"TicketAutomationRule"> | string
condition?: JsonFilter<"TicketAutomationRule">
action?: JsonFilter<"TicketAutomationRule">
active?: BoolFilter<"TicketAutomationRule"> | boolean
createdAt?: DateTimeFilter<"TicketAutomationRule"> | Date | string
updatedAt?: DateTimeFilter<"TicketAutomationRule"> | Date | string
}, "id">
export type TicketAutomationRuleOrderByWithAggregationInput = {
id?: SortOrder
guildId?: SortOrder
name?: SortOrder
condition?: SortOrder
action?: SortOrder
active?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
_count?: TicketAutomationRuleCountOrderByAggregateInput
_max?: TicketAutomationRuleMaxOrderByAggregateInput
_min?: TicketAutomationRuleMinOrderByAggregateInput
}
export type TicketAutomationRuleScalarWhereWithAggregatesInput = {
AND?: TicketAutomationRuleScalarWhereWithAggregatesInput | TicketAutomationRuleScalarWhereWithAggregatesInput[]
OR?: TicketAutomationRuleScalarWhereWithAggregatesInput[]
NOT?: TicketAutomationRuleScalarWhereWithAggregatesInput | TicketAutomationRuleScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"TicketAutomationRule"> | string
guildId?: StringWithAggregatesFilter<"TicketAutomationRule"> | string
name?: StringWithAggregatesFilter<"TicketAutomationRule"> | string
condition?: JsonWithAggregatesFilter<"TicketAutomationRule">
action?: JsonWithAggregatesFilter<"TicketAutomationRule">
active?: BoolWithAggregatesFilter<"TicketAutomationRule"> | boolean
createdAt?: DateTimeWithAggregatesFilter<"TicketAutomationRule"> | Date | string
updatedAt?: DateTimeWithAggregatesFilter<"TicketAutomationRule"> | Date | string
}
export type KnowledgeBaseArticleWhereInput = {
AND?: KnowledgeBaseArticleWhereInput | KnowledgeBaseArticleWhereInput[]
OR?: KnowledgeBaseArticleWhereInput[]
NOT?: KnowledgeBaseArticleWhereInput | KnowledgeBaseArticleWhereInput[]
id?: StringFilter<"KnowledgeBaseArticle"> | string
guildId?: StringFilter<"KnowledgeBaseArticle"> | string
title?: StringFilter<"KnowledgeBaseArticle"> | string
keywords?: StringNullableListFilter<"KnowledgeBaseArticle">
content?: StringFilter<"KnowledgeBaseArticle"> | string
createdAt?: DateTimeFilter<"KnowledgeBaseArticle"> | Date | string
updatedAt?: DateTimeFilter<"KnowledgeBaseArticle"> | Date | string
}
export type KnowledgeBaseArticleOrderByWithRelationInput = {
id?: SortOrder
guildId?: SortOrder
title?: SortOrder
keywords?: SortOrder
content?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type KnowledgeBaseArticleWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: KnowledgeBaseArticleWhereInput | KnowledgeBaseArticleWhereInput[]
OR?: KnowledgeBaseArticleWhereInput[]
NOT?: KnowledgeBaseArticleWhereInput | KnowledgeBaseArticleWhereInput[]
guildId?: StringFilter<"KnowledgeBaseArticle"> | string
title?: StringFilter<"KnowledgeBaseArticle"> | string
keywords?: StringNullableListFilter<"KnowledgeBaseArticle">
content?: StringFilter<"KnowledgeBaseArticle"> | string
createdAt?: DateTimeFilter<"KnowledgeBaseArticle"> | Date | string
updatedAt?: DateTimeFilter<"KnowledgeBaseArticle"> | Date | string
}, "id">
export type KnowledgeBaseArticleOrderByWithAggregationInput = {
id?: SortOrder
guildId?: SortOrder
title?: SortOrder
keywords?: SortOrder
content?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
_count?: KnowledgeBaseArticleCountOrderByAggregateInput
_max?: KnowledgeBaseArticleMaxOrderByAggregateInput
_min?: KnowledgeBaseArticleMinOrderByAggregateInput
}
export type KnowledgeBaseArticleScalarWhereWithAggregatesInput = {
AND?: KnowledgeBaseArticleScalarWhereWithAggregatesInput | KnowledgeBaseArticleScalarWhereWithAggregatesInput[]
OR?: KnowledgeBaseArticleScalarWhereWithAggregatesInput[]
NOT?: KnowledgeBaseArticleScalarWhereWithAggregatesInput | KnowledgeBaseArticleScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"KnowledgeBaseArticle"> | string
guildId?: StringWithAggregatesFilter<"KnowledgeBaseArticle"> | string
title?: StringWithAggregatesFilter<"KnowledgeBaseArticle"> | string
keywords?: StringNullableListFilter<"KnowledgeBaseArticle">
content?: StringWithAggregatesFilter<"KnowledgeBaseArticle"> | string
createdAt?: DateTimeWithAggregatesFilter<"KnowledgeBaseArticle"> | Date | string
updatedAt?: DateTimeWithAggregatesFilter<"KnowledgeBaseArticle"> | Date | string
}
export type LevelWhereInput = {
AND?: LevelWhereInput | LevelWhereInput[]
OR?: LevelWhereInput[]
NOT?: LevelWhereInput | LevelWhereInput[]
id?: StringFilter<"Level"> | string
userId?: StringFilter<"Level"> | string
guildId?: StringFilter<"Level"> | string
xp?: IntFilter<"Level"> | number
level?: IntFilter<"Level"> | number
createdAt?: DateTimeFilter<"Level"> | Date | string
updatedAt?: DateTimeFilter<"Level"> | Date | string
}
export type LevelOrderByWithRelationInput = {
id?: SortOrder
userId?: SortOrder
guildId?: SortOrder
xp?: SortOrder
level?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type LevelWhereUniqueInput = Prisma.AtLeast<{
id?: string
userId_guildId?: LevelUserId_guildIdCompoundUniqueInput
AND?: LevelWhereInput | LevelWhereInput[]
OR?: LevelWhereInput[]
NOT?: LevelWhereInput | LevelWhereInput[]
userId?: StringFilter<"Level"> | string
guildId?: StringFilter<"Level"> | string
xp?: IntFilter<"Level"> | number
level?: IntFilter<"Level"> | number
createdAt?: DateTimeFilter<"Level"> | Date | string
updatedAt?: DateTimeFilter<"Level"> | Date | string
}, "id" | "userId_guildId">
export type LevelOrderByWithAggregationInput = {
id?: SortOrder
userId?: SortOrder
guildId?: SortOrder
xp?: SortOrder
level?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
_count?: LevelCountOrderByAggregateInput
_avg?: LevelAvgOrderByAggregateInput
_max?: LevelMaxOrderByAggregateInput
_min?: LevelMinOrderByAggregateInput
_sum?: LevelSumOrderByAggregateInput
}
export type LevelScalarWhereWithAggregatesInput = {
AND?: LevelScalarWhereWithAggregatesInput | LevelScalarWhereWithAggregatesInput[]
OR?: LevelScalarWhereWithAggregatesInput[]
NOT?: LevelScalarWhereWithAggregatesInput | LevelScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"Level"> | string
userId?: StringWithAggregatesFilter<"Level"> | string
guildId?: StringWithAggregatesFilter<"Level"> | string
xp?: IntWithAggregatesFilter<"Level"> | number
level?: IntWithAggregatesFilter<"Level"> | number
createdAt?: DateTimeWithAggregatesFilter<"Level"> | Date | string
updatedAt?: DateTimeWithAggregatesFilter<"Level"> | Date | string
}
export type TicketSupportSessionWhereInput = {
AND?: TicketSupportSessionWhereInput | TicketSupportSessionWhereInput[]
OR?: TicketSupportSessionWhereInput[]
NOT?: TicketSupportSessionWhereInput | TicketSupportSessionWhereInput[]
id?: StringFilter<"TicketSupportSession"> | string
guildId?: StringFilter<"TicketSupportSession"> | string
userId?: StringFilter<"TicketSupportSession"> | string
roleId?: StringFilter<"TicketSupportSession"> | string
startedAt?: DateTimeFilter<"TicketSupportSession"> | Date | string
endedAt?: DateTimeNullableFilter<"TicketSupportSession"> | Date | string | null
durationSeconds?: IntNullableFilter<"TicketSupportSession"> | number | null
}
export type TicketSupportSessionOrderByWithRelationInput = {
id?: SortOrder
guildId?: SortOrder
userId?: SortOrder
roleId?: SortOrder
startedAt?: SortOrder
endedAt?: SortOrderInput | SortOrder
durationSeconds?: SortOrderInput | SortOrder
}
export type TicketSupportSessionWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: TicketSupportSessionWhereInput | TicketSupportSessionWhereInput[]
OR?: TicketSupportSessionWhereInput[]
NOT?: TicketSupportSessionWhereInput | TicketSupportSessionWhereInput[]
guildId?: StringFilter<"TicketSupportSession"> | string
userId?: StringFilter<"TicketSupportSession"> | string
roleId?: StringFilter<"TicketSupportSession"> | string
startedAt?: DateTimeFilter<"TicketSupportSession"> | Date | string
endedAt?: DateTimeNullableFilter<"TicketSupportSession"> | Date | string | null
durationSeconds?: IntNullableFilter<"TicketSupportSession"> | number | null
}, "id">
export type TicketSupportSessionOrderByWithAggregationInput = {
id?: SortOrder
guildId?: SortOrder
userId?: SortOrder
roleId?: SortOrder
startedAt?: SortOrder
endedAt?: SortOrderInput | SortOrder
durationSeconds?: SortOrderInput | SortOrder
_count?: TicketSupportSessionCountOrderByAggregateInput
_avg?: TicketSupportSessionAvgOrderByAggregateInput
_max?: TicketSupportSessionMaxOrderByAggregateInput
_min?: TicketSupportSessionMinOrderByAggregateInput
_sum?: TicketSupportSessionSumOrderByAggregateInput
}
export type TicketSupportSessionScalarWhereWithAggregatesInput = {
AND?: TicketSupportSessionScalarWhereWithAggregatesInput | TicketSupportSessionScalarWhereWithAggregatesInput[]
OR?: TicketSupportSessionScalarWhereWithAggregatesInput[]
NOT?: TicketSupportSessionScalarWhereWithAggregatesInput | TicketSupportSessionScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"TicketSupportSession"> | string
guildId?: StringWithAggregatesFilter<"TicketSupportSession"> | string
userId?: StringWithAggregatesFilter<"TicketSupportSession"> | string
roleId?: StringWithAggregatesFilter<"TicketSupportSession"> | string
startedAt?: DateTimeWithAggregatesFilter<"TicketSupportSession"> | Date | string
endedAt?: DateTimeNullableWithAggregatesFilter<"TicketSupportSession"> | Date | string | null
durationSeconds?: IntNullableWithAggregatesFilter<"TicketSupportSession"> | number | null
}
export type BirthdayWhereInput = {
AND?: BirthdayWhereInput | BirthdayWhereInput[]
OR?: BirthdayWhereInput[]
NOT?: BirthdayWhereInput | BirthdayWhereInput[]
id?: StringFilter<"Birthday"> | string
userId?: StringFilter<"Birthday"> | string
guildId?: StringFilter<"Birthday"> | string
birthDate?: StringFilter<"Birthday"> | string
createdAt?: DateTimeFilter<"Birthday"> | Date | string
updatedAt?: DateTimeFilter<"Birthday"> | Date | string
}
export type BirthdayOrderByWithRelationInput = {
id?: SortOrder
userId?: SortOrder
guildId?: SortOrder
birthDate?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type BirthdayWhereUniqueInput = Prisma.AtLeast<{
id?: string
birthday_user_guild?: BirthdayBirthday_user_guildCompoundUniqueInput
AND?: BirthdayWhereInput | BirthdayWhereInput[]
OR?: BirthdayWhereInput[]
NOT?: BirthdayWhereInput | BirthdayWhereInput[]
userId?: StringFilter<"Birthday"> | string
guildId?: StringFilter<"Birthday"> | string
birthDate?: StringFilter<"Birthday"> | string
createdAt?: DateTimeFilter<"Birthday"> | Date | string
updatedAt?: DateTimeFilter<"Birthday"> | Date | string
}, "id" | "birthday_user_guild">
export type BirthdayOrderByWithAggregationInput = {
id?: SortOrder
userId?: SortOrder
guildId?: SortOrder
birthDate?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
_count?: BirthdayCountOrderByAggregateInput
_max?: BirthdayMaxOrderByAggregateInput
_min?: BirthdayMinOrderByAggregateInput
}
export type BirthdayScalarWhereWithAggregatesInput = {
AND?: BirthdayScalarWhereWithAggregatesInput | BirthdayScalarWhereWithAggregatesInput[]
OR?: BirthdayScalarWhereWithAggregatesInput[]
NOT?: BirthdayScalarWhereWithAggregatesInput | BirthdayScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"Birthday"> | string
userId?: StringWithAggregatesFilter<"Birthday"> | string
guildId?: StringWithAggregatesFilter<"Birthday"> | string
birthDate?: StringWithAggregatesFilter<"Birthday"> | string
createdAt?: DateTimeWithAggregatesFilter<"Birthday"> | Date | string
updatedAt?: DateTimeWithAggregatesFilter<"Birthday"> | Date | string
}
export type ReactionRoleSetWhereInput = {
AND?: ReactionRoleSetWhereInput | ReactionRoleSetWhereInput[]
OR?: ReactionRoleSetWhereInput[]
NOT?: ReactionRoleSetWhereInput | ReactionRoleSetWhereInput[]
id?: StringFilter<"ReactionRoleSet"> | string
guildId?: StringFilter<"ReactionRoleSet"> | string
channelId?: StringFilter<"ReactionRoleSet"> | string
messageId?: StringNullableFilter<"ReactionRoleSet"> | string | null
title?: StringNullableFilter<"ReactionRoleSet"> | string | null
description?: StringNullableFilter<"ReactionRoleSet"> | string | null
entries?: JsonFilter<"ReactionRoleSet">
createdAt?: DateTimeFilter<"ReactionRoleSet"> | Date | string
updatedAt?: DateTimeFilter<"ReactionRoleSet"> | Date | string
}
export type ReactionRoleSetOrderByWithRelationInput = {
id?: SortOrder
guildId?: SortOrder
channelId?: SortOrder
messageId?: SortOrderInput | SortOrder
title?: SortOrderInput | SortOrder
description?: SortOrderInput | SortOrder
entries?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type ReactionRoleSetWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: ReactionRoleSetWhereInput | ReactionRoleSetWhereInput[]
OR?: ReactionRoleSetWhereInput[]
NOT?: ReactionRoleSetWhereInput | ReactionRoleSetWhereInput[]
guildId?: StringFilter<"ReactionRoleSet"> | string
channelId?: StringFilter<"ReactionRoleSet"> | string
messageId?: StringNullableFilter<"ReactionRoleSet"> | string | null
title?: StringNullableFilter<"ReactionRoleSet"> | string | null
description?: StringNullableFilter<"ReactionRoleSet"> | string | null
entries?: JsonFilter<"ReactionRoleSet">
createdAt?: DateTimeFilter<"ReactionRoleSet"> | Date | string
updatedAt?: DateTimeFilter<"ReactionRoleSet"> | Date | string
}, "id">
export type ReactionRoleSetOrderByWithAggregationInput = {
id?: SortOrder
guildId?: SortOrder
channelId?: SortOrder
messageId?: SortOrderInput | SortOrder
title?: SortOrderInput | SortOrder
description?: SortOrderInput | SortOrder
entries?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
_count?: ReactionRoleSetCountOrderByAggregateInput
_max?: ReactionRoleSetMaxOrderByAggregateInput
_min?: ReactionRoleSetMinOrderByAggregateInput
}
export type ReactionRoleSetScalarWhereWithAggregatesInput = {
AND?: ReactionRoleSetScalarWhereWithAggregatesInput | ReactionRoleSetScalarWhereWithAggregatesInput[]
OR?: ReactionRoleSetScalarWhereWithAggregatesInput[]
NOT?: ReactionRoleSetScalarWhereWithAggregatesInput | ReactionRoleSetScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"ReactionRoleSet"> | string
guildId?: StringWithAggregatesFilter<"ReactionRoleSet"> | string
channelId?: StringWithAggregatesFilter<"ReactionRoleSet"> | string
messageId?: StringNullableWithAggregatesFilter<"ReactionRoleSet"> | string | null
title?: StringNullableWithAggregatesFilter<"ReactionRoleSet"> | string | null
description?: StringNullableWithAggregatesFilter<"ReactionRoleSet"> | string | null
entries?: JsonWithAggregatesFilter<"ReactionRoleSet">
createdAt?: DateTimeWithAggregatesFilter<"ReactionRoleSet"> | Date | string
updatedAt?: DateTimeWithAggregatesFilter<"ReactionRoleSet"> | Date | string
}
export type EventWhereInput = {
AND?: EventWhereInput | EventWhereInput[]
OR?: EventWhereInput[]
NOT?: EventWhereInput | EventWhereInput[]
id?: StringFilter<"Event"> | string
guildId?: StringFilter<"Event"> | string
title?: StringFilter<"Event"> | string
description?: StringNullableFilter<"Event"> | string | null
channelId?: StringFilter<"Event"> | string
startTime?: DateTimeFilter<"Event"> | Date | string
repeatType?: StringFilter<"Event"> | string
repeatConfig?: JsonNullableFilter<"Event">
reminderOffsetMinutes?: IntFilter<"Event"> | number
roleId?: StringNullableFilter<"Event"> | string | null
isActive?: BoolFilter<"Event"> | boolean
lastReminderAt?: DateTimeNullableFilter<"Event"> | Date | string | null
createdAt?: DateTimeFilter<"Event"> | Date | string
updatedAt?: DateTimeFilter<"Event"> | Date | string
signups?: EventSignupListRelationFilter
}
export type EventOrderByWithRelationInput = {
id?: SortOrder
guildId?: SortOrder
title?: SortOrder
description?: SortOrderInput | SortOrder
channelId?: SortOrder
startTime?: SortOrder
repeatType?: SortOrder
repeatConfig?: SortOrderInput | SortOrder
reminderOffsetMinutes?: SortOrder
roleId?: SortOrderInput | SortOrder
isActive?: SortOrder
lastReminderAt?: SortOrderInput | SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
signups?: EventSignupOrderByRelationAggregateInput
}
export type EventWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: EventWhereInput | EventWhereInput[]
OR?: EventWhereInput[]
NOT?: EventWhereInput | EventWhereInput[]
guildId?: StringFilter<"Event"> | string
title?: StringFilter<"Event"> | string
description?: StringNullableFilter<"Event"> | string | null
channelId?: StringFilter<"Event"> | string
startTime?: DateTimeFilter<"Event"> | Date | string
repeatType?: StringFilter<"Event"> | string
repeatConfig?: JsonNullableFilter<"Event">
reminderOffsetMinutes?: IntFilter<"Event"> | number
roleId?: StringNullableFilter<"Event"> | string | null
isActive?: BoolFilter<"Event"> | boolean
lastReminderAt?: DateTimeNullableFilter<"Event"> | Date | string | null
createdAt?: DateTimeFilter<"Event"> | Date | string
updatedAt?: DateTimeFilter<"Event"> | Date | string
signups?: EventSignupListRelationFilter
}, "id">
export type EventOrderByWithAggregationInput = {
id?: SortOrder
guildId?: SortOrder
title?: SortOrder
description?: SortOrderInput | SortOrder
channelId?: SortOrder
startTime?: SortOrder
repeatType?: SortOrder
repeatConfig?: SortOrderInput | SortOrder
reminderOffsetMinutes?: SortOrder
roleId?: SortOrderInput | SortOrder
isActive?: SortOrder
lastReminderAt?: SortOrderInput | SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
_count?: EventCountOrderByAggregateInput
_avg?: EventAvgOrderByAggregateInput
_max?: EventMaxOrderByAggregateInput
_min?: EventMinOrderByAggregateInput
_sum?: EventSumOrderByAggregateInput
}
export type EventScalarWhereWithAggregatesInput = {
AND?: EventScalarWhereWithAggregatesInput | EventScalarWhereWithAggregatesInput[]
OR?: EventScalarWhereWithAggregatesInput[]
NOT?: EventScalarWhereWithAggregatesInput | EventScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"Event"> | string
guildId?: StringWithAggregatesFilter<"Event"> | string
title?: StringWithAggregatesFilter<"Event"> | string
description?: StringNullableWithAggregatesFilter<"Event"> | string | null
channelId?: StringWithAggregatesFilter<"Event"> | string
startTime?: DateTimeWithAggregatesFilter<"Event"> | Date | string
repeatType?: StringWithAggregatesFilter<"Event"> | string
repeatConfig?: JsonNullableWithAggregatesFilter<"Event">
reminderOffsetMinutes?: IntWithAggregatesFilter<"Event"> | number
roleId?: StringNullableWithAggregatesFilter<"Event"> | string | null
isActive?: BoolWithAggregatesFilter<"Event"> | boolean
lastReminderAt?: DateTimeNullableWithAggregatesFilter<"Event"> | Date | string | null
createdAt?: DateTimeWithAggregatesFilter<"Event"> | Date | string
updatedAt?: DateTimeWithAggregatesFilter<"Event"> | Date | string
}
export type EventSignupWhereInput = {
AND?: EventSignupWhereInput | EventSignupWhereInput[]
OR?: EventSignupWhereInput[]
NOT?: EventSignupWhereInput | EventSignupWhereInput[]
id?: StringFilter<"EventSignup"> | string
eventId?: StringFilter<"EventSignup"> | string
guildId?: StringFilter<"EventSignup"> | string
userId?: StringFilter<"EventSignup"> | string
createdAt?: DateTimeFilter<"EventSignup"> | Date | string
canceledAt?: DateTimeNullableFilter<"EventSignup"> | Date | string | null
event?: XOR<EventRelationFilter, EventWhereInput>
}
export type EventSignupOrderByWithRelationInput = {
id?: SortOrder
eventId?: SortOrder
guildId?: SortOrder
userId?: SortOrder
createdAt?: SortOrder
canceledAt?: SortOrderInput | SortOrder
event?: EventOrderByWithRelationInput
}
export type EventSignupWhereUniqueInput = Prisma.AtLeast<{
id?: string
eventId_userId?: EventSignupEventIdUserIdCompoundUniqueInput
AND?: EventSignupWhereInput | EventSignupWhereInput[]
OR?: EventSignupWhereInput[]
NOT?: EventSignupWhereInput | EventSignupWhereInput[]
eventId?: StringFilter<"EventSignup"> | string
guildId?: StringFilter<"EventSignup"> | string
userId?: StringFilter<"EventSignup"> | string
createdAt?: DateTimeFilter<"EventSignup"> | Date | string
canceledAt?: DateTimeNullableFilter<"EventSignup"> | Date | string | null
event?: XOR<EventRelationFilter, EventWhereInput>
}, "id" | "eventId_userId">
export type EventSignupOrderByWithAggregationInput = {
id?: SortOrder
eventId?: SortOrder
guildId?: SortOrder
userId?: SortOrder
createdAt?: SortOrder
canceledAt?: SortOrderInput | SortOrder
_count?: EventSignupCountOrderByAggregateInput
_max?: EventSignupMaxOrderByAggregateInput
_min?: EventSignupMinOrderByAggregateInput
}
export type EventSignupScalarWhereWithAggregatesInput = {
AND?: EventSignupScalarWhereWithAggregatesInput | EventSignupScalarWhereWithAggregatesInput[]
OR?: EventSignupScalarWhereWithAggregatesInput[]
NOT?: EventSignupScalarWhereWithAggregatesInput | EventSignupScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"EventSignup"> | string
eventId?: StringWithAggregatesFilter<"EventSignup"> | string
guildId?: StringWithAggregatesFilter<"EventSignup"> | string
userId?: StringWithAggregatesFilter<"EventSignup"> | string
createdAt?: DateTimeWithAggregatesFilter<"EventSignup"> | Date | string
canceledAt?: DateTimeNullableWithAggregatesFilter<"EventSignup"> | Date | string | null
}
export type RegisterFormWhereInput = {
AND?: RegisterFormWhereInput | RegisterFormWhereInput[]
OR?: RegisterFormWhereInput[]
NOT?: RegisterFormWhereInput | RegisterFormWhereInput[]
id?: StringFilter<"RegisterForm"> | string
guildId?: StringFilter<"RegisterForm"> | string
name?: StringFilter<"RegisterForm"> | string
description?: StringNullableFilter<"RegisterForm"> | string | null
reviewChannelId?: StringNullableFilter<"RegisterForm"> | string | null
notifyRoleIds?: StringNullableListFilter<"RegisterForm">
isActive?: BoolFilter<"RegisterForm"> | boolean
createdAt?: DateTimeFilter<"RegisterForm"> | Date | string
updatedAt?: DateTimeFilter<"RegisterForm"> | Date | string
fields?: RegisterFormFieldListRelationFilter
applications?: RegisterApplicationListRelationFilter
}
export type RegisterFormOrderByWithRelationInput = {
id?: SortOrder
guildId?: SortOrder
name?: SortOrder
description?: SortOrderInput | SortOrder
reviewChannelId?: SortOrderInput | SortOrder
notifyRoleIds?: SortOrder
isActive?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
fields?: RegisterFormFieldOrderByRelationAggregateInput
applications?: RegisterApplicationOrderByRelationAggregateInput
}
export type RegisterFormWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: RegisterFormWhereInput | RegisterFormWhereInput[]
OR?: RegisterFormWhereInput[]
NOT?: RegisterFormWhereInput | RegisterFormWhereInput[]
guildId?: StringFilter<"RegisterForm"> | string
name?: StringFilter<"RegisterForm"> | string
description?: StringNullableFilter<"RegisterForm"> | string | null
reviewChannelId?: StringNullableFilter<"RegisterForm"> | string | null
notifyRoleIds?: StringNullableListFilter<"RegisterForm">
isActive?: BoolFilter<"RegisterForm"> | boolean
createdAt?: DateTimeFilter<"RegisterForm"> | Date | string
updatedAt?: DateTimeFilter<"RegisterForm"> | Date | string
fields?: RegisterFormFieldListRelationFilter
applications?: RegisterApplicationListRelationFilter
}, "id">
export type RegisterFormOrderByWithAggregationInput = {
id?: SortOrder
guildId?: SortOrder
name?: SortOrder
description?: SortOrderInput | SortOrder
reviewChannelId?: SortOrderInput | SortOrder
notifyRoleIds?: SortOrder
isActive?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
_count?: RegisterFormCountOrderByAggregateInput
_max?: RegisterFormMaxOrderByAggregateInput
_min?: RegisterFormMinOrderByAggregateInput
}
export type RegisterFormScalarWhereWithAggregatesInput = {
AND?: RegisterFormScalarWhereWithAggregatesInput | RegisterFormScalarWhereWithAggregatesInput[]
OR?: RegisterFormScalarWhereWithAggregatesInput[]
NOT?: RegisterFormScalarWhereWithAggregatesInput | RegisterFormScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"RegisterForm"> | string
guildId?: StringWithAggregatesFilter<"RegisterForm"> | string
name?: StringWithAggregatesFilter<"RegisterForm"> | string
description?: StringNullableWithAggregatesFilter<"RegisterForm"> | string | null
reviewChannelId?: StringNullableWithAggregatesFilter<"RegisterForm"> | string | null
notifyRoleIds?: StringNullableListFilter<"RegisterForm">
isActive?: BoolWithAggregatesFilter<"RegisterForm"> | boolean
createdAt?: DateTimeWithAggregatesFilter<"RegisterForm"> | Date | string
updatedAt?: DateTimeWithAggregatesFilter<"RegisterForm"> | Date | string
}
export type RegisterFormFieldWhereInput = {
AND?: RegisterFormFieldWhereInput | RegisterFormFieldWhereInput[]
OR?: RegisterFormFieldWhereInput[]
NOT?: RegisterFormFieldWhereInput | RegisterFormFieldWhereInput[]
id?: StringFilter<"RegisterFormField"> | string
formId?: StringFilter<"RegisterFormField"> | string
label?: StringFilter<"RegisterFormField"> | string
type?: StringFilter<"RegisterFormField"> | string
required?: BoolFilter<"RegisterFormField"> | boolean
order?: IntFilter<"RegisterFormField"> | number
form?: XOR<RegisterFormRelationFilter, RegisterFormWhereInput>
}
export type RegisterFormFieldOrderByWithRelationInput = {
id?: SortOrder
formId?: SortOrder
label?: SortOrder
type?: SortOrder
required?: SortOrder
order?: SortOrder
form?: RegisterFormOrderByWithRelationInput
}
export type RegisterFormFieldWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: RegisterFormFieldWhereInput | RegisterFormFieldWhereInput[]
OR?: RegisterFormFieldWhereInput[]
NOT?: RegisterFormFieldWhereInput | RegisterFormFieldWhereInput[]
formId?: StringFilter<"RegisterFormField"> | string
label?: StringFilter<"RegisterFormField"> | string
type?: StringFilter<"RegisterFormField"> | string
required?: BoolFilter<"RegisterFormField"> | boolean
order?: IntFilter<"RegisterFormField"> | number
form?: XOR<RegisterFormRelationFilter, RegisterFormWhereInput>
}, "id">
export type RegisterFormFieldOrderByWithAggregationInput = {
id?: SortOrder
formId?: SortOrder
label?: SortOrder
type?: SortOrder
required?: SortOrder
order?: SortOrder
_count?: RegisterFormFieldCountOrderByAggregateInput
_avg?: RegisterFormFieldAvgOrderByAggregateInput
_max?: RegisterFormFieldMaxOrderByAggregateInput
_min?: RegisterFormFieldMinOrderByAggregateInput
_sum?: RegisterFormFieldSumOrderByAggregateInput
}
export type RegisterFormFieldScalarWhereWithAggregatesInput = {
AND?: RegisterFormFieldScalarWhereWithAggregatesInput | RegisterFormFieldScalarWhereWithAggregatesInput[]
OR?: RegisterFormFieldScalarWhereWithAggregatesInput[]
NOT?: RegisterFormFieldScalarWhereWithAggregatesInput | RegisterFormFieldScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"RegisterFormField"> | string
formId?: StringWithAggregatesFilter<"RegisterFormField"> | string
label?: StringWithAggregatesFilter<"RegisterFormField"> | string
type?: StringWithAggregatesFilter<"RegisterFormField"> | string
required?: BoolWithAggregatesFilter<"RegisterFormField"> | boolean
order?: IntWithAggregatesFilter<"RegisterFormField"> | number
}
export type RegisterApplicationWhereInput = {
AND?: RegisterApplicationWhereInput | RegisterApplicationWhereInput[]
OR?: RegisterApplicationWhereInput[]
NOT?: RegisterApplicationWhereInput | RegisterApplicationWhereInput[]
id?: StringFilter<"RegisterApplication"> | string
guildId?: StringFilter<"RegisterApplication"> | string
userId?: StringFilter<"RegisterApplication"> | string
formId?: StringFilter<"RegisterApplication"> | string
status?: StringFilter<"RegisterApplication"> | string
reviewedBy?: StringNullableFilter<"RegisterApplication"> | string | null
createdAt?: DateTimeFilter<"RegisterApplication"> | Date | string
updatedAt?: DateTimeFilter<"RegisterApplication"> | Date | string
answers?: RegisterApplicationAnswerListRelationFilter
notes?: RegisterApplicationNoteListRelationFilter
form?: XOR<RegisterFormRelationFilter, RegisterFormWhereInput>
}
export type RegisterApplicationOrderByWithRelationInput = {
id?: SortOrder
guildId?: SortOrder
userId?: SortOrder
formId?: SortOrder
status?: SortOrder
reviewedBy?: SortOrderInput | SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
answers?: RegisterApplicationAnswerOrderByRelationAggregateInput
notes?: RegisterApplicationNoteOrderByRelationAggregateInput
form?: RegisterFormOrderByWithRelationInput
}
export type RegisterApplicationWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: RegisterApplicationWhereInput | RegisterApplicationWhereInput[]
OR?: RegisterApplicationWhereInput[]
NOT?: RegisterApplicationWhereInput | RegisterApplicationWhereInput[]
guildId?: StringFilter<"RegisterApplication"> | string
userId?: StringFilter<"RegisterApplication"> | string
formId?: StringFilter<"RegisterApplication"> | string
status?: StringFilter<"RegisterApplication"> | string
reviewedBy?: StringNullableFilter<"RegisterApplication"> | string | null
createdAt?: DateTimeFilter<"RegisterApplication"> | Date | string
updatedAt?: DateTimeFilter<"RegisterApplication"> | Date | string
answers?: RegisterApplicationAnswerListRelationFilter
notes?: RegisterApplicationNoteListRelationFilter
form?: XOR<RegisterFormRelationFilter, RegisterFormWhereInput>
}, "id">
export type RegisterApplicationOrderByWithAggregationInput = {
id?: SortOrder
guildId?: SortOrder
userId?: SortOrder
formId?: SortOrder
status?: SortOrder
reviewedBy?: SortOrderInput | SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
_count?: RegisterApplicationCountOrderByAggregateInput
_max?: RegisterApplicationMaxOrderByAggregateInput
_min?: RegisterApplicationMinOrderByAggregateInput
}
export type RegisterApplicationScalarWhereWithAggregatesInput = {
AND?: RegisterApplicationScalarWhereWithAggregatesInput | RegisterApplicationScalarWhereWithAggregatesInput[]
OR?: RegisterApplicationScalarWhereWithAggregatesInput[]
NOT?: RegisterApplicationScalarWhereWithAggregatesInput | RegisterApplicationScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"RegisterApplication"> | string
guildId?: StringWithAggregatesFilter<"RegisterApplication"> | string
userId?: StringWithAggregatesFilter<"RegisterApplication"> | string
formId?: StringWithAggregatesFilter<"RegisterApplication"> | string
status?: StringWithAggregatesFilter<"RegisterApplication"> | string
reviewedBy?: StringNullableWithAggregatesFilter<"RegisterApplication"> | string | null
createdAt?: DateTimeWithAggregatesFilter<"RegisterApplication"> | Date | string
updatedAt?: DateTimeWithAggregatesFilter<"RegisterApplication"> | Date | string
}
export type RegisterApplicationAnswerWhereInput = {
AND?: RegisterApplicationAnswerWhereInput | RegisterApplicationAnswerWhereInput[]
OR?: RegisterApplicationAnswerWhereInput[]
NOT?: RegisterApplicationAnswerWhereInput | RegisterApplicationAnswerWhereInput[]
id?: StringFilter<"RegisterApplicationAnswer"> | string
applicationId?: StringFilter<"RegisterApplicationAnswer"> | string
fieldId?: StringFilter<"RegisterApplicationAnswer"> | string
value?: StringFilter<"RegisterApplicationAnswer"> | string
application?: XOR<RegisterApplicationRelationFilter, RegisterApplicationWhereInput>
}
export type RegisterApplicationAnswerOrderByWithRelationInput = {
id?: SortOrder
applicationId?: SortOrder
fieldId?: SortOrder
value?: SortOrder
application?: RegisterApplicationOrderByWithRelationInput
}
export type RegisterApplicationAnswerWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: RegisterApplicationAnswerWhereInput | RegisterApplicationAnswerWhereInput[]
OR?: RegisterApplicationAnswerWhereInput[]
NOT?: RegisterApplicationAnswerWhereInput | RegisterApplicationAnswerWhereInput[]
applicationId?: StringFilter<"RegisterApplicationAnswer"> | string
fieldId?: StringFilter<"RegisterApplicationAnswer"> | string
value?: StringFilter<"RegisterApplicationAnswer"> | string
application?: XOR<RegisterApplicationRelationFilter, RegisterApplicationWhereInput>
}, "id">
export type RegisterApplicationAnswerOrderByWithAggregationInput = {
id?: SortOrder
applicationId?: SortOrder
fieldId?: SortOrder
value?: SortOrder
_count?: RegisterApplicationAnswerCountOrderByAggregateInput
_max?: RegisterApplicationAnswerMaxOrderByAggregateInput
_min?: RegisterApplicationAnswerMinOrderByAggregateInput
}
export type RegisterApplicationAnswerScalarWhereWithAggregatesInput = {
AND?: RegisterApplicationAnswerScalarWhereWithAggregatesInput | RegisterApplicationAnswerScalarWhereWithAggregatesInput[]
OR?: RegisterApplicationAnswerScalarWhereWithAggregatesInput[]
NOT?: RegisterApplicationAnswerScalarWhereWithAggregatesInput | RegisterApplicationAnswerScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"RegisterApplicationAnswer"> | string
applicationId?: StringWithAggregatesFilter<"RegisterApplicationAnswer"> | string
fieldId?: StringWithAggregatesFilter<"RegisterApplicationAnswer"> | string
value?: StringWithAggregatesFilter<"RegisterApplicationAnswer"> | string
}
export type RegisterApplicationNoteWhereInput = {
AND?: RegisterApplicationNoteWhereInput | RegisterApplicationNoteWhereInput[]
OR?: RegisterApplicationNoteWhereInput[]
NOT?: RegisterApplicationNoteWhereInput | RegisterApplicationNoteWhereInput[]
id?: StringFilter<"RegisterApplicationNote"> | string
applicationId?: StringFilter<"RegisterApplicationNote"> | string
authorId?: StringFilter<"RegisterApplicationNote"> | string
authorTag?: StringFilter<"RegisterApplicationNote"> | string
body?: StringFilter<"RegisterApplicationNote"> | string
createdAt?: DateTimeFilter<"RegisterApplicationNote"> | Date | string
application?: XOR<RegisterApplicationRelationFilter, RegisterApplicationWhereInput>
}
export type RegisterApplicationNoteOrderByWithRelationInput = {
id?: SortOrder
applicationId?: SortOrder
authorId?: SortOrder
authorTag?: SortOrder
body?: SortOrder
createdAt?: SortOrder
application?: RegisterApplicationOrderByWithRelationInput
}
export type RegisterApplicationNoteWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: RegisterApplicationNoteWhereInput | RegisterApplicationNoteWhereInput[]
OR?: RegisterApplicationNoteWhereInput[]
NOT?: RegisterApplicationNoteWhereInput | RegisterApplicationNoteWhereInput[]
applicationId?: StringFilter<"RegisterApplicationNote"> | string
authorId?: StringFilter<"RegisterApplicationNote"> | string
authorTag?: StringFilter<"RegisterApplicationNote"> | string
body?: StringFilter<"RegisterApplicationNote"> | string
createdAt?: DateTimeFilter<"RegisterApplicationNote"> | Date | string
application?: XOR<RegisterApplicationRelationFilter, RegisterApplicationWhereInput>
}, "id">
export type RegisterApplicationNoteOrderByWithAggregationInput = {
id?: SortOrder
applicationId?: SortOrder
authorId?: SortOrder
authorTag?: SortOrder
body?: SortOrder
createdAt?: SortOrder
_count?: RegisterApplicationNoteCountOrderByAggregateInput
_max?: RegisterApplicationNoteMaxOrderByAggregateInput
_min?: RegisterApplicationNoteMinOrderByAggregateInput
}
export type RegisterApplicationNoteScalarWhereWithAggregatesInput = {
AND?: RegisterApplicationNoteScalarWhereWithAggregatesInput | RegisterApplicationNoteScalarWhereWithAggregatesInput[]
OR?: RegisterApplicationNoteScalarWhereWithAggregatesInput[]
NOT?: RegisterApplicationNoteScalarWhereWithAggregatesInput | RegisterApplicationNoteScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"RegisterApplicationNote"> | string
applicationId?: StringWithAggregatesFilter<"RegisterApplicationNote"> | string
authorId?: StringWithAggregatesFilter<"RegisterApplicationNote"> | string
authorTag?: StringWithAggregatesFilter<"RegisterApplicationNote"> | string
body?: StringWithAggregatesFilter<"RegisterApplicationNote"> | string
createdAt?: DateTimeWithAggregatesFilter<"RegisterApplicationNote"> | Date | string
}
export type AutomodStrikeWhereInput = {
AND?: AutomodStrikeWhereInput | AutomodStrikeWhereInput[]
OR?: AutomodStrikeWhereInput[]
NOT?: AutomodStrikeWhereInput | AutomodStrikeWhereInput[]
id?: StringFilter<"AutomodStrike"> | string
guildId?: StringFilter<"AutomodStrike"> | string
userId?: StringFilter<"AutomodStrike"> | string
filterKey?: StringFilter<"AutomodStrike"> | string
weight?: IntFilter<"AutomodStrike"> | number
reason?: StringNullableFilter<"AutomodStrike"> | string | null
createdAt?: DateTimeFilter<"AutomodStrike"> | Date | string
}
export type AutomodStrikeOrderByWithRelationInput = {
id?: SortOrder
guildId?: SortOrder
userId?: SortOrder
filterKey?: SortOrder
weight?: SortOrder
reason?: SortOrderInput | SortOrder
createdAt?: SortOrder
}
export type AutomodStrikeWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: AutomodStrikeWhereInput | AutomodStrikeWhereInput[]
OR?: AutomodStrikeWhereInput[]
NOT?: AutomodStrikeWhereInput | AutomodStrikeWhereInput[]
guildId?: StringFilter<"AutomodStrike"> | string
userId?: StringFilter<"AutomodStrike"> | string
filterKey?: StringFilter<"AutomodStrike"> | string
weight?: IntFilter<"AutomodStrike"> | number
reason?: StringNullableFilter<"AutomodStrike"> | string | null
createdAt?: DateTimeFilter<"AutomodStrike"> | Date | string
}, "id">
export type AutomodStrikeOrderByWithAggregationInput = {
id?: SortOrder
guildId?: SortOrder
userId?: SortOrder
filterKey?: SortOrder
weight?: SortOrder
reason?: SortOrderInput | SortOrder
createdAt?: SortOrder
_count?: AutomodStrikeCountOrderByAggregateInput
_avg?: AutomodStrikeAvgOrderByAggregateInput
_max?: AutomodStrikeMaxOrderByAggregateInput
_min?: AutomodStrikeMinOrderByAggregateInput
_sum?: AutomodStrikeSumOrderByAggregateInput
}
export type AutomodStrikeScalarWhereWithAggregatesInput = {
AND?: AutomodStrikeScalarWhereWithAggregatesInput | AutomodStrikeScalarWhereWithAggregatesInput[]
OR?: AutomodStrikeScalarWhereWithAggregatesInput[]
NOT?: AutomodStrikeScalarWhereWithAggregatesInput | AutomodStrikeScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"AutomodStrike"> | string
guildId?: StringWithAggregatesFilter<"AutomodStrike"> | string
userId?: StringWithAggregatesFilter<"AutomodStrike"> | string
filterKey?: StringWithAggregatesFilter<"AutomodStrike"> | string
weight?: IntWithAggregatesFilter<"AutomodStrike"> | number
reason?: StringNullableWithAggregatesFilter<"AutomodStrike"> | string | null
createdAt?: DateTimeWithAggregatesFilter<"AutomodStrike"> | Date | string
}
export type StaffTaskWhereInput = {
AND?: StaffTaskWhereInput | StaffTaskWhereInput[]
OR?: StaffTaskWhereInput[]
NOT?: StaffTaskWhereInput | StaffTaskWhereInput[]
id?: StringFilter<"StaffTask"> | string
guildId?: StringFilter<"StaffTask"> | string
title?: StringFilter<"StaffTask"> | string
description?: StringNullableFilter<"StaffTask"> | string | null
status?: StringFilter<"StaffTask"> | string
assigneeId?: StringNullableFilter<"StaffTask"> | string | null
createdBy?: StringFilter<"StaffTask"> | string
createdByTag?: StringFilter<"StaffTask"> | string
createdAt?: DateTimeFilter<"StaffTask"> | Date | string
updatedAt?: DateTimeFilter<"StaffTask"> | Date | string
}
export type StaffTaskOrderByWithRelationInput = {
id?: SortOrder
guildId?: SortOrder
title?: SortOrder
description?: SortOrderInput | SortOrder
status?: SortOrder
assigneeId?: SortOrderInput | SortOrder
createdBy?: SortOrder
createdByTag?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type StaffTaskWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: StaffTaskWhereInput | StaffTaskWhereInput[]
OR?: StaffTaskWhereInput[]
NOT?: StaffTaskWhereInput | StaffTaskWhereInput[]
guildId?: StringFilter<"StaffTask"> | string
title?: StringFilter<"StaffTask"> | string
description?: StringNullableFilter<"StaffTask"> | string | null
status?: StringFilter<"StaffTask"> | string
assigneeId?: StringNullableFilter<"StaffTask"> | string | null
createdBy?: StringFilter<"StaffTask"> | string
createdByTag?: StringFilter<"StaffTask"> | string
createdAt?: DateTimeFilter<"StaffTask"> | Date | string
updatedAt?: DateTimeFilter<"StaffTask"> | Date | string
}, "id">
export type StaffTaskOrderByWithAggregationInput = {
id?: SortOrder
guildId?: SortOrder
title?: SortOrder
description?: SortOrderInput | SortOrder
status?: SortOrder
assigneeId?: SortOrderInput | SortOrder
createdBy?: SortOrder
createdByTag?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
_count?: StaffTaskCountOrderByAggregateInput
_max?: StaffTaskMaxOrderByAggregateInput
_min?: StaffTaskMinOrderByAggregateInput
}
export type StaffTaskScalarWhereWithAggregatesInput = {
AND?: StaffTaskScalarWhereWithAggregatesInput | StaffTaskScalarWhereWithAggregatesInput[]
OR?: StaffTaskScalarWhereWithAggregatesInput[]
NOT?: StaffTaskScalarWhereWithAggregatesInput | StaffTaskScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"StaffTask"> | string
guildId?: StringWithAggregatesFilter<"StaffTask"> | string
title?: StringWithAggregatesFilter<"StaffTask"> | string
description?: StringNullableWithAggregatesFilter<"StaffTask"> | string | null
status?: StringWithAggregatesFilter<"StaffTask"> | string
assigneeId?: StringNullableWithAggregatesFilter<"StaffTask"> | string | null
createdBy?: StringWithAggregatesFilter<"StaffTask"> | string
createdByTag?: StringWithAggregatesFilter<"StaffTask"> | string
createdAt?: DateTimeWithAggregatesFilter<"StaffTask"> | Date | string
updatedAt?: DateTimeWithAggregatesFilter<"StaffTask"> | Date | string
}
export type ModCaseWhereInput = {
AND?: ModCaseWhereInput | ModCaseWhereInput[]
OR?: ModCaseWhereInput[]
NOT?: ModCaseWhereInput | ModCaseWhereInput[]
id?: StringFilter<"ModCase"> | string
guildId?: StringFilter<"ModCase"> | string
userId?: StringFilter<"ModCase"> | string
type?: StringFilter<"ModCase"> | string
reason?: StringNullableFilter<"ModCase"> | string | null
moderatorId?: StringFilter<"ModCase"> | string
moderatorTag?: StringFilter<"ModCase"> | string
createdAt?: DateTimeFilter<"ModCase"> | Date | string
}
export type ModCaseOrderByWithRelationInput = {
id?: SortOrder
guildId?: SortOrder
userId?: SortOrder
type?: SortOrder
reason?: SortOrderInput | SortOrder
moderatorId?: SortOrder
moderatorTag?: SortOrder
createdAt?: SortOrder
}
export type ModCaseWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: ModCaseWhereInput | ModCaseWhereInput[]
OR?: ModCaseWhereInput[]
NOT?: ModCaseWhereInput | ModCaseWhereInput[]
guildId?: StringFilter<"ModCase"> | string
userId?: StringFilter<"ModCase"> | string
type?: StringFilter<"ModCase"> | string
reason?: StringNullableFilter<"ModCase"> | string | null
moderatorId?: StringFilter<"ModCase"> | string
moderatorTag?: StringFilter<"ModCase"> | string
createdAt?: DateTimeFilter<"ModCase"> | Date | string
}, "id">
export type ModCaseOrderByWithAggregationInput = {
id?: SortOrder
guildId?: SortOrder
userId?: SortOrder
type?: SortOrder
reason?: SortOrderInput | SortOrder
moderatorId?: SortOrder
moderatorTag?: SortOrder
createdAt?: SortOrder
_count?: ModCaseCountOrderByAggregateInput
_max?: ModCaseMaxOrderByAggregateInput
_min?: ModCaseMinOrderByAggregateInput
}
export type ModCaseScalarWhereWithAggregatesInput = {
AND?: ModCaseScalarWhereWithAggregatesInput | ModCaseScalarWhereWithAggregatesInput[]
OR?: ModCaseScalarWhereWithAggregatesInput[]
NOT?: ModCaseScalarWhereWithAggregatesInput | ModCaseScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"ModCase"> | string
guildId?: StringWithAggregatesFilter<"ModCase"> | string
userId?: StringWithAggregatesFilter<"ModCase"> | string
type?: StringWithAggregatesFilter<"ModCase"> | string
reason?: StringNullableWithAggregatesFilter<"ModCase"> | string | null
moderatorId?: StringWithAggregatesFilter<"ModCase"> | string
moderatorTag?: StringWithAggregatesFilter<"ModCase"> | string
createdAt?: DateTimeWithAggregatesFilter<"ModCase"> | Date | string
}
export type WatchlistWhereInput = {
AND?: WatchlistWhereInput | WatchlistWhereInput[]
OR?: WatchlistWhereInput[]
NOT?: WatchlistWhereInput | WatchlistWhereInput[]
id?: StringFilter<"Watchlist"> | string
guildId?: StringFilter<"Watchlist"> | string
userId?: StringFilter<"Watchlist"> | string
reason?: StringNullableFilter<"Watchlist"> | string | null
addedBy?: StringFilter<"Watchlist"> | string
addedAt?: DateTimeFilter<"Watchlist"> | Date | string
active?: BoolFilter<"Watchlist"> | boolean
}
export type WatchlistOrderByWithRelationInput = {
id?: SortOrder
guildId?: SortOrder
userId?: SortOrder
reason?: SortOrderInput | SortOrder
addedBy?: SortOrder
addedAt?: SortOrder
active?: SortOrder
}
export type WatchlistWhereUniqueInput = Prisma.AtLeast<{
id?: string
guildId_userId?: WatchlistGuildIdUserIdCompoundUniqueInput
AND?: WatchlistWhereInput | WatchlistWhereInput[]
OR?: WatchlistWhereInput[]
NOT?: WatchlistWhereInput | WatchlistWhereInput[]
guildId?: StringFilter<"Watchlist"> | string
userId?: StringFilter<"Watchlist"> | string
reason?: StringNullableFilter<"Watchlist"> | string | null
addedBy?: StringFilter<"Watchlist"> | string
addedAt?: DateTimeFilter<"Watchlist"> | Date | string
active?: BoolFilter<"Watchlist"> | boolean
}, "id" | "guildId_userId">
export type WatchlistOrderByWithAggregationInput = {
id?: SortOrder
guildId?: SortOrder
userId?: SortOrder
reason?: SortOrderInput | SortOrder
addedBy?: SortOrder
addedAt?: SortOrder
active?: SortOrder
_count?: WatchlistCountOrderByAggregateInput
_max?: WatchlistMaxOrderByAggregateInput
_min?: WatchlistMinOrderByAggregateInput
}
export type WatchlistScalarWhereWithAggregatesInput = {
AND?: WatchlistScalarWhereWithAggregatesInput | WatchlistScalarWhereWithAggregatesInput[]
OR?: WatchlistScalarWhereWithAggregatesInput[]
NOT?: WatchlistScalarWhereWithAggregatesInput | WatchlistScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"Watchlist"> | string
guildId?: StringWithAggregatesFilter<"Watchlist"> | string
userId?: StringWithAggregatesFilter<"Watchlist"> | string
reason?: StringNullableWithAggregatesFilter<"Watchlist"> | string | null
addedBy?: StringWithAggregatesFilter<"Watchlist"> | string
addedAt?: DateTimeWithAggregatesFilter<"Watchlist"> | Date | string
active?: BoolWithAggregatesFilter<"Watchlist"> | boolean
}
export type UserBadgeWhereInput = {
AND?: UserBadgeWhereInput | UserBadgeWhereInput[]
OR?: UserBadgeWhereInput[]
NOT?: UserBadgeWhereInput | UserBadgeWhereInput[]
id?: StringFilter<"UserBadge"> | string
guildId?: StringFilter<"UserBadge"> | string
userId?: StringFilter<"UserBadge"> | string
badgeKey?: StringFilter<"UserBadge"> | string
awardedAt?: DateTimeFilter<"UserBadge"> | Date | string
}
export type UserBadgeOrderByWithRelationInput = {
id?: SortOrder
guildId?: SortOrder
userId?: SortOrder
badgeKey?: SortOrder
awardedAt?: SortOrder
}
export type UserBadgeWhereUniqueInput = Prisma.AtLeast<{
id?: string
guildId_userId_badgeKey?: UserBadgeGuildIdUserIdBadgeKeyCompoundUniqueInput
AND?: UserBadgeWhereInput | UserBadgeWhereInput[]
OR?: UserBadgeWhereInput[]
NOT?: UserBadgeWhereInput | UserBadgeWhereInput[]
guildId?: StringFilter<"UserBadge"> | string
userId?: StringFilter<"UserBadge"> | string
badgeKey?: StringFilter<"UserBadge"> | string
awardedAt?: DateTimeFilter<"UserBadge"> | Date | string
}, "id" | "guildId_userId_badgeKey">
export type UserBadgeOrderByWithAggregationInput = {
id?: SortOrder
guildId?: SortOrder
userId?: SortOrder
badgeKey?: SortOrder
awardedAt?: SortOrder
_count?: UserBadgeCountOrderByAggregateInput
_max?: UserBadgeMaxOrderByAggregateInput
_min?: UserBadgeMinOrderByAggregateInput
}
export type UserBadgeScalarWhereWithAggregatesInput = {
AND?: UserBadgeScalarWhereWithAggregatesInput | UserBadgeScalarWhereWithAggregatesInput[]
OR?: UserBadgeScalarWhereWithAggregatesInput[]
NOT?: UserBadgeScalarWhereWithAggregatesInput | UserBadgeScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"UserBadge"> | string
guildId?: StringWithAggregatesFilter<"UserBadge"> | string
userId?: StringWithAggregatesFilter<"UserBadge"> | string
badgeKey?: StringWithAggregatesFilter<"UserBadge"> | string
awardedAt?: DateTimeWithAggregatesFilter<"UserBadge"> | Date | string
}
export type UserActivityWhereInput = {
AND?: UserActivityWhereInput | UserActivityWhereInput[]
OR?: UserActivityWhereInput[]
NOT?: UserActivityWhereInput | UserActivityWhereInput[]
id?: StringFilter<"UserActivity"> | string
guildId?: StringFilter<"UserActivity"> | string
userId?: StringFilter<"UserActivity"> | string
messageCount?: IntFilter<"UserActivity"> | number
activeDays?: IntFilter<"UserActivity"> | number
lastActiveDay?: StringNullableFilter<"UserActivity"> | string | null
}
export type UserActivityOrderByWithRelationInput = {
id?: SortOrder
guildId?: SortOrder
userId?: SortOrder
messageCount?: SortOrder
activeDays?: SortOrder
lastActiveDay?: SortOrderInput | SortOrder
}
export type UserActivityWhereUniqueInput = Prisma.AtLeast<{
id?: string
guildId_userId?: UserActivityGuildIdUserIdCompoundUniqueInput
AND?: UserActivityWhereInput | UserActivityWhereInput[]
OR?: UserActivityWhereInput[]
NOT?: UserActivityWhereInput | UserActivityWhereInput[]
guildId?: StringFilter<"UserActivity"> | string
userId?: StringFilter<"UserActivity"> | string
messageCount?: IntFilter<"UserActivity"> | number
activeDays?: IntFilter<"UserActivity"> | number
lastActiveDay?: StringNullableFilter<"UserActivity"> | string | null
}, "id" | "guildId_userId">
export type UserActivityOrderByWithAggregationInput = {
id?: SortOrder
guildId?: SortOrder
userId?: SortOrder
messageCount?: SortOrder
activeDays?: SortOrder
lastActiveDay?: SortOrderInput | SortOrder
_count?: UserActivityCountOrderByAggregateInput
_avg?: UserActivityAvgOrderByAggregateInput
_max?: UserActivityMaxOrderByAggregateInput
_min?: UserActivityMinOrderByAggregateInput
_sum?: UserActivitySumOrderByAggregateInput
}
export type UserActivityScalarWhereWithAggregatesInput = {
AND?: UserActivityScalarWhereWithAggregatesInput | UserActivityScalarWhereWithAggregatesInput[]
OR?: UserActivityScalarWhereWithAggregatesInput[]
NOT?: UserActivityScalarWhereWithAggregatesInput | UserActivityScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"UserActivity"> | string
guildId?: StringWithAggregatesFilter<"UserActivity"> | string
userId?: StringWithAggregatesFilter<"UserActivity"> | string
messageCount?: IntWithAggregatesFilter<"UserActivity"> | number
activeDays?: IntWithAggregatesFilter<"UserActivity"> | number
lastActiveDay?: StringNullableWithAggregatesFilter<"UserActivity"> | string | null
}
export type WeeklyPlanWhereInput = {
AND?: WeeklyPlanWhereInput | WeeklyPlanWhereInput[]
OR?: WeeklyPlanWhereInput[]
NOT?: WeeklyPlanWhereInput | WeeklyPlanWhereInput[]
id?: StringFilter<"WeeklyPlan"> | string
guildId?: StringFilter<"WeeklyPlan"> | string
channelId?: StringFilter<"WeeklyPlan"> | string
messageId?: StringNullableFilter<"WeeklyPlan"> | string | null
title?: StringFilter<"WeeklyPlan"> | string
entries?: JsonFilter<"WeeklyPlan">
createdAt?: DateTimeFilter<"WeeklyPlan"> | Date | string
updatedAt?: DateTimeFilter<"WeeklyPlan"> | Date | string
}
export type WeeklyPlanOrderByWithRelationInput = {
id?: SortOrder
guildId?: SortOrder
channelId?: SortOrder
messageId?: SortOrderInput | SortOrder
title?: SortOrder
entries?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type WeeklyPlanWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: WeeklyPlanWhereInput | WeeklyPlanWhereInput[]
OR?: WeeklyPlanWhereInput[]
NOT?: WeeklyPlanWhereInput | WeeklyPlanWhereInput[]
guildId?: StringFilter<"WeeklyPlan"> | string
channelId?: StringFilter<"WeeklyPlan"> | string
messageId?: StringNullableFilter<"WeeklyPlan"> | string | null
title?: StringFilter<"WeeklyPlan"> | string
entries?: JsonFilter<"WeeklyPlan">
createdAt?: DateTimeFilter<"WeeklyPlan"> | Date | string
updatedAt?: DateTimeFilter<"WeeklyPlan"> | Date | string
}, "id">
export type WeeklyPlanOrderByWithAggregationInput = {
id?: SortOrder
guildId?: SortOrder
channelId?: SortOrder
messageId?: SortOrderInput | SortOrder
title?: SortOrder
entries?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
_count?: WeeklyPlanCountOrderByAggregateInput
_max?: WeeklyPlanMaxOrderByAggregateInput
_min?: WeeklyPlanMinOrderByAggregateInput
}
export type WeeklyPlanScalarWhereWithAggregatesInput = {
AND?: WeeklyPlanScalarWhereWithAggregatesInput | WeeklyPlanScalarWhereWithAggregatesInput[]
OR?: WeeklyPlanScalarWhereWithAggregatesInput[]
NOT?: WeeklyPlanScalarWhereWithAggregatesInput | WeeklyPlanScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"WeeklyPlan"> | string
guildId?: StringWithAggregatesFilter<"WeeklyPlan"> | string
channelId?: StringWithAggregatesFilter<"WeeklyPlan"> | string
messageId?: StringNullableWithAggregatesFilter<"WeeklyPlan"> | string | null
title?: StringWithAggregatesFilter<"WeeklyPlan"> | string
entries?: JsonWithAggregatesFilter<"WeeklyPlan">
createdAt?: DateTimeWithAggregatesFilter<"WeeklyPlan"> | Date | string
updatedAt?: DateTimeWithAggregatesFilter<"WeeklyPlan"> | Date | string
}
export type WeeklyPlanRsvpWhereInput = {
AND?: WeeklyPlanRsvpWhereInput | WeeklyPlanRsvpWhereInput[]
OR?: WeeklyPlanRsvpWhereInput[]
NOT?: WeeklyPlanRsvpWhereInput | WeeklyPlanRsvpWhereInput[]
id?: StringFilter<"WeeklyPlanRsvp"> | string
planId?: StringFilter<"WeeklyPlanRsvp"> | string
entryId?: StringFilter<"WeeklyPlanRsvp"> | string
userId?: StringFilter<"WeeklyPlanRsvp"> | string
createdAt?: DateTimeFilter<"WeeklyPlanRsvp"> | Date | string
}
export type WeeklyPlanRsvpOrderByWithRelationInput = {
id?: SortOrder
planId?: SortOrder
entryId?: SortOrder
userId?: SortOrder
createdAt?: SortOrder
}
export type WeeklyPlanRsvpWhereUniqueInput = Prisma.AtLeast<{
id?: string
planId_entryId_userId?: WeeklyPlanRsvpPlanIdEntryIdUserIdCompoundUniqueInput
AND?: WeeklyPlanRsvpWhereInput | WeeklyPlanRsvpWhereInput[]
OR?: WeeklyPlanRsvpWhereInput[]
NOT?: WeeklyPlanRsvpWhereInput | WeeklyPlanRsvpWhereInput[]
planId?: StringFilter<"WeeklyPlanRsvp"> | string
entryId?: StringFilter<"WeeklyPlanRsvp"> | string
userId?: StringFilter<"WeeklyPlanRsvp"> | string
createdAt?: DateTimeFilter<"WeeklyPlanRsvp"> | Date | string
}, "id" | "planId_entryId_userId">
export type WeeklyPlanRsvpOrderByWithAggregationInput = {
id?: SortOrder
planId?: SortOrder
entryId?: SortOrder
userId?: SortOrder
createdAt?: SortOrder
_count?: WeeklyPlanRsvpCountOrderByAggregateInput
_max?: WeeklyPlanRsvpMaxOrderByAggregateInput
_min?: WeeklyPlanRsvpMinOrderByAggregateInput
}
export type WeeklyPlanRsvpScalarWhereWithAggregatesInput = {
AND?: WeeklyPlanRsvpScalarWhereWithAggregatesInput | WeeklyPlanRsvpScalarWhereWithAggregatesInput[]
OR?: WeeklyPlanRsvpScalarWhereWithAggregatesInput[]
NOT?: WeeklyPlanRsvpScalarWhereWithAggregatesInput | WeeklyPlanRsvpScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"WeeklyPlanRsvp"> | string
planId?: StringWithAggregatesFilter<"WeeklyPlanRsvp"> | string
entryId?: StringWithAggregatesFilter<"WeeklyPlanRsvp"> | string
userId?: StringWithAggregatesFilter<"WeeklyPlanRsvp"> | string
createdAt?: DateTimeWithAggregatesFilter<"WeeklyPlanRsvp"> | Date | string
}
export type PollWhereInput = {
AND?: PollWhereInput | PollWhereInput[]
OR?: PollWhereInput[]
NOT?: PollWhereInput | PollWhereInput[]
id?: StringFilter<"Poll"> | string
guildId?: StringFilter<"Poll"> | string
channelId?: StringFilter<"Poll"> | string
messageId?: StringNullableFilter<"Poll"> | string | null
question?: StringFilter<"Poll"> | string
options?: JsonFilter<"Poll">
anonymous?: BoolFilter<"Poll"> | boolean
closesAt?: DateTimeNullableFilter<"Poll"> | Date | string | null
closed?: BoolFilter<"Poll"> | boolean
createdBy?: StringFilter<"Poll"> | string
createdAt?: DateTimeFilter<"Poll"> | Date | string
votes?: PollVoteListRelationFilter
}
export type PollOrderByWithRelationInput = {
id?: SortOrder
guildId?: SortOrder
channelId?: SortOrder
messageId?: SortOrderInput | SortOrder
question?: SortOrder
options?: SortOrder
anonymous?: SortOrder
closesAt?: SortOrderInput | SortOrder
closed?: SortOrder
createdBy?: SortOrder
createdAt?: SortOrder
votes?: PollVoteOrderByRelationAggregateInput
}
export type PollWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: PollWhereInput | PollWhereInput[]
OR?: PollWhereInput[]
NOT?: PollWhereInput | PollWhereInput[]
guildId?: StringFilter<"Poll"> | string
channelId?: StringFilter<"Poll"> | string
messageId?: StringNullableFilter<"Poll"> | string | null
question?: StringFilter<"Poll"> | string
options?: JsonFilter<"Poll">
anonymous?: BoolFilter<"Poll"> | boolean
closesAt?: DateTimeNullableFilter<"Poll"> | Date | string | null
closed?: BoolFilter<"Poll"> | boolean
createdBy?: StringFilter<"Poll"> | string
createdAt?: DateTimeFilter<"Poll"> | Date | string
votes?: PollVoteListRelationFilter
}, "id">
export type PollOrderByWithAggregationInput = {
id?: SortOrder
guildId?: SortOrder
channelId?: SortOrder
messageId?: SortOrderInput | SortOrder
question?: SortOrder
options?: SortOrder
anonymous?: SortOrder
closesAt?: SortOrderInput | SortOrder
closed?: SortOrder
createdBy?: SortOrder
createdAt?: SortOrder
_count?: PollCountOrderByAggregateInput
_max?: PollMaxOrderByAggregateInput
_min?: PollMinOrderByAggregateInput
}
export type PollScalarWhereWithAggregatesInput = {
AND?: PollScalarWhereWithAggregatesInput | PollScalarWhereWithAggregatesInput[]
OR?: PollScalarWhereWithAggregatesInput[]
NOT?: PollScalarWhereWithAggregatesInput | PollScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"Poll"> | string
guildId?: StringWithAggregatesFilter<"Poll"> | string
channelId?: StringWithAggregatesFilter<"Poll"> | string
messageId?: StringNullableWithAggregatesFilter<"Poll"> | string | null
question?: StringWithAggregatesFilter<"Poll"> | string
options?: JsonWithAggregatesFilter<"Poll">
anonymous?: BoolWithAggregatesFilter<"Poll"> | boolean
closesAt?: DateTimeNullableWithAggregatesFilter<"Poll"> | Date | string | null
closed?: BoolWithAggregatesFilter<"Poll"> | boolean
createdBy?: StringWithAggregatesFilter<"Poll"> | string
createdAt?: DateTimeWithAggregatesFilter<"Poll"> | Date | string
}
export type PollVoteWhereInput = {
AND?: PollVoteWhereInput | PollVoteWhereInput[]
OR?: PollVoteWhereInput[]
NOT?: PollVoteWhereInput | PollVoteWhereInput[]
id?: StringFilter<"PollVote"> | string
pollId?: StringFilter<"PollVote"> | string
userId?: StringFilter<"PollVote"> | string
optionId?: StringFilter<"PollVote"> | string
createdAt?: DateTimeFilter<"PollVote"> | Date | string
poll?: XOR<PollRelationFilter, PollWhereInput>
}
export type PollVoteOrderByWithRelationInput = {
id?: SortOrder
pollId?: SortOrder
userId?: SortOrder
optionId?: SortOrder
createdAt?: SortOrder
poll?: PollOrderByWithRelationInput
}
export type PollVoteWhereUniqueInput = Prisma.AtLeast<{
id?: string
pollId_userId?: PollVotePollIdUserIdCompoundUniqueInput
AND?: PollVoteWhereInput | PollVoteWhereInput[]
OR?: PollVoteWhereInput[]
NOT?: PollVoteWhereInput | PollVoteWhereInput[]
pollId?: StringFilter<"PollVote"> | string
userId?: StringFilter<"PollVote"> | string
optionId?: StringFilter<"PollVote"> | string
createdAt?: DateTimeFilter<"PollVote"> | Date | string
poll?: XOR<PollRelationFilter, PollWhereInput>
}, "id" | "pollId_userId">
export type PollVoteOrderByWithAggregationInput = {
id?: SortOrder
pollId?: SortOrder
userId?: SortOrder
optionId?: SortOrder
createdAt?: SortOrder
_count?: PollVoteCountOrderByAggregateInput
_max?: PollVoteMaxOrderByAggregateInput
_min?: PollVoteMinOrderByAggregateInput
}
export type PollVoteScalarWhereWithAggregatesInput = {
AND?: PollVoteScalarWhereWithAggregatesInput | PollVoteScalarWhereWithAggregatesInput[]
OR?: PollVoteScalarWhereWithAggregatesInput[]
NOT?: PollVoteScalarWhereWithAggregatesInput | PollVoteScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"PollVote"> | string
pollId?: StringWithAggregatesFilter<"PollVote"> | string
userId?: StringWithAggregatesFilter<"PollVote"> | string
optionId?: StringWithAggregatesFilter<"PollVote"> | string
createdAt?: DateTimeWithAggregatesFilter<"PollVote"> | Date | string
}
export type SuggestionWhereInput = {
AND?: SuggestionWhereInput | SuggestionWhereInput[]
OR?: SuggestionWhereInput[]
NOT?: SuggestionWhereInput | SuggestionWhereInput[]
id?: StringFilter<"Suggestion"> | string
guildId?: StringFilter<"Suggestion"> | string
channelId?: StringFilter<"Suggestion"> | string
messageId?: StringNullableFilter<"Suggestion"> | string | null
userId?: StringFilter<"Suggestion"> | string
userTag?: StringFilter<"Suggestion"> | string
content?: StringFilter<"Suggestion"> | string
status?: StringFilter<"Suggestion"> | string
createdAt?: DateTimeFilter<"Suggestion"> | Date | string
votes?: SuggestionVoteListRelationFilter
}
export type SuggestionOrderByWithRelationInput = {
id?: SortOrder
guildId?: SortOrder
channelId?: SortOrder
messageId?: SortOrderInput | SortOrder
userId?: SortOrder
userTag?: SortOrder
content?: SortOrder
status?: SortOrder
createdAt?: SortOrder
votes?: SuggestionVoteOrderByRelationAggregateInput
}
export type SuggestionWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: SuggestionWhereInput | SuggestionWhereInput[]
OR?: SuggestionWhereInput[]
NOT?: SuggestionWhereInput | SuggestionWhereInput[]
guildId?: StringFilter<"Suggestion"> | string
channelId?: StringFilter<"Suggestion"> | string
messageId?: StringNullableFilter<"Suggestion"> | string | null
userId?: StringFilter<"Suggestion"> | string
userTag?: StringFilter<"Suggestion"> | string
content?: StringFilter<"Suggestion"> | string
status?: StringFilter<"Suggestion"> | string
createdAt?: DateTimeFilter<"Suggestion"> | Date | string
votes?: SuggestionVoteListRelationFilter
}, "id">
export type SuggestionOrderByWithAggregationInput = {
id?: SortOrder
guildId?: SortOrder
channelId?: SortOrder
messageId?: SortOrderInput | SortOrder
userId?: SortOrder
userTag?: SortOrder
content?: SortOrder
status?: SortOrder
createdAt?: SortOrder
_count?: SuggestionCountOrderByAggregateInput
_max?: SuggestionMaxOrderByAggregateInput
_min?: SuggestionMinOrderByAggregateInput
}
export type SuggestionScalarWhereWithAggregatesInput = {
AND?: SuggestionScalarWhereWithAggregatesInput | SuggestionScalarWhereWithAggregatesInput[]
OR?: SuggestionScalarWhereWithAggregatesInput[]
NOT?: SuggestionScalarWhereWithAggregatesInput | SuggestionScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"Suggestion"> | string
guildId?: StringWithAggregatesFilter<"Suggestion"> | string
channelId?: StringWithAggregatesFilter<"Suggestion"> | string
messageId?: StringNullableWithAggregatesFilter<"Suggestion"> | string | null
userId?: StringWithAggregatesFilter<"Suggestion"> | string
userTag?: StringWithAggregatesFilter<"Suggestion"> | string
content?: StringWithAggregatesFilter<"Suggestion"> | string
status?: StringWithAggregatesFilter<"Suggestion"> | string
createdAt?: DateTimeWithAggregatesFilter<"Suggestion"> | Date | string
}
export type SuggestionVoteWhereInput = {
AND?: SuggestionVoteWhereInput | SuggestionVoteWhereInput[]
OR?: SuggestionVoteWhereInput[]
NOT?: SuggestionVoteWhereInput | SuggestionVoteWhereInput[]
id?: StringFilter<"SuggestionVote"> | string
suggestionId?: StringFilter<"SuggestionVote"> | string
userId?: StringFilter<"SuggestionVote"> | string
value?: IntFilter<"SuggestionVote"> | number
suggestion?: XOR<SuggestionRelationFilter, SuggestionWhereInput>
}
export type SuggestionVoteOrderByWithRelationInput = {
id?: SortOrder
suggestionId?: SortOrder
userId?: SortOrder
value?: SortOrder
suggestion?: SuggestionOrderByWithRelationInput
}
export type SuggestionVoteWhereUniqueInput = Prisma.AtLeast<{
id?: string
suggestionId_userId?: SuggestionVoteSuggestionIdUserIdCompoundUniqueInput
AND?: SuggestionVoteWhereInput | SuggestionVoteWhereInput[]
OR?: SuggestionVoteWhereInput[]
NOT?: SuggestionVoteWhereInput | SuggestionVoteWhereInput[]
suggestionId?: StringFilter<"SuggestionVote"> | string
userId?: StringFilter<"SuggestionVote"> | string
value?: IntFilter<"SuggestionVote"> | number
suggestion?: XOR<SuggestionRelationFilter, SuggestionWhereInput>
}, "id" | "suggestionId_userId">
export type SuggestionVoteOrderByWithAggregationInput = {
id?: SortOrder
suggestionId?: SortOrder
userId?: SortOrder
value?: SortOrder
_count?: SuggestionVoteCountOrderByAggregateInput
_avg?: SuggestionVoteAvgOrderByAggregateInput
_max?: SuggestionVoteMaxOrderByAggregateInput
_min?: SuggestionVoteMinOrderByAggregateInput
_sum?: SuggestionVoteSumOrderByAggregateInput
}
export type SuggestionVoteScalarWhereWithAggregatesInput = {
AND?: SuggestionVoteScalarWhereWithAggregatesInput | SuggestionVoteScalarWhereWithAggregatesInput[]
OR?: SuggestionVoteScalarWhereWithAggregatesInput[]
NOT?: SuggestionVoteScalarWhereWithAggregatesInput | SuggestionVoteScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"SuggestionVote"> | string
suggestionId?: StringWithAggregatesFilter<"SuggestionVote"> | string
userId?: StringWithAggregatesFilter<"SuggestionVote"> | string
value?: IntWithAggregatesFilter<"SuggestionVote"> | number
}
export type PartnerRequestWhereInput = {
AND?: PartnerRequestWhereInput | PartnerRequestWhereInput[]
OR?: PartnerRequestWhereInput[]
NOT?: PartnerRequestWhereInput | PartnerRequestWhereInput[]
id?: StringFilter<"PartnerRequest"> | string
guildId?: StringFilter<"PartnerRequest"> | string
userId?: StringFilter<"PartnerRequest"> | string
userTag?: StringFilter<"PartnerRequest"> | string
serverName?: StringFilter<"PartnerRequest"> | string
inviteCode?: StringFilter<"PartnerRequest"> | string
memberCount?: IntNullableFilter<"PartnerRequest"> | number | null
description?: StringNullableFilter<"PartnerRequest"> | string | null
status?: StringFilter<"PartnerRequest"> | string
reviewedBy?: StringNullableFilter<"PartnerRequest"> | string | null
createdAt?: DateTimeFilter<"PartnerRequest"> | Date | string
}
export type PartnerRequestOrderByWithRelationInput = {
id?: SortOrder
guildId?: SortOrder
userId?: SortOrder
userTag?: SortOrder
serverName?: SortOrder
inviteCode?: SortOrder
memberCount?: SortOrderInput | SortOrder
description?: SortOrderInput | SortOrder
status?: SortOrder
reviewedBy?: SortOrderInput | SortOrder
createdAt?: SortOrder
}
export type PartnerRequestWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: PartnerRequestWhereInput | PartnerRequestWhereInput[]
OR?: PartnerRequestWhereInput[]
NOT?: PartnerRequestWhereInput | PartnerRequestWhereInput[]
guildId?: StringFilter<"PartnerRequest"> | string
userId?: StringFilter<"PartnerRequest"> | string
userTag?: StringFilter<"PartnerRequest"> | string
serverName?: StringFilter<"PartnerRequest"> | string
inviteCode?: StringFilter<"PartnerRequest"> | string
memberCount?: IntNullableFilter<"PartnerRequest"> | number | null
description?: StringNullableFilter<"PartnerRequest"> | string | null
status?: StringFilter<"PartnerRequest"> | string
reviewedBy?: StringNullableFilter<"PartnerRequest"> | string | null
createdAt?: DateTimeFilter<"PartnerRequest"> | Date | string
}, "id">
export type PartnerRequestOrderByWithAggregationInput = {
id?: SortOrder
guildId?: SortOrder
userId?: SortOrder
userTag?: SortOrder
serverName?: SortOrder
inviteCode?: SortOrder
memberCount?: SortOrderInput | SortOrder
description?: SortOrderInput | SortOrder
status?: SortOrder
reviewedBy?: SortOrderInput | SortOrder
createdAt?: SortOrder
_count?: PartnerRequestCountOrderByAggregateInput
_avg?: PartnerRequestAvgOrderByAggregateInput
_max?: PartnerRequestMaxOrderByAggregateInput
_min?: PartnerRequestMinOrderByAggregateInput
_sum?: PartnerRequestSumOrderByAggregateInput
}
export type PartnerRequestScalarWhereWithAggregatesInput = {
AND?: PartnerRequestScalarWhereWithAggregatesInput | PartnerRequestScalarWhereWithAggregatesInput[]
OR?: PartnerRequestScalarWhereWithAggregatesInput[]
NOT?: PartnerRequestScalarWhereWithAggregatesInput | PartnerRequestScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"PartnerRequest"> | string
guildId?: StringWithAggregatesFilter<"PartnerRequest"> | string
userId?: StringWithAggregatesFilter<"PartnerRequest"> | string
userTag?: StringWithAggregatesFilter<"PartnerRequest"> | string
serverName?: StringWithAggregatesFilter<"PartnerRequest"> | string
inviteCode?: StringWithAggregatesFilter<"PartnerRequest"> | string
memberCount?: IntNullableWithAggregatesFilter<"PartnerRequest"> | number | null
description?: StringNullableWithAggregatesFilter<"PartnerRequest"> | string | null
status?: StringWithAggregatesFilter<"PartnerRequest"> | string
reviewedBy?: StringNullableWithAggregatesFilter<"PartnerRequest"> | string | null
createdAt?: DateTimeWithAggregatesFilter<"PartnerRequest"> | Date | string
}
export type GalleryPostWhereInput = {
AND?: GalleryPostWhereInput | GalleryPostWhereInput[]
OR?: GalleryPostWhereInput[]
NOT?: GalleryPostWhereInput | GalleryPostWhereInput[]
id?: StringFilter<"GalleryPost"> | string
guildId?: StringFilter<"GalleryPost"> | string
channelId?: StringFilter<"GalleryPost"> | string
messageId?: StringNullableFilter<"GalleryPost"> | string | null
userId?: StringFilter<"GalleryPost"> | string
userTag?: StringFilter<"GalleryPost"> | string
imageUrl?: StringFilter<"GalleryPost"> | string
caption?: StringNullableFilter<"GalleryPost"> | string | null
createdAt?: DateTimeFilter<"GalleryPost"> | Date | string
votes?: GalleryVoteListRelationFilter
}
export type GalleryPostOrderByWithRelationInput = {
id?: SortOrder
guildId?: SortOrder
channelId?: SortOrder
messageId?: SortOrderInput | SortOrder
userId?: SortOrder
userTag?: SortOrder
imageUrl?: SortOrder
caption?: SortOrderInput | SortOrder
createdAt?: SortOrder
votes?: GalleryVoteOrderByRelationAggregateInput
}
export type GalleryPostWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: GalleryPostWhereInput | GalleryPostWhereInput[]
OR?: GalleryPostWhereInput[]
NOT?: GalleryPostWhereInput | GalleryPostWhereInput[]
guildId?: StringFilter<"GalleryPost"> | string
channelId?: StringFilter<"GalleryPost"> | string
messageId?: StringNullableFilter<"GalleryPost"> | string | null
userId?: StringFilter<"GalleryPost"> | string
userTag?: StringFilter<"GalleryPost"> | string
imageUrl?: StringFilter<"GalleryPost"> | string
caption?: StringNullableFilter<"GalleryPost"> | string | null
createdAt?: DateTimeFilter<"GalleryPost"> | Date | string
votes?: GalleryVoteListRelationFilter
}, "id">
export type GalleryPostOrderByWithAggregationInput = {
id?: SortOrder
guildId?: SortOrder
channelId?: SortOrder
messageId?: SortOrderInput | SortOrder
userId?: SortOrder
userTag?: SortOrder
imageUrl?: SortOrder
caption?: SortOrderInput | SortOrder
createdAt?: SortOrder
_count?: GalleryPostCountOrderByAggregateInput
_max?: GalleryPostMaxOrderByAggregateInput
_min?: GalleryPostMinOrderByAggregateInput
}
export type GalleryPostScalarWhereWithAggregatesInput = {
AND?: GalleryPostScalarWhereWithAggregatesInput | GalleryPostScalarWhereWithAggregatesInput[]
OR?: GalleryPostScalarWhereWithAggregatesInput[]
NOT?: GalleryPostScalarWhereWithAggregatesInput | GalleryPostScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"GalleryPost"> | string
guildId?: StringWithAggregatesFilter<"GalleryPost"> | string
channelId?: StringWithAggregatesFilter<"GalleryPost"> | string
messageId?: StringNullableWithAggregatesFilter<"GalleryPost"> | string | null
userId?: StringWithAggregatesFilter<"GalleryPost"> | string
userTag?: StringWithAggregatesFilter<"GalleryPost"> | string
imageUrl?: StringWithAggregatesFilter<"GalleryPost"> | string
caption?: StringNullableWithAggregatesFilter<"GalleryPost"> | string | null
createdAt?: DateTimeWithAggregatesFilter<"GalleryPost"> | Date | string
}
export type GalleryVoteWhereInput = {
AND?: GalleryVoteWhereInput | GalleryVoteWhereInput[]
OR?: GalleryVoteWhereInput[]
NOT?: GalleryVoteWhereInput | GalleryVoteWhereInput[]
id?: StringFilter<"GalleryVote"> | string
postId?: StringFilter<"GalleryVote"> | string
userId?: StringFilter<"GalleryVote"> | string
post?: XOR<GalleryPostRelationFilter, GalleryPostWhereInput>
}
export type GalleryVoteOrderByWithRelationInput = {
id?: SortOrder
postId?: SortOrder
userId?: SortOrder
post?: GalleryPostOrderByWithRelationInput
}
export type GalleryVoteWhereUniqueInput = Prisma.AtLeast<{
id?: string
postId_userId?: GalleryVotePostIdUserIdCompoundUniqueInput
AND?: GalleryVoteWhereInput | GalleryVoteWhereInput[]
OR?: GalleryVoteWhereInput[]
NOT?: GalleryVoteWhereInput | GalleryVoteWhereInput[]
postId?: StringFilter<"GalleryVote"> | string
userId?: StringFilter<"GalleryVote"> | string
post?: XOR<GalleryPostRelationFilter, GalleryPostWhereInput>
}, "id" | "postId_userId">
export type GalleryVoteOrderByWithAggregationInput = {
id?: SortOrder
postId?: SortOrder
userId?: SortOrder
_count?: GalleryVoteCountOrderByAggregateInput
_max?: GalleryVoteMaxOrderByAggregateInput
_min?: GalleryVoteMinOrderByAggregateInput
}
export type GalleryVoteScalarWhereWithAggregatesInput = {
AND?: GalleryVoteScalarWhereWithAggregatesInput | GalleryVoteScalarWhereWithAggregatesInput[]
OR?: GalleryVoteScalarWhereWithAggregatesInput[]
NOT?: GalleryVoteScalarWhereWithAggregatesInput | GalleryVoteScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"GalleryVote"> | string
postId?: StringWithAggregatesFilter<"GalleryVote"> | string
userId?: StringWithAggregatesFilter<"GalleryVote"> | string
}
export type GuildGrowthEventWhereInput = {
AND?: GuildGrowthEventWhereInput | GuildGrowthEventWhereInput[]
OR?: GuildGrowthEventWhereInput[]
NOT?: GuildGrowthEventWhereInput | GuildGrowthEventWhereInput[]
id?: StringFilter<"GuildGrowthEvent"> | string
guildId?: StringFilter<"GuildGrowthEvent"> | string
type?: StringFilter<"GuildGrowthEvent"> | string
userId?: StringFilter<"GuildGrowthEvent"> | string
inviteCode?: StringNullableFilter<"GuildGrowthEvent"> | string | null
inviterId?: StringNullableFilter<"GuildGrowthEvent"> | string | null
suspicious?: BoolFilter<"GuildGrowthEvent"> | boolean
createdAt?: DateTimeFilter<"GuildGrowthEvent"> | Date | string
}
export type GuildGrowthEventOrderByWithRelationInput = {
id?: SortOrder
guildId?: SortOrder
type?: SortOrder
userId?: SortOrder
inviteCode?: SortOrderInput | SortOrder
inviterId?: SortOrderInput | SortOrder
suspicious?: SortOrder
createdAt?: SortOrder
}
export type GuildGrowthEventWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: GuildGrowthEventWhereInput | GuildGrowthEventWhereInput[]
OR?: GuildGrowthEventWhereInput[]
NOT?: GuildGrowthEventWhereInput | GuildGrowthEventWhereInput[]
guildId?: StringFilter<"GuildGrowthEvent"> | string
type?: StringFilter<"GuildGrowthEvent"> | string
userId?: StringFilter<"GuildGrowthEvent"> | string
inviteCode?: StringNullableFilter<"GuildGrowthEvent"> | string | null
inviterId?: StringNullableFilter<"GuildGrowthEvent"> | string | null
suspicious?: BoolFilter<"GuildGrowthEvent"> | boolean
createdAt?: DateTimeFilter<"GuildGrowthEvent"> | Date | string
}, "id">
export type GuildGrowthEventOrderByWithAggregationInput = {
id?: SortOrder
guildId?: SortOrder
type?: SortOrder
userId?: SortOrder
inviteCode?: SortOrderInput | SortOrder
inviterId?: SortOrderInput | SortOrder
suspicious?: SortOrder
createdAt?: SortOrder
_count?: GuildGrowthEventCountOrderByAggregateInput
_max?: GuildGrowthEventMaxOrderByAggregateInput
_min?: GuildGrowthEventMinOrderByAggregateInput
}
export type GuildGrowthEventScalarWhereWithAggregatesInput = {
AND?: GuildGrowthEventScalarWhereWithAggregatesInput | GuildGrowthEventScalarWhereWithAggregatesInput[]
OR?: GuildGrowthEventScalarWhereWithAggregatesInput[]
NOT?: GuildGrowthEventScalarWhereWithAggregatesInput | GuildGrowthEventScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"GuildGrowthEvent"> | string
guildId?: StringWithAggregatesFilter<"GuildGrowthEvent"> | string
type?: StringWithAggregatesFilter<"GuildGrowthEvent"> | string
userId?: StringWithAggregatesFilter<"GuildGrowthEvent"> | string
inviteCode?: StringNullableWithAggregatesFilter<"GuildGrowthEvent"> | string | null
inviterId?: StringNullableWithAggregatesFilter<"GuildGrowthEvent"> | string | null
suspicious?: BoolWithAggregatesFilter<"GuildGrowthEvent"> | boolean
createdAt?: DateTimeWithAggregatesFilter<"GuildGrowthEvent"> | Date | string
}
export type InfoPanelWhereInput = {
AND?: InfoPanelWhereInput | InfoPanelWhereInput[]
OR?: InfoPanelWhereInput[]
NOT?: InfoPanelWhereInput | InfoPanelWhereInput[]
id?: StringFilter<"InfoPanel"> | string
guildId?: StringFilter<"InfoPanel"> | string
channelId?: StringFilter<"InfoPanel"> | string
messageId?: StringNullableFilter<"InfoPanel"> | string | null
type?: StringFilter<"InfoPanel"> | string
title?: StringFilter<"InfoPanel"> | string
description?: StringNullableFilter<"InfoPanel"> | string | null
items?: JsonNullableFilter<"InfoPanel">
createdAt?: DateTimeFilter<"InfoPanel"> | Date | string
}
export type InfoPanelOrderByWithRelationInput = {
id?: SortOrder
guildId?: SortOrder
channelId?: SortOrder
messageId?: SortOrderInput | SortOrder
type?: SortOrder
title?: SortOrder
description?: SortOrderInput | SortOrder
items?: SortOrderInput | SortOrder
createdAt?: SortOrder
}
export type InfoPanelWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: InfoPanelWhereInput | InfoPanelWhereInput[]
OR?: InfoPanelWhereInput[]
NOT?: InfoPanelWhereInput | InfoPanelWhereInput[]
guildId?: StringFilter<"InfoPanel"> | string
channelId?: StringFilter<"InfoPanel"> | string
messageId?: StringNullableFilter<"InfoPanel"> | string | null
type?: StringFilter<"InfoPanel"> | string
title?: StringFilter<"InfoPanel"> | string
description?: StringNullableFilter<"InfoPanel"> | string | null
items?: JsonNullableFilter<"InfoPanel">
createdAt?: DateTimeFilter<"InfoPanel"> | Date | string
}, "id">
export type InfoPanelOrderByWithAggregationInput = {
id?: SortOrder
guildId?: SortOrder
channelId?: SortOrder
messageId?: SortOrderInput | SortOrder
type?: SortOrder
title?: SortOrder
description?: SortOrderInput | SortOrder
items?: SortOrderInput | SortOrder
createdAt?: SortOrder
_count?: InfoPanelCountOrderByAggregateInput
_max?: InfoPanelMaxOrderByAggregateInput
_min?: InfoPanelMinOrderByAggregateInput
}
export type InfoPanelScalarWhereWithAggregatesInput = {
AND?: InfoPanelScalarWhereWithAggregatesInput | InfoPanelScalarWhereWithAggregatesInput[]
OR?: InfoPanelScalarWhereWithAggregatesInput[]
NOT?: InfoPanelScalarWhereWithAggregatesInput | InfoPanelScalarWhereWithAggregatesInput[]
id?: StringWithAggregatesFilter<"InfoPanel"> | string
guildId?: StringWithAggregatesFilter<"InfoPanel"> | string
channelId?: StringWithAggregatesFilter<"InfoPanel"> | string
messageId?: StringNullableWithAggregatesFilter<"InfoPanel"> | string | null
type?: StringWithAggregatesFilter<"InfoPanel"> | string
title?: StringWithAggregatesFilter<"InfoPanel"> | string
description?: StringNullableWithAggregatesFilter<"InfoPanel"> | string | null
items?: JsonNullableWithAggregatesFilter<"InfoPanel">
createdAt?: DateTimeWithAggregatesFilter<"InfoPanel"> | Date | string
}
export type GuildSettingsCreateInput = {
guildId: string
welcomeChannelId?: string | null
logChannelId?: string | null
automodEnabled?: boolean | null
automodConfig?: NullableJsonNullValueInput | InputJsonValue
levelingEnabled?: boolean | null
ticketsEnabled?: boolean | null
musicEnabled?: boolean | null
statuspageEnabled?: boolean | null
statuspageConfig?: NullableJsonNullValueInput | InputJsonValue
dynamicVoiceEnabled?: boolean | null
dynamicVoiceConfig?: NullableJsonNullValueInput | InputJsonValue
supportLoginConfig?: NullableJsonNullValueInput | InputJsonValue
birthdayEnabled?: boolean | null
birthdayConfig?: NullableJsonNullValueInput | InputJsonValue
reactionRolesEnabled?: boolean | null
reactionRolesConfig?: NullableJsonNullValueInput | InputJsonValue
eventsEnabled?: boolean | null
registerEnabled?: boolean | null
registerConfig?: NullableJsonNullValueInput | InputJsonValue
serverStatsEnabled?: boolean | null
serverStatsConfig?: NullableJsonNullValueInput | InputJsonValue
lockdownConfig?: NullableJsonNullValueInput | InputJsonValue
tasksEnabled?: boolean | null
badgesEnabled?: boolean | null
brandingConfig?: NullableJsonNullValueInput | InputJsonValue
partnerConfig?: NullableJsonNullValueInput | InputJsonValue
galleryConfig?: NullableJsonNullValueInput | InputJsonValue
imageModerationConfig?: NullableJsonNullValueInput | InputJsonValue
ticketConfig?: NullableJsonNullValueInput | InputJsonValue
supportRoleId?: string | null
updatedAt?: Date | string
createdAt?: Date | string
}
export type GuildSettingsUncheckedCreateInput = {
guildId: string
welcomeChannelId?: string | null
logChannelId?: string | null
automodEnabled?: boolean | null
automodConfig?: NullableJsonNullValueInput | InputJsonValue
levelingEnabled?: boolean | null
ticketsEnabled?: boolean | null
musicEnabled?: boolean | null
statuspageEnabled?: boolean | null
statuspageConfig?: NullableJsonNullValueInput | InputJsonValue
dynamicVoiceEnabled?: boolean | null
dynamicVoiceConfig?: NullableJsonNullValueInput | InputJsonValue
supportLoginConfig?: NullableJsonNullValueInput | InputJsonValue
birthdayEnabled?: boolean | null
birthdayConfig?: NullableJsonNullValueInput | InputJsonValue
reactionRolesEnabled?: boolean | null
reactionRolesConfig?: NullableJsonNullValueInput | InputJsonValue
eventsEnabled?: boolean | null
registerEnabled?: boolean | null
registerConfig?: NullableJsonNullValueInput | InputJsonValue
serverStatsEnabled?: boolean | null
serverStatsConfig?: NullableJsonNullValueInput | InputJsonValue
lockdownConfig?: NullableJsonNullValueInput | InputJsonValue
tasksEnabled?: boolean | null
badgesEnabled?: boolean | null
brandingConfig?: NullableJsonNullValueInput | InputJsonValue
partnerConfig?: NullableJsonNullValueInput | InputJsonValue
galleryConfig?: NullableJsonNullValueInput | InputJsonValue
imageModerationConfig?: NullableJsonNullValueInput | InputJsonValue
ticketConfig?: NullableJsonNullValueInput | InputJsonValue
supportRoleId?: string | null
updatedAt?: Date | string
createdAt?: Date | string
}
export type GuildSettingsUpdateInput = {
guildId?: StringFieldUpdateOperationsInput | string
welcomeChannelId?: NullableStringFieldUpdateOperationsInput | string | null
logChannelId?: NullableStringFieldUpdateOperationsInput | string | null
automodEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
automodConfig?: NullableJsonNullValueInput | InputJsonValue
levelingEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
ticketsEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
musicEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
statuspageEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
statuspageConfig?: NullableJsonNullValueInput | InputJsonValue
dynamicVoiceEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
dynamicVoiceConfig?: NullableJsonNullValueInput | InputJsonValue
supportLoginConfig?: NullableJsonNullValueInput | InputJsonValue
birthdayEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
birthdayConfig?: NullableJsonNullValueInput | InputJsonValue
reactionRolesEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
reactionRolesConfig?: NullableJsonNullValueInput | InputJsonValue
eventsEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
registerEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
registerConfig?: NullableJsonNullValueInput | InputJsonValue
serverStatsEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
serverStatsConfig?: NullableJsonNullValueInput | InputJsonValue
lockdownConfig?: NullableJsonNullValueInput | InputJsonValue
tasksEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
badgesEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
brandingConfig?: NullableJsonNullValueInput | InputJsonValue
partnerConfig?: NullableJsonNullValueInput | InputJsonValue
galleryConfig?: NullableJsonNullValueInput | InputJsonValue
imageModerationConfig?: NullableJsonNullValueInput | InputJsonValue
ticketConfig?: NullableJsonNullValueInput | InputJsonValue
supportRoleId?: NullableStringFieldUpdateOperationsInput | string | null
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type GuildSettingsUncheckedUpdateInput = {
guildId?: StringFieldUpdateOperationsInput | string
welcomeChannelId?: NullableStringFieldUpdateOperationsInput | string | null
logChannelId?: NullableStringFieldUpdateOperationsInput | string | null
automodEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
automodConfig?: NullableJsonNullValueInput | InputJsonValue
levelingEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
ticketsEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
musicEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
statuspageEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
statuspageConfig?: NullableJsonNullValueInput | InputJsonValue
dynamicVoiceEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
dynamicVoiceConfig?: NullableJsonNullValueInput | InputJsonValue
supportLoginConfig?: NullableJsonNullValueInput | InputJsonValue
birthdayEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
birthdayConfig?: NullableJsonNullValueInput | InputJsonValue
reactionRolesEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
reactionRolesConfig?: NullableJsonNullValueInput | InputJsonValue
eventsEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
registerEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
registerConfig?: NullableJsonNullValueInput | InputJsonValue
serverStatsEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
serverStatsConfig?: NullableJsonNullValueInput | InputJsonValue
lockdownConfig?: NullableJsonNullValueInput | InputJsonValue
tasksEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
badgesEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
brandingConfig?: NullableJsonNullValueInput | InputJsonValue
partnerConfig?: NullableJsonNullValueInput | InputJsonValue
galleryConfig?: NullableJsonNullValueInput | InputJsonValue
imageModerationConfig?: NullableJsonNullValueInput | InputJsonValue
ticketConfig?: NullableJsonNullValueInput | InputJsonValue
supportRoleId?: NullableStringFieldUpdateOperationsInput | string | null
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type GuildSettingsCreateManyInput = {
guildId: string
welcomeChannelId?: string | null
logChannelId?: string | null
automodEnabled?: boolean | null
automodConfig?: NullableJsonNullValueInput | InputJsonValue
levelingEnabled?: boolean | null
ticketsEnabled?: boolean | null
musicEnabled?: boolean | null
statuspageEnabled?: boolean | null
statuspageConfig?: NullableJsonNullValueInput | InputJsonValue
dynamicVoiceEnabled?: boolean | null
dynamicVoiceConfig?: NullableJsonNullValueInput | InputJsonValue
supportLoginConfig?: NullableJsonNullValueInput | InputJsonValue
birthdayEnabled?: boolean | null
birthdayConfig?: NullableJsonNullValueInput | InputJsonValue
reactionRolesEnabled?: boolean | null
reactionRolesConfig?: NullableJsonNullValueInput | InputJsonValue
eventsEnabled?: boolean | null
registerEnabled?: boolean | null
registerConfig?: NullableJsonNullValueInput | InputJsonValue
serverStatsEnabled?: boolean | null
serverStatsConfig?: NullableJsonNullValueInput | InputJsonValue
lockdownConfig?: NullableJsonNullValueInput | InputJsonValue
tasksEnabled?: boolean | null
badgesEnabled?: boolean | null
brandingConfig?: NullableJsonNullValueInput | InputJsonValue
partnerConfig?: NullableJsonNullValueInput | InputJsonValue
galleryConfig?: NullableJsonNullValueInput | InputJsonValue
imageModerationConfig?: NullableJsonNullValueInput | InputJsonValue
ticketConfig?: NullableJsonNullValueInput | InputJsonValue
supportRoleId?: string | null
updatedAt?: Date | string
createdAt?: Date | string
}
export type GuildSettingsUpdateManyMutationInput = {
guildId?: StringFieldUpdateOperationsInput | string
welcomeChannelId?: NullableStringFieldUpdateOperationsInput | string | null
logChannelId?: NullableStringFieldUpdateOperationsInput | string | null
automodEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
automodConfig?: NullableJsonNullValueInput | InputJsonValue
levelingEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
ticketsEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
musicEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
statuspageEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
statuspageConfig?: NullableJsonNullValueInput | InputJsonValue
dynamicVoiceEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
dynamicVoiceConfig?: NullableJsonNullValueInput | InputJsonValue
supportLoginConfig?: NullableJsonNullValueInput | InputJsonValue
birthdayEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
birthdayConfig?: NullableJsonNullValueInput | InputJsonValue
reactionRolesEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
reactionRolesConfig?: NullableJsonNullValueInput | InputJsonValue
eventsEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
registerEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
registerConfig?: NullableJsonNullValueInput | InputJsonValue
serverStatsEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
serverStatsConfig?: NullableJsonNullValueInput | InputJsonValue
lockdownConfig?: NullableJsonNullValueInput | InputJsonValue
tasksEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
badgesEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
brandingConfig?: NullableJsonNullValueInput | InputJsonValue
partnerConfig?: NullableJsonNullValueInput | InputJsonValue
galleryConfig?: NullableJsonNullValueInput | InputJsonValue
imageModerationConfig?: NullableJsonNullValueInput | InputJsonValue
ticketConfig?: NullableJsonNullValueInput | InputJsonValue
supportRoleId?: NullableStringFieldUpdateOperationsInput | string | null
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type GuildSettingsUncheckedUpdateManyInput = {
guildId?: StringFieldUpdateOperationsInput | string
welcomeChannelId?: NullableStringFieldUpdateOperationsInput | string | null
logChannelId?: NullableStringFieldUpdateOperationsInput | string | null
automodEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
automodConfig?: NullableJsonNullValueInput | InputJsonValue
levelingEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
ticketsEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
musicEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
statuspageEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
statuspageConfig?: NullableJsonNullValueInput | InputJsonValue
dynamicVoiceEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
dynamicVoiceConfig?: NullableJsonNullValueInput | InputJsonValue
supportLoginConfig?: NullableJsonNullValueInput | InputJsonValue
birthdayEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
birthdayConfig?: NullableJsonNullValueInput | InputJsonValue
reactionRolesEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
reactionRolesConfig?: NullableJsonNullValueInput | InputJsonValue
eventsEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
registerEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
registerConfig?: NullableJsonNullValueInput | InputJsonValue
serverStatsEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
serverStatsConfig?: NullableJsonNullValueInput | InputJsonValue
lockdownConfig?: NullableJsonNullValueInput | InputJsonValue
tasksEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
badgesEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null
brandingConfig?: NullableJsonNullValueInput | InputJsonValue
partnerConfig?: NullableJsonNullValueInput | InputJsonValue
galleryConfig?: NullableJsonNullValueInput | InputJsonValue
imageModerationConfig?: NullableJsonNullValueInput | InputJsonValue
ticketConfig?: NullableJsonNullValueInput | InputJsonValue
supportRoleId?: NullableStringFieldUpdateOperationsInput | string | null
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type TicketCreateInput = {
id?: string
ticketNumber?: number
userId: string
channelId: string
guildId: string
topic?: string | null
priority?: string
status?: string
claimedBy?: string | null
transcript?: string | null
firstClaimAt?: Date | string | null
firstResponseAt?: Date | string | null
kbSuggestionSentAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type TicketUncheckedCreateInput = {
id?: string
ticketNumber?: number
userId: string
channelId: string
guildId: string
topic?: string | null
priority?: string
status?: string
claimedBy?: string | null
transcript?: string | null
firstClaimAt?: Date | string | null
firstResponseAt?: Date | string | null
kbSuggestionSentAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type TicketUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
ticketNumber?: IntFieldUpdateOperationsInput | number
userId?: StringFieldUpdateOperationsInput | string
channelId?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
topic?: NullableStringFieldUpdateOperationsInput | string | null
priority?: StringFieldUpdateOperationsInput | string
status?: StringFieldUpdateOperationsInput | string
claimedBy?: NullableStringFieldUpdateOperationsInput | string | null
transcript?: NullableStringFieldUpdateOperationsInput | string | null
firstClaimAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
firstResponseAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
kbSuggestionSentAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type TicketUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
ticketNumber?: IntFieldUpdateOperationsInput | number
userId?: StringFieldUpdateOperationsInput | string
channelId?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
topic?: NullableStringFieldUpdateOperationsInput | string | null
priority?: StringFieldUpdateOperationsInput | string
status?: StringFieldUpdateOperationsInput | string
claimedBy?: NullableStringFieldUpdateOperationsInput | string | null
transcript?: NullableStringFieldUpdateOperationsInput | string | null
firstClaimAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
firstResponseAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
kbSuggestionSentAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type TicketCreateManyInput = {
id?: string
ticketNumber?: number
userId: string
channelId: string
guildId: string
topic?: string | null
priority?: string
status?: string
claimedBy?: string | null
transcript?: string | null
firstClaimAt?: Date | string | null
firstResponseAt?: Date | string | null
kbSuggestionSentAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type TicketUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
ticketNumber?: IntFieldUpdateOperationsInput | number
userId?: StringFieldUpdateOperationsInput | string
channelId?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
topic?: NullableStringFieldUpdateOperationsInput | string | null
priority?: StringFieldUpdateOperationsInput | string
status?: StringFieldUpdateOperationsInput | string
claimedBy?: NullableStringFieldUpdateOperationsInput | string | null
transcript?: NullableStringFieldUpdateOperationsInput | string | null
firstClaimAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
firstResponseAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
kbSuggestionSentAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type TicketUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
ticketNumber?: IntFieldUpdateOperationsInput | number
userId?: StringFieldUpdateOperationsInput | string
channelId?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
topic?: NullableStringFieldUpdateOperationsInput | string | null
priority?: StringFieldUpdateOperationsInput | string
status?: StringFieldUpdateOperationsInput | string
claimedBy?: NullableStringFieldUpdateOperationsInput | string | null
transcript?: NullableStringFieldUpdateOperationsInput | string | null
firstClaimAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
firstResponseAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
kbSuggestionSentAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type TicketAutomationRuleCreateInput = {
id?: string
guildId: string
name: string
condition: JsonNullValueInput | InputJsonValue
action: JsonNullValueInput | InputJsonValue
active?: boolean
createdAt?: Date | string
updatedAt?: Date | string
}
export type TicketAutomationRuleUncheckedCreateInput = {
id?: string
guildId: string
name: string
condition: JsonNullValueInput | InputJsonValue
action: JsonNullValueInput | InputJsonValue
active?: boolean
createdAt?: Date | string
updatedAt?: Date | string
}
export type TicketAutomationRuleUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
condition?: JsonNullValueInput | InputJsonValue
action?: JsonNullValueInput | InputJsonValue
active?: BoolFieldUpdateOperationsInput | boolean
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type TicketAutomationRuleUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
condition?: JsonNullValueInput | InputJsonValue
action?: JsonNullValueInput | InputJsonValue
active?: BoolFieldUpdateOperationsInput | boolean
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type TicketAutomationRuleCreateManyInput = {
id?: string
guildId: string
name: string
condition: JsonNullValueInput | InputJsonValue
action: JsonNullValueInput | InputJsonValue
active?: boolean
createdAt?: Date | string
updatedAt?: Date | string
}
export type TicketAutomationRuleUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
condition?: JsonNullValueInput | InputJsonValue
action?: JsonNullValueInput | InputJsonValue
active?: BoolFieldUpdateOperationsInput | boolean
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type TicketAutomationRuleUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
condition?: JsonNullValueInput | InputJsonValue
action?: JsonNullValueInput | InputJsonValue
active?: BoolFieldUpdateOperationsInput | boolean
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type KnowledgeBaseArticleCreateInput = {
id?: string
guildId: string
title: string
keywords?: KnowledgeBaseArticleCreatekeywordsInput | string[]
content: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type KnowledgeBaseArticleUncheckedCreateInput = {
id?: string
guildId: string
title: string
keywords?: KnowledgeBaseArticleCreatekeywordsInput | string[]
content: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type KnowledgeBaseArticleUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
keywords?: KnowledgeBaseArticleUpdatekeywordsInput | string[]
content?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type KnowledgeBaseArticleUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
keywords?: KnowledgeBaseArticleUpdatekeywordsInput | string[]
content?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type KnowledgeBaseArticleCreateManyInput = {
id?: string
guildId: string
title: string
keywords?: KnowledgeBaseArticleCreatekeywordsInput | string[]
content: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type KnowledgeBaseArticleUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
keywords?: KnowledgeBaseArticleUpdatekeywordsInput | string[]
content?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type KnowledgeBaseArticleUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
keywords?: KnowledgeBaseArticleUpdatekeywordsInput | string[]
content?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type LevelCreateInput = {
id?: string
userId: string
guildId: string
xp?: number
level?: number
createdAt?: Date | string
updatedAt?: Date | string
}
export type LevelUncheckedCreateInput = {
id?: string
userId: string
guildId: string
xp?: number
level?: number
createdAt?: Date | string
updatedAt?: Date | string
}
export type LevelUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
xp?: IntFieldUpdateOperationsInput | number
level?: IntFieldUpdateOperationsInput | number
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type LevelUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
xp?: IntFieldUpdateOperationsInput | number
level?: IntFieldUpdateOperationsInput | number
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type LevelCreateManyInput = {
id?: string
userId: string
guildId: string
xp?: number
level?: number
createdAt?: Date | string
updatedAt?: Date | string
}
export type LevelUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
xp?: IntFieldUpdateOperationsInput | number
level?: IntFieldUpdateOperationsInput | number
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type LevelUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
xp?: IntFieldUpdateOperationsInput | number
level?: IntFieldUpdateOperationsInput | number
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type TicketSupportSessionCreateInput = {
id?: string
guildId: string
userId: string
roleId: string
startedAt?: Date | string
endedAt?: Date | string | null
durationSeconds?: number | null
}
export type TicketSupportSessionUncheckedCreateInput = {
id?: string
guildId: string
userId: string
roleId: string
startedAt?: Date | string
endedAt?: Date | string | null
durationSeconds?: number | null
}
export type TicketSupportSessionUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
roleId?: StringFieldUpdateOperationsInput | string
startedAt?: DateTimeFieldUpdateOperationsInput | Date | string
endedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
durationSeconds?: NullableIntFieldUpdateOperationsInput | number | null
}
export type TicketSupportSessionUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
roleId?: StringFieldUpdateOperationsInput | string
startedAt?: DateTimeFieldUpdateOperationsInput | Date | string
endedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
durationSeconds?: NullableIntFieldUpdateOperationsInput | number | null
}
export type TicketSupportSessionCreateManyInput = {
id?: string
guildId: string
userId: string
roleId: string
startedAt?: Date | string
endedAt?: Date | string | null
durationSeconds?: number | null
}
export type TicketSupportSessionUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
roleId?: StringFieldUpdateOperationsInput | string
startedAt?: DateTimeFieldUpdateOperationsInput | Date | string
endedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
durationSeconds?: NullableIntFieldUpdateOperationsInput | number | null
}
export type TicketSupportSessionUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
roleId?: StringFieldUpdateOperationsInput | string
startedAt?: DateTimeFieldUpdateOperationsInput | Date | string
endedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
durationSeconds?: NullableIntFieldUpdateOperationsInput | number | null
}
export type BirthdayCreateInput = {
id?: string
userId: string
guildId: string
birthDate: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type BirthdayUncheckedCreateInput = {
id?: string
userId: string
guildId: string
birthDate: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type BirthdayUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
birthDate?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type BirthdayUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
birthDate?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type BirthdayCreateManyInput = {
id?: string
userId: string
guildId: string
birthDate: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type BirthdayUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
birthDate?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type BirthdayUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
birthDate?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type ReactionRoleSetCreateInput = {
id?: string
guildId: string
channelId: string
messageId?: string | null
title?: string | null
description?: string | null
entries: JsonNullValueInput | InputJsonValue
createdAt?: Date | string
updatedAt?: Date | string
}
export type ReactionRoleSetUncheckedCreateInput = {
id?: string
guildId: string
channelId: string
messageId?: string | null
title?: string | null
description?: string | null
entries: JsonNullValueInput | InputJsonValue
createdAt?: Date | string
updatedAt?: Date | string
}
export type ReactionRoleSetUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
channelId?: StringFieldUpdateOperationsInput | string
messageId?: NullableStringFieldUpdateOperationsInput | string | null
title?: NullableStringFieldUpdateOperationsInput | string | null
description?: NullableStringFieldUpdateOperationsInput | string | null
entries?: JsonNullValueInput | InputJsonValue
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type ReactionRoleSetUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
channelId?: StringFieldUpdateOperationsInput | string
messageId?: NullableStringFieldUpdateOperationsInput | string | null
title?: NullableStringFieldUpdateOperationsInput | string | null
description?: NullableStringFieldUpdateOperationsInput | string | null
entries?: JsonNullValueInput | InputJsonValue
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type ReactionRoleSetCreateManyInput = {
id?: string
guildId: string
channelId: string
messageId?: string | null
title?: string | null
description?: string | null
entries: JsonNullValueInput | InputJsonValue
createdAt?: Date | string
updatedAt?: Date | string
}
export type ReactionRoleSetUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
channelId?: StringFieldUpdateOperationsInput | string
messageId?: NullableStringFieldUpdateOperationsInput | string | null
title?: NullableStringFieldUpdateOperationsInput | string | null
description?: NullableStringFieldUpdateOperationsInput | string | null
entries?: JsonNullValueInput | InputJsonValue
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type ReactionRoleSetUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
channelId?: StringFieldUpdateOperationsInput | string
messageId?: NullableStringFieldUpdateOperationsInput | string | null
title?: NullableStringFieldUpdateOperationsInput | string | null
description?: NullableStringFieldUpdateOperationsInput | string | null
entries?: JsonNullValueInput | InputJsonValue
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type EventCreateInput = {
id?: string
guildId: string
title: string
description?: string | null
channelId: string
startTime: Date | string
repeatType?: string
repeatConfig?: NullableJsonNullValueInput | InputJsonValue
reminderOffsetMinutes?: number
roleId?: string | null
isActive?: boolean
lastReminderAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
signups?: EventSignupCreateNestedManyWithoutEventInput
}
export type EventUncheckedCreateInput = {
id?: string
guildId: string
title: string
description?: string | null
channelId: string
startTime: Date | string
repeatType?: string
repeatConfig?: NullableJsonNullValueInput | InputJsonValue
reminderOffsetMinutes?: number
roleId?: string | null
isActive?: boolean
lastReminderAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
signups?: EventSignupUncheckedCreateNestedManyWithoutEventInput
}
export type EventUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
channelId?: StringFieldUpdateOperationsInput | string
startTime?: DateTimeFieldUpdateOperationsInput | Date | string
repeatType?: StringFieldUpdateOperationsInput | string
repeatConfig?: NullableJsonNullValueInput | InputJsonValue
reminderOffsetMinutes?: IntFieldUpdateOperationsInput | number
roleId?: NullableStringFieldUpdateOperationsInput | string | null
isActive?: BoolFieldUpdateOperationsInput | boolean
lastReminderAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
signups?: EventSignupUpdateManyWithoutEventNestedInput
}
export type EventUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
channelId?: StringFieldUpdateOperationsInput | string
startTime?: DateTimeFieldUpdateOperationsInput | Date | string
repeatType?: StringFieldUpdateOperationsInput | string
repeatConfig?: NullableJsonNullValueInput | InputJsonValue
reminderOffsetMinutes?: IntFieldUpdateOperationsInput | number
roleId?: NullableStringFieldUpdateOperationsInput | string | null
isActive?: BoolFieldUpdateOperationsInput | boolean
lastReminderAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
signups?: EventSignupUncheckedUpdateManyWithoutEventNestedInput
}
export type EventCreateManyInput = {
id?: string
guildId: string
title: string
description?: string | null
channelId: string
startTime: Date | string
repeatType?: string
repeatConfig?: NullableJsonNullValueInput | InputJsonValue
reminderOffsetMinutes?: number
roleId?: string | null
isActive?: boolean
lastReminderAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type EventUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
channelId?: StringFieldUpdateOperationsInput | string
startTime?: DateTimeFieldUpdateOperationsInput | Date | string
repeatType?: StringFieldUpdateOperationsInput | string
repeatConfig?: NullableJsonNullValueInput | InputJsonValue
reminderOffsetMinutes?: IntFieldUpdateOperationsInput | number
roleId?: NullableStringFieldUpdateOperationsInput | string | null
isActive?: BoolFieldUpdateOperationsInput | boolean
lastReminderAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type EventUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
channelId?: StringFieldUpdateOperationsInput | string
startTime?: DateTimeFieldUpdateOperationsInput | Date | string
repeatType?: StringFieldUpdateOperationsInput | string
repeatConfig?: NullableJsonNullValueInput | InputJsonValue
reminderOffsetMinutes?: IntFieldUpdateOperationsInput | number
roleId?: NullableStringFieldUpdateOperationsInput | string | null
isActive?: BoolFieldUpdateOperationsInput | boolean
lastReminderAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type EventSignupCreateInput = {
id?: string
guildId: string
userId: string
createdAt?: Date | string
canceledAt?: Date | string | null
event: EventCreateNestedOneWithoutSignupsInput
}
export type EventSignupUncheckedCreateInput = {
id?: string
eventId: string
guildId: string
userId: string
createdAt?: Date | string
canceledAt?: Date | string | null
}
export type EventSignupUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
canceledAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
event?: EventUpdateOneRequiredWithoutSignupsNestedInput
}
export type EventSignupUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
eventId?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
canceledAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type EventSignupCreateManyInput = {
id?: string
eventId: string
guildId: string
userId: string
createdAt?: Date | string
canceledAt?: Date | string | null
}
export type EventSignupUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
canceledAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type EventSignupUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
eventId?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
canceledAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type RegisterFormCreateInput = {
id?: string
guildId: string
name: string
description?: string | null
reviewChannelId?: string | null
notifyRoleIds?: RegisterFormCreatenotifyRoleIdsInput | string[]
isActive?: boolean
createdAt?: Date | string
updatedAt?: Date | string
fields?: RegisterFormFieldCreateNestedManyWithoutFormInput
applications?: RegisterApplicationCreateNestedManyWithoutFormInput
}
export type RegisterFormUncheckedCreateInput = {
id?: string
guildId: string
name: string
description?: string | null
reviewChannelId?: string | null
notifyRoleIds?: RegisterFormCreatenotifyRoleIdsInput | string[]
isActive?: boolean
createdAt?: Date | string
updatedAt?: Date | string
fields?: RegisterFormFieldUncheckedCreateNestedManyWithoutFormInput
applications?: RegisterApplicationUncheckedCreateNestedManyWithoutFormInput
}
export type RegisterFormUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
reviewChannelId?: NullableStringFieldUpdateOperationsInput | string | null
notifyRoleIds?: RegisterFormUpdatenotifyRoleIdsInput | string[]
isActive?: BoolFieldUpdateOperationsInput | boolean
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
fields?: RegisterFormFieldUpdateManyWithoutFormNestedInput
applications?: RegisterApplicationUpdateManyWithoutFormNestedInput
}
export type RegisterFormUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
reviewChannelId?: NullableStringFieldUpdateOperationsInput | string | null
notifyRoleIds?: RegisterFormUpdatenotifyRoleIdsInput | string[]
isActive?: BoolFieldUpdateOperationsInput | boolean
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
fields?: RegisterFormFieldUncheckedUpdateManyWithoutFormNestedInput
applications?: RegisterApplicationUncheckedUpdateManyWithoutFormNestedInput
}
export type RegisterFormCreateManyInput = {
id?: string
guildId: string
name: string
description?: string | null
reviewChannelId?: string | null
notifyRoleIds?: RegisterFormCreatenotifyRoleIdsInput | string[]
isActive?: boolean
createdAt?: Date | string
updatedAt?: Date | string
}
export type RegisterFormUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
reviewChannelId?: NullableStringFieldUpdateOperationsInput | string | null
notifyRoleIds?: RegisterFormUpdatenotifyRoleIdsInput | string[]
isActive?: BoolFieldUpdateOperationsInput | boolean
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type RegisterFormUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
reviewChannelId?: NullableStringFieldUpdateOperationsInput | string | null
notifyRoleIds?: RegisterFormUpdatenotifyRoleIdsInput | string[]
isActive?: BoolFieldUpdateOperationsInput | boolean
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type RegisterFormFieldCreateInput = {
id?: string
label: string
type: string
required?: boolean
order?: number
form: RegisterFormCreateNestedOneWithoutFieldsInput
}
export type RegisterFormFieldUncheckedCreateInput = {
id?: string
formId: string
label: string
type: string
required?: boolean
order?: number
}
export type RegisterFormFieldUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
label?: StringFieldUpdateOperationsInput | string
type?: StringFieldUpdateOperationsInput | string
required?: BoolFieldUpdateOperationsInput | boolean
order?: IntFieldUpdateOperationsInput | number
form?: RegisterFormUpdateOneRequiredWithoutFieldsNestedInput
}
export type RegisterFormFieldUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
formId?: StringFieldUpdateOperationsInput | string
label?: StringFieldUpdateOperationsInput | string
type?: StringFieldUpdateOperationsInput | string
required?: BoolFieldUpdateOperationsInput | boolean
order?: IntFieldUpdateOperationsInput | number
}
export type RegisterFormFieldCreateManyInput = {
id?: string
formId: string
label: string
type: string
required?: boolean
order?: number
}
export type RegisterFormFieldUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
label?: StringFieldUpdateOperationsInput | string
type?: StringFieldUpdateOperationsInput | string
required?: BoolFieldUpdateOperationsInput | boolean
order?: IntFieldUpdateOperationsInput | number
}
export type RegisterFormFieldUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
formId?: StringFieldUpdateOperationsInput | string
label?: StringFieldUpdateOperationsInput | string
type?: StringFieldUpdateOperationsInput | string
required?: BoolFieldUpdateOperationsInput | boolean
order?: IntFieldUpdateOperationsInput | number
}
export type RegisterApplicationCreateInput = {
id?: string
guildId: string
userId: string
status?: string
reviewedBy?: string | null
createdAt?: Date | string
updatedAt?: Date | string
answers?: RegisterApplicationAnswerCreateNestedManyWithoutApplicationInput
notes?: RegisterApplicationNoteCreateNestedManyWithoutApplicationInput
form: RegisterFormCreateNestedOneWithoutApplicationsInput
}
export type RegisterApplicationUncheckedCreateInput = {
id?: string
guildId: string
userId: string
formId: string
status?: string
reviewedBy?: string | null
createdAt?: Date | string
updatedAt?: Date | string
answers?: RegisterApplicationAnswerUncheckedCreateNestedManyWithoutApplicationInput
notes?: RegisterApplicationNoteUncheckedCreateNestedManyWithoutApplicationInput
}
export type RegisterApplicationUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
status?: StringFieldUpdateOperationsInput | string
reviewedBy?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
answers?: RegisterApplicationAnswerUpdateManyWithoutApplicationNestedInput
notes?: RegisterApplicationNoteUpdateManyWithoutApplicationNestedInput
form?: RegisterFormUpdateOneRequiredWithoutApplicationsNestedInput
}
export type RegisterApplicationUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
formId?: StringFieldUpdateOperationsInput | string
status?: StringFieldUpdateOperationsInput | string
reviewedBy?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
answers?: RegisterApplicationAnswerUncheckedUpdateManyWithoutApplicationNestedInput
notes?: RegisterApplicationNoteUncheckedUpdateManyWithoutApplicationNestedInput
}
export type RegisterApplicationCreateManyInput = {
id?: string
guildId: string
userId: string
formId: string
status?: string
reviewedBy?: string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type RegisterApplicationUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
status?: StringFieldUpdateOperationsInput | string
reviewedBy?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type RegisterApplicationUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
formId?: StringFieldUpdateOperationsInput | string
status?: StringFieldUpdateOperationsInput | string
reviewedBy?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type RegisterApplicationAnswerCreateInput = {
id?: string
fieldId: string
value: string
application: RegisterApplicationCreateNestedOneWithoutAnswersInput
}
export type RegisterApplicationAnswerUncheckedCreateInput = {
id?: string
applicationId: string
fieldId: string
value: string
}
export type RegisterApplicationAnswerUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
fieldId?: StringFieldUpdateOperationsInput | string
value?: StringFieldUpdateOperationsInput | string
application?: RegisterApplicationUpdateOneRequiredWithoutAnswersNestedInput
}
export type RegisterApplicationAnswerUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
applicationId?: StringFieldUpdateOperationsInput | string
fieldId?: StringFieldUpdateOperationsInput | string
value?: StringFieldUpdateOperationsInput | string
}
export type RegisterApplicationAnswerCreateManyInput = {
id?: string
applicationId: string
fieldId: string
value: string
}
export type RegisterApplicationAnswerUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
fieldId?: StringFieldUpdateOperationsInput | string
value?: StringFieldUpdateOperationsInput | string
}
export type RegisterApplicationAnswerUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
applicationId?: StringFieldUpdateOperationsInput | string
fieldId?: StringFieldUpdateOperationsInput | string
value?: StringFieldUpdateOperationsInput | string
}
export type RegisterApplicationNoteCreateInput = {
id?: string
authorId: string
authorTag: string
body: string
createdAt?: Date | string
application: RegisterApplicationCreateNestedOneWithoutNotesInput
}
export type RegisterApplicationNoteUncheckedCreateInput = {
id?: string
applicationId: string
authorId: string
authorTag: string
body: string
createdAt?: Date | string
}
export type RegisterApplicationNoteUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
authorId?: StringFieldUpdateOperationsInput | string
authorTag?: StringFieldUpdateOperationsInput | string
body?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
application?: RegisterApplicationUpdateOneRequiredWithoutNotesNestedInput
}
export type RegisterApplicationNoteUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
applicationId?: StringFieldUpdateOperationsInput | string
authorId?: StringFieldUpdateOperationsInput | string
authorTag?: StringFieldUpdateOperationsInput | string
body?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type RegisterApplicationNoteCreateManyInput = {
id?: string
applicationId: string
authorId: string
authorTag: string
body: string
createdAt?: Date | string
}
export type RegisterApplicationNoteUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
authorId?: StringFieldUpdateOperationsInput | string
authorTag?: StringFieldUpdateOperationsInput | string
body?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type RegisterApplicationNoteUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
applicationId?: StringFieldUpdateOperationsInput | string
authorId?: StringFieldUpdateOperationsInput | string
authorTag?: StringFieldUpdateOperationsInput | string
body?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type AutomodStrikeCreateInput = {
id?: string
guildId: string
userId: string
filterKey: string
weight?: number
reason?: string | null
createdAt?: Date | string
}
export type AutomodStrikeUncheckedCreateInput = {
id?: string
guildId: string
userId: string
filterKey: string
weight?: number
reason?: string | null
createdAt?: Date | string
}
export type AutomodStrikeUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
filterKey?: StringFieldUpdateOperationsInput | string
weight?: IntFieldUpdateOperationsInput | number
reason?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type AutomodStrikeUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
filterKey?: StringFieldUpdateOperationsInput | string
weight?: IntFieldUpdateOperationsInput | number
reason?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type AutomodStrikeCreateManyInput = {
id?: string
guildId: string
userId: string
filterKey: string
weight?: number
reason?: string | null
createdAt?: Date | string
}
export type AutomodStrikeUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
filterKey?: StringFieldUpdateOperationsInput | string
weight?: IntFieldUpdateOperationsInput | number
reason?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type AutomodStrikeUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
filterKey?: StringFieldUpdateOperationsInput | string
weight?: IntFieldUpdateOperationsInput | number
reason?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type StaffTaskCreateInput = {
id?: string
guildId: string
title: string
description?: string | null
status?: string
assigneeId?: string | null
createdBy: string
createdByTag: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type StaffTaskUncheckedCreateInput = {
id?: string
guildId: string
title: string
description?: string | null
status?: string
assigneeId?: string | null
createdBy: string
createdByTag: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type StaffTaskUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
status?: StringFieldUpdateOperationsInput | string
assigneeId?: NullableStringFieldUpdateOperationsInput | string | null
createdBy?: StringFieldUpdateOperationsInput | string
createdByTag?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type StaffTaskUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
status?: StringFieldUpdateOperationsInput | string
assigneeId?: NullableStringFieldUpdateOperationsInput | string | null
createdBy?: StringFieldUpdateOperationsInput | string
createdByTag?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type StaffTaskCreateManyInput = {
id?: string
guildId: string
title: string
description?: string | null
status?: string
assigneeId?: string | null
createdBy: string
createdByTag: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type StaffTaskUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
status?: StringFieldUpdateOperationsInput | string
assigneeId?: NullableStringFieldUpdateOperationsInput | string | null
createdBy?: StringFieldUpdateOperationsInput | string
createdByTag?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type StaffTaskUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
status?: StringFieldUpdateOperationsInput | string
assigneeId?: NullableStringFieldUpdateOperationsInput | string | null
createdBy?: StringFieldUpdateOperationsInput | string
createdByTag?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type ModCaseCreateInput = {
id?: string
guildId: string
userId: string
type: string
reason?: string | null
moderatorId: string
moderatorTag: string
createdAt?: Date | string
}
export type ModCaseUncheckedCreateInput = {
id?: string
guildId: string
userId: string
type: string
reason?: string | null
moderatorId: string
moderatorTag: string
createdAt?: Date | string
}
export type ModCaseUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
type?: StringFieldUpdateOperationsInput | string
reason?: NullableStringFieldUpdateOperationsInput | string | null
moderatorId?: StringFieldUpdateOperationsInput | string
moderatorTag?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type ModCaseUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
type?: StringFieldUpdateOperationsInput | string
reason?: NullableStringFieldUpdateOperationsInput | string | null
moderatorId?: StringFieldUpdateOperationsInput | string
moderatorTag?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type ModCaseCreateManyInput = {
id?: string
guildId: string
userId: string
type: string
reason?: string | null
moderatorId: string
moderatorTag: string
createdAt?: Date | string
}
export type ModCaseUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
type?: StringFieldUpdateOperationsInput | string
reason?: NullableStringFieldUpdateOperationsInput | string | null
moderatorId?: StringFieldUpdateOperationsInput | string
moderatorTag?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type ModCaseUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
type?: StringFieldUpdateOperationsInput | string
reason?: NullableStringFieldUpdateOperationsInput | string | null
moderatorId?: StringFieldUpdateOperationsInput | string
moderatorTag?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type WatchlistCreateInput = {
id?: string
guildId: string
userId: string
reason?: string | null
addedBy: string
addedAt?: Date | string
active?: boolean
}
export type WatchlistUncheckedCreateInput = {
id?: string
guildId: string
userId: string
reason?: string | null
addedBy: string
addedAt?: Date | string
active?: boolean
}
export type WatchlistUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
reason?: NullableStringFieldUpdateOperationsInput | string | null
addedBy?: StringFieldUpdateOperationsInput | string
addedAt?: DateTimeFieldUpdateOperationsInput | Date | string
active?: BoolFieldUpdateOperationsInput | boolean
}
export type WatchlistUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
reason?: NullableStringFieldUpdateOperationsInput | string | null
addedBy?: StringFieldUpdateOperationsInput | string
addedAt?: DateTimeFieldUpdateOperationsInput | Date | string
active?: BoolFieldUpdateOperationsInput | boolean
}
export type WatchlistCreateManyInput = {
id?: string
guildId: string
userId: string
reason?: string | null
addedBy: string
addedAt?: Date | string
active?: boolean
}
export type WatchlistUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
reason?: NullableStringFieldUpdateOperationsInput | string | null
addedBy?: StringFieldUpdateOperationsInput | string
addedAt?: DateTimeFieldUpdateOperationsInput | Date | string
active?: BoolFieldUpdateOperationsInput | boolean
}
export type WatchlistUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
reason?: NullableStringFieldUpdateOperationsInput | string | null
addedBy?: StringFieldUpdateOperationsInput | string
addedAt?: DateTimeFieldUpdateOperationsInput | Date | string
active?: BoolFieldUpdateOperationsInput | boolean
}
export type UserBadgeCreateInput = {
id?: string
guildId: string
userId: string
badgeKey: string
awardedAt?: Date | string
}
export type UserBadgeUncheckedCreateInput = {
id?: string
guildId: string
userId: string
badgeKey: string
awardedAt?: Date | string
}
export type UserBadgeUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
badgeKey?: StringFieldUpdateOperationsInput | string
awardedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type UserBadgeUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
badgeKey?: StringFieldUpdateOperationsInput | string
awardedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type UserBadgeCreateManyInput = {
id?: string
guildId: string
userId: string
badgeKey: string
awardedAt?: Date | string
}
export type UserBadgeUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
badgeKey?: StringFieldUpdateOperationsInput | string
awardedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type UserBadgeUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
badgeKey?: StringFieldUpdateOperationsInput | string
awardedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type UserActivityCreateInput = {
id?: string
guildId: string
userId: string
messageCount?: number
activeDays?: number
lastActiveDay?: string | null
}
export type UserActivityUncheckedCreateInput = {
id?: string
guildId: string
userId: string
messageCount?: number
activeDays?: number
lastActiveDay?: string | null
}
export type UserActivityUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
messageCount?: IntFieldUpdateOperationsInput | number
activeDays?: IntFieldUpdateOperationsInput | number
lastActiveDay?: NullableStringFieldUpdateOperationsInput | string | null
}
export type UserActivityUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
messageCount?: IntFieldUpdateOperationsInput | number
activeDays?: IntFieldUpdateOperationsInput | number
lastActiveDay?: NullableStringFieldUpdateOperationsInput | string | null
}
export type UserActivityCreateManyInput = {
id?: string
guildId: string
userId: string
messageCount?: number
activeDays?: number
lastActiveDay?: string | null
}
export type UserActivityUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
messageCount?: IntFieldUpdateOperationsInput | number
activeDays?: IntFieldUpdateOperationsInput | number
lastActiveDay?: NullableStringFieldUpdateOperationsInput | string | null
}
export type UserActivityUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
messageCount?: IntFieldUpdateOperationsInput | number
activeDays?: IntFieldUpdateOperationsInput | number
lastActiveDay?: NullableStringFieldUpdateOperationsInput | string | null
}
export type WeeklyPlanCreateInput = {
id?: string
guildId: string
channelId: string
messageId?: string | null
title?: string
entries: JsonNullValueInput | InputJsonValue
createdAt?: Date | string
updatedAt?: Date | string
}
export type WeeklyPlanUncheckedCreateInput = {
id?: string
guildId: string
channelId: string
messageId?: string | null
title?: string
entries: JsonNullValueInput | InputJsonValue
createdAt?: Date | string
updatedAt?: Date | string
}
export type WeeklyPlanUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
channelId?: StringFieldUpdateOperationsInput | string
messageId?: NullableStringFieldUpdateOperationsInput | string | null
title?: StringFieldUpdateOperationsInput | string
entries?: JsonNullValueInput | InputJsonValue
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type WeeklyPlanUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
channelId?: StringFieldUpdateOperationsInput | string
messageId?: NullableStringFieldUpdateOperationsInput | string | null
title?: StringFieldUpdateOperationsInput | string
entries?: JsonNullValueInput | InputJsonValue
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type WeeklyPlanCreateManyInput = {
id?: string
guildId: string
channelId: string
messageId?: string | null
title?: string
entries: JsonNullValueInput | InputJsonValue
createdAt?: Date | string
updatedAt?: Date | string
}
export type WeeklyPlanUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
channelId?: StringFieldUpdateOperationsInput | string
messageId?: NullableStringFieldUpdateOperationsInput | string | null
title?: StringFieldUpdateOperationsInput | string
entries?: JsonNullValueInput | InputJsonValue
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type WeeklyPlanUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
channelId?: StringFieldUpdateOperationsInput | string
messageId?: NullableStringFieldUpdateOperationsInput | string | null
title?: StringFieldUpdateOperationsInput | string
entries?: JsonNullValueInput | InputJsonValue
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type WeeklyPlanRsvpCreateInput = {
id?: string
planId: string
entryId: string
userId: string
createdAt?: Date | string
}
export type WeeklyPlanRsvpUncheckedCreateInput = {
id?: string
planId: string
entryId: string
userId: string
createdAt?: Date | string
}
export type WeeklyPlanRsvpUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
planId?: StringFieldUpdateOperationsInput | string
entryId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type WeeklyPlanRsvpUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
planId?: StringFieldUpdateOperationsInput | string
entryId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type WeeklyPlanRsvpCreateManyInput = {
id?: string
planId: string
entryId: string
userId: string
createdAt?: Date | string
}
export type WeeklyPlanRsvpUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
planId?: StringFieldUpdateOperationsInput | string
entryId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type WeeklyPlanRsvpUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
planId?: StringFieldUpdateOperationsInput | string
entryId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type PollCreateInput = {
id?: string
guildId: string
channelId: string
messageId?: string | null
question: string
options: JsonNullValueInput | InputJsonValue
anonymous?: boolean
closesAt?: Date | string | null
closed?: boolean
createdBy: string
createdAt?: Date | string
votes?: PollVoteCreateNestedManyWithoutPollInput
}
export type PollUncheckedCreateInput = {
id?: string
guildId: string
channelId: string
messageId?: string | null
question: string
options: JsonNullValueInput | InputJsonValue
anonymous?: boolean
closesAt?: Date | string | null
closed?: boolean
createdBy: string
createdAt?: Date | string
votes?: PollVoteUncheckedCreateNestedManyWithoutPollInput
}
export type PollUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
channelId?: StringFieldUpdateOperationsInput | string
messageId?: NullableStringFieldUpdateOperationsInput | string | null
question?: StringFieldUpdateOperationsInput | string
options?: JsonNullValueInput | InputJsonValue
anonymous?: BoolFieldUpdateOperationsInput | boolean
closesAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
closed?: BoolFieldUpdateOperationsInput | boolean
createdBy?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
votes?: PollVoteUpdateManyWithoutPollNestedInput
}
export type PollUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
channelId?: StringFieldUpdateOperationsInput | string
messageId?: NullableStringFieldUpdateOperationsInput | string | null
question?: StringFieldUpdateOperationsInput | string
options?: JsonNullValueInput | InputJsonValue
anonymous?: BoolFieldUpdateOperationsInput | boolean
closesAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
closed?: BoolFieldUpdateOperationsInput | boolean
createdBy?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
votes?: PollVoteUncheckedUpdateManyWithoutPollNestedInput
}
export type PollCreateManyInput = {
id?: string
guildId: string
channelId: string
messageId?: string | null
question: string
options: JsonNullValueInput | InputJsonValue
anonymous?: boolean
closesAt?: Date | string | null
closed?: boolean
createdBy: string
createdAt?: Date | string
}
export type PollUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
channelId?: StringFieldUpdateOperationsInput | string
messageId?: NullableStringFieldUpdateOperationsInput | string | null
question?: StringFieldUpdateOperationsInput | string
options?: JsonNullValueInput | InputJsonValue
anonymous?: BoolFieldUpdateOperationsInput | boolean
closesAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
closed?: BoolFieldUpdateOperationsInput | boolean
createdBy?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type PollUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
channelId?: StringFieldUpdateOperationsInput | string
messageId?: NullableStringFieldUpdateOperationsInput | string | null
question?: StringFieldUpdateOperationsInput | string
options?: JsonNullValueInput | InputJsonValue
anonymous?: BoolFieldUpdateOperationsInput | boolean
closesAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
closed?: BoolFieldUpdateOperationsInput | boolean
createdBy?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type PollVoteCreateInput = {
id?: string
userId: string
optionId: string
createdAt?: Date | string
poll: PollCreateNestedOneWithoutVotesInput
}
export type PollVoteUncheckedCreateInput = {
id?: string
pollId: string
userId: string
optionId: string
createdAt?: Date | string
}
export type PollVoteUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
optionId?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
poll?: PollUpdateOneRequiredWithoutVotesNestedInput
}
export type PollVoteUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
pollId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
optionId?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type PollVoteCreateManyInput = {
id?: string
pollId: string
userId: string
optionId: string
createdAt?: Date | string
}
export type PollVoteUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
optionId?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type PollVoteUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
pollId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
optionId?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type SuggestionCreateInput = {
id?: string
guildId: string
channelId: string
messageId?: string | null
userId: string
userTag: string
content: string
status?: string
createdAt?: Date | string
votes?: SuggestionVoteCreateNestedManyWithoutSuggestionInput
}
export type SuggestionUncheckedCreateInput = {
id?: string
guildId: string
channelId: string
messageId?: string | null
userId: string
userTag: string
content: string
status?: string
createdAt?: Date | string
votes?: SuggestionVoteUncheckedCreateNestedManyWithoutSuggestionInput
}
export type SuggestionUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
channelId?: StringFieldUpdateOperationsInput | string
messageId?: NullableStringFieldUpdateOperationsInput | string | null
userId?: StringFieldUpdateOperationsInput | string
userTag?: StringFieldUpdateOperationsInput | string
content?: StringFieldUpdateOperationsInput | string
status?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
votes?: SuggestionVoteUpdateManyWithoutSuggestionNestedInput
}
export type SuggestionUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
channelId?: StringFieldUpdateOperationsInput | string
messageId?: NullableStringFieldUpdateOperationsInput | string | null
userId?: StringFieldUpdateOperationsInput | string
userTag?: StringFieldUpdateOperationsInput | string
content?: StringFieldUpdateOperationsInput | string
status?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
votes?: SuggestionVoteUncheckedUpdateManyWithoutSuggestionNestedInput
}
export type SuggestionCreateManyInput = {
id?: string
guildId: string
channelId: string
messageId?: string | null
userId: string
userTag: string
content: string
status?: string
createdAt?: Date | string
}
export type SuggestionUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
channelId?: StringFieldUpdateOperationsInput | string
messageId?: NullableStringFieldUpdateOperationsInput | string | null
userId?: StringFieldUpdateOperationsInput | string
userTag?: StringFieldUpdateOperationsInput | string
content?: StringFieldUpdateOperationsInput | string
status?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type SuggestionUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
channelId?: StringFieldUpdateOperationsInput | string
messageId?: NullableStringFieldUpdateOperationsInput | string | null
userId?: StringFieldUpdateOperationsInput | string
userTag?: StringFieldUpdateOperationsInput | string
content?: StringFieldUpdateOperationsInput | string
status?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type SuggestionVoteCreateInput = {
id?: string
userId: string
value: number
suggestion: SuggestionCreateNestedOneWithoutVotesInput
}
export type SuggestionVoteUncheckedCreateInput = {
id?: string
suggestionId: string
userId: string
value: number
}
export type SuggestionVoteUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
value?: IntFieldUpdateOperationsInput | number
suggestion?: SuggestionUpdateOneRequiredWithoutVotesNestedInput
}
export type SuggestionVoteUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
suggestionId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
value?: IntFieldUpdateOperationsInput | number
}
export type SuggestionVoteCreateManyInput = {
id?: string
suggestionId: string
userId: string
value: number
}
export type SuggestionVoteUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
value?: IntFieldUpdateOperationsInput | number
}
export type SuggestionVoteUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
suggestionId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
value?: IntFieldUpdateOperationsInput | number
}
export type PartnerRequestCreateInput = {
id?: string
guildId: string
userId: string
userTag: string
serverName: string
inviteCode: string
memberCount?: number | null
description?: string | null
status?: string
reviewedBy?: string | null
createdAt?: Date | string
}
export type PartnerRequestUncheckedCreateInput = {
id?: string
guildId: string
userId: string
userTag: string
serverName: string
inviteCode: string
memberCount?: number | null
description?: string | null
status?: string
reviewedBy?: string | null
createdAt?: Date | string
}
export type PartnerRequestUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
userTag?: StringFieldUpdateOperationsInput | string
serverName?: StringFieldUpdateOperationsInput | string
inviteCode?: StringFieldUpdateOperationsInput | string
memberCount?: NullableIntFieldUpdateOperationsInput | number | null
description?: NullableStringFieldUpdateOperationsInput | string | null
status?: StringFieldUpdateOperationsInput | string
reviewedBy?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type PartnerRequestUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
userTag?: StringFieldUpdateOperationsInput | string
serverName?: StringFieldUpdateOperationsInput | string
inviteCode?: StringFieldUpdateOperationsInput | string
memberCount?: NullableIntFieldUpdateOperationsInput | number | null
description?: NullableStringFieldUpdateOperationsInput | string | null
status?: StringFieldUpdateOperationsInput | string
reviewedBy?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type PartnerRequestCreateManyInput = {
id?: string
guildId: string
userId: string
userTag: string
serverName: string
inviteCode: string
memberCount?: number | null
description?: string | null
status?: string
reviewedBy?: string | null
createdAt?: Date | string
}
export type PartnerRequestUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
userTag?: StringFieldUpdateOperationsInput | string
serverName?: StringFieldUpdateOperationsInput | string
inviteCode?: StringFieldUpdateOperationsInput | string
memberCount?: NullableIntFieldUpdateOperationsInput | number | null
description?: NullableStringFieldUpdateOperationsInput | string | null
status?: StringFieldUpdateOperationsInput | string
reviewedBy?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type PartnerRequestUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
userTag?: StringFieldUpdateOperationsInput | string
serverName?: StringFieldUpdateOperationsInput | string
inviteCode?: StringFieldUpdateOperationsInput | string
memberCount?: NullableIntFieldUpdateOperationsInput | number | null
description?: NullableStringFieldUpdateOperationsInput | string | null
status?: StringFieldUpdateOperationsInput | string
reviewedBy?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type GalleryPostCreateInput = {
id?: string
guildId: string
channelId: string
messageId?: string | null
userId: string
userTag: string
imageUrl: string
caption?: string | null
createdAt?: Date | string
votes?: GalleryVoteCreateNestedManyWithoutPostInput
}
export type GalleryPostUncheckedCreateInput = {
id?: string
guildId: string
channelId: string
messageId?: string | null
userId: string
userTag: string
imageUrl: string
caption?: string | null
createdAt?: Date | string
votes?: GalleryVoteUncheckedCreateNestedManyWithoutPostInput
}
export type GalleryPostUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
channelId?: StringFieldUpdateOperationsInput | string
messageId?: NullableStringFieldUpdateOperationsInput | string | null
userId?: StringFieldUpdateOperationsInput | string
userTag?: StringFieldUpdateOperationsInput | string
imageUrl?: StringFieldUpdateOperationsInput | string
caption?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
votes?: GalleryVoteUpdateManyWithoutPostNestedInput
}
export type GalleryPostUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
channelId?: StringFieldUpdateOperationsInput | string
messageId?: NullableStringFieldUpdateOperationsInput | string | null
userId?: StringFieldUpdateOperationsInput | string
userTag?: StringFieldUpdateOperationsInput | string
imageUrl?: StringFieldUpdateOperationsInput | string
caption?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
votes?: GalleryVoteUncheckedUpdateManyWithoutPostNestedInput
}
export type GalleryPostCreateManyInput = {
id?: string
guildId: string
channelId: string
messageId?: string | null
userId: string
userTag: string
imageUrl: string
caption?: string | null
createdAt?: Date | string
}
export type GalleryPostUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
channelId?: StringFieldUpdateOperationsInput | string
messageId?: NullableStringFieldUpdateOperationsInput | string | null
userId?: StringFieldUpdateOperationsInput | string
userTag?: StringFieldUpdateOperationsInput | string
imageUrl?: StringFieldUpdateOperationsInput | string
caption?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type GalleryPostUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
channelId?: StringFieldUpdateOperationsInput | string
messageId?: NullableStringFieldUpdateOperationsInput | string | null
userId?: StringFieldUpdateOperationsInput | string
userTag?: StringFieldUpdateOperationsInput | string
imageUrl?: StringFieldUpdateOperationsInput | string
caption?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type GalleryVoteCreateInput = {
id?: string
userId: string
post: GalleryPostCreateNestedOneWithoutVotesInput
}
export type GalleryVoteUncheckedCreateInput = {
id?: string
postId: string
userId: string
}
export type GalleryVoteUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
post?: GalleryPostUpdateOneRequiredWithoutVotesNestedInput
}
export type GalleryVoteUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
postId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
}
export type GalleryVoteCreateManyInput = {
id?: string
postId: string
userId: string
}
export type GalleryVoteUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
}
export type GalleryVoteUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
postId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
}
export type GuildGrowthEventCreateInput = {
id?: string
guildId: string
type: string
userId: string
inviteCode?: string | null
inviterId?: string | null
suspicious?: boolean
createdAt?: Date | string
}
export type GuildGrowthEventUncheckedCreateInput = {
id?: string
guildId: string
type: string
userId: string
inviteCode?: string | null
inviterId?: string | null
suspicious?: boolean
createdAt?: Date | string
}
export type GuildGrowthEventUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
type?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
inviteCode?: NullableStringFieldUpdateOperationsInput | string | null
inviterId?: NullableStringFieldUpdateOperationsInput | string | null
suspicious?: BoolFieldUpdateOperationsInput | boolean
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type GuildGrowthEventUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
type?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
inviteCode?: NullableStringFieldUpdateOperationsInput | string | null
inviterId?: NullableStringFieldUpdateOperationsInput | string | null
suspicious?: BoolFieldUpdateOperationsInput | boolean
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type GuildGrowthEventCreateManyInput = {
id?: string
guildId: string
type: string
userId: string
inviteCode?: string | null
inviterId?: string | null
suspicious?: boolean
createdAt?: Date | string
}
export type GuildGrowthEventUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
type?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
inviteCode?: NullableStringFieldUpdateOperationsInput | string | null
inviterId?: NullableStringFieldUpdateOperationsInput | string | null
suspicious?: BoolFieldUpdateOperationsInput | boolean
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type GuildGrowthEventUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
type?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
inviteCode?: NullableStringFieldUpdateOperationsInput | string | null
inviterId?: NullableStringFieldUpdateOperationsInput | string | null
suspicious?: BoolFieldUpdateOperationsInput | boolean
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type InfoPanelCreateInput = {
id?: string
guildId: string
channelId: string
messageId?: string | null
type: string
title: string
description?: string | null
items?: NullableJsonNullValueInput | InputJsonValue
createdAt?: Date | string
}
export type InfoPanelUncheckedCreateInput = {
id?: string
guildId: string
channelId: string
messageId?: string | null
type: string
title: string
description?: string | null
items?: NullableJsonNullValueInput | InputJsonValue
createdAt?: Date | string
}
export type InfoPanelUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
channelId?: StringFieldUpdateOperationsInput | string
messageId?: NullableStringFieldUpdateOperationsInput | string | null
type?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
items?: NullableJsonNullValueInput | InputJsonValue
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type InfoPanelUncheckedUpdateInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
channelId?: StringFieldUpdateOperationsInput | string
messageId?: NullableStringFieldUpdateOperationsInput | string | null
type?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
items?: NullableJsonNullValueInput | InputJsonValue
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type InfoPanelCreateManyInput = {
id?: string
guildId: string
channelId: string
messageId?: string | null
type: string
title: string
description?: string | null
items?: NullableJsonNullValueInput | InputJsonValue
createdAt?: Date | string
}
export type InfoPanelUpdateManyMutationInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
channelId?: StringFieldUpdateOperationsInput | string
messageId?: NullableStringFieldUpdateOperationsInput | string | null
type?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
items?: NullableJsonNullValueInput | InputJsonValue
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type InfoPanelUncheckedUpdateManyInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
channelId?: StringFieldUpdateOperationsInput | string
messageId?: NullableStringFieldUpdateOperationsInput | string | null
type?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
items?: NullableJsonNullValueInput | InputJsonValue
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type StringFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel>
in?: string[] | ListStringFieldRefInput<$PrismaModel>
notIn?: string[] | ListStringFieldRefInput<$PrismaModel>
lt?: string | StringFieldRefInput<$PrismaModel>
lte?: string | StringFieldRefInput<$PrismaModel>
gt?: string | StringFieldRefInput<$PrismaModel>
gte?: string | StringFieldRefInput<$PrismaModel>
contains?: string | StringFieldRefInput<$PrismaModel>
startsWith?: string | StringFieldRefInput<$PrismaModel>
endsWith?: string | StringFieldRefInput<$PrismaModel>
mode?: QueryMode
not?: NestedStringFilter<$PrismaModel> | string
}
export type StringNullableFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel> | null
in?: string[] | ListStringFieldRefInput<$PrismaModel> | null
notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null
lt?: string | StringFieldRefInput<$PrismaModel>
lte?: string | StringFieldRefInput<$PrismaModel>
gt?: string | StringFieldRefInput<$PrismaModel>
gte?: string | StringFieldRefInput<$PrismaModel>
contains?: string | StringFieldRefInput<$PrismaModel>
startsWith?: string | StringFieldRefInput<$PrismaModel>
endsWith?: string | StringFieldRefInput<$PrismaModel>
mode?: QueryMode
not?: NestedStringNullableFilter<$PrismaModel> | string | null
}
export type BoolNullableFilter<$PrismaModel = never> = {
equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null
not?: NestedBoolNullableFilter<$PrismaModel> | boolean | null
}
export type JsonNullableFilter<$PrismaModel = never> =
| PatchUndefined<
Either<Required<JsonNullableFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonNullableFilterBase<$PrismaModel>>, 'path'>>,
Required<JsonNullableFilterBase<$PrismaModel>>
>
| OptionalFlat<Omit<Required<JsonNullableFilterBase<$PrismaModel>>, 'path'>>
export type JsonNullableFilterBase<$PrismaModel = never> = {
equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
path?: string[]
string_contains?: string | StringFieldRefInput<$PrismaModel>
string_starts_with?: string | StringFieldRefInput<$PrismaModel>
string_ends_with?: string | StringFieldRefInput<$PrismaModel>
array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
}
export type DateTimeFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
not?: NestedDateTimeFilter<$PrismaModel> | Date | string
}
export type SortOrderInput = {
sort: SortOrder
nulls?: NullsOrder
}
export type GuildSettingsCountOrderByAggregateInput = {
guildId?: SortOrder
welcomeChannelId?: SortOrder
logChannelId?: SortOrder
automodEnabled?: SortOrder
automodConfig?: SortOrder
levelingEnabled?: SortOrder
ticketsEnabled?: SortOrder
musicEnabled?: SortOrder
statuspageEnabled?: SortOrder
statuspageConfig?: SortOrder
dynamicVoiceEnabled?: SortOrder
dynamicVoiceConfig?: SortOrder
supportLoginConfig?: SortOrder
birthdayEnabled?: SortOrder
birthdayConfig?: SortOrder
reactionRolesEnabled?: SortOrder
reactionRolesConfig?: SortOrder
eventsEnabled?: SortOrder
registerEnabled?: SortOrder
registerConfig?: SortOrder
serverStatsEnabled?: SortOrder
serverStatsConfig?: SortOrder
lockdownConfig?: SortOrder
tasksEnabled?: SortOrder
badgesEnabled?: SortOrder
brandingConfig?: SortOrder
partnerConfig?: SortOrder
galleryConfig?: SortOrder
imageModerationConfig?: SortOrder
ticketConfig?: SortOrder
supportRoleId?: SortOrder
updatedAt?: SortOrder
createdAt?: SortOrder
}
export type GuildSettingsMaxOrderByAggregateInput = {
guildId?: SortOrder
welcomeChannelId?: SortOrder
logChannelId?: SortOrder
automodEnabled?: SortOrder
levelingEnabled?: SortOrder
ticketsEnabled?: SortOrder
musicEnabled?: SortOrder
statuspageEnabled?: SortOrder
dynamicVoiceEnabled?: SortOrder
birthdayEnabled?: SortOrder
reactionRolesEnabled?: SortOrder
eventsEnabled?: SortOrder
registerEnabled?: SortOrder
serverStatsEnabled?: SortOrder
tasksEnabled?: SortOrder
badgesEnabled?: SortOrder
supportRoleId?: SortOrder
updatedAt?: SortOrder
createdAt?: SortOrder
}
export type GuildSettingsMinOrderByAggregateInput = {
guildId?: SortOrder
welcomeChannelId?: SortOrder
logChannelId?: SortOrder
automodEnabled?: SortOrder
levelingEnabled?: SortOrder
ticketsEnabled?: SortOrder
musicEnabled?: SortOrder
statuspageEnabled?: SortOrder
dynamicVoiceEnabled?: SortOrder
birthdayEnabled?: SortOrder
reactionRolesEnabled?: SortOrder
eventsEnabled?: SortOrder
registerEnabled?: SortOrder
serverStatsEnabled?: SortOrder
tasksEnabled?: SortOrder
badgesEnabled?: SortOrder
supportRoleId?: SortOrder
updatedAt?: SortOrder
createdAt?: SortOrder
}
export type StringWithAggregatesFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel>
in?: string[] | ListStringFieldRefInput<$PrismaModel>
notIn?: string[] | ListStringFieldRefInput<$PrismaModel>
lt?: string | StringFieldRefInput<$PrismaModel>
lte?: string | StringFieldRefInput<$PrismaModel>
gt?: string | StringFieldRefInput<$PrismaModel>
gte?: string | StringFieldRefInput<$PrismaModel>
contains?: string | StringFieldRefInput<$PrismaModel>
startsWith?: string | StringFieldRefInput<$PrismaModel>
endsWith?: string | StringFieldRefInput<$PrismaModel>
mode?: QueryMode
not?: NestedStringWithAggregatesFilter<$PrismaModel> | string
_count?: NestedIntFilter<$PrismaModel>
_min?: NestedStringFilter<$PrismaModel>
_max?: NestedStringFilter<$PrismaModel>
}
export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel> | null
in?: string[] | ListStringFieldRefInput<$PrismaModel> | null
notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null
lt?: string | StringFieldRefInput<$PrismaModel>
lte?: string | StringFieldRefInput<$PrismaModel>
gt?: string | StringFieldRefInput<$PrismaModel>
gte?: string | StringFieldRefInput<$PrismaModel>
contains?: string | StringFieldRefInput<$PrismaModel>
startsWith?: string | StringFieldRefInput<$PrismaModel>
endsWith?: string | StringFieldRefInput<$PrismaModel>
mode?: QueryMode
not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
_count?: NestedIntNullableFilter<$PrismaModel>
_min?: NestedStringNullableFilter<$PrismaModel>
_max?: NestedStringNullableFilter<$PrismaModel>
}
export type BoolNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null
not?: NestedBoolNullableWithAggregatesFilter<$PrismaModel> | boolean | null
_count?: NestedIntNullableFilter<$PrismaModel>
_min?: NestedBoolNullableFilter<$PrismaModel>
_max?: NestedBoolNullableFilter<$PrismaModel>
}
export type JsonNullableWithAggregatesFilter<$PrismaModel = never> =
| PatchUndefined<
Either<Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, 'path'>>,
Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>
>
| OptionalFlat<Omit<Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, 'path'>>
export type JsonNullableWithAggregatesFilterBase<$PrismaModel = never> = {
equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
path?: string[]
string_contains?: string | StringFieldRefInput<$PrismaModel>
string_starts_with?: string | StringFieldRefInput<$PrismaModel>
string_ends_with?: string | StringFieldRefInput<$PrismaModel>
array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
_count?: NestedIntNullableFilter<$PrismaModel>
_min?: NestedJsonNullableFilter<$PrismaModel>
_max?: NestedJsonNullableFilter<$PrismaModel>
}
export type DateTimeWithAggregatesFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
_count?: NestedIntFilter<$PrismaModel>
_min?: NestedDateTimeFilter<$PrismaModel>
_max?: NestedDateTimeFilter<$PrismaModel>
}
export type IntFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel>
in?: number[] | ListIntFieldRefInput<$PrismaModel>
notIn?: number[] | ListIntFieldRefInput<$PrismaModel>
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntFilter<$PrismaModel> | number
}
export type DateTimeNullableFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
}
export type TicketCountOrderByAggregateInput = {
id?: SortOrder
ticketNumber?: SortOrder
userId?: SortOrder
channelId?: SortOrder
guildId?: SortOrder
topic?: SortOrder
priority?: SortOrder
status?: SortOrder
claimedBy?: SortOrder
transcript?: SortOrder
firstClaimAt?: SortOrder
firstResponseAt?: SortOrder
kbSuggestionSentAt?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type TicketAvgOrderByAggregateInput = {
ticketNumber?: SortOrder
}
export type TicketMaxOrderByAggregateInput = {
id?: SortOrder
ticketNumber?: SortOrder
userId?: SortOrder
channelId?: SortOrder
guildId?: SortOrder
topic?: SortOrder
priority?: SortOrder
status?: SortOrder
claimedBy?: SortOrder
transcript?: SortOrder
firstClaimAt?: SortOrder
firstResponseAt?: SortOrder
kbSuggestionSentAt?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type TicketMinOrderByAggregateInput = {
id?: SortOrder
ticketNumber?: SortOrder
userId?: SortOrder
channelId?: SortOrder
guildId?: SortOrder
topic?: SortOrder
priority?: SortOrder
status?: SortOrder
claimedBy?: SortOrder
transcript?: SortOrder
firstClaimAt?: SortOrder
firstResponseAt?: SortOrder
kbSuggestionSentAt?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type TicketSumOrderByAggregateInput = {
ticketNumber?: SortOrder
}
export type IntWithAggregatesFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel>
in?: number[] | ListIntFieldRefInput<$PrismaModel>
notIn?: number[] | ListIntFieldRefInput<$PrismaModel>
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntWithAggregatesFilter<$PrismaModel> | number
_count?: NestedIntFilter<$PrismaModel>
_avg?: NestedFloatFilter<$PrismaModel>
_sum?: NestedIntFilter<$PrismaModel>
_min?: NestedIntFilter<$PrismaModel>
_max?: NestedIntFilter<$PrismaModel>
}
export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null
_count?: NestedIntNullableFilter<$PrismaModel>
_min?: NestedDateTimeNullableFilter<$PrismaModel>
_max?: NestedDateTimeNullableFilter<$PrismaModel>
}
export type JsonFilter<$PrismaModel = never> =
| PatchUndefined<
Either<Required<JsonFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonFilterBase<$PrismaModel>>, 'path'>>,
Required<JsonFilterBase<$PrismaModel>>
>
| OptionalFlat<Omit<Required<JsonFilterBase<$PrismaModel>>, 'path'>>
export type JsonFilterBase<$PrismaModel = never> = {
equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
path?: string[]
string_contains?: string | StringFieldRefInput<$PrismaModel>
string_starts_with?: string | StringFieldRefInput<$PrismaModel>
string_ends_with?: string | StringFieldRefInput<$PrismaModel>
array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
}
export type BoolFilter<$PrismaModel = never> = {
equals?: boolean | BooleanFieldRefInput<$PrismaModel>
not?: NestedBoolFilter<$PrismaModel> | boolean
}
export type TicketAutomationRuleCountOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
name?: SortOrder
condition?: SortOrder
action?: SortOrder
active?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type TicketAutomationRuleMaxOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
name?: SortOrder
active?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type TicketAutomationRuleMinOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
name?: SortOrder
active?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type JsonWithAggregatesFilter<$PrismaModel = never> =
| PatchUndefined<
Either<Required<JsonWithAggregatesFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonWithAggregatesFilterBase<$PrismaModel>>, 'path'>>,
Required<JsonWithAggregatesFilterBase<$PrismaModel>>
>
| OptionalFlat<Omit<Required<JsonWithAggregatesFilterBase<$PrismaModel>>, 'path'>>
export type JsonWithAggregatesFilterBase<$PrismaModel = never> = {
equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
path?: string[]
string_contains?: string | StringFieldRefInput<$PrismaModel>
string_starts_with?: string | StringFieldRefInput<$PrismaModel>
string_ends_with?: string | StringFieldRefInput<$PrismaModel>
array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
_count?: NestedIntFilter<$PrismaModel>
_min?: NestedJsonFilter<$PrismaModel>
_max?: NestedJsonFilter<$PrismaModel>
}
export type BoolWithAggregatesFilter<$PrismaModel = never> = {
equals?: boolean | BooleanFieldRefInput<$PrismaModel>
not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
_count?: NestedIntFilter<$PrismaModel>
_min?: NestedBoolFilter<$PrismaModel>
_max?: NestedBoolFilter<$PrismaModel>
}
export type StringNullableListFilter<$PrismaModel = never> = {
equals?: string[] | ListStringFieldRefInput<$PrismaModel> | null
has?: string | StringFieldRefInput<$PrismaModel> | null
hasEvery?: string[] | ListStringFieldRefInput<$PrismaModel>
hasSome?: string[] | ListStringFieldRefInput<$PrismaModel>
isEmpty?: boolean
}
export type KnowledgeBaseArticleCountOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
title?: SortOrder
keywords?: SortOrder
content?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type KnowledgeBaseArticleMaxOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
title?: SortOrder
content?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type KnowledgeBaseArticleMinOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
title?: SortOrder
content?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type LevelUserId_guildIdCompoundUniqueInput = {
userId: string
guildId: string
}
export type LevelCountOrderByAggregateInput = {
id?: SortOrder
userId?: SortOrder
guildId?: SortOrder
xp?: SortOrder
level?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type LevelAvgOrderByAggregateInput = {
xp?: SortOrder
level?: SortOrder
}
export type LevelMaxOrderByAggregateInput = {
id?: SortOrder
userId?: SortOrder
guildId?: SortOrder
xp?: SortOrder
level?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type LevelMinOrderByAggregateInput = {
id?: SortOrder
userId?: SortOrder
guildId?: SortOrder
xp?: SortOrder
level?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type LevelSumOrderByAggregateInput = {
xp?: SortOrder
level?: SortOrder
}
export type IntNullableFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel> | null
in?: number[] | ListIntFieldRefInput<$PrismaModel> | null
notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntNullableFilter<$PrismaModel> | number | null
}
export type TicketSupportSessionCountOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
userId?: SortOrder
roleId?: SortOrder
startedAt?: SortOrder
endedAt?: SortOrder
durationSeconds?: SortOrder
}
export type TicketSupportSessionAvgOrderByAggregateInput = {
durationSeconds?: SortOrder
}
export type TicketSupportSessionMaxOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
userId?: SortOrder
roleId?: SortOrder
startedAt?: SortOrder
endedAt?: SortOrder
durationSeconds?: SortOrder
}
export type TicketSupportSessionMinOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
userId?: SortOrder
roleId?: SortOrder
startedAt?: SortOrder
endedAt?: SortOrder
durationSeconds?: SortOrder
}
export type TicketSupportSessionSumOrderByAggregateInput = {
durationSeconds?: SortOrder
}
export type IntNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel> | null
in?: number[] | ListIntFieldRefInput<$PrismaModel> | null
notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null
_count?: NestedIntNullableFilter<$PrismaModel>
_avg?: NestedFloatNullableFilter<$PrismaModel>
_sum?: NestedIntNullableFilter<$PrismaModel>
_min?: NestedIntNullableFilter<$PrismaModel>
_max?: NestedIntNullableFilter<$PrismaModel>
}
export type BirthdayBirthday_user_guildCompoundUniqueInput = {
userId: string
guildId: string
}
export type BirthdayCountOrderByAggregateInput = {
id?: SortOrder
userId?: SortOrder
guildId?: SortOrder
birthDate?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type BirthdayMaxOrderByAggregateInput = {
id?: SortOrder
userId?: SortOrder
guildId?: SortOrder
birthDate?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type BirthdayMinOrderByAggregateInput = {
id?: SortOrder
userId?: SortOrder
guildId?: SortOrder
birthDate?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type ReactionRoleSetCountOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
channelId?: SortOrder
messageId?: SortOrder
title?: SortOrder
description?: SortOrder
entries?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type ReactionRoleSetMaxOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
channelId?: SortOrder
messageId?: SortOrder
title?: SortOrder
description?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type ReactionRoleSetMinOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
channelId?: SortOrder
messageId?: SortOrder
title?: SortOrder
description?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type EventSignupListRelationFilter = {
every?: EventSignupWhereInput
some?: EventSignupWhereInput
none?: EventSignupWhereInput
}
export type EventSignupOrderByRelationAggregateInput = {
_count?: SortOrder
}
export type EventCountOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
title?: SortOrder
description?: SortOrder
channelId?: SortOrder
startTime?: SortOrder
repeatType?: SortOrder
repeatConfig?: SortOrder
reminderOffsetMinutes?: SortOrder
roleId?: SortOrder
isActive?: SortOrder
lastReminderAt?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type EventAvgOrderByAggregateInput = {
reminderOffsetMinutes?: SortOrder
}
export type EventMaxOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
title?: SortOrder
description?: SortOrder
channelId?: SortOrder
startTime?: SortOrder
repeatType?: SortOrder
reminderOffsetMinutes?: SortOrder
roleId?: SortOrder
isActive?: SortOrder
lastReminderAt?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type EventMinOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
title?: SortOrder
description?: SortOrder
channelId?: SortOrder
startTime?: SortOrder
repeatType?: SortOrder
reminderOffsetMinutes?: SortOrder
roleId?: SortOrder
isActive?: SortOrder
lastReminderAt?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type EventSumOrderByAggregateInput = {
reminderOffsetMinutes?: SortOrder
}
export type EventRelationFilter = {
is?: EventWhereInput
isNot?: EventWhereInput
}
export type EventSignupEventIdUserIdCompoundUniqueInput = {
eventId: string
userId: string
}
export type EventSignupCountOrderByAggregateInput = {
id?: SortOrder
eventId?: SortOrder
guildId?: SortOrder
userId?: SortOrder
createdAt?: SortOrder
canceledAt?: SortOrder
}
export type EventSignupMaxOrderByAggregateInput = {
id?: SortOrder
eventId?: SortOrder
guildId?: SortOrder
userId?: SortOrder
createdAt?: SortOrder
canceledAt?: SortOrder
}
export type EventSignupMinOrderByAggregateInput = {
id?: SortOrder
eventId?: SortOrder
guildId?: SortOrder
userId?: SortOrder
createdAt?: SortOrder
canceledAt?: SortOrder
}
export type RegisterFormFieldListRelationFilter = {
every?: RegisterFormFieldWhereInput
some?: RegisterFormFieldWhereInput
none?: RegisterFormFieldWhereInput
}
export type RegisterApplicationListRelationFilter = {
every?: RegisterApplicationWhereInput
some?: RegisterApplicationWhereInput
none?: RegisterApplicationWhereInput
}
export type RegisterFormFieldOrderByRelationAggregateInput = {
_count?: SortOrder
}
export type RegisterApplicationOrderByRelationAggregateInput = {
_count?: SortOrder
}
export type RegisterFormCountOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
name?: SortOrder
description?: SortOrder
reviewChannelId?: SortOrder
notifyRoleIds?: SortOrder
isActive?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type RegisterFormMaxOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
name?: SortOrder
description?: SortOrder
reviewChannelId?: SortOrder
isActive?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type RegisterFormMinOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
name?: SortOrder
description?: SortOrder
reviewChannelId?: SortOrder
isActive?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type RegisterFormRelationFilter = {
is?: RegisterFormWhereInput
isNot?: RegisterFormWhereInput
}
export type RegisterFormFieldCountOrderByAggregateInput = {
id?: SortOrder
formId?: SortOrder
label?: SortOrder
type?: SortOrder
required?: SortOrder
order?: SortOrder
}
export type RegisterFormFieldAvgOrderByAggregateInput = {
order?: SortOrder
}
export type RegisterFormFieldMaxOrderByAggregateInput = {
id?: SortOrder
formId?: SortOrder
label?: SortOrder
type?: SortOrder
required?: SortOrder
order?: SortOrder
}
export type RegisterFormFieldMinOrderByAggregateInput = {
id?: SortOrder
formId?: SortOrder
label?: SortOrder
type?: SortOrder
required?: SortOrder
order?: SortOrder
}
export type RegisterFormFieldSumOrderByAggregateInput = {
order?: SortOrder
}
export type RegisterApplicationAnswerListRelationFilter = {
every?: RegisterApplicationAnswerWhereInput
some?: RegisterApplicationAnswerWhereInput
none?: RegisterApplicationAnswerWhereInput
}
export type RegisterApplicationNoteListRelationFilter = {
every?: RegisterApplicationNoteWhereInput
some?: RegisterApplicationNoteWhereInput
none?: RegisterApplicationNoteWhereInput
}
export type RegisterApplicationAnswerOrderByRelationAggregateInput = {
_count?: SortOrder
}
export type RegisterApplicationNoteOrderByRelationAggregateInput = {
_count?: SortOrder
}
export type RegisterApplicationCountOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
userId?: SortOrder
formId?: SortOrder
status?: SortOrder
reviewedBy?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type RegisterApplicationMaxOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
userId?: SortOrder
formId?: SortOrder
status?: SortOrder
reviewedBy?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type RegisterApplicationMinOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
userId?: SortOrder
formId?: SortOrder
status?: SortOrder
reviewedBy?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type RegisterApplicationRelationFilter = {
is?: RegisterApplicationWhereInput
isNot?: RegisterApplicationWhereInput
}
export type RegisterApplicationAnswerCountOrderByAggregateInput = {
id?: SortOrder
applicationId?: SortOrder
fieldId?: SortOrder
value?: SortOrder
}
export type RegisterApplicationAnswerMaxOrderByAggregateInput = {
id?: SortOrder
applicationId?: SortOrder
fieldId?: SortOrder
value?: SortOrder
}
export type RegisterApplicationAnswerMinOrderByAggregateInput = {
id?: SortOrder
applicationId?: SortOrder
fieldId?: SortOrder
value?: SortOrder
}
export type RegisterApplicationNoteCountOrderByAggregateInput = {
id?: SortOrder
applicationId?: SortOrder
authorId?: SortOrder
authorTag?: SortOrder
body?: SortOrder
createdAt?: SortOrder
}
export type RegisterApplicationNoteMaxOrderByAggregateInput = {
id?: SortOrder
applicationId?: SortOrder
authorId?: SortOrder
authorTag?: SortOrder
body?: SortOrder
createdAt?: SortOrder
}
export type RegisterApplicationNoteMinOrderByAggregateInput = {
id?: SortOrder
applicationId?: SortOrder
authorId?: SortOrder
authorTag?: SortOrder
body?: SortOrder
createdAt?: SortOrder
}
export type AutomodStrikeCountOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
userId?: SortOrder
filterKey?: SortOrder
weight?: SortOrder
reason?: SortOrder
createdAt?: SortOrder
}
export type AutomodStrikeAvgOrderByAggregateInput = {
weight?: SortOrder
}
export type AutomodStrikeMaxOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
userId?: SortOrder
filterKey?: SortOrder
weight?: SortOrder
reason?: SortOrder
createdAt?: SortOrder
}
export type AutomodStrikeMinOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
userId?: SortOrder
filterKey?: SortOrder
weight?: SortOrder
reason?: SortOrder
createdAt?: SortOrder
}
export type AutomodStrikeSumOrderByAggregateInput = {
weight?: SortOrder
}
export type StaffTaskCountOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
title?: SortOrder
description?: SortOrder
status?: SortOrder
assigneeId?: SortOrder
createdBy?: SortOrder
createdByTag?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type StaffTaskMaxOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
title?: SortOrder
description?: SortOrder
status?: SortOrder
assigneeId?: SortOrder
createdBy?: SortOrder
createdByTag?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type StaffTaskMinOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
title?: SortOrder
description?: SortOrder
status?: SortOrder
assigneeId?: SortOrder
createdBy?: SortOrder
createdByTag?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type ModCaseCountOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
userId?: SortOrder
type?: SortOrder
reason?: SortOrder
moderatorId?: SortOrder
moderatorTag?: SortOrder
createdAt?: SortOrder
}
export type ModCaseMaxOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
userId?: SortOrder
type?: SortOrder
reason?: SortOrder
moderatorId?: SortOrder
moderatorTag?: SortOrder
createdAt?: SortOrder
}
export type ModCaseMinOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
userId?: SortOrder
type?: SortOrder
reason?: SortOrder
moderatorId?: SortOrder
moderatorTag?: SortOrder
createdAt?: SortOrder
}
export type WatchlistGuildIdUserIdCompoundUniqueInput = {
guildId: string
userId: string
}
export type WatchlistCountOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
userId?: SortOrder
reason?: SortOrder
addedBy?: SortOrder
addedAt?: SortOrder
active?: SortOrder
}
export type WatchlistMaxOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
userId?: SortOrder
reason?: SortOrder
addedBy?: SortOrder
addedAt?: SortOrder
active?: SortOrder
}
export type WatchlistMinOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
userId?: SortOrder
reason?: SortOrder
addedBy?: SortOrder
addedAt?: SortOrder
active?: SortOrder
}
export type UserBadgeGuildIdUserIdBadgeKeyCompoundUniqueInput = {
guildId: string
userId: string
badgeKey: string
}
export type UserBadgeCountOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
userId?: SortOrder
badgeKey?: SortOrder
awardedAt?: SortOrder
}
export type UserBadgeMaxOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
userId?: SortOrder
badgeKey?: SortOrder
awardedAt?: SortOrder
}
export type UserBadgeMinOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
userId?: SortOrder
badgeKey?: SortOrder
awardedAt?: SortOrder
}
export type UserActivityGuildIdUserIdCompoundUniqueInput = {
guildId: string
userId: string
}
export type UserActivityCountOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
userId?: SortOrder
messageCount?: SortOrder
activeDays?: SortOrder
lastActiveDay?: SortOrder
}
export type UserActivityAvgOrderByAggregateInput = {
messageCount?: SortOrder
activeDays?: SortOrder
}
export type UserActivityMaxOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
userId?: SortOrder
messageCount?: SortOrder
activeDays?: SortOrder
lastActiveDay?: SortOrder
}
export type UserActivityMinOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
userId?: SortOrder
messageCount?: SortOrder
activeDays?: SortOrder
lastActiveDay?: SortOrder
}
export type UserActivitySumOrderByAggregateInput = {
messageCount?: SortOrder
activeDays?: SortOrder
}
export type WeeklyPlanCountOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
channelId?: SortOrder
messageId?: SortOrder
title?: SortOrder
entries?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type WeeklyPlanMaxOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
channelId?: SortOrder
messageId?: SortOrder
title?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type WeeklyPlanMinOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
channelId?: SortOrder
messageId?: SortOrder
title?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type WeeklyPlanRsvpPlanIdEntryIdUserIdCompoundUniqueInput = {
planId: string
entryId: string
userId: string
}
export type WeeklyPlanRsvpCountOrderByAggregateInput = {
id?: SortOrder
planId?: SortOrder
entryId?: SortOrder
userId?: SortOrder
createdAt?: SortOrder
}
export type WeeklyPlanRsvpMaxOrderByAggregateInput = {
id?: SortOrder
planId?: SortOrder
entryId?: SortOrder
userId?: SortOrder
createdAt?: SortOrder
}
export type WeeklyPlanRsvpMinOrderByAggregateInput = {
id?: SortOrder
planId?: SortOrder
entryId?: SortOrder
userId?: SortOrder
createdAt?: SortOrder
}
export type PollVoteListRelationFilter = {
every?: PollVoteWhereInput
some?: PollVoteWhereInput
none?: PollVoteWhereInput
}
export type PollVoteOrderByRelationAggregateInput = {
_count?: SortOrder
}
export type PollCountOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
channelId?: SortOrder
messageId?: SortOrder
question?: SortOrder
options?: SortOrder
anonymous?: SortOrder
closesAt?: SortOrder
closed?: SortOrder
createdBy?: SortOrder
createdAt?: SortOrder
}
export type PollMaxOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
channelId?: SortOrder
messageId?: SortOrder
question?: SortOrder
anonymous?: SortOrder
closesAt?: SortOrder
closed?: SortOrder
createdBy?: SortOrder
createdAt?: SortOrder
}
export type PollMinOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
channelId?: SortOrder
messageId?: SortOrder
question?: SortOrder
anonymous?: SortOrder
closesAt?: SortOrder
closed?: SortOrder
createdBy?: SortOrder
createdAt?: SortOrder
}
export type PollRelationFilter = {
is?: PollWhereInput
isNot?: PollWhereInput
}
export type PollVotePollIdUserIdCompoundUniqueInput = {
pollId: string
userId: string
}
export type PollVoteCountOrderByAggregateInput = {
id?: SortOrder
pollId?: SortOrder
userId?: SortOrder
optionId?: SortOrder
createdAt?: SortOrder
}
export type PollVoteMaxOrderByAggregateInput = {
id?: SortOrder
pollId?: SortOrder
userId?: SortOrder
optionId?: SortOrder
createdAt?: SortOrder
}
export type PollVoteMinOrderByAggregateInput = {
id?: SortOrder
pollId?: SortOrder
userId?: SortOrder
optionId?: SortOrder
createdAt?: SortOrder
}
export type SuggestionVoteListRelationFilter = {
every?: SuggestionVoteWhereInput
some?: SuggestionVoteWhereInput
none?: SuggestionVoteWhereInput
}
export type SuggestionVoteOrderByRelationAggregateInput = {
_count?: SortOrder
}
export type SuggestionCountOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
channelId?: SortOrder
messageId?: SortOrder
userId?: SortOrder
userTag?: SortOrder
content?: SortOrder
status?: SortOrder
createdAt?: SortOrder
}
export type SuggestionMaxOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
channelId?: SortOrder
messageId?: SortOrder
userId?: SortOrder
userTag?: SortOrder
content?: SortOrder
status?: SortOrder
createdAt?: SortOrder
}
export type SuggestionMinOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
channelId?: SortOrder
messageId?: SortOrder
userId?: SortOrder
userTag?: SortOrder
content?: SortOrder
status?: SortOrder
createdAt?: SortOrder
}
export type SuggestionRelationFilter = {
is?: SuggestionWhereInput
isNot?: SuggestionWhereInput
}
export type SuggestionVoteSuggestionIdUserIdCompoundUniqueInput = {
suggestionId: string
userId: string
}
export type SuggestionVoteCountOrderByAggregateInput = {
id?: SortOrder
suggestionId?: SortOrder
userId?: SortOrder
value?: SortOrder
}
export type SuggestionVoteAvgOrderByAggregateInput = {
value?: SortOrder
}
export type SuggestionVoteMaxOrderByAggregateInput = {
id?: SortOrder
suggestionId?: SortOrder
userId?: SortOrder
value?: SortOrder
}
export type SuggestionVoteMinOrderByAggregateInput = {
id?: SortOrder
suggestionId?: SortOrder
userId?: SortOrder
value?: SortOrder
}
export type SuggestionVoteSumOrderByAggregateInput = {
value?: SortOrder
}
export type PartnerRequestCountOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
userId?: SortOrder
userTag?: SortOrder
serverName?: SortOrder
inviteCode?: SortOrder
memberCount?: SortOrder
description?: SortOrder
status?: SortOrder
reviewedBy?: SortOrder
createdAt?: SortOrder
}
export type PartnerRequestAvgOrderByAggregateInput = {
memberCount?: SortOrder
}
export type PartnerRequestMaxOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
userId?: SortOrder
userTag?: SortOrder
serverName?: SortOrder
inviteCode?: SortOrder
memberCount?: SortOrder
description?: SortOrder
status?: SortOrder
reviewedBy?: SortOrder
createdAt?: SortOrder
}
export type PartnerRequestMinOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
userId?: SortOrder
userTag?: SortOrder
serverName?: SortOrder
inviteCode?: SortOrder
memberCount?: SortOrder
description?: SortOrder
status?: SortOrder
reviewedBy?: SortOrder
createdAt?: SortOrder
}
export type PartnerRequestSumOrderByAggregateInput = {
memberCount?: SortOrder
}
export type GalleryVoteListRelationFilter = {
every?: GalleryVoteWhereInput
some?: GalleryVoteWhereInput
none?: GalleryVoteWhereInput
}
export type GalleryVoteOrderByRelationAggregateInput = {
_count?: SortOrder
}
export type GalleryPostCountOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
channelId?: SortOrder
messageId?: SortOrder
userId?: SortOrder
userTag?: SortOrder
imageUrl?: SortOrder
caption?: SortOrder
createdAt?: SortOrder
}
export type GalleryPostMaxOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
channelId?: SortOrder
messageId?: SortOrder
userId?: SortOrder
userTag?: SortOrder
imageUrl?: SortOrder
caption?: SortOrder
createdAt?: SortOrder
}
export type GalleryPostMinOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
channelId?: SortOrder
messageId?: SortOrder
userId?: SortOrder
userTag?: SortOrder
imageUrl?: SortOrder
caption?: SortOrder
createdAt?: SortOrder
}
export type GalleryPostRelationFilter = {
is?: GalleryPostWhereInput
isNot?: GalleryPostWhereInput
}
export type GalleryVotePostIdUserIdCompoundUniqueInput = {
postId: string
userId: string
}
export type GalleryVoteCountOrderByAggregateInput = {
id?: SortOrder
postId?: SortOrder
userId?: SortOrder
}
export type GalleryVoteMaxOrderByAggregateInput = {
id?: SortOrder
postId?: SortOrder
userId?: SortOrder
}
export type GalleryVoteMinOrderByAggregateInput = {
id?: SortOrder
postId?: SortOrder
userId?: SortOrder
}
export type GuildGrowthEventCountOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
type?: SortOrder
userId?: SortOrder
inviteCode?: SortOrder
inviterId?: SortOrder
suspicious?: SortOrder
createdAt?: SortOrder
}
export type GuildGrowthEventMaxOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
type?: SortOrder
userId?: SortOrder
inviteCode?: SortOrder
inviterId?: SortOrder
suspicious?: SortOrder
createdAt?: SortOrder
}
export type GuildGrowthEventMinOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
type?: SortOrder
userId?: SortOrder
inviteCode?: SortOrder
inviterId?: SortOrder
suspicious?: SortOrder
createdAt?: SortOrder
}
export type InfoPanelCountOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
channelId?: SortOrder
messageId?: SortOrder
type?: SortOrder
title?: SortOrder
description?: SortOrder
items?: SortOrder
createdAt?: SortOrder
}
export type InfoPanelMaxOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
channelId?: SortOrder
messageId?: SortOrder
type?: SortOrder
title?: SortOrder
description?: SortOrder
createdAt?: SortOrder
}
export type InfoPanelMinOrderByAggregateInput = {
id?: SortOrder
guildId?: SortOrder
channelId?: SortOrder
messageId?: SortOrder
type?: SortOrder
title?: SortOrder
description?: SortOrder
createdAt?: SortOrder
}
export type StringFieldUpdateOperationsInput = {
set?: string
}
export type NullableStringFieldUpdateOperationsInput = {
set?: string | null
}
export type NullableBoolFieldUpdateOperationsInput = {
set?: boolean | null
}
export type DateTimeFieldUpdateOperationsInput = {
set?: Date | string
}
export type IntFieldUpdateOperationsInput = {
set?: number
increment?: number
decrement?: number
multiply?: number
divide?: number
}
export type NullableDateTimeFieldUpdateOperationsInput = {
set?: Date | string | null
}
export type BoolFieldUpdateOperationsInput = {
set?: boolean
}
export type KnowledgeBaseArticleCreatekeywordsInput = {
set: string[]
}
export type KnowledgeBaseArticleUpdatekeywordsInput = {
set?: string[]
push?: string | string[]
}
export type NullableIntFieldUpdateOperationsInput = {
set?: number | null
increment?: number
decrement?: number
multiply?: number
divide?: number
}
export type EventSignupCreateNestedManyWithoutEventInput = {
create?: XOR<EventSignupCreateWithoutEventInput, EventSignupUncheckedCreateWithoutEventInput> | EventSignupCreateWithoutEventInput[] | EventSignupUncheckedCreateWithoutEventInput[]
connectOrCreate?: EventSignupCreateOrConnectWithoutEventInput | EventSignupCreateOrConnectWithoutEventInput[]
createMany?: EventSignupCreateManyEventInputEnvelope
connect?: EventSignupWhereUniqueInput | EventSignupWhereUniqueInput[]
}
export type EventSignupUncheckedCreateNestedManyWithoutEventInput = {
create?: XOR<EventSignupCreateWithoutEventInput, EventSignupUncheckedCreateWithoutEventInput> | EventSignupCreateWithoutEventInput[] | EventSignupUncheckedCreateWithoutEventInput[]
connectOrCreate?: EventSignupCreateOrConnectWithoutEventInput | EventSignupCreateOrConnectWithoutEventInput[]
createMany?: EventSignupCreateManyEventInputEnvelope
connect?: EventSignupWhereUniqueInput | EventSignupWhereUniqueInput[]
}
export type EventSignupUpdateManyWithoutEventNestedInput = {
create?: XOR<EventSignupCreateWithoutEventInput, EventSignupUncheckedCreateWithoutEventInput> | EventSignupCreateWithoutEventInput[] | EventSignupUncheckedCreateWithoutEventInput[]
connectOrCreate?: EventSignupCreateOrConnectWithoutEventInput | EventSignupCreateOrConnectWithoutEventInput[]
upsert?: EventSignupUpsertWithWhereUniqueWithoutEventInput | EventSignupUpsertWithWhereUniqueWithoutEventInput[]
createMany?: EventSignupCreateManyEventInputEnvelope
set?: EventSignupWhereUniqueInput | EventSignupWhereUniqueInput[]
disconnect?: EventSignupWhereUniqueInput | EventSignupWhereUniqueInput[]
delete?: EventSignupWhereUniqueInput | EventSignupWhereUniqueInput[]
connect?: EventSignupWhereUniqueInput | EventSignupWhereUniqueInput[]
update?: EventSignupUpdateWithWhereUniqueWithoutEventInput | EventSignupUpdateWithWhereUniqueWithoutEventInput[]
updateMany?: EventSignupUpdateManyWithWhereWithoutEventInput | EventSignupUpdateManyWithWhereWithoutEventInput[]
deleteMany?: EventSignupScalarWhereInput | EventSignupScalarWhereInput[]
}
export type EventSignupUncheckedUpdateManyWithoutEventNestedInput = {
create?: XOR<EventSignupCreateWithoutEventInput, EventSignupUncheckedCreateWithoutEventInput> | EventSignupCreateWithoutEventInput[] | EventSignupUncheckedCreateWithoutEventInput[]
connectOrCreate?: EventSignupCreateOrConnectWithoutEventInput | EventSignupCreateOrConnectWithoutEventInput[]
upsert?: EventSignupUpsertWithWhereUniqueWithoutEventInput | EventSignupUpsertWithWhereUniqueWithoutEventInput[]
createMany?: EventSignupCreateManyEventInputEnvelope
set?: EventSignupWhereUniqueInput | EventSignupWhereUniqueInput[]
disconnect?: EventSignupWhereUniqueInput | EventSignupWhereUniqueInput[]
delete?: EventSignupWhereUniqueInput | EventSignupWhereUniqueInput[]
connect?: EventSignupWhereUniqueInput | EventSignupWhereUniqueInput[]
update?: EventSignupUpdateWithWhereUniqueWithoutEventInput | EventSignupUpdateWithWhereUniqueWithoutEventInput[]
updateMany?: EventSignupUpdateManyWithWhereWithoutEventInput | EventSignupUpdateManyWithWhereWithoutEventInput[]
deleteMany?: EventSignupScalarWhereInput | EventSignupScalarWhereInput[]
}
export type EventCreateNestedOneWithoutSignupsInput = {
create?: XOR<EventCreateWithoutSignupsInput, EventUncheckedCreateWithoutSignupsInput>
connectOrCreate?: EventCreateOrConnectWithoutSignupsInput
connect?: EventWhereUniqueInput
}
export type EventUpdateOneRequiredWithoutSignupsNestedInput = {
create?: XOR<EventCreateWithoutSignupsInput, EventUncheckedCreateWithoutSignupsInput>
connectOrCreate?: EventCreateOrConnectWithoutSignupsInput
upsert?: EventUpsertWithoutSignupsInput
connect?: EventWhereUniqueInput
update?: XOR<XOR<EventUpdateToOneWithWhereWithoutSignupsInput, EventUpdateWithoutSignupsInput>, EventUncheckedUpdateWithoutSignupsInput>
}
export type RegisterFormCreatenotifyRoleIdsInput = {
set: string[]
}
export type RegisterFormFieldCreateNestedManyWithoutFormInput = {
create?: XOR<RegisterFormFieldCreateWithoutFormInput, RegisterFormFieldUncheckedCreateWithoutFormInput> | RegisterFormFieldCreateWithoutFormInput[] | RegisterFormFieldUncheckedCreateWithoutFormInput[]
connectOrCreate?: RegisterFormFieldCreateOrConnectWithoutFormInput | RegisterFormFieldCreateOrConnectWithoutFormInput[]
createMany?: RegisterFormFieldCreateManyFormInputEnvelope
connect?: RegisterFormFieldWhereUniqueInput | RegisterFormFieldWhereUniqueInput[]
}
export type RegisterApplicationCreateNestedManyWithoutFormInput = {
create?: XOR<RegisterApplicationCreateWithoutFormInput, RegisterApplicationUncheckedCreateWithoutFormInput> | RegisterApplicationCreateWithoutFormInput[] | RegisterApplicationUncheckedCreateWithoutFormInput[]
connectOrCreate?: RegisterApplicationCreateOrConnectWithoutFormInput | RegisterApplicationCreateOrConnectWithoutFormInput[]
createMany?: RegisterApplicationCreateManyFormInputEnvelope
connect?: RegisterApplicationWhereUniqueInput | RegisterApplicationWhereUniqueInput[]
}
export type RegisterFormFieldUncheckedCreateNestedManyWithoutFormInput = {
create?: XOR<RegisterFormFieldCreateWithoutFormInput, RegisterFormFieldUncheckedCreateWithoutFormInput> | RegisterFormFieldCreateWithoutFormInput[] | RegisterFormFieldUncheckedCreateWithoutFormInput[]
connectOrCreate?: RegisterFormFieldCreateOrConnectWithoutFormInput | RegisterFormFieldCreateOrConnectWithoutFormInput[]
createMany?: RegisterFormFieldCreateManyFormInputEnvelope
connect?: RegisterFormFieldWhereUniqueInput | RegisterFormFieldWhereUniqueInput[]
}
export type RegisterApplicationUncheckedCreateNestedManyWithoutFormInput = {
create?: XOR<RegisterApplicationCreateWithoutFormInput, RegisterApplicationUncheckedCreateWithoutFormInput> | RegisterApplicationCreateWithoutFormInput[] | RegisterApplicationUncheckedCreateWithoutFormInput[]
connectOrCreate?: RegisterApplicationCreateOrConnectWithoutFormInput | RegisterApplicationCreateOrConnectWithoutFormInput[]
createMany?: RegisterApplicationCreateManyFormInputEnvelope
connect?: RegisterApplicationWhereUniqueInput | RegisterApplicationWhereUniqueInput[]
}
export type RegisterFormUpdatenotifyRoleIdsInput = {
set?: string[]
push?: string | string[]
}
export type RegisterFormFieldUpdateManyWithoutFormNestedInput = {
create?: XOR<RegisterFormFieldCreateWithoutFormInput, RegisterFormFieldUncheckedCreateWithoutFormInput> | RegisterFormFieldCreateWithoutFormInput[] | RegisterFormFieldUncheckedCreateWithoutFormInput[]
connectOrCreate?: RegisterFormFieldCreateOrConnectWithoutFormInput | RegisterFormFieldCreateOrConnectWithoutFormInput[]
upsert?: RegisterFormFieldUpsertWithWhereUniqueWithoutFormInput | RegisterFormFieldUpsertWithWhereUniqueWithoutFormInput[]
createMany?: RegisterFormFieldCreateManyFormInputEnvelope
set?: RegisterFormFieldWhereUniqueInput | RegisterFormFieldWhereUniqueInput[]
disconnect?: RegisterFormFieldWhereUniqueInput | RegisterFormFieldWhereUniqueInput[]
delete?: RegisterFormFieldWhereUniqueInput | RegisterFormFieldWhereUniqueInput[]
connect?: RegisterFormFieldWhereUniqueInput | RegisterFormFieldWhereUniqueInput[]
update?: RegisterFormFieldUpdateWithWhereUniqueWithoutFormInput | RegisterFormFieldUpdateWithWhereUniqueWithoutFormInput[]
updateMany?: RegisterFormFieldUpdateManyWithWhereWithoutFormInput | RegisterFormFieldUpdateManyWithWhereWithoutFormInput[]
deleteMany?: RegisterFormFieldScalarWhereInput | RegisterFormFieldScalarWhereInput[]
}
export type RegisterApplicationUpdateManyWithoutFormNestedInput = {
create?: XOR<RegisterApplicationCreateWithoutFormInput, RegisterApplicationUncheckedCreateWithoutFormInput> | RegisterApplicationCreateWithoutFormInput[] | RegisterApplicationUncheckedCreateWithoutFormInput[]
connectOrCreate?: RegisterApplicationCreateOrConnectWithoutFormInput | RegisterApplicationCreateOrConnectWithoutFormInput[]
upsert?: RegisterApplicationUpsertWithWhereUniqueWithoutFormInput | RegisterApplicationUpsertWithWhereUniqueWithoutFormInput[]
createMany?: RegisterApplicationCreateManyFormInputEnvelope
set?: RegisterApplicationWhereUniqueInput | RegisterApplicationWhereUniqueInput[]
disconnect?: RegisterApplicationWhereUniqueInput | RegisterApplicationWhereUniqueInput[]
delete?: RegisterApplicationWhereUniqueInput | RegisterApplicationWhereUniqueInput[]
connect?: RegisterApplicationWhereUniqueInput | RegisterApplicationWhereUniqueInput[]
update?: RegisterApplicationUpdateWithWhereUniqueWithoutFormInput | RegisterApplicationUpdateWithWhereUniqueWithoutFormInput[]
updateMany?: RegisterApplicationUpdateManyWithWhereWithoutFormInput | RegisterApplicationUpdateManyWithWhereWithoutFormInput[]
deleteMany?: RegisterApplicationScalarWhereInput | RegisterApplicationScalarWhereInput[]
}
export type RegisterFormFieldUncheckedUpdateManyWithoutFormNestedInput = {
create?: XOR<RegisterFormFieldCreateWithoutFormInput, RegisterFormFieldUncheckedCreateWithoutFormInput> | RegisterFormFieldCreateWithoutFormInput[] | RegisterFormFieldUncheckedCreateWithoutFormInput[]
connectOrCreate?: RegisterFormFieldCreateOrConnectWithoutFormInput | RegisterFormFieldCreateOrConnectWithoutFormInput[]
upsert?: RegisterFormFieldUpsertWithWhereUniqueWithoutFormInput | RegisterFormFieldUpsertWithWhereUniqueWithoutFormInput[]
createMany?: RegisterFormFieldCreateManyFormInputEnvelope
set?: RegisterFormFieldWhereUniqueInput | RegisterFormFieldWhereUniqueInput[]
disconnect?: RegisterFormFieldWhereUniqueInput | RegisterFormFieldWhereUniqueInput[]
delete?: RegisterFormFieldWhereUniqueInput | RegisterFormFieldWhereUniqueInput[]
connect?: RegisterFormFieldWhereUniqueInput | RegisterFormFieldWhereUniqueInput[]
update?: RegisterFormFieldUpdateWithWhereUniqueWithoutFormInput | RegisterFormFieldUpdateWithWhereUniqueWithoutFormInput[]
updateMany?: RegisterFormFieldUpdateManyWithWhereWithoutFormInput | RegisterFormFieldUpdateManyWithWhereWithoutFormInput[]
deleteMany?: RegisterFormFieldScalarWhereInput | RegisterFormFieldScalarWhereInput[]
}
export type RegisterApplicationUncheckedUpdateManyWithoutFormNestedInput = {
create?: XOR<RegisterApplicationCreateWithoutFormInput, RegisterApplicationUncheckedCreateWithoutFormInput> | RegisterApplicationCreateWithoutFormInput[] | RegisterApplicationUncheckedCreateWithoutFormInput[]
connectOrCreate?: RegisterApplicationCreateOrConnectWithoutFormInput | RegisterApplicationCreateOrConnectWithoutFormInput[]
upsert?: RegisterApplicationUpsertWithWhereUniqueWithoutFormInput | RegisterApplicationUpsertWithWhereUniqueWithoutFormInput[]
createMany?: RegisterApplicationCreateManyFormInputEnvelope
set?: RegisterApplicationWhereUniqueInput | RegisterApplicationWhereUniqueInput[]
disconnect?: RegisterApplicationWhereUniqueInput | RegisterApplicationWhereUniqueInput[]
delete?: RegisterApplicationWhereUniqueInput | RegisterApplicationWhereUniqueInput[]
connect?: RegisterApplicationWhereUniqueInput | RegisterApplicationWhereUniqueInput[]
update?: RegisterApplicationUpdateWithWhereUniqueWithoutFormInput | RegisterApplicationUpdateWithWhereUniqueWithoutFormInput[]
updateMany?: RegisterApplicationUpdateManyWithWhereWithoutFormInput | RegisterApplicationUpdateManyWithWhereWithoutFormInput[]
deleteMany?: RegisterApplicationScalarWhereInput | RegisterApplicationScalarWhereInput[]
}
export type RegisterFormCreateNestedOneWithoutFieldsInput = {
create?: XOR<RegisterFormCreateWithoutFieldsInput, RegisterFormUncheckedCreateWithoutFieldsInput>
connectOrCreate?: RegisterFormCreateOrConnectWithoutFieldsInput
connect?: RegisterFormWhereUniqueInput
}
export type RegisterFormUpdateOneRequiredWithoutFieldsNestedInput = {
create?: XOR<RegisterFormCreateWithoutFieldsInput, RegisterFormUncheckedCreateWithoutFieldsInput>
connectOrCreate?: RegisterFormCreateOrConnectWithoutFieldsInput
upsert?: RegisterFormUpsertWithoutFieldsInput
connect?: RegisterFormWhereUniqueInput
update?: XOR<XOR<RegisterFormUpdateToOneWithWhereWithoutFieldsInput, RegisterFormUpdateWithoutFieldsInput>, RegisterFormUncheckedUpdateWithoutFieldsInput>
}
export type RegisterApplicationAnswerCreateNestedManyWithoutApplicationInput = {
create?: XOR<RegisterApplicationAnswerCreateWithoutApplicationInput, RegisterApplicationAnswerUncheckedCreateWithoutApplicationInput> | RegisterApplicationAnswerCreateWithoutApplicationInput[] | RegisterApplicationAnswerUncheckedCreateWithoutApplicationInput[]
connectOrCreate?: RegisterApplicationAnswerCreateOrConnectWithoutApplicationInput | RegisterApplicationAnswerCreateOrConnectWithoutApplicationInput[]
createMany?: RegisterApplicationAnswerCreateManyApplicationInputEnvelope
connect?: RegisterApplicationAnswerWhereUniqueInput | RegisterApplicationAnswerWhereUniqueInput[]
}
export type RegisterApplicationNoteCreateNestedManyWithoutApplicationInput = {
create?: XOR<RegisterApplicationNoteCreateWithoutApplicationInput, RegisterApplicationNoteUncheckedCreateWithoutApplicationInput> | RegisterApplicationNoteCreateWithoutApplicationInput[] | RegisterApplicationNoteUncheckedCreateWithoutApplicationInput[]
connectOrCreate?: RegisterApplicationNoteCreateOrConnectWithoutApplicationInput | RegisterApplicationNoteCreateOrConnectWithoutApplicationInput[]
createMany?: RegisterApplicationNoteCreateManyApplicationInputEnvelope
connect?: RegisterApplicationNoteWhereUniqueInput | RegisterApplicationNoteWhereUniqueInput[]
}
export type RegisterFormCreateNestedOneWithoutApplicationsInput = {
create?: XOR<RegisterFormCreateWithoutApplicationsInput, RegisterFormUncheckedCreateWithoutApplicationsInput>
connectOrCreate?: RegisterFormCreateOrConnectWithoutApplicationsInput
connect?: RegisterFormWhereUniqueInput
}
export type RegisterApplicationAnswerUncheckedCreateNestedManyWithoutApplicationInput = {
create?: XOR<RegisterApplicationAnswerCreateWithoutApplicationInput, RegisterApplicationAnswerUncheckedCreateWithoutApplicationInput> | RegisterApplicationAnswerCreateWithoutApplicationInput[] | RegisterApplicationAnswerUncheckedCreateWithoutApplicationInput[]
connectOrCreate?: RegisterApplicationAnswerCreateOrConnectWithoutApplicationInput | RegisterApplicationAnswerCreateOrConnectWithoutApplicationInput[]
createMany?: RegisterApplicationAnswerCreateManyApplicationInputEnvelope
connect?: RegisterApplicationAnswerWhereUniqueInput | RegisterApplicationAnswerWhereUniqueInput[]
}
export type RegisterApplicationNoteUncheckedCreateNestedManyWithoutApplicationInput = {
create?: XOR<RegisterApplicationNoteCreateWithoutApplicationInput, RegisterApplicationNoteUncheckedCreateWithoutApplicationInput> | RegisterApplicationNoteCreateWithoutApplicationInput[] | RegisterApplicationNoteUncheckedCreateWithoutApplicationInput[]
connectOrCreate?: RegisterApplicationNoteCreateOrConnectWithoutApplicationInput | RegisterApplicationNoteCreateOrConnectWithoutApplicationInput[]
createMany?: RegisterApplicationNoteCreateManyApplicationInputEnvelope
connect?: RegisterApplicationNoteWhereUniqueInput | RegisterApplicationNoteWhereUniqueInput[]
}
export type RegisterApplicationAnswerUpdateManyWithoutApplicationNestedInput = {
create?: XOR<RegisterApplicationAnswerCreateWithoutApplicationInput, RegisterApplicationAnswerUncheckedCreateWithoutApplicationInput> | RegisterApplicationAnswerCreateWithoutApplicationInput[] | RegisterApplicationAnswerUncheckedCreateWithoutApplicationInput[]
connectOrCreate?: RegisterApplicationAnswerCreateOrConnectWithoutApplicationInput | RegisterApplicationAnswerCreateOrConnectWithoutApplicationInput[]
upsert?: RegisterApplicationAnswerUpsertWithWhereUniqueWithoutApplicationInput | RegisterApplicationAnswerUpsertWithWhereUniqueWithoutApplicationInput[]
createMany?: RegisterApplicationAnswerCreateManyApplicationInputEnvelope
set?: RegisterApplicationAnswerWhereUniqueInput | RegisterApplicationAnswerWhereUniqueInput[]
disconnect?: RegisterApplicationAnswerWhereUniqueInput | RegisterApplicationAnswerWhereUniqueInput[]
delete?: RegisterApplicationAnswerWhereUniqueInput | RegisterApplicationAnswerWhereUniqueInput[]
connect?: RegisterApplicationAnswerWhereUniqueInput | RegisterApplicationAnswerWhereUniqueInput[]
update?: RegisterApplicationAnswerUpdateWithWhereUniqueWithoutApplicationInput | RegisterApplicationAnswerUpdateWithWhereUniqueWithoutApplicationInput[]
updateMany?: RegisterApplicationAnswerUpdateManyWithWhereWithoutApplicationInput | RegisterApplicationAnswerUpdateManyWithWhereWithoutApplicationInput[]
deleteMany?: RegisterApplicationAnswerScalarWhereInput | RegisterApplicationAnswerScalarWhereInput[]
}
export type RegisterApplicationNoteUpdateManyWithoutApplicationNestedInput = {
create?: XOR<RegisterApplicationNoteCreateWithoutApplicationInput, RegisterApplicationNoteUncheckedCreateWithoutApplicationInput> | RegisterApplicationNoteCreateWithoutApplicationInput[] | RegisterApplicationNoteUncheckedCreateWithoutApplicationInput[]
connectOrCreate?: RegisterApplicationNoteCreateOrConnectWithoutApplicationInput | RegisterApplicationNoteCreateOrConnectWithoutApplicationInput[]
upsert?: RegisterApplicationNoteUpsertWithWhereUniqueWithoutApplicationInput | RegisterApplicationNoteUpsertWithWhereUniqueWithoutApplicationInput[]
createMany?: RegisterApplicationNoteCreateManyApplicationInputEnvelope
set?: RegisterApplicationNoteWhereUniqueInput | RegisterApplicationNoteWhereUniqueInput[]
disconnect?: RegisterApplicationNoteWhereUniqueInput | RegisterApplicationNoteWhereUniqueInput[]
delete?: RegisterApplicationNoteWhereUniqueInput | RegisterApplicationNoteWhereUniqueInput[]
connect?: RegisterApplicationNoteWhereUniqueInput | RegisterApplicationNoteWhereUniqueInput[]
update?: RegisterApplicationNoteUpdateWithWhereUniqueWithoutApplicationInput | RegisterApplicationNoteUpdateWithWhereUniqueWithoutApplicationInput[]
updateMany?: RegisterApplicationNoteUpdateManyWithWhereWithoutApplicationInput | RegisterApplicationNoteUpdateManyWithWhereWithoutApplicationInput[]
deleteMany?: RegisterApplicationNoteScalarWhereInput | RegisterApplicationNoteScalarWhereInput[]
}
export type RegisterFormUpdateOneRequiredWithoutApplicationsNestedInput = {
create?: XOR<RegisterFormCreateWithoutApplicationsInput, RegisterFormUncheckedCreateWithoutApplicationsInput>
connectOrCreate?: RegisterFormCreateOrConnectWithoutApplicationsInput
upsert?: RegisterFormUpsertWithoutApplicationsInput
connect?: RegisterFormWhereUniqueInput
update?: XOR<XOR<RegisterFormUpdateToOneWithWhereWithoutApplicationsInput, RegisterFormUpdateWithoutApplicationsInput>, RegisterFormUncheckedUpdateWithoutApplicationsInput>
}
export type RegisterApplicationAnswerUncheckedUpdateManyWithoutApplicationNestedInput = {
create?: XOR<RegisterApplicationAnswerCreateWithoutApplicationInput, RegisterApplicationAnswerUncheckedCreateWithoutApplicationInput> | RegisterApplicationAnswerCreateWithoutApplicationInput[] | RegisterApplicationAnswerUncheckedCreateWithoutApplicationInput[]
connectOrCreate?: RegisterApplicationAnswerCreateOrConnectWithoutApplicationInput | RegisterApplicationAnswerCreateOrConnectWithoutApplicationInput[]
upsert?: RegisterApplicationAnswerUpsertWithWhereUniqueWithoutApplicationInput | RegisterApplicationAnswerUpsertWithWhereUniqueWithoutApplicationInput[]
createMany?: RegisterApplicationAnswerCreateManyApplicationInputEnvelope
set?: RegisterApplicationAnswerWhereUniqueInput | RegisterApplicationAnswerWhereUniqueInput[]
disconnect?: RegisterApplicationAnswerWhereUniqueInput | RegisterApplicationAnswerWhereUniqueInput[]
delete?: RegisterApplicationAnswerWhereUniqueInput | RegisterApplicationAnswerWhereUniqueInput[]
connect?: RegisterApplicationAnswerWhereUniqueInput | RegisterApplicationAnswerWhereUniqueInput[]
update?: RegisterApplicationAnswerUpdateWithWhereUniqueWithoutApplicationInput | RegisterApplicationAnswerUpdateWithWhereUniqueWithoutApplicationInput[]
updateMany?: RegisterApplicationAnswerUpdateManyWithWhereWithoutApplicationInput | RegisterApplicationAnswerUpdateManyWithWhereWithoutApplicationInput[]
deleteMany?: RegisterApplicationAnswerScalarWhereInput | RegisterApplicationAnswerScalarWhereInput[]
}
export type RegisterApplicationNoteUncheckedUpdateManyWithoutApplicationNestedInput = {
create?: XOR<RegisterApplicationNoteCreateWithoutApplicationInput, RegisterApplicationNoteUncheckedCreateWithoutApplicationInput> | RegisterApplicationNoteCreateWithoutApplicationInput[] | RegisterApplicationNoteUncheckedCreateWithoutApplicationInput[]
connectOrCreate?: RegisterApplicationNoteCreateOrConnectWithoutApplicationInput | RegisterApplicationNoteCreateOrConnectWithoutApplicationInput[]
upsert?: RegisterApplicationNoteUpsertWithWhereUniqueWithoutApplicationInput | RegisterApplicationNoteUpsertWithWhereUniqueWithoutApplicationInput[]
createMany?: RegisterApplicationNoteCreateManyApplicationInputEnvelope
set?: RegisterApplicationNoteWhereUniqueInput | RegisterApplicationNoteWhereUniqueInput[]
disconnect?: RegisterApplicationNoteWhereUniqueInput | RegisterApplicationNoteWhereUniqueInput[]
delete?: RegisterApplicationNoteWhereUniqueInput | RegisterApplicationNoteWhereUniqueInput[]
connect?: RegisterApplicationNoteWhereUniqueInput | RegisterApplicationNoteWhereUniqueInput[]
update?: RegisterApplicationNoteUpdateWithWhereUniqueWithoutApplicationInput | RegisterApplicationNoteUpdateWithWhereUniqueWithoutApplicationInput[]
updateMany?: RegisterApplicationNoteUpdateManyWithWhereWithoutApplicationInput | RegisterApplicationNoteUpdateManyWithWhereWithoutApplicationInput[]
deleteMany?: RegisterApplicationNoteScalarWhereInput | RegisterApplicationNoteScalarWhereInput[]
}
export type RegisterApplicationCreateNestedOneWithoutAnswersInput = {
create?: XOR<RegisterApplicationCreateWithoutAnswersInput, RegisterApplicationUncheckedCreateWithoutAnswersInput>
connectOrCreate?: RegisterApplicationCreateOrConnectWithoutAnswersInput
connect?: RegisterApplicationWhereUniqueInput
}
export type RegisterApplicationUpdateOneRequiredWithoutAnswersNestedInput = {
create?: XOR<RegisterApplicationCreateWithoutAnswersInput, RegisterApplicationUncheckedCreateWithoutAnswersInput>
connectOrCreate?: RegisterApplicationCreateOrConnectWithoutAnswersInput
upsert?: RegisterApplicationUpsertWithoutAnswersInput
connect?: RegisterApplicationWhereUniqueInput
update?: XOR<XOR<RegisterApplicationUpdateToOneWithWhereWithoutAnswersInput, RegisterApplicationUpdateWithoutAnswersInput>, RegisterApplicationUncheckedUpdateWithoutAnswersInput>
}
export type RegisterApplicationCreateNestedOneWithoutNotesInput = {
create?: XOR<RegisterApplicationCreateWithoutNotesInput, RegisterApplicationUncheckedCreateWithoutNotesInput>
connectOrCreate?: RegisterApplicationCreateOrConnectWithoutNotesInput
connect?: RegisterApplicationWhereUniqueInput
}
export type RegisterApplicationUpdateOneRequiredWithoutNotesNestedInput = {
create?: XOR<RegisterApplicationCreateWithoutNotesInput, RegisterApplicationUncheckedCreateWithoutNotesInput>
connectOrCreate?: RegisterApplicationCreateOrConnectWithoutNotesInput
upsert?: RegisterApplicationUpsertWithoutNotesInput
connect?: RegisterApplicationWhereUniqueInput
update?: XOR<XOR<RegisterApplicationUpdateToOneWithWhereWithoutNotesInput, RegisterApplicationUpdateWithoutNotesInput>, RegisterApplicationUncheckedUpdateWithoutNotesInput>
}
export type PollVoteCreateNestedManyWithoutPollInput = {
create?: XOR<PollVoteCreateWithoutPollInput, PollVoteUncheckedCreateWithoutPollInput> | PollVoteCreateWithoutPollInput[] | PollVoteUncheckedCreateWithoutPollInput[]
connectOrCreate?: PollVoteCreateOrConnectWithoutPollInput | PollVoteCreateOrConnectWithoutPollInput[]
createMany?: PollVoteCreateManyPollInputEnvelope
connect?: PollVoteWhereUniqueInput | PollVoteWhereUniqueInput[]
}
export type PollVoteUncheckedCreateNestedManyWithoutPollInput = {
create?: XOR<PollVoteCreateWithoutPollInput, PollVoteUncheckedCreateWithoutPollInput> | PollVoteCreateWithoutPollInput[] | PollVoteUncheckedCreateWithoutPollInput[]
connectOrCreate?: PollVoteCreateOrConnectWithoutPollInput | PollVoteCreateOrConnectWithoutPollInput[]
createMany?: PollVoteCreateManyPollInputEnvelope
connect?: PollVoteWhereUniqueInput | PollVoteWhereUniqueInput[]
}
export type PollVoteUpdateManyWithoutPollNestedInput = {
create?: XOR<PollVoteCreateWithoutPollInput, PollVoteUncheckedCreateWithoutPollInput> | PollVoteCreateWithoutPollInput[] | PollVoteUncheckedCreateWithoutPollInput[]
connectOrCreate?: PollVoteCreateOrConnectWithoutPollInput | PollVoteCreateOrConnectWithoutPollInput[]
upsert?: PollVoteUpsertWithWhereUniqueWithoutPollInput | PollVoteUpsertWithWhereUniqueWithoutPollInput[]
createMany?: PollVoteCreateManyPollInputEnvelope
set?: PollVoteWhereUniqueInput | PollVoteWhereUniqueInput[]
disconnect?: PollVoteWhereUniqueInput | PollVoteWhereUniqueInput[]
delete?: PollVoteWhereUniqueInput | PollVoteWhereUniqueInput[]
connect?: PollVoteWhereUniqueInput | PollVoteWhereUniqueInput[]
update?: PollVoteUpdateWithWhereUniqueWithoutPollInput | PollVoteUpdateWithWhereUniqueWithoutPollInput[]
updateMany?: PollVoteUpdateManyWithWhereWithoutPollInput | PollVoteUpdateManyWithWhereWithoutPollInput[]
deleteMany?: PollVoteScalarWhereInput | PollVoteScalarWhereInput[]
}
export type PollVoteUncheckedUpdateManyWithoutPollNestedInput = {
create?: XOR<PollVoteCreateWithoutPollInput, PollVoteUncheckedCreateWithoutPollInput> | PollVoteCreateWithoutPollInput[] | PollVoteUncheckedCreateWithoutPollInput[]
connectOrCreate?: PollVoteCreateOrConnectWithoutPollInput | PollVoteCreateOrConnectWithoutPollInput[]
upsert?: PollVoteUpsertWithWhereUniqueWithoutPollInput | PollVoteUpsertWithWhereUniqueWithoutPollInput[]
createMany?: PollVoteCreateManyPollInputEnvelope
set?: PollVoteWhereUniqueInput | PollVoteWhereUniqueInput[]
disconnect?: PollVoteWhereUniqueInput | PollVoteWhereUniqueInput[]
delete?: PollVoteWhereUniqueInput | PollVoteWhereUniqueInput[]
connect?: PollVoteWhereUniqueInput | PollVoteWhereUniqueInput[]
update?: PollVoteUpdateWithWhereUniqueWithoutPollInput | PollVoteUpdateWithWhereUniqueWithoutPollInput[]
updateMany?: PollVoteUpdateManyWithWhereWithoutPollInput | PollVoteUpdateManyWithWhereWithoutPollInput[]
deleteMany?: PollVoteScalarWhereInput | PollVoteScalarWhereInput[]
}
export type PollCreateNestedOneWithoutVotesInput = {
create?: XOR<PollCreateWithoutVotesInput, PollUncheckedCreateWithoutVotesInput>
connectOrCreate?: PollCreateOrConnectWithoutVotesInput
connect?: PollWhereUniqueInput
}
export type PollUpdateOneRequiredWithoutVotesNestedInput = {
create?: XOR<PollCreateWithoutVotesInput, PollUncheckedCreateWithoutVotesInput>
connectOrCreate?: PollCreateOrConnectWithoutVotesInput
upsert?: PollUpsertWithoutVotesInput
connect?: PollWhereUniqueInput
update?: XOR<XOR<PollUpdateToOneWithWhereWithoutVotesInput, PollUpdateWithoutVotesInput>, PollUncheckedUpdateWithoutVotesInput>
}
export type SuggestionVoteCreateNestedManyWithoutSuggestionInput = {
create?: XOR<SuggestionVoteCreateWithoutSuggestionInput, SuggestionVoteUncheckedCreateWithoutSuggestionInput> | SuggestionVoteCreateWithoutSuggestionInput[] | SuggestionVoteUncheckedCreateWithoutSuggestionInput[]
connectOrCreate?: SuggestionVoteCreateOrConnectWithoutSuggestionInput | SuggestionVoteCreateOrConnectWithoutSuggestionInput[]
createMany?: SuggestionVoteCreateManySuggestionInputEnvelope
connect?: SuggestionVoteWhereUniqueInput | SuggestionVoteWhereUniqueInput[]
}
export type SuggestionVoteUncheckedCreateNestedManyWithoutSuggestionInput = {
create?: XOR<SuggestionVoteCreateWithoutSuggestionInput, SuggestionVoteUncheckedCreateWithoutSuggestionInput> | SuggestionVoteCreateWithoutSuggestionInput[] | SuggestionVoteUncheckedCreateWithoutSuggestionInput[]
connectOrCreate?: SuggestionVoteCreateOrConnectWithoutSuggestionInput | SuggestionVoteCreateOrConnectWithoutSuggestionInput[]
createMany?: SuggestionVoteCreateManySuggestionInputEnvelope
connect?: SuggestionVoteWhereUniqueInput | SuggestionVoteWhereUniqueInput[]
}
export type SuggestionVoteUpdateManyWithoutSuggestionNestedInput = {
create?: XOR<SuggestionVoteCreateWithoutSuggestionInput, SuggestionVoteUncheckedCreateWithoutSuggestionInput> | SuggestionVoteCreateWithoutSuggestionInput[] | SuggestionVoteUncheckedCreateWithoutSuggestionInput[]
connectOrCreate?: SuggestionVoteCreateOrConnectWithoutSuggestionInput | SuggestionVoteCreateOrConnectWithoutSuggestionInput[]
upsert?: SuggestionVoteUpsertWithWhereUniqueWithoutSuggestionInput | SuggestionVoteUpsertWithWhereUniqueWithoutSuggestionInput[]
createMany?: SuggestionVoteCreateManySuggestionInputEnvelope
set?: SuggestionVoteWhereUniqueInput | SuggestionVoteWhereUniqueInput[]
disconnect?: SuggestionVoteWhereUniqueInput | SuggestionVoteWhereUniqueInput[]
delete?: SuggestionVoteWhereUniqueInput | SuggestionVoteWhereUniqueInput[]
connect?: SuggestionVoteWhereUniqueInput | SuggestionVoteWhereUniqueInput[]
update?: SuggestionVoteUpdateWithWhereUniqueWithoutSuggestionInput | SuggestionVoteUpdateWithWhereUniqueWithoutSuggestionInput[]
updateMany?: SuggestionVoteUpdateManyWithWhereWithoutSuggestionInput | SuggestionVoteUpdateManyWithWhereWithoutSuggestionInput[]
deleteMany?: SuggestionVoteScalarWhereInput | SuggestionVoteScalarWhereInput[]
}
export type SuggestionVoteUncheckedUpdateManyWithoutSuggestionNestedInput = {
create?: XOR<SuggestionVoteCreateWithoutSuggestionInput, SuggestionVoteUncheckedCreateWithoutSuggestionInput> | SuggestionVoteCreateWithoutSuggestionInput[] | SuggestionVoteUncheckedCreateWithoutSuggestionInput[]
connectOrCreate?: SuggestionVoteCreateOrConnectWithoutSuggestionInput | SuggestionVoteCreateOrConnectWithoutSuggestionInput[]
upsert?: SuggestionVoteUpsertWithWhereUniqueWithoutSuggestionInput | SuggestionVoteUpsertWithWhereUniqueWithoutSuggestionInput[]
createMany?: SuggestionVoteCreateManySuggestionInputEnvelope
set?: SuggestionVoteWhereUniqueInput | SuggestionVoteWhereUniqueInput[]
disconnect?: SuggestionVoteWhereUniqueInput | SuggestionVoteWhereUniqueInput[]
delete?: SuggestionVoteWhereUniqueInput | SuggestionVoteWhereUniqueInput[]
connect?: SuggestionVoteWhereUniqueInput | SuggestionVoteWhereUniqueInput[]
update?: SuggestionVoteUpdateWithWhereUniqueWithoutSuggestionInput | SuggestionVoteUpdateWithWhereUniqueWithoutSuggestionInput[]
updateMany?: SuggestionVoteUpdateManyWithWhereWithoutSuggestionInput | SuggestionVoteUpdateManyWithWhereWithoutSuggestionInput[]
deleteMany?: SuggestionVoteScalarWhereInput | SuggestionVoteScalarWhereInput[]
}
export type SuggestionCreateNestedOneWithoutVotesInput = {
create?: XOR<SuggestionCreateWithoutVotesInput, SuggestionUncheckedCreateWithoutVotesInput>
connectOrCreate?: SuggestionCreateOrConnectWithoutVotesInput
connect?: SuggestionWhereUniqueInput
}
export type SuggestionUpdateOneRequiredWithoutVotesNestedInput = {
create?: XOR<SuggestionCreateWithoutVotesInput, SuggestionUncheckedCreateWithoutVotesInput>
connectOrCreate?: SuggestionCreateOrConnectWithoutVotesInput
upsert?: SuggestionUpsertWithoutVotesInput
connect?: SuggestionWhereUniqueInput
update?: XOR<XOR<SuggestionUpdateToOneWithWhereWithoutVotesInput, SuggestionUpdateWithoutVotesInput>, SuggestionUncheckedUpdateWithoutVotesInput>
}
export type GalleryVoteCreateNestedManyWithoutPostInput = {
create?: XOR<GalleryVoteCreateWithoutPostInput, GalleryVoteUncheckedCreateWithoutPostInput> | GalleryVoteCreateWithoutPostInput[] | GalleryVoteUncheckedCreateWithoutPostInput[]
connectOrCreate?: GalleryVoteCreateOrConnectWithoutPostInput | GalleryVoteCreateOrConnectWithoutPostInput[]
createMany?: GalleryVoteCreateManyPostInputEnvelope
connect?: GalleryVoteWhereUniqueInput | GalleryVoteWhereUniqueInput[]
}
export type GalleryVoteUncheckedCreateNestedManyWithoutPostInput = {
create?: XOR<GalleryVoteCreateWithoutPostInput, GalleryVoteUncheckedCreateWithoutPostInput> | GalleryVoteCreateWithoutPostInput[] | GalleryVoteUncheckedCreateWithoutPostInput[]
connectOrCreate?: GalleryVoteCreateOrConnectWithoutPostInput | GalleryVoteCreateOrConnectWithoutPostInput[]
createMany?: GalleryVoteCreateManyPostInputEnvelope
connect?: GalleryVoteWhereUniqueInput | GalleryVoteWhereUniqueInput[]
}
export type GalleryVoteUpdateManyWithoutPostNestedInput = {
create?: XOR<GalleryVoteCreateWithoutPostInput, GalleryVoteUncheckedCreateWithoutPostInput> | GalleryVoteCreateWithoutPostInput[] | GalleryVoteUncheckedCreateWithoutPostInput[]
connectOrCreate?: GalleryVoteCreateOrConnectWithoutPostInput | GalleryVoteCreateOrConnectWithoutPostInput[]
upsert?: GalleryVoteUpsertWithWhereUniqueWithoutPostInput | GalleryVoteUpsertWithWhereUniqueWithoutPostInput[]
createMany?: GalleryVoteCreateManyPostInputEnvelope
set?: GalleryVoteWhereUniqueInput | GalleryVoteWhereUniqueInput[]
disconnect?: GalleryVoteWhereUniqueInput | GalleryVoteWhereUniqueInput[]
delete?: GalleryVoteWhereUniqueInput | GalleryVoteWhereUniqueInput[]
connect?: GalleryVoteWhereUniqueInput | GalleryVoteWhereUniqueInput[]
update?: GalleryVoteUpdateWithWhereUniqueWithoutPostInput | GalleryVoteUpdateWithWhereUniqueWithoutPostInput[]
updateMany?: GalleryVoteUpdateManyWithWhereWithoutPostInput | GalleryVoteUpdateManyWithWhereWithoutPostInput[]
deleteMany?: GalleryVoteScalarWhereInput | GalleryVoteScalarWhereInput[]
}
export type GalleryVoteUncheckedUpdateManyWithoutPostNestedInput = {
create?: XOR<GalleryVoteCreateWithoutPostInput, GalleryVoteUncheckedCreateWithoutPostInput> | GalleryVoteCreateWithoutPostInput[] | GalleryVoteUncheckedCreateWithoutPostInput[]
connectOrCreate?: GalleryVoteCreateOrConnectWithoutPostInput | GalleryVoteCreateOrConnectWithoutPostInput[]
upsert?: GalleryVoteUpsertWithWhereUniqueWithoutPostInput | GalleryVoteUpsertWithWhereUniqueWithoutPostInput[]
createMany?: GalleryVoteCreateManyPostInputEnvelope
set?: GalleryVoteWhereUniqueInput | GalleryVoteWhereUniqueInput[]
disconnect?: GalleryVoteWhereUniqueInput | GalleryVoteWhereUniqueInput[]
delete?: GalleryVoteWhereUniqueInput | GalleryVoteWhereUniqueInput[]
connect?: GalleryVoteWhereUniqueInput | GalleryVoteWhereUniqueInput[]
update?: GalleryVoteUpdateWithWhereUniqueWithoutPostInput | GalleryVoteUpdateWithWhereUniqueWithoutPostInput[]
updateMany?: GalleryVoteUpdateManyWithWhereWithoutPostInput | GalleryVoteUpdateManyWithWhereWithoutPostInput[]
deleteMany?: GalleryVoteScalarWhereInput | GalleryVoteScalarWhereInput[]
}
export type GalleryPostCreateNestedOneWithoutVotesInput = {
create?: XOR<GalleryPostCreateWithoutVotesInput, GalleryPostUncheckedCreateWithoutVotesInput>
connectOrCreate?: GalleryPostCreateOrConnectWithoutVotesInput
connect?: GalleryPostWhereUniqueInput
}
export type GalleryPostUpdateOneRequiredWithoutVotesNestedInput = {
create?: XOR<GalleryPostCreateWithoutVotesInput, GalleryPostUncheckedCreateWithoutVotesInput>
connectOrCreate?: GalleryPostCreateOrConnectWithoutVotesInput
upsert?: GalleryPostUpsertWithoutVotesInput
connect?: GalleryPostWhereUniqueInput
update?: XOR<XOR<GalleryPostUpdateToOneWithWhereWithoutVotesInput, GalleryPostUpdateWithoutVotesInput>, GalleryPostUncheckedUpdateWithoutVotesInput>
}
export type NestedStringFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel>
in?: string[] | ListStringFieldRefInput<$PrismaModel>
notIn?: string[] | ListStringFieldRefInput<$PrismaModel>
lt?: string | StringFieldRefInput<$PrismaModel>
lte?: string | StringFieldRefInput<$PrismaModel>
gt?: string | StringFieldRefInput<$PrismaModel>
gte?: string | StringFieldRefInput<$PrismaModel>
contains?: string | StringFieldRefInput<$PrismaModel>
startsWith?: string | StringFieldRefInput<$PrismaModel>
endsWith?: string | StringFieldRefInput<$PrismaModel>
not?: NestedStringFilter<$PrismaModel> | string
}
export type NestedStringNullableFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel> | null
in?: string[] | ListStringFieldRefInput<$PrismaModel> | null
notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null
lt?: string | StringFieldRefInput<$PrismaModel>
lte?: string | StringFieldRefInput<$PrismaModel>
gt?: string | StringFieldRefInput<$PrismaModel>
gte?: string | StringFieldRefInput<$PrismaModel>
contains?: string | StringFieldRefInput<$PrismaModel>
startsWith?: string | StringFieldRefInput<$PrismaModel>
endsWith?: string | StringFieldRefInput<$PrismaModel>
not?: NestedStringNullableFilter<$PrismaModel> | string | null
}
export type NestedBoolNullableFilter<$PrismaModel = never> = {
equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null
not?: NestedBoolNullableFilter<$PrismaModel> | boolean | null
}
export type NestedDateTimeFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
not?: NestedDateTimeFilter<$PrismaModel> | Date | string
}
export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel>
in?: string[] | ListStringFieldRefInput<$PrismaModel>
notIn?: string[] | ListStringFieldRefInput<$PrismaModel>
lt?: string | StringFieldRefInput<$PrismaModel>
lte?: string | StringFieldRefInput<$PrismaModel>
gt?: string | StringFieldRefInput<$PrismaModel>
gte?: string | StringFieldRefInput<$PrismaModel>
contains?: string | StringFieldRefInput<$PrismaModel>
startsWith?: string | StringFieldRefInput<$PrismaModel>
endsWith?: string | StringFieldRefInput<$PrismaModel>
not?: NestedStringWithAggregatesFilter<$PrismaModel> | string
_count?: NestedIntFilter<$PrismaModel>
_min?: NestedStringFilter<$PrismaModel>
_max?: NestedStringFilter<$PrismaModel>
}
export type NestedIntFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel>
in?: number[] | ListIntFieldRefInput<$PrismaModel>
notIn?: number[] | ListIntFieldRefInput<$PrismaModel>
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntFilter<$PrismaModel> | number
}
export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: string | StringFieldRefInput<$PrismaModel> | null
in?: string[] | ListStringFieldRefInput<$PrismaModel> | null
notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null
lt?: string | StringFieldRefInput<$PrismaModel>
lte?: string | StringFieldRefInput<$PrismaModel>
gt?: string | StringFieldRefInput<$PrismaModel>
gte?: string | StringFieldRefInput<$PrismaModel>
contains?: string | StringFieldRefInput<$PrismaModel>
startsWith?: string | StringFieldRefInput<$PrismaModel>
endsWith?: string | StringFieldRefInput<$PrismaModel>
not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
_count?: NestedIntNullableFilter<$PrismaModel>
_min?: NestedStringNullableFilter<$PrismaModel>
_max?: NestedStringNullableFilter<$PrismaModel>
}
export type NestedIntNullableFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel> | null
in?: number[] | ListIntFieldRefInput<$PrismaModel> | null
notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntNullableFilter<$PrismaModel> | number | null
}
export type NestedBoolNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null
not?: NestedBoolNullableWithAggregatesFilter<$PrismaModel> | boolean | null
_count?: NestedIntNullableFilter<$PrismaModel>
_min?: NestedBoolNullableFilter<$PrismaModel>
_max?: NestedBoolNullableFilter<$PrismaModel>
}
export type NestedJsonNullableFilter<$PrismaModel = never> =
| PatchUndefined<
Either<Required<NestedJsonNullableFilterBase<$PrismaModel>>, Exclude<keyof Required<NestedJsonNullableFilterBase<$PrismaModel>>, 'path'>>,
Required<NestedJsonNullableFilterBase<$PrismaModel>>
>
| OptionalFlat<Omit<Required<NestedJsonNullableFilterBase<$PrismaModel>>, 'path'>>
export type NestedJsonNullableFilterBase<$PrismaModel = never> = {
equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
path?: string[]
string_contains?: string | StringFieldRefInput<$PrismaModel>
string_starts_with?: string | StringFieldRefInput<$PrismaModel>
string_ends_with?: string | StringFieldRefInput<$PrismaModel>
array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
}
export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
_count?: NestedIntFilter<$PrismaModel>
_min?: NestedDateTimeFilter<$PrismaModel>
_max?: NestedDateTimeFilter<$PrismaModel>
}
export type NestedDateTimeNullableFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
}
export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel>
in?: number[] | ListIntFieldRefInput<$PrismaModel>
notIn?: number[] | ListIntFieldRefInput<$PrismaModel>
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntWithAggregatesFilter<$PrismaModel> | number
_count?: NestedIntFilter<$PrismaModel>
_avg?: NestedFloatFilter<$PrismaModel>
_sum?: NestedIntFilter<$PrismaModel>
_min?: NestedIntFilter<$PrismaModel>
_max?: NestedIntFilter<$PrismaModel>
}
export type NestedFloatFilter<$PrismaModel = never> = {
equals?: number | FloatFieldRefInput<$PrismaModel>
in?: number[] | ListFloatFieldRefInput<$PrismaModel>
notIn?: number[] | ListFloatFieldRefInput<$PrismaModel>
lt?: number | FloatFieldRefInput<$PrismaModel>
lte?: number | FloatFieldRefInput<$PrismaModel>
gt?: number | FloatFieldRefInput<$PrismaModel>
gte?: number | FloatFieldRefInput<$PrismaModel>
not?: NestedFloatFilter<$PrismaModel> | number
}
export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null
_count?: NestedIntNullableFilter<$PrismaModel>
_min?: NestedDateTimeNullableFilter<$PrismaModel>
_max?: NestedDateTimeNullableFilter<$PrismaModel>
}
export type NestedBoolFilter<$PrismaModel = never> = {
equals?: boolean | BooleanFieldRefInput<$PrismaModel>
not?: NestedBoolFilter<$PrismaModel> | boolean
}
export type NestedJsonFilter<$PrismaModel = never> =
| PatchUndefined<
Either<Required<NestedJsonFilterBase<$PrismaModel>>, Exclude<keyof Required<NestedJsonFilterBase<$PrismaModel>>, 'path'>>,
Required<NestedJsonFilterBase<$PrismaModel>>
>
| OptionalFlat<Omit<Required<NestedJsonFilterBase<$PrismaModel>>, 'path'>>
export type NestedJsonFilterBase<$PrismaModel = never> = {
equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
path?: string[]
string_contains?: string | StringFieldRefInput<$PrismaModel>
string_starts_with?: string | StringFieldRefInput<$PrismaModel>
string_ends_with?: string | StringFieldRefInput<$PrismaModel>
array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
}
export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = {
equals?: boolean | BooleanFieldRefInput<$PrismaModel>
not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
_count?: NestedIntFilter<$PrismaModel>
_min?: NestedBoolFilter<$PrismaModel>
_max?: NestedBoolFilter<$PrismaModel>
}
export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: number | IntFieldRefInput<$PrismaModel> | null
in?: number[] | ListIntFieldRefInput<$PrismaModel> | null
notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null
lt?: number | IntFieldRefInput<$PrismaModel>
lte?: number | IntFieldRefInput<$PrismaModel>
gt?: number | IntFieldRefInput<$PrismaModel>
gte?: number | IntFieldRefInput<$PrismaModel>
not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null
_count?: NestedIntNullableFilter<$PrismaModel>
_avg?: NestedFloatNullableFilter<$PrismaModel>
_sum?: NestedIntNullableFilter<$PrismaModel>
_min?: NestedIntNullableFilter<$PrismaModel>
_max?: NestedIntNullableFilter<$PrismaModel>
}
export type NestedFloatNullableFilter<$PrismaModel = never> = {
equals?: number | FloatFieldRefInput<$PrismaModel> | null
in?: number[] | ListFloatFieldRefInput<$PrismaModel> | null
notIn?: number[] | ListFloatFieldRefInput<$PrismaModel> | null
lt?: number | FloatFieldRefInput<$PrismaModel>
lte?: number | FloatFieldRefInput<$PrismaModel>
gt?: number | FloatFieldRefInput<$PrismaModel>
gte?: number | FloatFieldRefInput<$PrismaModel>
not?: NestedFloatNullableFilter<$PrismaModel> | number | null
}
export type EventSignupCreateWithoutEventInput = {
id?: string
guildId: string
userId: string
createdAt?: Date | string
canceledAt?: Date | string | null
}
export type EventSignupUncheckedCreateWithoutEventInput = {
id?: string
guildId: string
userId: string
createdAt?: Date | string
canceledAt?: Date | string | null
}
export type EventSignupCreateOrConnectWithoutEventInput = {
where: EventSignupWhereUniqueInput
create: XOR<EventSignupCreateWithoutEventInput, EventSignupUncheckedCreateWithoutEventInput>
}
export type EventSignupCreateManyEventInputEnvelope = {
data: EventSignupCreateManyEventInput | EventSignupCreateManyEventInput[]
skipDuplicates?: boolean
}
export type EventSignupUpsertWithWhereUniqueWithoutEventInput = {
where: EventSignupWhereUniqueInput
update: XOR<EventSignupUpdateWithoutEventInput, EventSignupUncheckedUpdateWithoutEventInput>
create: XOR<EventSignupCreateWithoutEventInput, EventSignupUncheckedCreateWithoutEventInput>
}
export type EventSignupUpdateWithWhereUniqueWithoutEventInput = {
where: EventSignupWhereUniqueInput
data: XOR<EventSignupUpdateWithoutEventInput, EventSignupUncheckedUpdateWithoutEventInput>
}
export type EventSignupUpdateManyWithWhereWithoutEventInput = {
where: EventSignupScalarWhereInput
data: XOR<EventSignupUpdateManyMutationInput, EventSignupUncheckedUpdateManyWithoutEventInput>
}
export type EventSignupScalarWhereInput = {
AND?: EventSignupScalarWhereInput | EventSignupScalarWhereInput[]
OR?: EventSignupScalarWhereInput[]
NOT?: EventSignupScalarWhereInput | EventSignupScalarWhereInput[]
id?: StringFilter<"EventSignup"> | string
eventId?: StringFilter<"EventSignup"> | string
guildId?: StringFilter<"EventSignup"> | string
userId?: StringFilter<"EventSignup"> | string
createdAt?: DateTimeFilter<"EventSignup"> | Date | string
canceledAt?: DateTimeNullableFilter<"EventSignup"> | Date | string | null
}
export type EventCreateWithoutSignupsInput = {
id?: string
guildId: string
title: string
description?: string | null
channelId: string
startTime: Date | string
repeatType?: string
repeatConfig?: NullableJsonNullValueInput | InputJsonValue
reminderOffsetMinutes?: number
roleId?: string | null
isActive?: boolean
lastReminderAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type EventUncheckedCreateWithoutSignupsInput = {
id?: string
guildId: string
title: string
description?: string | null
channelId: string
startTime: Date | string
repeatType?: string
repeatConfig?: NullableJsonNullValueInput | InputJsonValue
reminderOffsetMinutes?: number
roleId?: string | null
isActive?: boolean
lastReminderAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type EventCreateOrConnectWithoutSignupsInput = {
where: EventWhereUniqueInput
create: XOR<EventCreateWithoutSignupsInput, EventUncheckedCreateWithoutSignupsInput>
}
export type EventUpsertWithoutSignupsInput = {
update: XOR<EventUpdateWithoutSignupsInput, EventUncheckedUpdateWithoutSignupsInput>
create: XOR<EventCreateWithoutSignupsInput, EventUncheckedCreateWithoutSignupsInput>
where?: EventWhereInput
}
export type EventUpdateToOneWithWhereWithoutSignupsInput = {
where?: EventWhereInput
data: XOR<EventUpdateWithoutSignupsInput, EventUncheckedUpdateWithoutSignupsInput>
}
export type EventUpdateWithoutSignupsInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
channelId?: StringFieldUpdateOperationsInput | string
startTime?: DateTimeFieldUpdateOperationsInput | Date | string
repeatType?: StringFieldUpdateOperationsInput | string
repeatConfig?: NullableJsonNullValueInput | InputJsonValue
reminderOffsetMinutes?: IntFieldUpdateOperationsInput | number
roleId?: NullableStringFieldUpdateOperationsInput | string | null
isActive?: BoolFieldUpdateOperationsInput | boolean
lastReminderAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type EventUncheckedUpdateWithoutSignupsInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
title?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
channelId?: StringFieldUpdateOperationsInput | string
startTime?: DateTimeFieldUpdateOperationsInput | Date | string
repeatType?: StringFieldUpdateOperationsInput | string
repeatConfig?: NullableJsonNullValueInput | InputJsonValue
reminderOffsetMinutes?: IntFieldUpdateOperationsInput | number
roleId?: NullableStringFieldUpdateOperationsInput | string | null
isActive?: BoolFieldUpdateOperationsInput | boolean
lastReminderAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type RegisterFormFieldCreateWithoutFormInput = {
id?: string
label: string
type: string
required?: boolean
order?: number
}
export type RegisterFormFieldUncheckedCreateWithoutFormInput = {
id?: string
label: string
type: string
required?: boolean
order?: number
}
export type RegisterFormFieldCreateOrConnectWithoutFormInput = {
where: RegisterFormFieldWhereUniqueInput
create: XOR<RegisterFormFieldCreateWithoutFormInput, RegisterFormFieldUncheckedCreateWithoutFormInput>
}
export type RegisterFormFieldCreateManyFormInputEnvelope = {
data: RegisterFormFieldCreateManyFormInput | RegisterFormFieldCreateManyFormInput[]
skipDuplicates?: boolean
}
export type RegisterApplicationCreateWithoutFormInput = {
id?: string
guildId: string
userId: string
status?: string
reviewedBy?: string | null
createdAt?: Date | string
updatedAt?: Date | string
answers?: RegisterApplicationAnswerCreateNestedManyWithoutApplicationInput
notes?: RegisterApplicationNoteCreateNestedManyWithoutApplicationInput
}
export type RegisterApplicationUncheckedCreateWithoutFormInput = {
id?: string
guildId: string
userId: string
status?: string
reviewedBy?: string | null
createdAt?: Date | string
updatedAt?: Date | string
answers?: RegisterApplicationAnswerUncheckedCreateNestedManyWithoutApplicationInput
notes?: RegisterApplicationNoteUncheckedCreateNestedManyWithoutApplicationInput
}
export type RegisterApplicationCreateOrConnectWithoutFormInput = {
where: RegisterApplicationWhereUniqueInput
create: XOR<RegisterApplicationCreateWithoutFormInput, RegisterApplicationUncheckedCreateWithoutFormInput>
}
export type RegisterApplicationCreateManyFormInputEnvelope = {
data: RegisterApplicationCreateManyFormInput | RegisterApplicationCreateManyFormInput[]
skipDuplicates?: boolean
}
export type RegisterFormFieldUpsertWithWhereUniqueWithoutFormInput = {
where: RegisterFormFieldWhereUniqueInput
update: XOR<RegisterFormFieldUpdateWithoutFormInput, RegisterFormFieldUncheckedUpdateWithoutFormInput>
create: XOR<RegisterFormFieldCreateWithoutFormInput, RegisterFormFieldUncheckedCreateWithoutFormInput>
}
export type RegisterFormFieldUpdateWithWhereUniqueWithoutFormInput = {
where: RegisterFormFieldWhereUniqueInput
data: XOR<RegisterFormFieldUpdateWithoutFormInput, RegisterFormFieldUncheckedUpdateWithoutFormInput>
}
export type RegisterFormFieldUpdateManyWithWhereWithoutFormInput = {
where: RegisterFormFieldScalarWhereInput
data: XOR<RegisterFormFieldUpdateManyMutationInput, RegisterFormFieldUncheckedUpdateManyWithoutFormInput>
}
export type RegisterFormFieldScalarWhereInput = {
AND?: RegisterFormFieldScalarWhereInput | RegisterFormFieldScalarWhereInput[]
OR?: RegisterFormFieldScalarWhereInput[]
NOT?: RegisterFormFieldScalarWhereInput | RegisterFormFieldScalarWhereInput[]
id?: StringFilter<"RegisterFormField"> | string
formId?: StringFilter<"RegisterFormField"> | string
label?: StringFilter<"RegisterFormField"> | string
type?: StringFilter<"RegisterFormField"> | string
required?: BoolFilter<"RegisterFormField"> | boolean
order?: IntFilter<"RegisterFormField"> | number
}
export type RegisterApplicationUpsertWithWhereUniqueWithoutFormInput = {
where: RegisterApplicationWhereUniqueInput
update: XOR<RegisterApplicationUpdateWithoutFormInput, RegisterApplicationUncheckedUpdateWithoutFormInput>
create: XOR<RegisterApplicationCreateWithoutFormInput, RegisterApplicationUncheckedCreateWithoutFormInput>
}
export type RegisterApplicationUpdateWithWhereUniqueWithoutFormInput = {
where: RegisterApplicationWhereUniqueInput
data: XOR<RegisterApplicationUpdateWithoutFormInput, RegisterApplicationUncheckedUpdateWithoutFormInput>
}
export type RegisterApplicationUpdateManyWithWhereWithoutFormInput = {
where: RegisterApplicationScalarWhereInput
data: XOR<RegisterApplicationUpdateManyMutationInput, RegisterApplicationUncheckedUpdateManyWithoutFormInput>
}
export type RegisterApplicationScalarWhereInput = {
AND?: RegisterApplicationScalarWhereInput | RegisterApplicationScalarWhereInput[]
OR?: RegisterApplicationScalarWhereInput[]
NOT?: RegisterApplicationScalarWhereInput | RegisterApplicationScalarWhereInput[]
id?: StringFilter<"RegisterApplication"> | string
guildId?: StringFilter<"RegisterApplication"> | string
userId?: StringFilter<"RegisterApplication"> | string
formId?: StringFilter<"RegisterApplication"> | string
status?: StringFilter<"RegisterApplication"> | string
reviewedBy?: StringNullableFilter<"RegisterApplication"> | string | null
createdAt?: DateTimeFilter<"RegisterApplication"> | Date | string
updatedAt?: DateTimeFilter<"RegisterApplication"> | Date | string
}
export type RegisterFormCreateWithoutFieldsInput = {
id?: string
guildId: string
name: string
description?: string | null
reviewChannelId?: string | null
notifyRoleIds?: RegisterFormCreatenotifyRoleIdsInput | string[]
isActive?: boolean
createdAt?: Date | string
updatedAt?: Date | string
applications?: RegisterApplicationCreateNestedManyWithoutFormInput
}
export type RegisterFormUncheckedCreateWithoutFieldsInput = {
id?: string
guildId: string
name: string
description?: string | null
reviewChannelId?: string | null
notifyRoleIds?: RegisterFormCreatenotifyRoleIdsInput | string[]
isActive?: boolean
createdAt?: Date | string
updatedAt?: Date | string
applications?: RegisterApplicationUncheckedCreateNestedManyWithoutFormInput
}
export type RegisterFormCreateOrConnectWithoutFieldsInput = {
where: RegisterFormWhereUniqueInput
create: XOR<RegisterFormCreateWithoutFieldsInput, RegisterFormUncheckedCreateWithoutFieldsInput>
}
export type RegisterFormUpsertWithoutFieldsInput = {
update: XOR<RegisterFormUpdateWithoutFieldsInput, RegisterFormUncheckedUpdateWithoutFieldsInput>
create: XOR<RegisterFormCreateWithoutFieldsInput, RegisterFormUncheckedCreateWithoutFieldsInput>
where?: RegisterFormWhereInput
}
export type RegisterFormUpdateToOneWithWhereWithoutFieldsInput = {
where?: RegisterFormWhereInput
data: XOR<RegisterFormUpdateWithoutFieldsInput, RegisterFormUncheckedUpdateWithoutFieldsInput>
}
export type RegisterFormUpdateWithoutFieldsInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
reviewChannelId?: NullableStringFieldUpdateOperationsInput | string | null
notifyRoleIds?: RegisterFormUpdatenotifyRoleIdsInput | string[]
isActive?: BoolFieldUpdateOperationsInput | boolean
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
applications?: RegisterApplicationUpdateManyWithoutFormNestedInput
}
export type RegisterFormUncheckedUpdateWithoutFieldsInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
reviewChannelId?: NullableStringFieldUpdateOperationsInput | string | null
notifyRoleIds?: RegisterFormUpdatenotifyRoleIdsInput | string[]
isActive?: BoolFieldUpdateOperationsInput | boolean
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
applications?: RegisterApplicationUncheckedUpdateManyWithoutFormNestedInput
}
export type RegisterApplicationAnswerCreateWithoutApplicationInput = {
id?: string
fieldId: string
value: string
}
export type RegisterApplicationAnswerUncheckedCreateWithoutApplicationInput = {
id?: string
fieldId: string
value: string
}
export type RegisterApplicationAnswerCreateOrConnectWithoutApplicationInput = {
where: RegisterApplicationAnswerWhereUniqueInput
create: XOR<RegisterApplicationAnswerCreateWithoutApplicationInput, RegisterApplicationAnswerUncheckedCreateWithoutApplicationInput>
}
export type RegisterApplicationAnswerCreateManyApplicationInputEnvelope = {
data: RegisterApplicationAnswerCreateManyApplicationInput | RegisterApplicationAnswerCreateManyApplicationInput[]
skipDuplicates?: boolean
}
export type RegisterApplicationNoteCreateWithoutApplicationInput = {
id?: string
authorId: string
authorTag: string
body: string
createdAt?: Date | string
}
export type RegisterApplicationNoteUncheckedCreateWithoutApplicationInput = {
id?: string
authorId: string
authorTag: string
body: string
createdAt?: Date | string
}
export type RegisterApplicationNoteCreateOrConnectWithoutApplicationInput = {
where: RegisterApplicationNoteWhereUniqueInput
create: XOR<RegisterApplicationNoteCreateWithoutApplicationInput, RegisterApplicationNoteUncheckedCreateWithoutApplicationInput>
}
export type RegisterApplicationNoteCreateManyApplicationInputEnvelope = {
data: RegisterApplicationNoteCreateManyApplicationInput | RegisterApplicationNoteCreateManyApplicationInput[]
skipDuplicates?: boolean
}
export type RegisterFormCreateWithoutApplicationsInput = {
id?: string
guildId: string
name: string
description?: string | null
reviewChannelId?: string | null
notifyRoleIds?: RegisterFormCreatenotifyRoleIdsInput | string[]
isActive?: boolean
createdAt?: Date | string
updatedAt?: Date | string
fields?: RegisterFormFieldCreateNestedManyWithoutFormInput
}
export type RegisterFormUncheckedCreateWithoutApplicationsInput = {
id?: string
guildId: string
name: string
description?: string | null
reviewChannelId?: string | null
notifyRoleIds?: RegisterFormCreatenotifyRoleIdsInput | string[]
isActive?: boolean
createdAt?: Date | string
updatedAt?: Date | string
fields?: RegisterFormFieldUncheckedCreateNestedManyWithoutFormInput
}
export type RegisterFormCreateOrConnectWithoutApplicationsInput = {
where: RegisterFormWhereUniqueInput
create: XOR<RegisterFormCreateWithoutApplicationsInput, RegisterFormUncheckedCreateWithoutApplicationsInput>
}
export type RegisterApplicationAnswerUpsertWithWhereUniqueWithoutApplicationInput = {
where: RegisterApplicationAnswerWhereUniqueInput
update: XOR<RegisterApplicationAnswerUpdateWithoutApplicationInput, RegisterApplicationAnswerUncheckedUpdateWithoutApplicationInput>
create: XOR<RegisterApplicationAnswerCreateWithoutApplicationInput, RegisterApplicationAnswerUncheckedCreateWithoutApplicationInput>
}
export type RegisterApplicationAnswerUpdateWithWhereUniqueWithoutApplicationInput = {
where: RegisterApplicationAnswerWhereUniqueInput
data: XOR<RegisterApplicationAnswerUpdateWithoutApplicationInput, RegisterApplicationAnswerUncheckedUpdateWithoutApplicationInput>
}
export type RegisterApplicationAnswerUpdateManyWithWhereWithoutApplicationInput = {
where: RegisterApplicationAnswerScalarWhereInput
data: XOR<RegisterApplicationAnswerUpdateManyMutationInput, RegisterApplicationAnswerUncheckedUpdateManyWithoutApplicationInput>
}
export type RegisterApplicationAnswerScalarWhereInput = {
AND?: RegisterApplicationAnswerScalarWhereInput | RegisterApplicationAnswerScalarWhereInput[]
OR?: RegisterApplicationAnswerScalarWhereInput[]
NOT?: RegisterApplicationAnswerScalarWhereInput | RegisterApplicationAnswerScalarWhereInput[]
id?: StringFilter<"RegisterApplicationAnswer"> | string
applicationId?: StringFilter<"RegisterApplicationAnswer"> | string
fieldId?: StringFilter<"RegisterApplicationAnswer"> | string
value?: StringFilter<"RegisterApplicationAnswer"> | string
}
export type RegisterApplicationNoteUpsertWithWhereUniqueWithoutApplicationInput = {
where: RegisterApplicationNoteWhereUniqueInput
update: XOR<RegisterApplicationNoteUpdateWithoutApplicationInput, RegisterApplicationNoteUncheckedUpdateWithoutApplicationInput>
create: XOR<RegisterApplicationNoteCreateWithoutApplicationInput, RegisterApplicationNoteUncheckedCreateWithoutApplicationInput>
}
export type RegisterApplicationNoteUpdateWithWhereUniqueWithoutApplicationInput = {
where: RegisterApplicationNoteWhereUniqueInput
data: XOR<RegisterApplicationNoteUpdateWithoutApplicationInput, RegisterApplicationNoteUncheckedUpdateWithoutApplicationInput>
}
export type RegisterApplicationNoteUpdateManyWithWhereWithoutApplicationInput = {
where: RegisterApplicationNoteScalarWhereInput
data: XOR<RegisterApplicationNoteUpdateManyMutationInput, RegisterApplicationNoteUncheckedUpdateManyWithoutApplicationInput>
}
export type RegisterApplicationNoteScalarWhereInput = {
AND?: RegisterApplicationNoteScalarWhereInput | RegisterApplicationNoteScalarWhereInput[]
OR?: RegisterApplicationNoteScalarWhereInput[]
NOT?: RegisterApplicationNoteScalarWhereInput | RegisterApplicationNoteScalarWhereInput[]
id?: StringFilter<"RegisterApplicationNote"> | string
applicationId?: StringFilter<"RegisterApplicationNote"> | string
authorId?: StringFilter<"RegisterApplicationNote"> | string
authorTag?: StringFilter<"RegisterApplicationNote"> | string
body?: StringFilter<"RegisterApplicationNote"> | string
createdAt?: DateTimeFilter<"RegisterApplicationNote"> | Date | string
}
export type RegisterFormUpsertWithoutApplicationsInput = {
update: XOR<RegisterFormUpdateWithoutApplicationsInput, RegisterFormUncheckedUpdateWithoutApplicationsInput>
create: XOR<RegisterFormCreateWithoutApplicationsInput, RegisterFormUncheckedCreateWithoutApplicationsInput>
where?: RegisterFormWhereInput
}
export type RegisterFormUpdateToOneWithWhereWithoutApplicationsInput = {
where?: RegisterFormWhereInput
data: XOR<RegisterFormUpdateWithoutApplicationsInput, RegisterFormUncheckedUpdateWithoutApplicationsInput>
}
export type RegisterFormUpdateWithoutApplicationsInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
reviewChannelId?: NullableStringFieldUpdateOperationsInput | string | null
notifyRoleIds?: RegisterFormUpdatenotifyRoleIdsInput | string[]
isActive?: BoolFieldUpdateOperationsInput | boolean
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
fields?: RegisterFormFieldUpdateManyWithoutFormNestedInput
}
export type RegisterFormUncheckedUpdateWithoutApplicationsInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
name?: StringFieldUpdateOperationsInput | string
description?: NullableStringFieldUpdateOperationsInput | string | null
reviewChannelId?: NullableStringFieldUpdateOperationsInput | string | null
notifyRoleIds?: RegisterFormUpdatenotifyRoleIdsInput | string[]
isActive?: BoolFieldUpdateOperationsInput | boolean
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
fields?: RegisterFormFieldUncheckedUpdateManyWithoutFormNestedInput
}
export type RegisterApplicationCreateWithoutAnswersInput = {
id?: string
guildId: string
userId: string
status?: string
reviewedBy?: string | null
createdAt?: Date | string
updatedAt?: Date | string
notes?: RegisterApplicationNoteCreateNestedManyWithoutApplicationInput
form: RegisterFormCreateNestedOneWithoutApplicationsInput
}
export type RegisterApplicationUncheckedCreateWithoutAnswersInput = {
id?: string
guildId: string
userId: string
formId: string
status?: string
reviewedBy?: string | null
createdAt?: Date | string
updatedAt?: Date | string
notes?: RegisterApplicationNoteUncheckedCreateNestedManyWithoutApplicationInput
}
export type RegisterApplicationCreateOrConnectWithoutAnswersInput = {
where: RegisterApplicationWhereUniqueInput
create: XOR<RegisterApplicationCreateWithoutAnswersInput, RegisterApplicationUncheckedCreateWithoutAnswersInput>
}
export type RegisterApplicationUpsertWithoutAnswersInput = {
update: XOR<RegisterApplicationUpdateWithoutAnswersInput, RegisterApplicationUncheckedUpdateWithoutAnswersInput>
create: XOR<RegisterApplicationCreateWithoutAnswersInput, RegisterApplicationUncheckedCreateWithoutAnswersInput>
where?: RegisterApplicationWhereInput
}
export type RegisterApplicationUpdateToOneWithWhereWithoutAnswersInput = {
where?: RegisterApplicationWhereInput
data: XOR<RegisterApplicationUpdateWithoutAnswersInput, RegisterApplicationUncheckedUpdateWithoutAnswersInput>
}
export type RegisterApplicationUpdateWithoutAnswersInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
status?: StringFieldUpdateOperationsInput | string
reviewedBy?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
notes?: RegisterApplicationNoteUpdateManyWithoutApplicationNestedInput
form?: RegisterFormUpdateOneRequiredWithoutApplicationsNestedInput
}
export type RegisterApplicationUncheckedUpdateWithoutAnswersInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
formId?: StringFieldUpdateOperationsInput | string
status?: StringFieldUpdateOperationsInput | string
reviewedBy?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
notes?: RegisterApplicationNoteUncheckedUpdateManyWithoutApplicationNestedInput
}
export type RegisterApplicationCreateWithoutNotesInput = {
id?: string
guildId: string
userId: string
status?: string
reviewedBy?: string | null
createdAt?: Date | string
updatedAt?: Date | string
answers?: RegisterApplicationAnswerCreateNestedManyWithoutApplicationInput
form: RegisterFormCreateNestedOneWithoutApplicationsInput
}
export type RegisterApplicationUncheckedCreateWithoutNotesInput = {
id?: string
guildId: string
userId: string
formId: string
status?: string
reviewedBy?: string | null
createdAt?: Date | string
updatedAt?: Date | string
answers?: RegisterApplicationAnswerUncheckedCreateNestedManyWithoutApplicationInput
}
export type RegisterApplicationCreateOrConnectWithoutNotesInput = {
where: RegisterApplicationWhereUniqueInput
create: XOR<RegisterApplicationCreateWithoutNotesInput, RegisterApplicationUncheckedCreateWithoutNotesInput>
}
export type RegisterApplicationUpsertWithoutNotesInput = {
update: XOR<RegisterApplicationUpdateWithoutNotesInput, RegisterApplicationUncheckedUpdateWithoutNotesInput>
create: XOR<RegisterApplicationCreateWithoutNotesInput, RegisterApplicationUncheckedCreateWithoutNotesInput>
where?: RegisterApplicationWhereInput
}
export type RegisterApplicationUpdateToOneWithWhereWithoutNotesInput = {
where?: RegisterApplicationWhereInput
data: XOR<RegisterApplicationUpdateWithoutNotesInput, RegisterApplicationUncheckedUpdateWithoutNotesInput>
}
export type RegisterApplicationUpdateWithoutNotesInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
status?: StringFieldUpdateOperationsInput | string
reviewedBy?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
answers?: RegisterApplicationAnswerUpdateManyWithoutApplicationNestedInput
form?: RegisterFormUpdateOneRequiredWithoutApplicationsNestedInput
}
export type RegisterApplicationUncheckedUpdateWithoutNotesInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
formId?: StringFieldUpdateOperationsInput | string
status?: StringFieldUpdateOperationsInput | string
reviewedBy?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
answers?: RegisterApplicationAnswerUncheckedUpdateManyWithoutApplicationNestedInput
}
export type PollVoteCreateWithoutPollInput = {
id?: string
userId: string
optionId: string
createdAt?: Date | string
}
export type PollVoteUncheckedCreateWithoutPollInput = {
id?: string
userId: string
optionId: string
createdAt?: Date | string
}
export type PollVoteCreateOrConnectWithoutPollInput = {
where: PollVoteWhereUniqueInput
create: XOR<PollVoteCreateWithoutPollInput, PollVoteUncheckedCreateWithoutPollInput>
}
export type PollVoteCreateManyPollInputEnvelope = {
data: PollVoteCreateManyPollInput | PollVoteCreateManyPollInput[]
skipDuplicates?: boolean
}
export type PollVoteUpsertWithWhereUniqueWithoutPollInput = {
where: PollVoteWhereUniqueInput
update: XOR<PollVoteUpdateWithoutPollInput, PollVoteUncheckedUpdateWithoutPollInput>
create: XOR<PollVoteCreateWithoutPollInput, PollVoteUncheckedCreateWithoutPollInput>
}
export type PollVoteUpdateWithWhereUniqueWithoutPollInput = {
where: PollVoteWhereUniqueInput
data: XOR<PollVoteUpdateWithoutPollInput, PollVoteUncheckedUpdateWithoutPollInput>
}
export type PollVoteUpdateManyWithWhereWithoutPollInput = {
where: PollVoteScalarWhereInput
data: XOR<PollVoteUpdateManyMutationInput, PollVoteUncheckedUpdateManyWithoutPollInput>
}
export type PollVoteScalarWhereInput = {
AND?: PollVoteScalarWhereInput | PollVoteScalarWhereInput[]
OR?: PollVoteScalarWhereInput[]
NOT?: PollVoteScalarWhereInput | PollVoteScalarWhereInput[]
id?: StringFilter<"PollVote"> | string
pollId?: StringFilter<"PollVote"> | string
userId?: StringFilter<"PollVote"> | string
optionId?: StringFilter<"PollVote"> | string
createdAt?: DateTimeFilter<"PollVote"> | Date | string
}
export type PollCreateWithoutVotesInput = {
id?: string
guildId: string
channelId: string
messageId?: string | null
question: string
options: JsonNullValueInput | InputJsonValue
anonymous?: boolean
closesAt?: Date | string | null
closed?: boolean
createdBy: string
createdAt?: Date | string
}
export type PollUncheckedCreateWithoutVotesInput = {
id?: string
guildId: string
channelId: string
messageId?: string | null
question: string
options: JsonNullValueInput | InputJsonValue
anonymous?: boolean
closesAt?: Date | string | null
closed?: boolean
createdBy: string
createdAt?: Date | string
}
export type PollCreateOrConnectWithoutVotesInput = {
where: PollWhereUniqueInput
create: XOR<PollCreateWithoutVotesInput, PollUncheckedCreateWithoutVotesInput>
}
export type PollUpsertWithoutVotesInput = {
update: XOR<PollUpdateWithoutVotesInput, PollUncheckedUpdateWithoutVotesInput>
create: XOR<PollCreateWithoutVotesInput, PollUncheckedCreateWithoutVotesInput>
where?: PollWhereInput
}
export type PollUpdateToOneWithWhereWithoutVotesInput = {
where?: PollWhereInput
data: XOR<PollUpdateWithoutVotesInput, PollUncheckedUpdateWithoutVotesInput>
}
export type PollUpdateWithoutVotesInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
channelId?: StringFieldUpdateOperationsInput | string
messageId?: NullableStringFieldUpdateOperationsInput | string | null
question?: StringFieldUpdateOperationsInput | string
options?: JsonNullValueInput | InputJsonValue
anonymous?: BoolFieldUpdateOperationsInput | boolean
closesAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
closed?: BoolFieldUpdateOperationsInput | boolean
createdBy?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type PollUncheckedUpdateWithoutVotesInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
channelId?: StringFieldUpdateOperationsInput | string
messageId?: NullableStringFieldUpdateOperationsInput | string | null
question?: StringFieldUpdateOperationsInput | string
options?: JsonNullValueInput | InputJsonValue
anonymous?: BoolFieldUpdateOperationsInput | boolean
closesAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
closed?: BoolFieldUpdateOperationsInput | boolean
createdBy?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type SuggestionVoteCreateWithoutSuggestionInput = {
id?: string
userId: string
value: number
}
export type SuggestionVoteUncheckedCreateWithoutSuggestionInput = {
id?: string
userId: string
value: number
}
export type SuggestionVoteCreateOrConnectWithoutSuggestionInput = {
where: SuggestionVoteWhereUniqueInput
create: XOR<SuggestionVoteCreateWithoutSuggestionInput, SuggestionVoteUncheckedCreateWithoutSuggestionInput>
}
export type SuggestionVoteCreateManySuggestionInputEnvelope = {
data: SuggestionVoteCreateManySuggestionInput | SuggestionVoteCreateManySuggestionInput[]
skipDuplicates?: boolean
}
export type SuggestionVoteUpsertWithWhereUniqueWithoutSuggestionInput = {
where: SuggestionVoteWhereUniqueInput
update: XOR<SuggestionVoteUpdateWithoutSuggestionInput, SuggestionVoteUncheckedUpdateWithoutSuggestionInput>
create: XOR<SuggestionVoteCreateWithoutSuggestionInput, SuggestionVoteUncheckedCreateWithoutSuggestionInput>
}
export type SuggestionVoteUpdateWithWhereUniqueWithoutSuggestionInput = {
where: SuggestionVoteWhereUniqueInput
data: XOR<SuggestionVoteUpdateWithoutSuggestionInput, SuggestionVoteUncheckedUpdateWithoutSuggestionInput>
}
export type SuggestionVoteUpdateManyWithWhereWithoutSuggestionInput = {
where: SuggestionVoteScalarWhereInput
data: XOR<SuggestionVoteUpdateManyMutationInput, SuggestionVoteUncheckedUpdateManyWithoutSuggestionInput>
}
export type SuggestionVoteScalarWhereInput = {
AND?: SuggestionVoteScalarWhereInput | SuggestionVoteScalarWhereInput[]
OR?: SuggestionVoteScalarWhereInput[]
NOT?: SuggestionVoteScalarWhereInput | SuggestionVoteScalarWhereInput[]
id?: StringFilter<"SuggestionVote"> | string
suggestionId?: StringFilter<"SuggestionVote"> | string
userId?: StringFilter<"SuggestionVote"> | string
value?: IntFilter<"SuggestionVote"> | number
}
export type SuggestionCreateWithoutVotesInput = {
id?: string
guildId: string
channelId: string
messageId?: string | null
userId: string
userTag: string
content: string
status?: string
createdAt?: Date | string
}
export type SuggestionUncheckedCreateWithoutVotesInput = {
id?: string
guildId: string
channelId: string
messageId?: string | null
userId: string
userTag: string
content: string
status?: string
createdAt?: Date | string
}
export type SuggestionCreateOrConnectWithoutVotesInput = {
where: SuggestionWhereUniqueInput
create: XOR<SuggestionCreateWithoutVotesInput, SuggestionUncheckedCreateWithoutVotesInput>
}
export type SuggestionUpsertWithoutVotesInput = {
update: XOR<SuggestionUpdateWithoutVotesInput, SuggestionUncheckedUpdateWithoutVotesInput>
create: XOR<SuggestionCreateWithoutVotesInput, SuggestionUncheckedCreateWithoutVotesInput>
where?: SuggestionWhereInput
}
export type SuggestionUpdateToOneWithWhereWithoutVotesInput = {
where?: SuggestionWhereInput
data: XOR<SuggestionUpdateWithoutVotesInput, SuggestionUncheckedUpdateWithoutVotesInput>
}
export type SuggestionUpdateWithoutVotesInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
channelId?: StringFieldUpdateOperationsInput | string
messageId?: NullableStringFieldUpdateOperationsInput | string | null
userId?: StringFieldUpdateOperationsInput | string
userTag?: StringFieldUpdateOperationsInput | string
content?: StringFieldUpdateOperationsInput | string
status?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type SuggestionUncheckedUpdateWithoutVotesInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
channelId?: StringFieldUpdateOperationsInput | string
messageId?: NullableStringFieldUpdateOperationsInput | string | null
userId?: StringFieldUpdateOperationsInput | string
userTag?: StringFieldUpdateOperationsInput | string
content?: StringFieldUpdateOperationsInput | string
status?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type GalleryVoteCreateWithoutPostInput = {
id?: string
userId: string
}
export type GalleryVoteUncheckedCreateWithoutPostInput = {
id?: string
userId: string
}
export type GalleryVoteCreateOrConnectWithoutPostInput = {
where: GalleryVoteWhereUniqueInput
create: XOR<GalleryVoteCreateWithoutPostInput, GalleryVoteUncheckedCreateWithoutPostInput>
}
export type GalleryVoteCreateManyPostInputEnvelope = {
data: GalleryVoteCreateManyPostInput | GalleryVoteCreateManyPostInput[]
skipDuplicates?: boolean
}
export type GalleryVoteUpsertWithWhereUniqueWithoutPostInput = {
where: GalleryVoteWhereUniqueInput
update: XOR<GalleryVoteUpdateWithoutPostInput, GalleryVoteUncheckedUpdateWithoutPostInput>
create: XOR<GalleryVoteCreateWithoutPostInput, GalleryVoteUncheckedCreateWithoutPostInput>
}
export type GalleryVoteUpdateWithWhereUniqueWithoutPostInput = {
where: GalleryVoteWhereUniqueInput
data: XOR<GalleryVoteUpdateWithoutPostInput, GalleryVoteUncheckedUpdateWithoutPostInput>
}
export type GalleryVoteUpdateManyWithWhereWithoutPostInput = {
where: GalleryVoteScalarWhereInput
data: XOR<GalleryVoteUpdateManyMutationInput, GalleryVoteUncheckedUpdateManyWithoutPostInput>
}
export type GalleryVoteScalarWhereInput = {
AND?: GalleryVoteScalarWhereInput | GalleryVoteScalarWhereInput[]
OR?: GalleryVoteScalarWhereInput[]
NOT?: GalleryVoteScalarWhereInput | GalleryVoteScalarWhereInput[]
id?: StringFilter<"GalleryVote"> | string
postId?: StringFilter<"GalleryVote"> | string
userId?: StringFilter<"GalleryVote"> | string
}
export type GalleryPostCreateWithoutVotesInput = {
id?: string
guildId: string
channelId: string
messageId?: string | null
userId: string
userTag: string
imageUrl: string
caption?: string | null
createdAt?: Date | string
}
export type GalleryPostUncheckedCreateWithoutVotesInput = {
id?: string
guildId: string
channelId: string
messageId?: string | null
userId: string
userTag: string
imageUrl: string
caption?: string | null
createdAt?: Date | string
}
export type GalleryPostCreateOrConnectWithoutVotesInput = {
where: GalleryPostWhereUniqueInput
create: XOR<GalleryPostCreateWithoutVotesInput, GalleryPostUncheckedCreateWithoutVotesInput>
}
export type GalleryPostUpsertWithoutVotesInput = {
update: XOR<GalleryPostUpdateWithoutVotesInput, GalleryPostUncheckedUpdateWithoutVotesInput>
create: XOR<GalleryPostCreateWithoutVotesInput, GalleryPostUncheckedCreateWithoutVotesInput>
where?: GalleryPostWhereInput
}
export type GalleryPostUpdateToOneWithWhereWithoutVotesInput = {
where?: GalleryPostWhereInput
data: XOR<GalleryPostUpdateWithoutVotesInput, GalleryPostUncheckedUpdateWithoutVotesInput>
}
export type GalleryPostUpdateWithoutVotesInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
channelId?: StringFieldUpdateOperationsInput | string
messageId?: NullableStringFieldUpdateOperationsInput | string | null
userId?: StringFieldUpdateOperationsInput | string
userTag?: StringFieldUpdateOperationsInput | string
imageUrl?: StringFieldUpdateOperationsInput | string
caption?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type GalleryPostUncheckedUpdateWithoutVotesInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
channelId?: StringFieldUpdateOperationsInput | string
messageId?: NullableStringFieldUpdateOperationsInput | string | null
userId?: StringFieldUpdateOperationsInput | string
userTag?: StringFieldUpdateOperationsInput | string
imageUrl?: StringFieldUpdateOperationsInput | string
caption?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type EventSignupCreateManyEventInput = {
id?: string
guildId: string
userId: string
createdAt?: Date | string
canceledAt?: Date | string | null
}
export type EventSignupUpdateWithoutEventInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
canceledAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type EventSignupUncheckedUpdateWithoutEventInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
canceledAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type EventSignupUncheckedUpdateManyWithoutEventInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
canceledAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type RegisterFormFieldCreateManyFormInput = {
id?: string
label: string
type: string
required?: boolean
order?: number
}
export type RegisterApplicationCreateManyFormInput = {
id?: string
guildId: string
userId: string
status?: string
reviewedBy?: string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type RegisterFormFieldUpdateWithoutFormInput = {
id?: StringFieldUpdateOperationsInput | string
label?: StringFieldUpdateOperationsInput | string
type?: StringFieldUpdateOperationsInput | string
required?: BoolFieldUpdateOperationsInput | boolean
order?: IntFieldUpdateOperationsInput | number
}
export type RegisterFormFieldUncheckedUpdateWithoutFormInput = {
id?: StringFieldUpdateOperationsInput | string
label?: StringFieldUpdateOperationsInput | string
type?: StringFieldUpdateOperationsInput | string
required?: BoolFieldUpdateOperationsInput | boolean
order?: IntFieldUpdateOperationsInput | number
}
export type RegisterFormFieldUncheckedUpdateManyWithoutFormInput = {
id?: StringFieldUpdateOperationsInput | string
label?: StringFieldUpdateOperationsInput | string
type?: StringFieldUpdateOperationsInput | string
required?: BoolFieldUpdateOperationsInput | boolean
order?: IntFieldUpdateOperationsInput | number
}
export type RegisterApplicationUpdateWithoutFormInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
status?: StringFieldUpdateOperationsInput | string
reviewedBy?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
answers?: RegisterApplicationAnswerUpdateManyWithoutApplicationNestedInput
notes?: RegisterApplicationNoteUpdateManyWithoutApplicationNestedInput
}
export type RegisterApplicationUncheckedUpdateWithoutFormInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
status?: StringFieldUpdateOperationsInput | string
reviewedBy?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
answers?: RegisterApplicationAnswerUncheckedUpdateManyWithoutApplicationNestedInput
notes?: RegisterApplicationNoteUncheckedUpdateManyWithoutApplicationNestedInput
}
export type RegisterApplicationUncheckedUpdateManyWithoutFormInput = {
id?: StringFieldUpdateOperationsInput | string
guildId?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
status?: StringFieldUpdateOperationsInput | string
reviewedBy?: NullableStringFieldUpdateOperationsInput | string | null
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type RegisterApplicationAnswerCreateManyApplicationInput = {
id?: string
fieldId: string
value: string
}
export type RegisterApplicationNoteCreateManyApplicationInput = {
id?: string
authorId: string
authorTag: string
body: string
createdAt?: Date | string
}
export type RegisterApplicationAnswerUpdateWithoutApplicationInput = {
id?: StringFieldUpdateOperationsInput | string
fieldId?: StringFieldUpdateOperationsInput | string
value?: StringFieldUpdateOperationsInput | string
}
export type RegisterApplicationAnswerUncheckedUpdateWithoutApplicationInput = {
id?: StringFieldUpdateOperationsInput | string
fieldId?: StringFieldUpdateOperationsInput | string
value?: StringFieldUpdateOperationsInput | string
}
export type RegisterApplicationAnswerUncheckedUpdateManyWithoutApplicationInput = {
id?: StringFieldUpdateOperationsInput | string
fieldId?: StringFieldUpdateOperationsInput | string
value?: StringFieldUpdateOperationsInput | string
}
export type RegisterApplicationNoteUpdateWithoutApplicationInput = {
id?: StringFieldUpdateOperationsInput | string
authorId?: StringFieldUpdateOperationsInput | string
authorTag?: StringFieldUpdateOperationsInput | string
body?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type RegisterApplicationNoteUncheckedUpdateWithoutApplicationInput = {
id?: StringFieldUpdateOperationsInput | string
authorId?: StringFieldUpdateOperationsInput | string
authorTag?: StringFieldUpdateOperationsInput | string
body?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type RegisterApplicationNoteUncheckedUpdateManyWithoutApplicationInput = {
id?: StringFieldUpdateOperationsInput | string
authorId?: StringFieldUpdateOperationsInput | string
authorTag?: StringFieldUpdateOperationsInput | string
body?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type PollVoteCreateManyPollInput = {
id?: string
userId: string
optionId: string
createdAt?: Date | string
}
export type PollVoteUpdateWithoutPollInput = {
id?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
optionId?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type PollVoteUncheckedUpdateWithoutPollInput = {
id?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
optionId?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type PollVoteUncheckedUpdateManyWithoutPollInput = {
id?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
optionId?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
}
export type SuggestionVoteCreateManySuggestionInput = {
id?: string
userId: string
value: number
}
export type SuggestionVoteUpdateWithoutSuggestionInput = {
id?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
value?: IntFieldUpdateOperationsInput | number
}
export type SuggestionVoteUncheckedUpdateWithoutSuggestionInput = {
id?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
value?: IntFieldUpdateOperationsInput | number
}
export type SuggestionVoteUncheckedUpdateManyWithoutSuggestionInput = {
id?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
value?: IntFieldUpdateOperationsInput | number
}
export type GalleryVoteCreateManyPostInput = {
id?: string
userId: string
}
export type GalleryVoteUpdateWithoutPostInput = {
id?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
}
export type GalleryVoteUncheckedUpdateWithoutPostInput = {
id?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
}
export type GalleryVoteUncheckedUpdateManyWithoutPostInput = {
id?: StringFieldUpdateOperationsInput | string
userId?: StringFieldUpdateOperationsInput | string
}
/**
* Aliases for legacy arg types
*/
/**
* @deprecated Use EventCountOutputTypeDefaultArgs instead
*/
export type EventCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = EventCountOutputTypeDefaultArgs<ExtArgs>
/**
* @deprecated Use RegisterFormCountOutputTypeDefaultArgs instead
*/
export type RegisterFormCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = RegisterFormCountOutputTypeDefaultArgs<ExtArgs>
/**
* @deprecated Use RegisterApplicationCountOutputTypeDefaultArgs instead
*/
export type RegisterApplicationCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = RegisterApplicationCountOutputTypeDefaultArgs<ExtArgs>
/**
* @deprecated Use PollCountOutputTypeDefaultArgs instead
*/
export type PollCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = PollCountOutputTypeDefaultArgs<ExtArgs>
/**
* @deprecated Use SuggestionCountOutputTypeDefaultArgs instead
*/
export type SuggestionCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = SuggestionCountOutputTypeDefaultArgs<ExtArgs>
/**
* @deprecated Use GalleryPostCountOutputTypeDefaultArgs instead
*/
export type GalleryPostCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = GalleryPostCountOutputTypeDefaultArgs<ExtArgs>
/**
* @deprecated Use GuildSettingsDefaultArgs instead
*/
export type GuildSettingsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = GuildSettingsDefaultArgs<ExtArgs>
/**
* @deprecated Use TicketDefaultArgs instead
*/
export type TicketArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = TicketDefaultArgs<ExtArgs>
/**
* @deprecated Use TicketAutomationRuleDefaultArgs instead
*/
export type TicketAutomationRuleArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = TicketAutomationRuleDefaultArgs<ExtArgs>
/**
* @deprecated Use KnowledgeBaseArticleDefaultArgs instead
*/
export type KnowledgeBaseArticleArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = KnowledgeBaseArticleDefaultArgs<ExtArgs>
/**
* @deprecated Use LevelDefaultArgs instead
*/
export type LevelArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = LevelDefaultArgs<ExtArgs>
/**
* @deprecated Use TicketSupportSessionDefaultArgs instead
*/
export type TicketSupportSessionArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = TicketSupportSessionDefaultArgs<ExtArgs>
/**
* @deprecated Use BirthdayDefaultArgs instead
*/
export type BirthdayArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = BirthdayDefaultArgs<ExtArgs>
/**
* @deprecated Use ReactionRoleSetDefaultArgs instead
*/
export type ReactionRoleSetArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = ReactionRoleSetDefaultArgs<ExtArgs>
/**
* @deprecated Use EventDefaultArgs instead
*/
export type EventArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = EventDefaultArgs<ExtArgs>
/**
* @deprecated Use EventSignupDefaultArgs instead
*/
export type EventSignupArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = EventSignupDefaultArgs<ExtArgs>
/**
* @deprecated Use RegisterFormDefaultArgs instead
*/
export type RegisterFormArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = RegisterFormDefaultArgs<ExtArgs>
/**
* @deprecated Use RegisterFormFieldDefaultArgs instead
*/
export type RegisterFormFieldArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = RegisterFormFieldDefaultArgs<ExtArgs>
/**
* @deprecated Use RegisterApplicationDefaultArgs instead
*/
export type RegisterApplicationArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = RegisterApplicationDefaultArgs<ExtArgs>
/**
* @deprecated Use RegisterApplicationAnswerDefaultArgs instead
*/
export type RegisterApplicationAnswerArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = RegisterApplicationAnswerDefaultArgs<ExtArgs>
/**
* @deprecated Use RegisterApplicationNoteDefaultArgs instead
*/
export type RegisterApplicationNoteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = RegisterApplicationNoteDefaultArgs<ExtArgs>
/**
* @deprecated Use AutomodStrikeDefaultArgs instead
*/
export type AutomodStrikeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = AutomodStrikeDefaultArgs<ExtArgs>
/**
* @deprecated Use StaffTaskDefaultArgs instead
*/
export type StaffTaskArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = StaffTaskDefaultArgs<ExtArgs>
/**
* @deprecated Use ModCaseDefaultArgs instead
*/
export type ModCaseArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = ModCaseDefaultArgs<ExtArgs>
/**
* @deprecated Use WatchlistDefaultArgs instead
*/
export type WatchlistArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = WatchlistDefaultArgs<ExtArgs>
/**
* @deprecated Use UserBadgeDefaultArgs instead
*/
export type UserBadgeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = UserBadgeDefaultArgs<ExtArgs>
/**
* @deprecated Use UserActivityDefaultArgs instead
*/
export type UserActivityArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = UserActivityDefaultArgs<ExtArgs>
/**
* @deprecated Use WeeklyPlanDefaultArgs instead
*/
export type WeeklyPlanArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = WeeklyPlanDefaultArgs<ExtArgs>
/**
* @deprecated Use WeeklyPlanRsvpDefaultArgs instead
*/
export type WeeklyPlanRsvpArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = WeeklyPlanRsvpDefaultArgs<ExtArgs>
/**
* @deprecated Use PollDefaultArgs instead
*/
export type PollArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = PollDefaultArgs<ExtArgs>
/**
* @deprecated Use PollVoteDefaultArgs instead
*/
export type PollVoteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = PollVoteDefaultArgs<ExtArgs>
/**
* @deprecated Use SuggestionDefaultArgs instead
*/
export type SuggestionArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = SuggestionDefaultArgs<ExtArgs>
/**
* @deprecated Use SuggestionVoteDefaultArgs instead
*/
export type SuggestionVoteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = SuggestionVoteDefaultArgs<ExtArgs>
/**
* @deprecated Use PartnerRequestDefaultArgs instead
*/
export type PartnerRequestArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = PartnerRequestDefaultArgs<ExtArgs>
/**
* @deprecated Use GalleryPostDefaultArgs instead
*/
export type GalleryPostArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = GalleryPostDefaultArgs<ExtArgs>
/**
* @deprecated Use GalleryVoteDefaultArgs instead
*/
export type GalleryVoteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = GalleryVoteDefaultArgs<ExtArgs>
/**
* @deprecated Use GuildGrowthEventDefaultArgs instead
*/
export type GuildGrowthEventArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = GuildGrowthEventDefaultArgs<ExtArgs>
/**
* @deprecated Use InfoPanelDefaultArgs instead
*/
export type InfoPanelArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = InfoPanelDefaultArgs<ExtArgs>
/**
* Batch Payload for updateMany & deleteMany & createMany
*/
export type BatchPayload = {
count: number
}
/**
* DMMF
*/
export const dmmf: runtime.BaseDMMF
}