From c7136553c7267b197248aeecd6b0eab130c9a3b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pascal=20Prie=C3=9Fnitz?= Date: Wed, 3 Dec 2025 19:47:27 +0100 Subject: [PATCH] [deploy] Cleanup dashboard nav encoding and fix syntax error --- node_modules/.prisma/client/edge.js | 79 +- node_modules/.prisma/client/index-browser.js | 73 +- node_modules/.prisma/client/index.d.ts | 8519 +++++++++++++++++- node_modules/.prisma/client/index.js | 79 +- node_modules/.prisma/client/wasm.js | 73 +- src/web/routes/dashboard.ts | 87 +- tmp_locate.log | 0 7 files changed, 8717 insertions(+), 193 deletions(-) create mode 100644 tmp_locate.log diff --git a/node_modules/.prisma/client/edge.js b/node_modules/.prisma/client/edge.js index 9558902..f9a2dca 100644 --- a/node_modules/.prisma/client/edge.js +++ b/node_modules/.prisma/client/edge.js @@ -109,6 +109,8 @@ exports.Prisma.GuildSettingsScalarFieldEnum = { reactionRolesEnabled: 'reactionRolesEnabled', reactionRolesConfig: 'reactionRolesConfig', eventsEnabled: 'eventsEnabled', + registerEnabled: 'registerEnabled', + registerConfig: 'registerConfig', supportRoleId: 'supportRoleId', updatedAt: 'updatedAt', createdAt: 'createdAt' @@ -125,6 +127,30 @@ exports.Prisma.TicketScalarFieldEnum = { status: 'status', claimedBy: 'claimedBy', transcript: 'transcript', + firstClaimAt: 'firstClaimAt', + firstResponseAt: 'firstResponseAt', + kbSuggestionSentAt: 'kbSuggestionSentAt', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +}; + +exports.Prisma.TicketAutomationRuleScalarFieldEnum = { + id: 'id', + guildId: 'guildId', + name: 'name', + condition: 'condition', + action: 'action', + active: 'active', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +}; + +exports.Prisma.KnowledgeBaseArticleScalarFieldEnum = { + id: 'id', + guildId: 'guildId', + title: 'title', + keywords: 'keywords', + content: 'content', createdAt: 'createdAt', updatedAt: 'updatedAt' }; @@ -196,6 +222,45 @@ exports.Prisma.EventSignupScalarFieldEnum = { canceledAt: 'canceledAt' }; +exports.Prisma.RegisterFormScalarFieldEnum = { + id: 'id', + guildId: 'guildId', + name: 'name', + description: 'description', + reviewChannelId: 'reviewChannelId', + notifyRoleIds: 'notifyRoleIds', + isActive: 'isActive', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +}; + +exports.Prisma.RegisterFormFieldScalarFieldEnum = { + id: 'id', + formId: 'formId', + label: 'label', + type: 'type', + required: 'required', + sortOrder: 'sortOrder' +}; + +exports.Prisma.RegisterApplicationScalarFieldEnum = { + id: 'id', + guildId: 'guildId', + userId: 'userId', + formId: 'formId', + status: 'status', + reviewedBy: 'reviewedBy', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +}; + +exports.Prisma.RegisterApplicationAnswerScalarFieldEnum = { + id: 'id', + applicationId: 'applicationId', + fieldId: 'fieldId', + value: 'value' +}; + exports.Prisma.SortOrder = { asc: 'asc', desc: 'desc' @@ -230,12 +295,18 @@ exports.Prisma.NullsOrder = { exports.Prisma.ModelName = { GuildSettings: 'GuildSettings', Ticket: 'Ticket', + TicketAutomationRule: 'TicketAutomationRule', + KnowledgeBaseArticle: 'KnowledgeBaseArticle', Level: 'Level', TicketSupportSession: 'TicketSupportSession', Birthday: 'Birthday', ReactionRoleSet: 'ReactionRoleSet', Event: 'Event', - EventSignup: 'EventSignup' + EventSignup: 'EventSignup', + RegisterForm: 'RegisterForm', + RegisterFormField: 'RegisterFormField', + RegisterApplication: 'RegisterApplication', + RegisterApplicationAnswer: 'RegisterApplicationAnswer' }; /** * Create the Client @@ -284,13 +355,13 @@ const config = { } } }, - "inlineSchema": "generator client {\n provider = \"prisma-client-js\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n}\n\nmodel GuildSettings {\n guildId String @id\n welcomeChannelId String?\n logChannelId String?\n automodEnabled Boolean?\n automodConfig Json?\n levelingEnabled Boolean?\n ticketsEnabled Boolean?\n musicEnabled Boolean?\n statuspageEnabled Boolean?\n statuspageConfig Json?\n dynamicVoiceEnabled Boolean?\n dynamicVoiceConfig Json?\n supportLoginConfig Json?\n birthdayEnabled Boolean?\n birthdayConfig Json?\n reactionRolesEnabled Boolean?\n reactionRolesConfig Json?\n eventsEnabled Boolean?\n supportRoleId String?\n updatedAt DateTime @updatedAt\n createdAt DateTime @default(now())\n}\n\nmodel Ticket {\n id String @id @default(cuid())\n ticketNumber Int @default(autoincrement())\n userId String\n channelId String\n guildId String\n topic String?\n priority String @default(\"normal\")\n status String\n claimedBy String?\n transcript String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n\nmodel Level {\n id String @id @default(cuid())\n userId String\n guildId String\n xp Int @default(0)\n level Int @default(0)\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@unique([userId, guildId], name: \"userId_guildId\")\n}\n\nmodel TicketSupportSession {\n id String @id @default(cuid())\n guildId String\n userId String\n roleId String\n startedAt DateTime @default(now())\n endedAt DateTime?\n durationSeconds Int?\n\n @@index([guildId, userId, endedAt])\n}\n\nmodel Birthday {\n id String @id @default(cuid())\n userId String\n guildId String\n birthDate String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@unique([userId, guildId], name: \"birthday_user_guild\")\n @@index([guildId])\n}\n\nmodel ReactionRoleSet {\n id String @id @default(cuid())\n guildId String\n channelId String\n messageId String?\n title String?\n description String?\n entries Json\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@index([guildId])\n @@index([guildId, messageId])\n}\n\nmodel Event {\n id String @id @default(cuid())\n guildId String\n title String\n description String?\n channelId String\n startTime DateTime\n repeatType String @default(\"none\")\n repeatConfig Json?\n reminderOffsetMinutes Int @default(60)\n roleId String?\n isActive Boolean @default(true)\n lastReminderAt DateTime?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n signups EventSignup[]\n\n @@index([guildId])\n @@index([guildId, startTime])\n}\n\nmodel EventSignup {\n id String @id @default(cuid())\n eventId String\n guildId String\n userId String\n createdAt DateTime @default(now())\n canceledAt DateTime?\n\n event Event @relation(fields: [eventId], references: [id])\n\n @@unique([eventId, userId])\n @@index([guildId, eventId])\n}\n", - "inlineSchemaHash": "568c90a02123b5936efbb0bcba9292354eae27a5022567e88b12cb219e10d706", + "inlineSchema": "generator client {\n provider = \"prisma-client-js\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n}\n\nmodel GuildSettings {\n guildId String @id\n welcomeChannelId String?\n logChannelId String?\n automodEnabled Boolean?\n automodConfig Json?\n levelingEnabled Boolean?\n ticketsEnabled Boolean?\n musicEnabled Boolean?\n statuspageEnabled Boolean?\n statuspageConfig Json?\n dynamicVoiceEnabled Boolean?\n dynamicVoiceConfig Json?\n supportLoginConfig Json?\n birthdayEnabled Boolean?\n birthdayConfig Json?\n reactionRolesEnabled Boolean?\n reactionRolesConfig Json?\n eventsEnabled Boolean?\n registerEnabled Boolean?\n registerConfig Json?\n supportRoleId String?\n updatedAt DateTime @updatedAt\n createdAt DateTime @default(now())\n}\n\nmodel Ticket {\n id String @id @default(cuid())\n ticketNumber Int @default(autoincrement())\n userId String\n channelId String\n guildId String\n topic String?\n priority String @default(\"normal\")\n status String @default(\"neu\")\n claimedBy String?\n transcript String?\n firstClaimAt DateTime?\n firstResponseAt DateTime?\n kbSuggestionSentAt DateTime?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n\nmodel TicketAutomationRule {\n id String @id @default(cuid())\n guildId String\n name String\n condition Json\n action Json\n active Boolean @default(true)\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@index([guildId, active])\n}\n\nmodel KnowledgeBaseArticle {\n id String @id @default(cuid())\n guildId String\n title String\n keywords String[]\n content String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@index([guildId])\n}\n\nmodel Level {\n id String @id @default(cuid())\n userId String\n guildId String\n xp Int @default(0)\n level Int @default(0)\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@unique([userId, guildId], name: \"userId_guildId\")\n}\n\nmodel TicketSupportSession {\n id String @id @default(cuid())\n guildId String\n userId String\n roleId String\n startedAt DateTime @default(now())\n endedAt DateTime?\n durationSeconds Int?\n\n @@index([guildId, userId, endedAt])\n}\n\nmodel Birthday {\n id String @id @default(cuid())\n userId String\n guildId String\n birthDate String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@unique([userId, guildId], name: \"birthday_user_guild\")\n @@index([guildId])\n}\n\nmodel ReactionRoleSet {\n id String @id @default(cuid())\n guildId String\n channelId String\n messageId String?\n title String?\n description String?\n entries Json\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@index([guildId])\n @@index([guildId, messageId])\n}\n\nmodel Event {\n id String @id @default(cuid())\n guildId String\n title String\n description String?\n channelId String\n startTime DateTime\n repeatType String @default(\"none\")\n repeatConfig Json?\n reminderOffsetMinutes Int @default(60)\n roleId String?\n isActive Boolean @default(true)\n lastReminderAt DateTime?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n signups EventSignup[]\n\n @@index([guildId])\n @@index([guildId, startTime])\n}\n\nmodel EventSignup {\n id String @id @default(cuid())\n eventId String\n guildId String\n userId String\n createdAt DateTime @default(now())\n canceledAt DateTime?\n\n event Event @relation(fields: [eventId], references: [id])\n\n @@unique([eventId, userId])\n @@index([guildId, eventId])\n}\n\nmodel RegisterForm {\n id String @id @default(cuid())\n guildId String\n name String\n description String?\n reviewChannelId String?\n notifyRoleIds String[]\n isActive Boolean @default(true)\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n fields RegisterFormField[]\n applications RegisterApplication[]\n\n @@index([guildId, isActive])\n}\n\nmodel RegisterFormField {\n id String @id @default(cuid())\n formId String\n label String\n type String\n required Boolean @default(false)\n sortOrder Int @default(0)\n\n form RegisterForm @relation(fields: [formId], references: [id], onDelete: Cascade)\n}\n\nmodel RegisterApplication {\n id String @id @default(cuid())\n guildId String\n userId String\n formId String\n status String @default(\"pending\")\n reviewedBy String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n answers RegisterApplicationAnswer[]\n\n form RegisterForm @relation(fields: [formId], references: [id])\n\n @@index([guildId, formId, status])\n}\n\nmodel RegisterApplicationAnswer {\n id String @id @default(cuid())\n applicationId String\n fieldId String\n value String\n\n application RegisterApplication @relation(fields: [applicationId], references: [id], onDelete: Cascade)\n}\n", + "inlineSchemaHash": "756d8043e279c17e7e79a520ef58da97a177f9457674e26c7683609ad3005fb0", "copyEngine": true } config.dirname = '/' -config.runtimeDataModel = JSON.parse("{\"models\":{\"GuildSettings\":{\"dbName\":null,\"fields\":[{\"name\":\"guildId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"welcomeChannelId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"logChannelId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"automodEnabled\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"automodConfig\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"levelingEnabled\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"ticketsEnabled\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"musicEnabled\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"statuspageEnabled\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"statuspageConfig\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"dynamicVoiceEnabled\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"dynamicVoiceConfig\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"supportLoginConfig\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"birthdayEnabled\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"birthdayConfig\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reactionRolesEnabled\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reactionRolesConfig\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"eventsEnabled\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"supportRoleId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Ticket\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"ticketNumber\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"default\":{\"name\":\"autoincrement\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"channelId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"guildId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"topic\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"priority\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"normal\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"status\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"claimedBy\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"transcript\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Level\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"guildId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"xp\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"level\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[[\"userId\",\"guildId\"]],\"uniqueIndexes\":[{\"name\":\"userId_guildId\",\"fields\":[\"userId\",\"guildId\"]}],\"isGenerated\":false},\"TicketSupportSession\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"guildId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"roleId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"startedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"endedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"durationSeconds\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Birthday\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"guildId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"birthDate\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[[\"userId\",\"guildId\"]],\"uniqueIndexes\":[{\"name\":\"birthday_user_guild\",\"fields\":[\"userId\",\"guildId\"]}],\"isGenerated\":false},\"ReactionRoleSet\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"guildId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"channelId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"messageId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"title\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"description\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"entries\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Event\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"guildId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"title\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"description\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"channelId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"startTime\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"repeatType\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"none\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"repeatConfig\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reminderOffsetMinutes\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"default\":60,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"roleId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isActive\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"lastReminderAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"signups\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"EventSignup\",\"relationName\":\"EventToEventSignup\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"EventSignup\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"eventId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"guildId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"canceledAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"event\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Event\",\"relationName\":\"EventToEventSignup\",\"relationFromFields\":[\"eventId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"eventId\",\"userId\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"eventId\",\"userId\"]}],\"isGenerated\":false}},\"enums\":{},\"types\":{}}") +config.runtimeDataModel = JSON.parse("{\"models\":{\"GuildSettings\":{\"dbName\":null,\"fields\":[{\"name\":\"guildId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"welcomeChannelId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"logChannelId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"automodEnabled\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"automodConfig\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"levelingEnabled\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"ticketsEnabled\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"musicEnabled\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"statuspageEnabled\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"statuspageConfig\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"dynamicVoiceEnabled\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"dynamicVoiceConfig\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"supportLoginConfig\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"birthdayEnabled\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"birthdayConfig\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reactionRolesEnabled\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reactionRolesConfig\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"eventsEnabled\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"registerEnabled\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"registerConfig\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"supportRoleId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Ticket\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"ticketNumber\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"default\":{\"name\":\"autoincrement\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"channelId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"guildId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"topic\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"priority\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"normal\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"status\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"neu\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"claimedBy\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"transcript\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"firstClaimAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"firstResponseAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"kbSuggestionSentAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"TicketAutomationRule\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"guildId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"condition\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"action\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"active\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"KnowledgeBaseArticle\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"guildId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"title\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"keywords\",\"kind\":\"scalar\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"content\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Level\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"guildId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"xp\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"level\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[[\"userId\",\"guildId\"]],\"uniqueIndexes\":[{\"name\":\"userId_guildId\",\"fields\":[\"userId\",\"guildId\"]}],\"isGenerated\":false},\"TicketSupportSession\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"guildId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"roleId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"startedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"endedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"durationSeconds\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Birthday\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"guildId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"birthDate\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[[\"userId\",\"guildId\"]],\"uniqueIndexes\":[{\"name\":\"birthday_user_guild\",\"fields\":[\"userId\",\"guildId\"]}],\"isGenerated\":false},\"ReactionRoleSet\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"guildId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"channelId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"messageId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"title\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"description\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"entries\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Event\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"guildId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"title\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"description\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"channelId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"startTime\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"repeatType\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"none\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"repeatConfig\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reminderOffsetMinutes\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"default\":60,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"roleId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isActive\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"lastReminderAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"signups\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"EventSignup\",\"relationName\":\"EventToEventSignup\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"EventSignup\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"eventId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"guildId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"canceledAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"event\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Event\",\"relationName\":\"EventToEventSignup\",\"relationFromFields\":[\"eventId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"eventId\",\"userId\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"eventId\",\"userId\"]}],\"isGenerated\":false},\"RegisterForm\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"guildId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"description\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reviewChannelId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notifyRoleIds\",\"kind\":\"scalar\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isActive\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"fields\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"RegisterFormField\",\"relationName\":\"RegisterFormToRegisterFormField\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"applications\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"RegisterApplication\",\"relationName\":\"RegisterApplicationToRegisterForm\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"RegisterFormField\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"formId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"label\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"type\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"required\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sortOrder\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"form\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"RegisterForm\",\"relationName\":\"RegisterFormToRegisterFormField\",\"relationFromFields\":[\"formId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"RegisterApplication\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"guildId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"formId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"status\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"pending\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reviewedBy\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"answers\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"RegisterApplicationAnswer\",\"relationName\":\"RegisterApplicationToRegisterApplicationAnswer\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"form\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"RegisterForm\",\"relationName\":\"RegisterApplicationToRegisterForm\",\"relationFromFields\":[\"formId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"RegisterApplicationAnswer\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"applicationId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fieldId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"value\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"application\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"RegisterApplication\",\"relationName\":\"RegisterApplicationToRegisterApplicationAnswer\",\"relationFromFields\":[\"applicationId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false}},\"enums\":{},\"types\":{}}") defineDmmfProperty(exports.Prisma, config.runtimeDataModel) config.engineWasm = undefined diff --git a/node_modules/.prisma/client/index-browser.js b/node_modules/.prisma/client/index-browser.js index ecb40d9..4768741 100644 --- a/node_modules/.prisma/client/index-browser.js +++ b/node_modules/.prisma/client/index-browser.js @@ -141,6 +141,8 @@ exports.Prisma.GuildSettingsScalarFieldEnum = { reactionRolesEnabled: 'reactionRolesEnabled', reactionRolesConfig: 'reactionRolesConfig', eventsEnabled: 'eventsEnabled', + registerEnabled: 'registerEnabled', + registerConfig: 'registerConfig', supportRoleId: 'supportRoleId', updatedAt: 'updatedAt', createdAt: 'createdAt' @@ -157,6 +159,30 @@ exports.Prisma.TicketScalarFieldEnum = { status: 'status', claimedBy: 'claimedBy', transcript: 'transcript', + firstClaimAt: 'firstClaimAt', + firstResponseAt: 'firstResponseAt', + kbSuggestionSentAt: 'kbSuggestionSentAt', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +}; + +exports.Prisma.TicketAutomationRuleScalarFieldEnum = { + id: 'id', + guildId: 'guildId', + name: 'name', + condition: 'condition', + action: 'action', + active: 'active', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +}; + +exports.Prisma.KnowledgeBaseArticleScalarFieldEnum = { + id: 'id', + guildId: 'guildId', + title: 'title', + keywords: 'keywords', + content: 'content', createdAt: 'createdAt', updatedAt: 'updatedAt' }; @@ -228,6 +254,45 @@ exports.Prisma.EventSignupScalarFieldEnum = { canceledAt: 'canceledAt' }; +exports.Prisma.RegisterFormScalarFieldEnum = { + id: 'id', + guildId: 'guildId', + name: 'name', + description: 'description', + reviewChannelId: 'reviewChannelId', + notifyRoleIds: 'notifyRoleIds', + isActive: 'isActive', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +}; + +exports.Prisma.RegisterFormFieldScalarFieldEnum = { + id: 'id', + formId: 'formId', + label: 'label', + type: 'type', + required: 'required', + sortOrder: 'sortOrder' +}; + +exports.Prisma.RegisterApplicationScalarFieldEnum = { + id: 'id', + guildId: 'guildId', + userId: 'userId', + formId: 'formId', + status: 'status', + reviewedBy: 'reviewedBy', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +}; + +exports.Prisma.RegisterApplicationAnswerScalarFieldEnum = { + id: 'id', + applicationId: 'applicationId', + fieldId: 'fieldId', + value: 'value' +}; + exports.Prisma.SortOrder = { asc: 'asc', desc: 'desc' @@ -262,12 +327,18 @@ exports.Prisma.NullsOrder = { exports.Prisma.ModelName = { GuildSettings: 'GuildSettings', Ticket: 'Ticket', + TicketAutomationRule: 'TicketAutomationRule', + KnowledgeBaseArticle: 'KnowledgeBaseArticle', Level: 'Level', TicketSupportSession: 'TicketSupportSession', Birthday: 'Birthday', ReactionRoleSet: 'ReactionRoleSet', Event: 'Event', - EventSignup: 'EventSignup' + EventSignup: 'EventSignup', + RegisterForm: 'RegisterForm', + RegisterFormField: 'RegisterFormField', + RegisterApplication: 'RegisterApplication', + RegisterApplicationAnswer: 'RegisterApplicationAnswer' }; /** diff --git a/node_modules/.prisma/client/index.d.ts b/node_modules/.prisma/client/index.d.ts index 912c403..167cf30 100644 --- a/node_modules/.prisma/client/index.d.ts +++ b/node_modules/.prisma/client/index.d.ts @@ -23,6 +23,16 @@ export type GuildSettings = $Result.DefaultSelection +/** + * Model TicketAutomationRule + * + */ +export type TicketAutomationRule = $Result.DefaultSelection +/** + * Model KnowledgeBaseArticle + * + */ +export type KnowledgeBaseArticle = $Result.DefaultSelection /** * Model Level * @@ -53,6 +63,26 @@ export type Event = $Result.DefaultSelection * */ export type EventSignup = $Result.DefaultSelection +/** + * Model RegisterForm + * + */ +export type RegisterForm = $Result.DefaultSelection +/** + * Model RegisterFormField + * + */ +export type RegisterFormField = $Result.DefaultSelection +/** + * Model RegisterApplication + * + */ +export type RegisterApplication = $Result.DefaultSelection +/** + * Model RegisterApplicationAnswer + * + */ +export type RegisterApplicationAnswer = $Result.DefaultSelection /** * ## Prisma Client ʲˢ @@ -197,6 +227,26 @@ export class PrismaClient< */ get ticket(): Prisma.TicketDelegate; + /** + * `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; + + /** + * `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; + /** * `prisma.level`: Exposes CRUD operations for the **Level** model. * Example usage: @@ -256,6 +306,46 @@ export class PrismaClient< * ``` */ get eventSignup(): Prisma.EventSignupDelegate; + + /** + * `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; + + /** + * `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; + + /** + * `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; + + /** + * `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; } export namespace Prisma { @@ -699,12 +789,18 @@ export namespace Prisma { export const ModelName: { GuildSettings: 'GuildSettings', Ticket: 'Ticket', + TicketAutomationRule: 'TicketAutomationRule', + KnowledgeBaseArticle: 'KnowledgeBaseArticle', Level: 'Level', TicketSupportSession: 'TicketSupportSession', Birthday: 'Birthday', ReactionRoleSet: 'ReactionRoleSet', Event: 'Event', - EventSignup: 'EventSignup' + EventSignup: 'EventSignup', + RegisterForm: 'RegisterForm', + RegisterFormField: 'RegisterFormField', + RegisterApplication: 'RegisterApplication', + RegisterApplicationAnswer: 'RegisterApplicationAnswer' }; export type ModelName = (typeof ModelName)[keyof typeof ModelName] @@ -720,7 +816,7 @@ export namespace Prisma { export type TypeMap = { meta: { - modelProps: "guildSettings" | "ticket" | "level" | "ticketSupportSession" | "birthday" | "reactionRoleSet" | "event" | "eventSignup" + modelProps: "guildSettings" | "ticket" | "ticketAutomationRule" | "knowledgeBaseArticle" | "level" | "ticketSupportSession" | "birthday" | "reactionRoleSet" | "event" | "eventSignup" | "registerForm" | "registerFormField" | "registerApplication" | "registerApplicationAnswer" txIsolationLevel: Prisma.TransactionIsolationLevel } model: { @@ -864,6 +960,146 @@ export namespace Prisma { } } } + TicketAutomationRule: { + payload: Prisma.$TicketAutomationRulePayload + fields: Prisma.TicketAutomationRuleFieldRefs + operations: { + findUnique: { + args: Prisma.TicketAutomationRuleFindUniqueArgs + result: $Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.TicketAutomationRuleFindUniqueOrThrowArgs + result: $Utils.PayloadToResult + } + findFirst: { + args: Prisma.TicketAutomationRuleFindFirstArgs + result: $Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.TicketAutomationRuleFindFirstOrThrowArgs + result: $Utils.PayloadToResult + } + findMany: { + args: Prisma.TicketAutomationRuleFindManyArgs + result: $Utils.PayloadToResult[] + } + create: { + args: Prisma.TicketAutomationRuleCreateArgs + result: $Utils.PayloadToResult + } + createMany: { + args: Prisma.TicketAutomationRuleCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.TicketAutomationRuleCreateManyAndReturnArgs + result: $Utils.PayloadToResult[] + } + delete: { + args: Prisma.TicketAutomationRuleDeleteArgs + result: $Utils.PayloadToResult + } + update: { + args: Prisma.TicketAutomationRuleUpdateArgs + result: $Utils.PayloadToResult + } + deleteMany: { + args: Prisma.TicketAutomationRuleDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.TicketAutomationRuleUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.TicketAutomationRuleUpsertArgs + result: $Utils.PayloadToResult + } + aggregate: { + args: Prisma.TicketAutomationRuleAggregateArgs + result: $Utils.Optional + } + groupBy: { + args: Prisma.TicketAutomationRuleGroupByArgs + result: $Utils.Optional[] + } + count: { + args: Prisma.TicketAutomationRuleCountArgs + result: $Utils.Optional | number + } + } + } + KnowledgeBaseArticle: { + payload: Prisma.$KnowledgeBaseArticlePayload + fields: Prisma.KnowledgeBaseArticleFieldRefs + operations: { + findUnique: { + args: Prisma.KnowledgeBaseArticleFindUniqueArgs + result: $Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.KnowledgeBaseArticleFindUniqueOrThrowArgs + result: $Utils.PayloadToResult + } + findFirst: { + args: Prisma.KnowledgeBaseArticleFindFirstArgs + result: $Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.KnowledgeBaseArticleFindFirstOrThrowArgs + result: $Utils.PayloadToResult + } + findMany: { + args: Prisma.KnowledgeBaseArticleFindManyArgs + result: $Utils.PayloadToResult[] + } + create: { + args: Prisma.KnowledgeBaseArticleCreateArgs + result: $Utils.PayloadToResult + } + createMany: { + args: Prisma.KnowledgeBaseArticleCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.KnowledgeBaseArticleCreateManyAndReturnArgs + result: $Utils.PayloadToResult[] + } + delete: { + args: Prisma.KnowledgeBaseArticleDeleteArgs + result: $Utils.PayloadToResult + } + update: { + args: Prisma.KnowledgeBaseArticleUpdateArgs + result: $Utils.PayloadToResult + } + deleteMany: { + args: Prisma.KnowledgeBaseArticleDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.KnowledgeBaseArticleUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.KnowledgeBaseArticleUpsertArgs + result: $Utils.PayloadToResult + } + aggregate: { + args: Prisma.KnowledgeBaseArticleAggregateArgs + result: $Utils.Optional + } + groupBy: { + args: Prisma.KnowledgeBaseArticleGroupByArgs + result: $Utils.Optional[] + } + count: { + args: Prisma.KnowledgeBaseArticleCountArgs + result: $Utils.Optional | number + } + } + } Level: { payload: Prisma.$LevelPayload fields: Prisma.LevelFieldRefs @@ -1284,6 +1520,286 @@ export namespace Prisma { } } } + RegisterForm: { + payload: Prisma.$RegisterFormPayload + fields: Prisma.RegisterFormFieldRefs + operations: { + findUnique: { + args: Prisma.RegisterFormFindUniqueArgs + result: $Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.RegisterFormFindUniqueOrThrowArgs + result: $Utils.PayloadToResult + } + findFirst: { + args: Prisma.RegisterFormFindFirstArgs + result: $Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.RegisterFormFindFirstOrThrowArgs + result: $Utils.PayloadToResult + } + findMany: { + args: Prisma.RegisterFormFindManyArgs + result: $Utils.PayloadToResult[] + } + create: { + args: Prisma.RegisterFormCreateArgs + result: $Utils.PayloadToResult + } + createMany: { + args: Prisma.RegisterFormCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.RegisterFormCreateManyAndReturnArgs + result: $Utils.PayloadToResult[] + } + delete: { + args: Prisma.RegisterFormDeleteArgs + result: $Utils.PayloadToResult + } + update: { + args: Prisma.RegisterFormUpdateArgs + result: $Utils.PayloadToResult + } + deleteMany: { + args: Prisma.RegisterFormDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.RegisterFormUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.RegisterFormUpsertArgs + result: $Utils.PayloadToResult + } + aggregate: { + args: Prisma.RegisterFormAggregateArgs + result: $Utils.Optional + } + groupBy: { + args: Prisma.RegisterFormGroupByArgs + result: $Utils.Optional[] + } + count: { + args: Prisma.RegisterFormCountArgs + result: $Utils.Optional | number + } + } + } + RegisterFormField: { + payload: Prisma.$RegisterFormFieldPayload + fields: Prisma.RegisterFormFieldFieldRefs + operations: { + findUnique: { + args: Prisma.RegisterFormFieldFindUniqueArgs + result: $Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.RegisterFormFieldFindUniqueOrThrowArgs + result: $Utils.PayloadToResult + } + findFirst: { + args: Prisma.RegisterFormFieldFindFirstArgs + result: $Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.RegisterFormFieldFindFirstOrThrowArgs + result: $Utils.PayloadToResult + } + findMany: { + args: Prisma.RegisterFormFieldFindManyArgs + result: $Utils.PayloadToResult[] + } + create: { + args: Prisma.RegisterFormFieldCreateArgs + result: $Utils.PayloadToResult + } + createMany: { + args: Prisma.RegisterFormFieldCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.RegisterFormFieldCreateManyAndReturnArgs + result: $Utils.PayloadToResult[] + } + delete: { + args: Prisma.RegisterFormFieldDeleteArgs + result: $Utils.PayloadToResult + } + update: { + args: Prisma.RegisterFormFieldUpdateArgs + result: $Utils.PayloadToResult + } + deleteMany: { + args: Prisma.RegisterFormFieldDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.RegisterFormFieldUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.RegisterFormFieldUpsertArgs + result: $Utils.PayloadToResult + } + aggregate: { + args: Prisma.RegisterFormFieldAggregateArgs + result: $Utils.Optional + } + groupBy: { + args: Prisma.RegisterFormFieldGroupByArgs + result: $Utils.Optional[] + } + count: { + args: Prisma.RegisterFormFieldCountArgs + result: $Utils.Optional | number + } + } + } + RegisterApplication: { + payload: Prisma.$RegisterApplicationPayload + fields: Prisma.RegisterApplicationFieldRefs + operations: { + findUnique: { + args: Prisma.RegisterApplicationFindUniqueArgs + result: $Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.RegisterApplicationFindUniqueOrThrowArgs + result: $Utils.PayloadToResult + } + findFirst: { + args: Prisma.RegisterApplicationFindFirstArgs + result: $Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.RegisterApplicationFindFirstOrThrowArgs + result: $Utils.PayloadToResult + } + findMany: { + args: Prisma.RegisterApplicationFindManyArgs + result: $Utils.PayloadToResult[] + } + create: { + args: Prisma.RegisterApplicationCreateArgs + result: $Utils.PayloadToResult + } + createMany: { + args: Prisma.RegisterApplicationCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.RegisterApplicationCreateManyAndReturnArgs + result: $Utils.PayloadToResult[] + } + delete: { + args: Prisma.RegisterApplicationDeleteArgs + result: $Utils.PayloadToResult + } + update: { + args: Prisma.RegisterApplicationUpdateArgs + result: $Utils.PayloadToResult + } + deleteMany: { + args: Prisma.RegisterApplicationDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.RegisterApplicationUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.RegisterApplicationUpsertArgs + result: $Utils.PayloadToResult + } + aggregate: { + args: Prisma.RegisterApplicationAggregateArgs + result: $Utils.Optional + } + groupBy: { + args: Prisma.RegisterApplicationGroupByArgs + result: $Utils.Optional[] + } + count: { + args: Prisma.RegisterApplicationCountArgs + result: $Utils.Optional | number + } + } + } + RegisterApplicationAnswer: { + payload: Prisma.$RegisterApplicationAnswerPayload + fields: Prisma.RegisterApplicationAnswerFieldRefs + operations: { + findUnique: { + args: Prisma.RegisterApplicationAnswerFindUniqueArgs + result: $Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.RegisterApplicationAnswerFindUniqueOrThrowArgs + result: $Utils.PayloadToResult + } + findFirst: { + args: Prisma.RegisterApplicationAnswerFindFirstArgs + result: $Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.RegisterApplicationAnswerFindFirstOrThrowArgs + result: $Utils.PayloadToResult + } + findMany: { + args: Prisma.RegisterApplicationAnswerFindManyArgs + result: $Utils.PayloadToResult[] + } + create: { + args: Prisma.RegisterApplicationAnswerCreateArgs + result: $Utils.PayloadToResult + } + createMany: { + args: Prisma.RegisterApplicationAnswerCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.RegisterApplicationAnswerCreateManyAndReturnArgs + result: $Utils.PayloadToResult[] + } + delete: { + args: Prisma.RegisterApplicationAnswerDeleteArgs + result: $Utils.PayloadToResult + } + update: { + args: Prisma.RegisterApplicationAnswerUpdateArgs + result: $Utils.PayloadToResult + } + deleteMany: { + args: Prisma.RegisterApplicationAnswerDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.RegisterApplicationAnswerUpdateManyArgs + result: BatchPayload + } + upsert: { + args: Prisma.RegisterApplicationAnswerUpsertArgs + result: $Utils.PayloadToResult + } + aggregate: { + args: Prisma.RegisterApplicationAnswerAggregateArgs + result: $Utils.Optional + } + groupBy: { + args: Prisma.RegisterApplicationAnswerGroupByArgs + result: $Utils.Optional[] + } + count: { + args: Prisma.RegisterApplicationAnswerCountArgs + result: $Utils.Optional | number + } + } + } } } & { other: { @@ -1471,6 +1987,77 @@ export namespace Prisma { } + /** + * Count Type RegisterFormCountOutputType + */ + + export type RegisterFormCountOutputType = { + fields: number + applications: number + } + + export type RegisterFormCountOutputTypeSelect = { + fields?: boolean | RegisterFormCountOutputTypeCountFieldsArgs + applications?: boolean | RegisterFormCountOutputTypeCountApplicationsArgs + } + + // Custom InputTypes + /** + * RegisterFormCountOutputType without action + */ + export type RegisterFormCountOutputTypeDefaultArgs = { + /** + * Select specific fields to fetch from the RegisterFormCountOutputType + */ + select?: RegisterFormCountOutputTypeSelect | null + } + + /** + * RegisterFormCountOutputType without action + */ + export type RegisterFormCountOutputTypeCountFieldsArgs = { + where?: RegisterFormFieldWhereInput + } + + /** + * RegisterFormCountOutputType without action + */ + export type RegisterFormCountOutputTypeCountApplicationsArgs = { + where?: RegisterApplicationWhereInput + } + + + /** + * Count Type RegisterApplicationCountOutputType + */ + + export type RegisterApplicationCountOutputType = { + answers: number + } + + export type RegisterApplicationCountOutputTypeSelect = { + answers?: boolean | RegisterApplicationCountOutputTypeCountAnswersArgs + } + + // Custom InputTypes + /** + * RegisterApplicationCountOutputType without action + */ + export type RegisterApplicationCountOutputTypeDefaultArgs = { + /** + * Select specific fields to fetch from the RegisterApplicationCountOutputType + */ + select?: RegisterApplicationCountOutputTypeSelect | null + } + + /** + * RegisterApplicationCountOutputType without action + */ + export type RegisterApplicationCountOutputTypeCountAnswersArgs = { + where?: RegisterApplicationAnswerWhereInput + } + + /** * Models */ @@ -1498,6 +2085,7 @@ export namespace Prisma { birthdayEnabled: boolean | null reactionRolesEnabled: boolean | null eventsEnabled: boolean | null + registerEnabled: boolean | null supportRoleId: string | null updatedAt: Date | null createdAt: Date | null @@ -1516,6 +2104,7 @@ export namespace Prisma { birthdayEnabled: boolean | null reactionRolesEnabled: boolean | null eventsEnabled: boolean | null + registerEnabled: boolean | null supportRoleId: string | null updatedAt: Date | null createdAt: Date | null @@ -1540,6 +2129,8 @@ export namespace Prisma { reactionRolesEnabled: number reactionRolesConfig: number eventsEnabled: number + registerEnabled: number + registerConfig: number supportRoleId: number updatedAt: number createdAt: number @@ -1560,6 +2151,7 @@ export namespace Prisma { birthdayEnabled?: true reactionRolesEnabled?: true eventsEnabled?: true + registerEnabled?: true supportRoleId?: true updatedAt?: true createdAt?: true @@ -1578,6 +2170,7 @@ export namespace Prisma { birthdayEnabled?: true reactionRolesEnabled?: true eventsEnabled?: true + registerEnabled?: true supportRoleId?: true updatedAt?: true createdAt?: true @@ -1602,6 +2195,8 @@ export namespace Prisma { reactionRolesEnabled?: true reactionRolesConfig?: true eventsEnabled?: true + registerEnabled?: true + registerConfig?: true supportRoleId?: true updatedAt?: true createdAt?: true @@ -1699,6 +2294,8 @@ export namespace Prisma { reactionRolesEnabled: boolean | null reactionRolesConfig: JsonValue | null eventsEnabled: boolean | null + registerEnabled: boolean | null + registerConfig: JsonValue | null supportRoleId: string | null updatedAt: Date createdAt: Date @@ -1740,6 +2337,8 @@ export namespace Prisma { reactionRolesEnabled?: boolean reactionRolesConfig?: boolean eventsEnabled?: boolean + registerEnabled?: boolean + registerConfig?: boolean supportRoleId?: boolean updatedAt?: boolean createdAt?: boolean @@ -1764,6 +2363,8 @@ export namespace Prisma { reactionRolesEnabled?: boolean reactionRolesConfig?: boolean eventsEnabled?: boolean + registerEnabled?: boolean + registerConfig?: boolean supportRoleId?: boolean updatedAt?: boolean createdAt?: boolean @@ -1788,6 +2389,8 @@ export namespace Prisma { reactionRolesEnabled?: boolean reactionRolesConfig?: boolean eventsEnabled?: boolean + registerEnabled?: boolean + registerConfig?: boolean supportRoleId?: boolean updatedAt?: boolean createdAt?: boolean @@ -1816,6 +2419,8 @@ export namespace Prisma { reactionRolesEnabled: boolean | null reactionRolesConfig: Prisma.JsonValue | null eventsEnabled: boolean | null + registerEnabled: boolean | null + registerConfig: Prisma.JsonValue | null supportRoleId: string | null updatedAt: Date createdAt: Date @@ -2230,6 +2835,8 @@ export namespace Prisma { 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 supportRoleId: FieldRef<"GuildSettings", 'String'> readonly updatedAt: FieldRef<"GuildSettings", 'DateTime'> readonly createdAt: FieldRef<"GuildSettings", 'DateTime'> @@ -2552,6 +3159,9 @@ export namespace Prisma { status: string | null claimedBy: string | null transcript: string | null + firstClaimAt: Date | null + firstResponseAt: Date | null + kbSuggestionSentAt: Date | null createdAt: Date | null updatedAt: Date | null } @@ -2567,6 +3177,9 @@ export namespace Prisma { status: string | null claimedBy: string | null transcript: string | null + firstClaimAt: Date | null + firstResponseAt: Date | null + kbSuggestionSentAt: Date | null createdAt: Date | null updatedAt: Date | null } @@ -2582,6 +3195,9 @@ export namespace Prisma { status: number claimedBy: number transcript: number + firstClaimAt: number + firstResponseAt: number + kbSuggestionSentAt: number createdAt: number updatedAt: number _all: number @@ -2607,6 +3223,9 @@ export namespace Prisma { status?: true claimedBy?: true transcript?: true + firstClaimAt?: true + firstResponseAt?: true + kbSuggestionSentAt?: true createdAt?: true updatedAt?: true } @@ -2622,6 +3241,9 @@ export namespace Prisma { status?: true claimedBy?: true transcript?: true + firstClaimAt?: true + firstResponseAt?: true + kbSuggestionSentAt?: true createdAt?: true updatedAt?: true } @@ -2637,6 +3259,9 @@ export namespace Prisma { status?: true claimedBy?: true transcript?: true + firstClaimAt?: true + firstResponseAt?: true + kbSuggestionSentAt?: true createdAt?: true updatedAt?: true _all?: true @@ -2739,6 +3364,9 @@ export namespace Prisma { status: string claimedBy: string | null transcript: string | null + firstClaimAt: Date | null + firstResponseAt: Date | null + kbSuggestionSentAt: Date | null createdAt: Date updatedAt: Date _count: TicketCountAggregateOutputType | null @@ -2773,6 +3401,9 @@ export namespace Prisma { status?: boolean claimedBy?: boolean transcript?: boolean + firstClaimAt?: boolean + firstResponseAt?: boolean + kbSuggestionSentAt?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["ticket"]> @@ -2788,6 +3419,9 @@ export namespace Prisma { status?: boolean claimedBy?: boolean transcript?: boolean + firstClaimAt?: boolean + firstResponseAt?: boolean + kbSuggestionSentAt?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["ticket"]> @@ -2803,6 +3437,9 @@ export namespace Prisma { status?: boolean claimedBy?: boolean transcript?: boolean + firstClaimAt?: boolean + firstResponseAt?: boolean + kbSuggestionSentAt?: boolean createdAt?: boolean updatedAt?: boolean } @@ -2822,6 +3459,9 @@ export namespace Prisma { status: string claimedBy: string | null transcript: string | null + firstClaimAt: Date | null + firstResponseAt: Date | null + kbSuggestionSentAt: Date | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["ticket"]> @@ -3227,6 +3867,9 @@ export namespace Prisma { 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'> } @@ -3517,6 +4160,1810 @@ export namespace Prisma { } + /** + * 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 = { + /** + * 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 = { + [P in keyof T & keyof AggregateTicketAutomationRule]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : GetScalarType + : GetScalarType + } + + + + + export type TicketAutomationRuleGroupByArgs = { + 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 = Prisma.PrismaPromise< + Array< + PickEnumerable & + { + [P in ((keyof T) & (keyof TicketAutomationRuleGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : GetScalarType + : GetScalarType + } + > + > + + + export type TicketAutomationRuleSelect = $Extensions.GetSelect<{ + id?: boolean + guildId?: boolean + name?: boolean + condition?: boolean + action?: boolean + active?: boolean + createdAt?: boolean + updatedAt?: boolean + }, ExtArgs["result"]["ticketAutomationRule"]> + + export type TicketAutomationRuleSelectCreateManyAndReturn = $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 = { + 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 = $Result.GetResult + + type TicketAutomationRuleCountArgs = + Omit & { + select?: TicketAutomationRuleCountAggregateInputType | true + } + + export interface TicketAutomationRuleDelegate { + [K: symbol]: { types: Prisma.TypeMap['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(args: SelectSubset>): Prisma__TicketAutomationRuleClient<$Result.GetResult, 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(args: SelectSubset>): Prisma__TicketAutomationRuleClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma__TicketAutomationRuleClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma__TicketAutomationRuleClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, 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(args: SelectSubset>): Prisma__TicketAutomationRuleClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma.PrismaPromise + + /** + * 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(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, 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(args: SelectSubset>): Prisma__TicketAutomationRuleClient<$Result.GetResult, 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(args: SelectSubset>): Prisma__TicketAutomationRuleClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma.PrismaPromise + + /** + * 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(args: SelectSubset>): Prisma.PrismaPromise + + /** + * 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(args: SelectSubset>): Prisma__TicketAutomationRuleClient<$Result.GetResult, 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( + args?: Subset, + ): Prisma.PrismaPromise< + T extends $Utils.Record<'select', any> + ? T['select'] extends true + ? number + : GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a 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(args: Subset): Prisma.PrismaPromise> + + /** + * 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>, + Extends<'take', Keys> + >, + OrderByArg extends True extends HasSelectOrTake + ? { orderBy: TicketAutomationRuleGroupByArgs['orderBy'] } + : { orderBy?: TicketAutomationRuleGroupByArgs['orderBy'] }, + OrderFields extends ExcludeUnderscoreKeys>>, + ByFields extends MaybeTupleToUnion, + ByValid extends Has, + HavingFields extends GetHavingFields, + HavingValid extends Has, + ByEmpty extends T['by'] extends never[] ? True : False, + InputErrors extends ByEmpty extends True + ? `Error: "by" must not be empty.` + : HavingValid extends False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [ + Error, + 'Field ', + P, + ` in "having" needs to be provided in "by"`, + ] + }[HavingFields] + : 'take' extends Keys + ? 'orderBy' extends Keys + ? ByValid extends True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Keys + ? 'orderBy' extends Keys + ? ByValid extends True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetTicketAutomationRuleGroupByPayload : Prisma.PrismaPromise + /** + * 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 extends Prisma.PrismaPromise { + 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise + } + + + + + /** + * Fields of the 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 = { + /** + * Select specific fields to fetch from the TicketAutomationRule + */ + select?: TicketAutomationRuleSelect | null + /** + * Filter, which TicketAutomationRule to fetch. + */ + where: TicketAutomationRuleWhereUniqueInput + } + + /** + * TicketAutomationRule findUniqueOrThrow + */ + export type TicketAutomationRuleFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the TicketAutomationRule + */ + select?: TicketAutomationRuleSelect | null + /** + * Filter, which TicketAutomationRule to fetch. + */ + where: TicketAutomationRuleWhereUniqueInput + } + + /** + * TicketAutomationRule findFirst + */ + export type TicketAutomationRuleFindFirstArgs = { + /** + * Select specific fields to fetch from the TicketAutomationRule + */ + select?: TicketAutomationRuleSelect | 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 = { + /** + * Select specific fields to fetch from the TicketAutomationRule + */ + select?: TicketAutomationRuleSelect | 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 = { + /** + * Select specific fields to fetch from the TicketAutomationRule + */ + select?: TicketAutomationRuleSelect | 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 = { + /** + * Select specific fields to fetch from the TicketAutomationRule + */ + select?: TicketAutomationRuleSelect | null + /** + * The data needed to create a TicketAutomationRule. + */ + data: XOR + } + + /** + * TicketAutomationRule createMany + */ + export type TicketAutomationRuleCreateManyArgs = { + /** + * The data used to create many TicketAutomationRules. + */ + data: TicketAutomationRuleCreateManyInput | TicketAutomationRuleCreateManyInput[] + skipDuplicates?: boolean + } + + /** + * TicketAutomationRule createManyAndReturn + */ + export type TicketAutomationRuleCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the TicketAutomationRule + */ + select?: TicketAutomationRuleSelectCreateManyAndReturn | null + /** + * The data used to create many TicketAutomationRules. + */ + data: TicketAutomationRuleCreateManyInput | TicketAutomationRuleCreateManyInput[] + skipDuplicates?: boolean + } + + /** + * TicketAutomationRule update + */ + export type TicketAutomationRuleUpdateArgs = { + /** + * Select specific fields to fetch from the TicketAutomationRule + */ + select?: TicketAutomationRuleSelect | null + /** + * The data needed to update a TicketAutomationRule. + */ + data: XOR + /** + * Choose, which TicketAutomationRule to update. + */ + where: TicketAutomationRuleWhereUniqueInput + } + + /** + * TicketAutomationRule updateMany + */ + export type TicketAutomationRuleUpdateManyArgs = { + /** + * The data used to update TicketAutomationRules. + */ + data: XOR + /** + * Filter which TicketAutomationRules to update + */ + where?: TicketAutomationRuleWhereInput + } + + /** + * TicketAutomationRule upsert + */ + export type TicketAutomationRuleUpsertArgs = { + /** + * Select specific fields to fetch from the TicketAutomationRule + */ + select?: TicketAutomationRuleSelect | 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 + /** + * In case the TicketAutomationRule was found with the provided `where` argument, update it with this data. + */ + update: XOR + } + + /** + * TicketAutomationRule delete + */ + export type TicketAutomationRuleDeleteArgs = { + /** + * Select specific fields to fetch from the TicketAutomationRule + */ + select?: TicketAutomationRuleSelect | null + /** + * Filter which TicketAutomationRule to delete. + */ + where: TicketAutomationRuleWhereUniqueInput + } + + /** + * TicketAutomationRule deleteMany + */ + export type TicketAutomationRuleDeleteManyArgs = { + /** + * Filter which TicketAutomationRules to delete + */ + where?: TicketAutomationRuleWhereInput + } + + /** + * TicketAutomationRule without action + */ + export type TicketAutomationRuleDefaultArgs = { + /** + * Select specific fields to fetch from the TicketAutomationRule + */ + select?: TicketAutomationRuleSelect | 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 = { + /** + * 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 = { + [P in keyof T & keyof AggregateKnowledgeBaseArticle]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : GetScalarType + : GetScalarType + } + + + + + export type KnowledgeBaseArticleGroupByArgs = { + 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 = Prisma.PrismaPromise< + Array< + PickEnumerable & + { + [P in ((keyof T) & (keyof KnowledgeBaseArticleGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : GetScalarType + : GetScalarType + } + > + > + + + export type KnowledgeBaseArticleSelect = $Extensions.GetSelect<{ + id?: boolean + guildId?: boolean + title?: boolean + keywords?: boolean + content?: boolean + createdAt?: boolean + updatedAt?: boolean + }, ExtArgs["result"]["knowledgeBaseArticle"]> + + export type KnowledgeBaseArticleSelectCreateManyAndReturn = $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 = { + 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 = $Result.GetResult + + type KnowledgeBaseArticleCountArgs = + Omit & { + select?: KnowledgeBaseArticleCountAggregateInputType | true + } + + export interface KnowledgeBaseArticleDelegate { + [K: symbol]: { types: Prisma.TypeMap['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(args: SelectSubset>): Prisma__KnowledgeBaseArticleClient<$Result.GetResult, 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(args: SelectSubset>): Prisma__KnowledgeBaseArticleClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma__KnowledgeBaseArticleClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma__KnowledgeBaseArticleClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, 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(args: SelectSubset>): Prisma__KnowledgeBaseArticleClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma.PrismaPromise + + /** + * 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(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, 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(args: SelectSubset>): Prisma__KnowledgeBaseArticleClient<$Result.GetResult, 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(args: SelectSubset>): Prisma__KnowledgeBaseArticleClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma.PrismaPromise + + /** + * 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(args: SelectSubset>): Prisma.PrismaPromise + + /** + * 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(args: SelectSubset>): Prisma__KnowledgeBaseArticleClient<$Result.GetResult, 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( + args?: Subset, + ): Prisma.PrismaPromise< + T extends $Utils.Record<'select', any> + ? T['select'] extends true + ? number + : GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a 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(args: Subset): Prisma.PrismaPromise> + + /** + * 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>, + Extends<'take', Keys> + >, + OrderByArg extends True extends HasSelectOrTake + ? { orderBy: KnowledgeBaseArticleGroupByArgs['orderBy'] } + : { orderBy?: KnowledgeBaseArticleGroupByArgs['orderBy'] }, + OrderFields extends ExcludeUnderscoreKeys>>, + ByFields extends MaybeTupleToUnion, + ByValid extends Has, + HavingFields extends GetHavingFields, + HavingValid extends Has, + ByEmpty extends T['by'] extends never[] ? True : False, + InputErrors extends ByEmpty extends True + ? `Error: "by" must not be empty.` + : HavingValid extends False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [ + Error, + 'Field ', + P, + ` in "having" needs to be provided in "by"`, + ] + }[HavingFields] + : 'take' extends Keys + ? 'orderBy' extends Keys + ? ByValid extends True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Keys + ? 'orderBy' extends Keys + ? ByValid extends True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetKnowledgeBaseArticleGroupByPayload : Prisma.PrismaPromise + /** + * 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 extends Prisma.PrismaPromise { + 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise + } + + + + + /** + * Fields of the 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 = { + /** + * Select specific fields to fetch from the KnowledgeBaseArticle + */ + select?: KnowledgeBaseArticleSelect | null + /** + * Filter, which KnowledgeBaseArticle to fetch. + */ + where: KnowledgeBaseArticleWhereUniqueInput + } + + /** + * KnowledgeBaseArticle findUniqueOrThrow + */ + export type KnowledgeBaseArticleFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the KnowledgeBaseArticle + */ + select?: KnowledgeBaseArticleSelect | null + /** + * Filter, which KnowledgeBaseArticle to fetch. + */ + where: KnowledgeBaseArticleWhereUniqueInput + } + + /** + * KnowledgeBaseArticle findFirst + */ + export type KnowledgeBaseArticleFindFirstArgs = { + /** + * Select specific fields to fetch from the KnowledgeBaseArticle + */ + select?: KnowledgeBaseArticleSelect | 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 = { + /** + * Select specific fields to fetch from the KnowledgeBaseArticle + */ + select?: KnowledgeBaseArticleSelect | 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 = { + /** + * Select specific fields to fetch from the KnowledgeBaseArticle + */ + select?: KnowledgeBaseArticleSelect | 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 = { + /** + * Select specific fields to fetch from the KnowledgeBaseArticle + */ + select?: KnowledgeBaseArticleSelect | null + /** + * The data needed to create a KnowledgeBaseArticle. + */ + data: XOR + } + + /** + * KnowledgeBaseArticle createMany + */ + export type KnowledgeBaseArticleCreateManyArgs = { + /** + * The data used to create many KnowledgeBaseArticles. + */ + data: KnowledgeBaseArticleCreateManyInput | KnowledgeBaseArticleCreateManyInput[] + skipDuplicates?: boolean + } + + /** + * KnowledgeBaseArticle createManyAndReturn + */ + export type KnowledgeBaseArticleCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the KnowledgeBaseArticle + */ + select?: KnowledgeBaseArticleSelectCreateManyAndReturn | null + /** + * The data used to create many KnowledgeBaseArticles. + */ + data: KnowledgeBaseArticleCreateManyInput | KnowledgeBaseArticleCreateManyInput[] + skipDuplicates?: boolean + } + + /** + * KnowledgeBaseArticle update + */ + export type KnowledgeBaseArticleUpdateArgs = { + /** + * Select specific fields to fetch from the KnowledgeBaseArticle + */ + select?: KnowledgeBaseArticleSelect | null + /** + * The data needed to update a KnowledgeBaseArticle. + */ + data: XOR + /** + * Choose, which KnowledgeBaseArticle to update. + */ + where: KnowledgeBaseArticleWhereUniqueInput + } + + /** + * KnowledgeBaseArticle updateMany + */ + export type KnowledgeBaseArticleUpdateManyArgs = { + /** + * The data used to update KnowledgeBaseArticles. + */ + data: XOR + /** + * Filter which KnowledgeBaseArticles to update + */ + where?: KnowledgeBaseArticleWhereInput + } + + /** + * KnowledgeBaseArticle upsert + */ + export type KnowledgeBaseArticleUpsertArgs = { + /** + * Select specific fields to fetch from the KnowledgeBaseArticle + */ + select?: KnowledgeBaseArticleSelect | 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 + /** + * In case the KnowledgeBaseArticle was found with the provided `where` argument, update it with this data. + */ + update: XOR + } + + /** + * KnowledgeBaseArticle delete + */ + export type KnowledgeBaseArticleDeleteArgs = { + /** + * Select specific fields to fetch from the KnowledgeBaseArticle + */ + select?: KnowledgeBaseArticleSelect | null + /** + * Filter which KnowledgeBaseArticle to delete. + */ + where: KnowledgeBaseArticleWhereUniqueInput + } + + /** + * KnowledgeBaseArticle deleteMany + */ + export type KnowledgeBaseArticleDeleteManyArgs = { + /** + * Filter which KnowledgeBaseArticles to delete + */ + where?: KnowledgeBaseArticleWhereInput + } + + /** + * KnowledgeBaseArticle without action + */ + export type KnowledgeBaseArticleDefaultArgs = { + /** + * Select specific fields to fetch from the KnowledgeBaseArticle + */ + select?: KnowledgeBaseArticleSelect | null + } + + /** * Model Level */ @@ -9236,6 +11683,3917 @@ export namespace Prisma { } + /** + * 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 = { + /** + * 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 = { + [P in keyof T & keyof AggregateRegisterForm]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : GetScalarType + : GetScalarType + } + + + + + export type RegisterFormGroupByArgs = { + 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 = Prisma.PrismaPromise< + Array< + PickEnumerable & + { + [P in ((keyof T) & (keyof RegisterFormGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : GetScalarType + : GetScalarType + } + > + > + + + export type RegisterFormSelect = $Extensions.GetSelect<{ + id?: boolean + guildId?: boolean + name?: boolean + description?: boolean + reviewChannelId?: boolean + notifyRoleIds?: boolean + isActive?: boolean + createdAt?: boolean + updatedAt?: boolean + fields?: boolean | RegisterForm$fieldsArgs + applications?: boolean | RegisterForm$applicationsArgs + _count?: boolean | RegisterFormCountOutputTypeDefaultArgs + }, ExtArgs["result"]["registerForm"]> + + export type RegisterFormSelectCreateManyAndReturn = $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 = { + fields?: boolean | RegisterForm$fieldsArgs + applications?: boolean | RegisterForm$applicationsArgs + _count?: boolean | RegisterFormCountOutputTypeDefaultArgs + } + export type RegisterFormIncludeCreateManyAndReturn = {} + + export type $RegisterFormPayload = { + name: "RegisterForm" + objects: { + fields: Prisma.$RegisterFormFieldPayload[] + applications: Prisma.$RegisterApplicationPayload[] + } + 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 = $Result.GetResult + + type RegisterFormCountArgs = + Omit & { + select?: RegisterFormCountAggregateInputType | true + } + + export interface RegisterFormDelegate { + [K: symbol]: { types: Prisma.TypeMap['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(args: SelectSubset>): Prisma__RegisterFormClient<$Result.GetResult, 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(args: SelectSubset>): Prisma__RegisterFormClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma__RegisterFormClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma__RegisterFormClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, 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(args: SelectSubset>): Prisma__RegisterFormClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma.PrismaPromise + + /** + * 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(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, 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(args: SelectSubset>): Prisma__RegisterFormClient<$Result.GetResult, 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(args: SelectSubset>): Prisma__RegisterFormClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma.PrismaPromise + + /** + * 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(args: SelectSubset>): Prisma.PrismaPromise + + /** + * 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(args: SelectSubset>): Prisma__RegisterFormClient<$Result.GetResult, 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( + args?: Subset, + ): Prisma.PrismaPromise< + T extends $Utils.Record<'select', any> + ? T['select'] extends true + ? number + : GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a 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(args: Subset): Prisma.PrismaPromise> + + /** + * 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>, + Extends<'take', Keys> + >, + OrderByArg extends True extends HasSelectOrTake + ? { orderBy: RegisterFormGroupByArgs['orderBy'] } + : { orderBy?: RegisterFormGroupByArgs['orderBy'] }, + OrderFields extends ExcludeUnderscoreKeys>>, + ByFields extends MaybeTupleToUnion, + ByValid extends Has, + HavingFields extends GetHavingFields, + HavingValid extends Has, + ByEmpty extends T['by'] extends never[] ? True : False, + InputErrors extends ByEmpty extends True + ? `Error: "by" must not be empty.` + : HavingValid extends False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [ + Error, + 'Field ', + P, + ` in "having" needs to be provided in "by"`, + ] + }[HavingFields] + : 'take' extends Keys + ? 'orderBy' extends Keys + ? ByValid extends True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Keys + ? 'orderBy' extends Keys + ? ByValid extends True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetRegisterFormGroupByPayload : Prisma.PrismaPromise + /** + * 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 extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + fields = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> + applications = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise + } + + + + + /** + * Fields of the 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 = { + /** + * Select specific fields to fetch from the RegisterForm + */ + select?: RegisterFormSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterFormInclude | null + /** + * Filter, which RegisterForm to fetch. + */ + where: RegisterFormWhereUniqueInput + } + + /** + * RegisterForm findUniqueOrThrow + */ + export type RegisterFormFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the RegisterForm + */ + select?: RegisterFormSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterFormInclude | null + /** + * Filter, which RegisterForm to fetch. + */ + where: RegisterFormWhereUniqueInput + } + + /** + * RegisterForm findFirst + */ + export type RegisterFormFindFirstArgs = { + /** + * Select specific fields to fetch from the RegisterForm + */ + select?: RegisterFormSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterFormInclude | 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 = { + /** + * Select specific fields to fetch from the RegisterForm + */ + select?: RegisterFormSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterFormInclude | 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 = { + /** + * Select specific fields to fetch from the RegisterForm + */ + select?: RegisterFormSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterFormInclude | 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 = { + /** + * Select specific fields to fetch from the RegisterForm + */ + select?: RegisterFormSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterFormInclude | null + /** + * The data needed to create a RegisterForm. + */ + data: XOR + } + + /** + * RegisterForm createMany + */ + export type RegisterFormCreateManyArgs = { + /** + * The data used to create many RegisterForms. + */ + data: RegisterFormCreateManyInput | RegisterFormCreateManyInput[] + skipDuplicates?: boolean + } + + /** + * RegisterForm createManyAndReturn + */ + export type RegisterFormCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the RegisterForm + */ + select?: RegisterFormSelectCreateManyAndReturn | null + /** + * The data used to create many RegisterForms. + */ + data: RegisterFormCreateManyInput | RegisterFormCreateManyInput[] + skipDuplicates?: boolean + } + + /** + * RegisterForm update + */ + export type RegisterFormUpdateArgs = { + /** + * Select specific fields to fetch from the RegisterForm + */ + select?: RegisterFormSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterFormInclude | null + /** + * The data needed to update a RegisterForm. + */ + data: XOR + /** + * Choose, which RegisterForm to update. + */ + where: RegisterFormWhereUniqueInput + } + + /** + * RegisterForm updateMany + */ + export type RegisterFormUpdateManyArgs = { + /** + * The data used to update RegisterForms. + */ + data: XOR + /** + * Filter which RegisterForms to update + */ + where?: RegisterFormWhereInput + } + + /** + * RegisterForm upsert + */ + export type RegisterFormUpsertArgs = { + /** + * Select specific fields to fetch from the RegisterForm + */ + select?: RegisterFormSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterFormInclude | 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 + /** + * In case the RegisterForm was found with the provided `where` argument, update it with this data. + */ + update: XOR + } + + /** + * RegisterForm delete + */ + export type RegisterFormDeleteArgs = { + /** + * Select specific fields to fetch from the RegisterForm + */ + select?: RegisterFormSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterFormInclude | null + /** + * Filter which RegisterForm to delete. + */ + where: RegisterFormWhereUniqueInput + } + + /** + * RegisterForm deleteMany + */ + export type RegisterFormDeleteManyArgs = { + /** + * Filter which RegisterForms to delete + */ + where?: RegisterFormWhereInput + } + + /** + * RegisterForm.fields + */ + export type RegisterForm$fieldsArgs = { + /** + * Select specific fields to fetch from the RegisterFormField + */ + select?: RegisterFormFieldSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterFormFieldInclude | null + where?: RegisterFormFieldWhereInput + orderBy?: RegisterFormFieldOrderByWithRelationInput | RegisterFormFieldOrderByWithRelationInput[] + cursor?: RegisterFormFieldWhereUniqueInput + take?: number + skip?: number + distinct?: RegisterFormFieldScalarFieldEnum | RegisterFormFieldScalarFieldEnum[] + } + + /** + * RegisterForm.applications + */ + export type RegisterForm$applicationsArgs = { + /** + * Select specific fields to fetch from the RegisterApplication + */ + select?: RegisterApplicationSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterApplicationInclude | null + where?: RegisterApplicationWhereInput + orderBy?: RegisterApplicationOrderByWithRelationInput | RegisterApplicationOrderByWithRelationInput[] + cursor?: RegisterApplicationWhereUniqueInput + take?: number + skip?: number + distinct?: RegisterApplicationScalarFieldEnum | RegisterApplicationScalarFieldEnum[] + } + + /** + * RegisterForm without action + */ + export type RegisterFormDefaultArgs = { + /** + * Select specific fields to fetch from the RegisterForm + */ + select?: RegisterFormSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterFormInclude | null + } + + + /** + * Model RegisterFormField + */ + + export type AggregateRegisterFormField = { + _count: RegisterFormFieldCountAggregateOutputType | null + _avg: RegisterFormFieldAvgAggregateOutputType | null + _sum: RegisterFormFieldSumAggregateOutputType | null + _min: RegisterFormFieldMinAggregateOutputType | null + _max: RegisterFormFieldMaxAggregateOutputType | null + } + + export type RegisterFormFieldAvgAggregateOutputType = { + sortOrder: number | null + } + + export type RegisterFormFieldSumAggregateOutputType = { + sortOrder: number | null + } + + export type RegisterFormFieldMinAggregateOutputType = { + id: string | null + formId: string | null + label: string | null + type: string | null + required: boolean | null + sortOrder: number | null + } + + export type RegisterFormFieldMaxAggregateOutputType = { + id: string | null + formId: string | null + label: string | null + type: string | null + required: boolean | null + sortOrder: number | null + } + + export type RegisterFormFieldCountAggregateOutputType = { + id: number + formId: number + label: number + type: number + required: number + sortOrder: number + _all: number + } + + + export type RegisterFormFieldAvgAggregateInputType = { + sortOrder?: true + } + + export type RegisterFormFieldSumAggregateInputType = { + sortOrder?: true + } + + export type RegisterFormFieldMinAggregateInputType = { + id?: true + formId?: true + label?: true + type?: true + required?: true + sortOrder?: true + } + + export type RegisterFormFieldMaxAggregateInputType = { + id?: true + formId?: true + label?: true + type?: true + required?: true + sortOrder?: true + } + + export type RegisterFormFieldCountAggregateInputType = { + id?: true + formId?: true + label?: true + type?: true + required?: true + sortOrder?: true + _all?: true + } + + export type RegisterFormFieldAggregateArgs = { + /** + * 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 = { + [P in keyof T & keyof AggregateRegisterFormField]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : GetScalarType + : GetScalarType + } + + + + + export type RegisterFormFieldGroupByArgs = { + 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 + sortOrder: number + _count: RegisterFormFieldCountAggregateOutputType | null + _avg: RegisterFormFieldAvgAggregateOutputType | null + _sum: RegisterFormFieldSumAggregateOutputType | null + _min: RegisterFormFieldMinAggregateOutputType | null + _max: RegisterFormFieldMaxAggregateOutputType | null + } + + type GetRegisterFormFieldGroupByPayload = Prisma.PrismaPromise< + Array< + PickEnumerable & + { + [P in ((keyof T) & (keyof RegisterFormFieldGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : GetScalarType + : GetScalarType + } + > + > + + + export type RegisterFormFieldSelect = $Extensions.GetSelect<{ + id?: boolean + formId?: boolean + label?: boolean + type?: boolean + required?: boolean + sortOrder?: boolean + form?: boolean | RegisterFormDefaultArgs + }, ExtArgs["result"]["registerFormField"]> + + export type RegisterFormFieldSelectCreateManyAndReturn = $Extensions.GetSelect<{ + id?: boolean + formId?: boolean + label?: boolean + type?: boolean + required?: boolean + sortOrder?: boolean + form?: boolean | RegisterFormDefaultArgs + }, ExtArgs["result"]["registerFormField"]> + + export type RegisterFormFieldSelectScalar = { + id?: boolean + formId?: boolean + label?: boolean + type?: boolean + required?: boolean + sortOrder?: boolean + } + + export type RegisterFormFieldInclude = { + form?: boolean | RegisterFormDefaultArgs + } + export type RegisterFormFieldIncludeCreateManyAndReturn = { + form?: boolean | RegisterFormDefaultArgs + } + + export type $RegisterFormFieldPayload = { + name: "RegisterFormField" + objects: { + form: Prisma.$RegisterFormPayload + } + scalars: $Extensions.GetPayloadResult<{ + id: string + formId: string + label: string + type: string + required: boolean + sortOrder: number + }, ExtArgs["result"]["registerFormField"]> + composites: {} + } + + type RegisterFormFieldGetPayload = $Result.GetResult + + type RegisterFormFieldCountArgs = + Omit & { + select?: RegisterFormFieldCountAggregateInputType | true + } + + export interface RegisterFormFieldDelegate { + [K: symbol]: { types: Prisma.TypeMap['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(args: SelectSubset>): Prisma__RegisterFormFieldClient<$Result.GetResult, 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(args: SelectSubset>): Prisma__RegisterFormFieldClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma__RegisterFormFieldClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma__RegisterFormFieldClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, 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(args: SelectSubset>): Prisma__RegisterFormFieldClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma.PrismaPromise + + /** + * 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(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, 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(args: SelectSubset>): Prisma__RegisterFormFieldClient<$Result.GetResult, 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(args: SelectSubset>): Prisma__RegisterFormFieldClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma.PrismaPromise + + /** + * 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(args: SelectSubset>): Prisma.PrismaPromise + + /** + * 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(args: SelectSubset>): Prisma__RegisterFormFieldClient<$Result.GetResult, 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( + args?: Subset, + ): Prisma.PrismaPromise< + T extends $Utils.Record<'select', any> + ? T['select'] extends true + ? number + : GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a 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(args: Subset): Prisma.PrismaPromise> + + /** + * 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>, + Extends<'take', Keys> + >, + OrderByArg extends True extends HasSelectOrTake + ? { orderBy: RegisterFormFieldGroupByArgs['orderBy'] } + : { orderBy?: RegisterFormFieldGroupByArgs['orderBy'] }, + OrderFields extends ExcludeUnderscoreKeys>>, + ByFields extends MaybeTupleToUnion, + ByValid extends Has, + HavingFields extends GetHavingFields, + HavingValid extends Has, + ByEmpty extends T['by'] extends never[] ? True : False, + InputErrors extends ByEmpty extends True + ? `Error: "by" must not be empty.` + : HavingValid extends False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [ + Error, + 'Field ', + P, + ` in "having" needs to be provided in "by"`, + ] + }[HavingFields] + : 'take' extends Keys + ? 'orderBy' extends Keys + ? ByValid extends True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Keys + ? 'orderBy' extends Keys + ? ByValid extends True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetRegisterFormFieldGroupByPayload : Prisma.PrismaPromise + /** + * 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 extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + form = {}>(args?: Subset>): Prisma__RegisterFormClient<$Result.GetResult, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise + } + + + + + /** + * Fields of the 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 sortOrder: FieldRef<"RegisterFormField", 'Int'> + } + + + // Custom InputTypes + /** + * RegisterFormField findUnique + */ + export type RegisterFormFieldFindUniqueArgs = { + /** + * Select specific fields to fetch from the RegisterFormField + */ + select?: RegisterFormFieldSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterFormFieldInclude | null + /** + * Filter, which RegisterFormField to fetch. + */ + where: RegisterFormFieldWhereUniqueInput + } + + /** + * RegisterFormField findUniqueOrThrow + */ + export type RegisterFormFieldFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the RegisterFormField + */ + select?: RegisterFormFieldSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterFormFieldInclude | null + /** + * Filter, which RegisterFormField to fetch. + */ + where: RegisterFormFieldWhereUniqueInput + } + + /** + * RegisterFormField findFirst + */ + export type RegisterFormFieldFindFirstArgs = { + /** + * Select specific fields to fetch from the RegisterFormField + */ + select?: RegisterFormFieldSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterFormFieldInclude | 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 = { + /** + * Select specific fields to fetch from the RegisterFormField + */ + select?: RegisterFormFieldSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterFormFieldInclude | 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 = { + /** + * Select specific fields to fetch from the RegisterFormField + */ + select?: RegisterFormFieldSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterFormFieldInclude | 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 = { + /** + * Select specific fields to fetch from the RegisterFormField + */ + select?: RegisterFormFieldSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterFormFieldInclude | null + /** + * The data needed to create a RegisterFormField. + */ + data: XOR + } + + /** + * RegisterFormField createMany + */ + export type RegisterFormFieldCreateManyArgs = { + /** + * The data used to create many RegisterFormFields. + */ + data: RegisterFormFieldCreateManyInput | RegisterFormFieldCreateManyInput[] + skipDuplicates?: boolean + } + + /** + * RegisterFormField createManyAndReturn + */ + export type RegisterFormFieldCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the RegisterFormField + */ + select?: RegisterFormFieldSelectCreateManyAndReturn | null + /** + * The data used to create many RegisterFormFields. + */ + data: RegisterFormFieldCreateManyInput | RegisterFormFieldCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterFormFieldIncludeCreateManyAndReturn | null + } + + /** + * RegisterFormField update + */ + export type RegisterFormFieldUpdateArgs = { + /** + * Select specific fields to fetch from the RegisterFormField + */ + select?: RegisterFormFieldSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterFormFieldInclude | null + /** + * The data needed to update a RegisterFormField. + */ + data: XOR + /** + * Choose, which RegisterFormField to update. + */ + where: RegisterFormFieldWhereUniqueInput + } + + /** + * RegisterFormField updateMany + */ + export type RegisterFormFieldUpdateManyArgs = { + /** + * The data used to update RegisterFormFields. + */ + data: XOR + /** + * Filter which RegisterFormFields to update + */ + where?: RegisterFormFieldWhereInput + } + + /** + * RegisterFormField upsert + */ + export type RegisterFormFieldUpsertArgs = { + /** + * Select specific fields to fetch from the RegisterFormField + */ + select?: RegisterFormFieldSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterFormFieldInclude | 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 + /** + * In case the RegisterFormField was found with the provided `where` argument, update it with this data. + */ + update: XOR + } + + /** + * RegisterFormField delete + */ + export type RegisterFormFieldDeleteArgs = { + /** + * Select specific fields to fetch from the RegisterFormField + */ + select?: RegisterFormFieldSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterFormFieldInclude | null + /** + * Filter which RegisterFormField to delete. + */ + where: RegisterFormFieldWhereUniqueInput + } + + /** + * RegisterFormField deleteMany + */ + export type RegisterFormFieldDeleteManyArgs = { + /** + * Filter which RegisterFormFields to delete + */ + where?: RegisterFormFieldWhereInput + } + + /** + * RegisterFormField without action + */ + export type RegisterFormFieldDefaultArgs = { + /** + * Select specific fields to fetch from the RegisterFormField + */ + select?: RegisterFormFieldSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterFormFieldInclude | 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 = { + /** + * 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 = { + [P in keyof T & keyof AggregateRegisterApplication]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : GetScalarType + : GetScalarType + } + + + + + export type RegisterApplicationGroupByArgs = { + 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 = Prisma.PrismaPromise< + Array< + PickEnumerable & + { + [P in ((keyof T) & (keyof RegisterApplicationGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : GetScalarType + : GetScalarType + } + > + > + + + export type RegisterApplicationSelect = $Extensions.GetSelect<{ + id?: boolean + guildId?: boolean + userId?: boolean + formId?: boolean + status?: boolean + reviewedBy?: boolean + createdAt?: boolean + updatedAt?: boolean + answers?: boolean | RegisterApplication$answersArgs + form?: boolean | RegisterFormDefaultArgs + _count?: boolean | RegisterApplicationCountOutputTypeDefaultArgs + }, ExtArgs["result"]["registerApplication"]> + + export type RegisterApplicationSelectCreateManyAndReturn = $Extensions.GetSelect<{ + id?: boolean + guildId?: boolean + userId?: boolean + formId?: boolean + status?: boolean + reviewedBy?: boolean + createdAt?: boolean + updatedAt?: boolean + form?: boolean | RegisterFormDefaultArgs + }, 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 = { + answers?: boolean | RegisterApplication$answersArgs + form?: boolean | RegisterFormDefaultArgs + _count?: boolean | RegisterApplicationCountOutputTypeDefaultArgs + } + export type RegisterApplicationIncludeCreateManyAndReturn = { + form?: boolean | RegisterFormDefaultArgs + } + + export type $RegisterApplicationPayload = { + name: "RegisterApplication" + objects: { + answers: Prisma.$RegisterApplicationAnswerPayload[] + form: Prisma.$RegisterFormPayload + } + 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 = $Result.GetResult + + type RegisterApplicationCountArgs = + Omit & { + select?: RegisterApplicationCountAggregateInputType | true + } + + export interface RegisterApplicationDelegate { + [K: symbol]: { types: Prisma.TypeMap['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(args: SelectSubset>): Prisma__RegisterApplicationClient<$Result.GetResult, 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(args: SelectSubset>): Prisma__RegisterApplicationClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma__RegisterApplicationClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma__RegisterApplicationClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, 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(args: SelectSubset>): Prisma__RegisterApplicationClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma.PrismaPromise + + /** + * 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(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, 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(args: SelectSubset>): Prisma__RegisterApplicationClient<$Result.GetResult, 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(args: SelectSubset>): Prisma__RegisterApplicationClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma.PrismaPromise + + /** + * 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(args: SelectSubset>): Prisma.PrismaPromise + + /** + * 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(args: SelectSubset>): Prisma__RegisterApplicationClient<$Result.GetResult, 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( + args?: Subset, + ): Prisma.PrismaPromise< + T extends $Utils.Record<'select', any> + ? T['select'] extends true + ? number + : GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a 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(args: Subset): Prisma.PrismaPromise> + + /** + * 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>, + Extends<'take', Keys> + >, + OrderByArg extends True extends HasSelectOrTake + ? { orderBy: RegisterApplicationGroupByArgs['orderBy'] } + : { orderBy?: RegisterApplicationGroupByArgs['orderBy'] }, + OrderFields extends ExcludeUnderscoreKeys>>, + ByFields extends MaybeTupleToUnion, + ByValid extends Has, + HavingFields extends GetHavingFields, + HavingValid extends Has, + ByEmpty extends T['by'] extends never[] ? True : False, + InputErrors extends ByEmpty extends True + ? `Error: "by" must not be empty.` + : HavingValid extends False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [ + Error, + 'Field ', + P, + ` in "having" needs to be provided in "by"`, + ] + }[HavingFields] + : 'take' extends Keys + ? 'orderBy' extends Keys + ? ByValid extends True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Keys + ? 'orderBy' extends Keys + ? ByValid extends True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetRegisterApplicationGroupByPayload : Prisma.PrismaPromise + /** + * 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 extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + answers = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> + form = {}>(args?: Subset>): Prisma__RegisterFormClient<$Result.GetResult, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise + } + + + + + /** + * Fields of the 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 = { + /** + * Select specific fields to fetch from the RegisterApplication + */ + select?: RegisterApplicationSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterApplicationInclude | null + /** + * Filter, which RegisterApplication to fetch. + */ + where: RegisterApplicationWhereUniqueInput + } + + /** + * RegisterApplication findUniqueOrThrow + */ + export type RegisterApplicationFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the RegisterApplication + */ + select?: RegisterApplicationSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterApplicationInclude | null + /** + * Filter, which RegisterApplication to fetch. + */ + where: RegisterApplicationWhereUniqueInput + } + + /** + * RegisterApplication findFirst + */ + export type RegisterApplicationFindFirstArgs = { + /** + * Select specific fields to fetch from the RegisterApplication + */ + select?: RegisterApplicationSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterApplicationInclude | 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 = { + /** + * Select specific fields to fetch from the RegisterApplication + */ + select?: RegisterApplicationSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterApplicationInclude | 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 = { + /** + * Select specific fields to fetch from the RegisterApplication + */ + select?: RegisterApplicationSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterApplicationInclude | 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 = { + /** + * Select specific fields to fetch from the RegisterApplication + */ + select?: RegisterApplicationSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterApplicationInclude | null + /** + * The data needed to create a RegisterApplication. + */ + data: XOR + } + + /** + * RegisterApplication createMany + */ + export type RegisterApplicationCreateManyArgs = { + /** + * The data used to create many RegisterApplications. + */ + data: RegisterApplicationCreateManyInput | RegisterApplicationCreateManyInput[] + skipDuplicates?: boolean + } + + /** + * RegisterApplication createManyAndReturn + */ + export type RegisterApplicationCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the RegisterApplication + */ + select?: RegisterApplicationSelectCreateManyAndReturn | null + /** + * The data used to create many RegisterApplications. + */ + data: RegisterApplicationCreateManyInput | RegisterApplicationCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterApplicationIncludeCreateManyAndReturn | null + } + + /** + * RegisterApplication update + */ + export type RegisterApplicationUpdateArgs = { + /** + * Select specific fields to fetch from the RegisterApplication + */ + select?: RegisterApplicationSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterApplicationInclude | null + /** + * The data needed to update a RegisterApplication. + */ + data: XOR + /** + * Choose, which RegisterApplication to update. + */ + where: RegisterApplicationWhereUniqueInput + } + + /** + * RegisterApplication updateMany + */ + export type RegisterApplicationUpdateManyArgs = { + /** + * The data used to update RegisterApplications. + */ + data: XOR + /** + * Filter which RegisterApplications to update + */ + where?: RegisterApplicationWhereInput + } + + /** + * RegisterApplication upsert + */ + export type RegisterApplicationUpsertArgs = { + /** + * Select specific fields to fetch from the RegisterApplication + */ + select?: RegisterApplicationSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterApplicationInclude | 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 + /** + * In case the RegisterApplication was found with the provided `where` argument, update it with this data. + */ + update: XOR + } + + /** + * RegisterApplication delete + */ + export type RegisterApplicationDeleteArgs = { + /** + * Select specific fields to fetch from the RegisterApplication + */ + select?: RegisterApplicationSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterApplicationInclude | null + /** + * Filter which RegisterApplication to delete. + */ + where: RegisterApplicationWhereUniqueInput + } + + /** + * RegisterApplication deleteMany + */ + export type RegisterApplicationDeleteManyArgs = { + /** + * Filter which RegisterApplications to delete + */ + where?: RegisterApplicationWhereInput + } + + /** + * RegisterApplication.answers + */ + export type RegisterApplication$answersArgs = { + /** + * Select specific fields to fetch from the RegisterApplicationAnswer + */ + select?: RegisterApplicationAnswerSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterApplicationAnswerInclude | null + where?: RegisterApplicationAnswerWhereInput + orderBy?: RegisterApplicationAnswerOrderByWithRelationInput | RegisterApplicationAnswerOrderByWithRelationInput[] + cursor?: RegisterApplicationAnswerWhereUniqueInput + take?: number + skip?: number + distinct?: RegisterApplicationAnswerScalarFieldEnum | RegisterApplicationAnswerScalarFieldEnum[] + } + + /** + * RegisterApplication without action + */ + export type RegisterApplicationDefaultArgs = { + /** + * Select specific fields to fetch from the RegisterApplication + */ + select?: RegisterApplicationSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterApplicationInclude | 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 = { + /** + * 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 = { + [P in keyof T & keyof AggregateRegisterApplicationAnswer]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : GetScalarType + : GetScalarType + } + + + + + export type RegisterApplicationAnswerGroupByArgs = { + 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 = Prisma.PrismaPromise< + Array< + PickEnumerable & + { + [P in ((keyof T) & (keyof RegisterApplicationAnswerGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : GetScalarType + : GetScalarType + } + > + > + + + export type RegisterApplicationAnswerSelect = $Extensions.GetSelect<{ + id?: boolean + applicationId?: boolean + fieldId?: boolean + value?: boolean + application?: boolean | RegisterApplicationDefaultArgs + }, ExtArgs["result"]["registerApplicationAnswer"]> + + export type RegisterApplicationAnswerSelectCreateManyAndReturn = $Extensions.GetSelect<{ + id?: boolean + applicationId?: boolean + fieldId?: boolean + value?: boolean + application?: boolean | RegisterApplicationDefaultArgs + }, ExtArgs["result"]["registerApplicationAnswer"]> + + export type RegisterApplicationAnswerSelectScalar = { + id?: boolean + applicationId?: boolean + fieldId?: boolean + value?: boolean + } + + export type RegisterApplicationAnswerInclude = { + application?: boolean | RegisterApplicationDefaultArgs + } + export type RegisterApplicationAnswerIncludeCreateManyAndReturn = { + application?: boolean | RegisterApplicationDefaultArgs + } + + export type $RegisterApplicationAnswerPayload = { + name: "RegisterApplicationAnswer" + objects: { + application: Prisma.$RegisterApplicationPayload + } + scalars: $Extensions.GetPayloadResult<{ + id: string + applicationId: string + fieldId: string + value: string + }, ExtArgs["result"]["registerApplicationAnswer"]> + composites: {} + } + + type RegisterApplicationAnswerGetPayload = $Result.GetResult + + type RegisterApplicationAnswerCountArgs = + Omit & { + select?: RegisterApplicationAnswerCountAggregateInputType | true + } + + export interface RegisterApplicationAnswerDelegate { + [K: symbol]: { types: Prisma.TypeMap['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(args: SelectSubset>): Prisma__RegisterApplicationAnswerClient<$Result.GetResult, 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(args: SelectSubset>): Prisma__RegisterApplicationAnswerClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma__RegisterApplicationAnswerClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma__RegisterApplicationAnswerClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, 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(args: SelectSubset>): Prisma__RegisterApplicationAnswerClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma.PrismaPromise + + /** + * 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(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, 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(args: SelectSubset>): Prisma__RegisterApplicationAnswerClient<$Result.GetResult, 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(args: SelectSubset>): Prisma__RegisterApplicationAnswerClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma.PrismaPromise + + /** + * 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(args: SelectSubset>): Prisma.PrismaPromise + + /** + * 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(args: SelectSubset>): Prisma__RegisterApplicationAnswerClient<$Result.GetResult, 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( + args?: Subset, + ): Prisma.PrismaPromise< + T extends $Utils.Record<'select', any> + ? T['select'] extends true + ? number + : GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a 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(args: Subset): Prisma.PrismaPromise> + + /** + * 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>, + Extends<'take', Keys> + >, + OrderByArg extends True extends HasSelectOrTake + ? { orderBy: RegisterApplicationAnswerGroupByArgs['orderBy'] } + : { orderBy?: RegisterApplicationAnswerGroupByArgs['orderBy'] }, + OrderFields extends ExcludeUnderscoreKeys>>, + ByFields extends MaybeTupleToUnion, + ByValid extends Has, + HavingFields extends GetHavingFields, + HavingValid extends Has, + ByEmpty extends T['by'] extends never[] ? True : False, + InputErrors extends ByEmpty extends True + ? `Error: "by" must not be empty.` + : HavingValid extends False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [ + Error, + 'Field ', + P, + ` in "having" needs to be provided in "by"`, + ] + }[HavingFields] + : 'take' extends Keys + ? 'orderBy' extends Keys + ? ByValid extends True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Keys + ? 'orderBy' extends Keys + ? ByValid extends True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetRegisterApplicationAnswerGroupByPayload : Prisma.PrismaPromise + /** + * 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 extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + application = {}>(args?: Subset>): Prisma__RegisterApplicationClient<$Result.GetResult, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise + } + + + + + /** + * Fields of the 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 = { + /** + * Select specific fields to fetch from the RegisterApplicationAnswer + */ + select?: RegisterApplicationAnswerSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterApplicationAnswerInclude | null + /** + * Filter, which RegisterApplicationAnswer to fetch. + */ + where: RegisterApplicationAnswerWhereUniqueInput + } + + /** + * RegisterApplicationAnswer findUniqueOrThrow + */ + export type RegisterApplicationAnswerFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the RegisterApplicationAnswer + */ + select?: RegisterApplicationAnswerSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterApplicationAnswerInclude | null + /** + * Filter, which RegisterApplicationAnswer to fetch. + */ + where: RegisterApplicationAnswerWhereUniqueInput + } + + /** + * RegisterApplicationAnswer findFirst + */ + export type RegisterApplicationAnswerFindFirstArgs = { + /** + * Select specific fields to fetch from the RegisterApplicationAnswer + */ + select?: RegisterApplicationAnswerSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterApplicationAnswerInclude | 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 = { + /** + * Select specific fields to fetch from the RegisterApplicationAnswer + */ + select?: RegisterApplicationAnswerSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterApplicationAnswerInclude | 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 = { + /** + * Select specific fields to fetch from the RegisterApplicationAnswer + */ + select?: RegisterApplicationAnswerSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterApplicationAnswerInclude | 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 = { + /** + * Select specific fields to fetch from the RegisterApplicationAnswer + */ + select?: RegisterApplicationAnswerSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterApplicationAnswerInclude | null + /** + * The data needed to create a RegisterApplicationAnswer. + */ + data: XOR + } + + /** + * RegisterApplicationAnswer createMany + */ + export type RegisterApplicationAnswerCreateManyArgs = { + /** + * The data used to create many RegisterApplicationAnswers. + */ + data: RegisterApplicationAnswerCreateManyInput | RegisterApplicationAnswerCreateManyInput[] + skipDuplicates?: boolean + } + + /** + * RegisterApplicationAnswer createManyAndReturn + */ + export type RegisterApplicationAnswerCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the RegisterApplicationAnswer + */ + select?: RegisterApplicationAnswerSelectCreateManyAndReturn | null + /** + * The data used to create many RegisterApplicationAnswers. + */ + data: RegisterApplicationAnswerCreateManyInput | RegisterApplicationAnswerCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterApplicationAnswerIncludeCreateManyAndReturn | null + } + + /** + * RegisterApplicationAnswer update + */ + export type RegisterApplicationAnswerUpdateArgs = { + /** + * Select specific fields to fetch from the RegisterApplicationAnswer + */ + select?: RegisterApplicationAnswerSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterApplicationAnswerInclude | null + /** + * The data needed to update a RegisterApplicationAnswer. + */ + data: XOR + /** + * Choose, which RegisterApplicationAnswer to update. + */ + where: RegisterApplicationAnswerWhereUniqueInput + } + + /** + * RegisterApplicationAnswer updateMany + */ + export type RegisterApplicationAnswerUpdateManyArgs = { + /** + * The data used to update RegisterApplicationAnswers. + */ + data: XOR + /** + * Filter which RegisterApplicationAnswers to update + */ + where?: RegisterApplicationAnswerWhereInput + } + + /** + * RegisterApplicationAnswer upsert + */ + export type RegisterApplicationAnswerUpsertArgs = { + /** + * Select specific fields to fetch from the RegisterApplicationAnswer + */ + select?: RegisterApplicationAnswerSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterApplicationAnswerInclude | 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 + /** + * In case the RegisterApplicationAnswer was found with the provided `where` argument, update it with this data. + */ + update: XOR + } + + /** + * RegisterApplicationAnswer delete + */ + export type RegisterApplicationAnswerDeleteArgs = { + /** + * Select specific fields to fetch from the RegisterApplicationAnswer + */ + select?: RegisterApplicationAnswerSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterApplicationAnswerInclude | null + /** + * Filter which RegisterApplicationAnswer to delete. + */ + where: RegisterApplicationAnswerWhereUniqueInput + } + + /** + * RegisterApplicationAnswer deleteMany + */ + export type RegisterApplicationAnswerDeleteManyArgs = { + /** + * Filter which RegisterApplicationAnswers to delete + */ + where?: RegisterApplicationAnswerWhereInput + } + + /** + * RegisterApplicationAnswer without action + */ + export type RegisterApplicationAnswerDefaultArgs = { + /** + * Select specific fields to fetch from the RegisterApplicationAnswer + */ + select?: RegisterApplicationAnswerSelect | null + /** + * Choose, which related nodes to fetch as well + */ + include?: RegisterApplicationAnswerInclude | null + } + + /** * Enums */ @@ -9269,6 +15627,8 @@ export namespace Prisma { reactionRolesEnabled: 'reactionRolesEnabled', reactionRolesConfig: 'reactionRolesConfig', eventsEnabled: 'eventsEnabled', + registerEnabled: 'registerEnabled', + registerConfig: 'registerConfig', supportRoleId: 'supportRoleId', updatedAt: 'updatedAt', createdAt: 'createdAt' @@ -9288,6 +15648,9 @@ export namespace Prisma { status: 'status', claimedBy: 'claimedBy', transcript: 'transcript', + firstClaimAt: 'firstClaimAt', + firstResponseAt: 'firstResponseAt', + kbSuggestionSentAt: 'kbSuggestionSentAt', createdAt: 'createdAt', updatedAt: 'updatedAt' }; @@ -9295,6 +15658,33 @@ export namespace Prisma { 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', @@ -9380,6 +15770,57 @@ export namespace Prisma { 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', + sortOrder: 'sortOrder' + }; + + 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 SortOrder: { asc: 'asc', desc: 'desc' @@ -9528,6 +15969,8 @@ export namespace Prisma { reactionRolesEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null reactionRolesConfig?: JsonNullableFilter<"GuildSettings"> eventsEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null + registerEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null + registerConfig?: JsonNullableFilter<"GuildSettings"> supportRoleId?: StringNullableFilter<"GuildSettings"> | string | null updatedAt?: DateTimeFilter<"GuildSettings"> | Date | string createdAt?: DateTimeFilter<"GuildSettings"> | Date | string @@ -9552,6 +15995,8 @@ export namespace Prisma { reactionRolesEnabled?: SortOrderInput | SortOrder reactionRolesConfig?: SortOrderInput | SortOrder eventsEnabled?: SortOrderInput | SortOrder + registerEnabled?: SortOrderInput | SortOrder + registerConfig?: SortOrderInput | SortOrder supportRoleId?: SortOrderInput | SortOrder updatedAt?: SortOrder createdAt?: SortOrder @@ -9579,6 +16024,8 @@ export namespace Prisma { reactionRolesEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null reactionRolesConfig?: JsonNullableFilter<"GuildSettings"> eventsEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null + registerEnabled?: BoolNullableFilter<"GuildSettings"> | boolean | null + registerConfig?: JsonNullableFilter<"GuildSettings"> supportRoleId?: StringNullableFilter<"GuildSettings"> | string | null updatedAt?: DateTimeFilter<"GuildSettings"> | Date | string createdAt?: DateTimeFilter<"GuildSettings"> | Date | string @@ -9603,6 +16050,8 @@ export namespace Prisma { reactionRolesEnabled?: SortOrderInput | SortOrder reactionRolesConfig?: SortOrderInput | SortOrder eventsEnabled?: SortOrderInput | SortOrder + registerEnabled?: SortOrderInput | SortOrder + registerConfig?: SortOrderInput | SortOrder supportRoleId?: SortOrderInput | SortOrder updatedAt?: SortOrder createdAt?: SortOrder @@ -9633,6 +16082,8 @@ export namespace Prisma { reactionRolesEnabled?: BoolNullableWithAggregatesFilter<"GuildSettings"> | boolean | null reactionRolesConfig?: JsonNullableWithAggregatesFilter<"GuildSettings"> eventsEnabled?: BoolNullableWithAggregatesFilter<"GuildSettings"> | boolean | null + registerEnabled?: BoolNullableWithAggregatesFilter<"GuildSettings"> | boolean | null + registerConfig?: JsonNullableWithAggregatesFilter<"GuildSettings"> supportRoleId?: StringNullableWithAggregatesFilter<"GuildSettings"> | string | null updatedAt?: DateTimeWithAggregatesFilter<"GuildSettings"> | Date | string createdAt?: DateTimeWithAggregatesFilter<"GuildSettings"> | Date | string @@ -9652,6 +16103,9 @@ export namespace Prisma { 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 } @@ -9667,6 +16121,9 @@ export namespace Prisma { status?: SortOrder claimedBy?: SortOrderInput | SortOrder transcript?: SortOrderInput | SortOrder + firstClaimAt?: SortOrderInput | SortOrder + firstResponseAt?: SortOrderInput | SortOrder + kbSuggestionSentAt?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder } @@ -9685,6 +16142,9 @@ export namespace Prisma { 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"> @@ -9700,6 +16160,9 @@ export namespace Prisma { status?: SortOrder claimedBy?: SortOrderInput | SortOrder transcript?: SortOrderInput | SortOrder + firstClaimAt?: SortOrderInput | SortOrder + firstResponseAt?: SortOrderInput | SortOrder + kbSuggestionSentAt?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: TicketCountOrderByAggregateInput @@ -9723,10 +16186,142 @@ export namespace Prisma { 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[] @@ -10149,6 +16744,269 @@ export namespace Prisma { 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 + sortOrder?: IntFilter<"RegisterFormField"> | number + form?: XOR + } + + export type RegisterFormFieldOrderByWithRelationInput = { + id?: SortOrder + formId?: SortOrder + label?: SortOrder + type?: SortOrder + required?: SortOrder + sortOrder?: 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 + sortOrder?: IntFilter<"RegisterFormField"> | number + form?: XOR + }, "id"> + + export type RegisterFormFieldOrderByWithAggregationInput = { + id?: SortOrder + formId?: SortOrder + label?: SortOrder + type?: SortOrder + required?: SortOrder + sortOrder?: 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 + sortOrder?: 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 + form?: XOR + } + + export type RegisterApplicationOrderByWithRelationInput = { + id?: SortOrder + guildId?: SortOrder + userId?: SortOrder + formId?: SortOrder + status?: SortOrder + reviewedBy?: SortOrderInput | SortOrder + createdAt?: SortOrder + updatedAt?: SortOrder + answers?: RegisterApplicationAnswerOrderByRelationAggregateInput + 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 + form?: XOR + }, "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 + } + + 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 + }, "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 GuildSettingsCreateInput = { guildId: string welcomeChannelId?: string | null @@ -10168,6 +17026,8 @@ export namespace Prisma { reactionRolesEnabled?: boolean | null reactionRolesConfig?: NullableJsonNullValueInput | InputJsonValue eventsEnabled?: boolean | null + registerEnabled?: boolean | null + registerConfig?: NullableJsonNullValueInput | InputJsonValue supportRoleId?: string | null updatedAt?: Date | string createdAt?: Date | string @@ -10192,6 +17052,8 @@ export namespace Prisma { reactionRolesEnabled?: boolean | null reactionRolesConfig?: NullableJsonNullValueInput | InputJsonValue eventsEnabled?: boolean | null + registerEnabled?: boolean | null + registerConfig?: NullableJsonNullValueInput | InputJsonValue supportRoleId?: string | null updatedAt?: Date | string createdAt?: Date | string @@ -10216,6 +17078,8 @@ export namespace Prisma { reactionRolesEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null reactionRolesConfig?: NullableJsonNullValueInput | InputJsonValue eventsEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null + registerEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null + registerConfig?: NullableJsonNullValueInput | InputJsonValue supportRoleId?: NullableStringFieldUpdateOperationsInput | string | null updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string @@ -10240,6 +17104,8 @@ export namespace Prisma { reactionRolesEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null reactionRolesConfig?: NullableJsonNullValueInput | InputJsonValue eventsEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null + registerEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null + registerConfig?: NullableJsonNullValueInput | InputJsonValue supportRoleId?: NullableStringFieldUpdateOperationsInput | string | null updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string @@ -10264,6 +17130,8 @@ export namespace Prisma { reactionRolesEnabled?: boolean | null reactionRolesConfig?: NullableJsonNullValueInput | InputJsonValue eventsEnabled?: boolean | null + registerEnabled?: boolean | null + registerConfig?: NullableJsonNullValueInput | InputJsonValue supportRoleId?: string | null updatedAt?: Date | string createdAt?: Date | string @@ -10288,6 +17156,8 @@ export namespace Prisma { reactionRolesEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null reactionRolesConfig?: NullableJsonNullValueInput | InputJsonValue eventsEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null + registerEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null + registerConfig?: NullableJsonNullValueInput | InputJsonValue supportRoleId?: NullableStringFieldUpdateOperationsInput | string | null updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string @@ -10312,6 +17182,8 @@ export namespace Prisma { reactionRolesEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null reactionRolesConfig?: NullableJsonNullValueInput | InputJsonValue eventsEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null + registerEnabled?: NullableBoolFieldUpdateOperationsInput | boolean | null + registerConfig?: NullableJsonNullValueInput | InputJsonValue supportRoleId?: NullableStringFieldUpdateOperationsInput | string | null updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string @@ -10325,9 +17197,12 @@ export namespace Prisma { guildId: string topic?: string | null priority?: string - status: 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 } @@ -10340,9 +17215,12 @@ export namespace Prisma { guildId: string topic?: string | null priority?: string - status: 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 } @@ -10358,6 +17236,9 @@ export namespace Prisma { 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 } @@ -10373,6 +17254,9 @@ export namespace Prisma { 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 } @@ -10385,9 +17269,12 @@ export namespace Prisma { guildId: string topic?: string | null priority?: string - status: 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 } @@ -10403,6 +17290,9 @@ export namespace Prisma { 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 } @@ -10418,6 +17308,156 @@ export namespace Prisma { 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 } @@ -10894,6 +17934,288 @@ export namespace Prisma { 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 + sortOrder?: number + form: RegisterFormCreateNestedOneWithoutFieldsInput + } + + export type RegisterFormFieldUncheckedCreateInput = { + id?: string + formId: string + label: string + type: string + required?: boolean + sortOrder?: number + } + + export type RegisterFormFieldUpdateInput = { + id?: StringFieldUpdateOperationsInput | string + label?: StringFieldUpdateOperationsInput | string + type?: StringFieldUpdateOperationsInput | string + required?: BoolFieldUpdateOperationsInput | boolean + sortOrder?: IntFieldUpdateOperationsInput | number + form?: RegisterFormUpdateOneRequiredWithoutFieldsNestedInput + } + + export type RegisterFormFieldUncheckedUpdateInput = { + id?: StringFieldUpdateOperationsInput | string + formId?: StringFieldUpdateOperationsInput | string + label?: StringFieldUpdateOperationsInput | string + type?: StringFieldUpdateOperationsInput | string + required?: BoolFieldUpdateOperationsInput | boolean + sortOrder?: IntFieldUpdateOperationsInput | number + } + + export type RegisterFormFieldCreateManyInput = { + id?: string + formId: string + label: string + type: string + required?: boolean + sortOrder?: number + } + + export type RegisterFormFieldUpdateManyMutationInput = { + id?: StringFieldUpdateOperationsInput | string + label?: StringFieldUpdateOperationsInput | string + type?: StringFieldUpdateOperationsInput | string + required?: BoolFieldUpdateOperationsInput | boolean + sortOrder?: IntFieldUpdateOperationsInput | number + } + + export type RegisterFormFieldUncheckedUpdateManyInput = { + id?: StringFieldUpdateOperationsInput | string + formId?: StringFieldUpdateOperationsInput | string + label?: StringFieldUpdateOperationsInput | string + type?: StringFieldUpdateOperationsInput | string + required?: BoolFieldUpdateOperationsInput | boolean + sortOrder?: IntFieldUpdateOperationsInput | number + } + + export type RegisterApplicationCreateInput = { + id?: string + guildId: string + userId: string + status?: string + reviewedBy?: string | null + createdAt?: Date | string + updatedAt?: Date | string + answers?: RegisterApplicationAnswerCreateNestedManyWithoutApplicationInput + 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 + } + + 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 + 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 + } + + 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 StringFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] | ListStringFieldRefInput<$PrismaModel> @@ -10986,6 +18308,8 @@ export namespace Prisma { reactionRolesEnabled?: SortOrder reactionRolesConfig?: SortOrder eventsEnabled?: SortOrder + registerEnabled?: SortOrder + registerConfig?: SortOrder supportRoleId?: SortOrder updatedAt?: SortOrder createdAt?: SortOrder @@ -11004,6 +18328,7 @@ export namespace Prisma { birthdayEnabled?: SortOrder reactionRolesEnabled?: SortOrder eventsEnabled?: SortOrder + registerEnabled?: SortOrder supportRoleId?: SortOrder updatedAt?: SortOrder createdAt?: SortOrder @@ -11022,6 +18347,7 @@ export namespace Prisma { birthdayEnabled?: SortOrder reactionRolesEnabled?: SortOrder eventsEnabled?: SortOrder + registerEnabled?: SortOrder supportRoleId?: SortOrder updatedAt?: SortOrder createdAt?: SortOrder @@ -11121,6 +18447,17 @@ export namespace Prisma { 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 @@ -11132,6 +18469,9 @@ export namespace Prisma { status?: SortOrder claimedBy?: SortOrder transcript?: SortOrder + firstClaimAt?: SortOrder + firstResponseAt?: SortOrder + kbSuggestionSentAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } @@ -11151,6 +18491,9 @@ export namespace Prisma { status?: SortOrder claimedBy?: SortOrder transcript?: SortOrder + firstClaimAt?: SortOrder + firstResponseAt?: SortOrder + kbSuggestionSentAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } @@ -11166,6 +18509,9 @@ export namespace Prisma { status?: SortOrder claimedBy?: SortOrder transcript?: SortOrder + firstClaimAt?: SortOrder + firstResponseAt?: SortOrder + kbSuggestionSentAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } @@ -11190,6 +18536,145 @@ export namespace Prisma { _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>, Exclude>, 'path'>>, + Required> + > + | OptionalFlat>, '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>, Exclude>, 'path'>>, + Required> + > + | OptionalFlat>, '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 @@ -11235,17 +18720,6 @@ export namespace Prisma { level?: SortOrder } - export type DateTimeNullableFilter<$PrismaModel = never> = { - equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null - in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null - notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null - lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null - } - export type IntNullableFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | ListIntFieldRefInput<$PrismaModel> | null @@ -11295,20 +18769,6 @@ export namespace Prisma { durationSeconds?: SortOrder } - export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null - in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null - notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null - lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> - not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null - _count?: NestedIntNullableFilter<$PrismaModel> - _min?: NestedDateTimeNullableFilter<$PrismaModel> - _max?: NestedDateTimeNullableFilter<$PrismaModel> - } - export type IntNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | ListIntFieldRefInput<$PrismaModel> | null @@ -11356,28 +18816,6 @@ export namespace Prisma { createdAt?: SortOrder updatedAt?: SortOrder } - export type JsonFilter<$PrismaModel = never> = - | PatchUndefined< - Either>, Exclude>, 'path'>>, - Required> - > - | OptionalFlat>, '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 ReactionRoleSetCountOrderByAggregateInput = { id?: SortOrder @@ -11412,36 +18850,6 @@ export namespace Prisma { createdAt?: SortOrder updatedAt?: SortOrder } - export type JsonWithAggregatesFilter<$PrismaModel = never> = - | PatchUndefined< - Either>, Exclude>, 'path'>>, - Required> - > - | OptionalFlat>, '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 BoolFilter<$PrismaModel = never> = { - equals?: boolean | BooleanFieldRefInput<$PrismaModel> - not?: NestedBoolFilter<$PrismaModel> | boolean - } export type EventSignupListRelationFilter = { every?: EventSignupWhereInput @@ -11510,14 +18918,6 @@ export namespace Prisma { reminderOffsetMinutes?: SortOrder } - export type BoolWithAggregatesFilter<$PrismaModel = never> = { - equals?: boolean | BooleanFieldRefInput<$PrismaModel> - not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedBoolFilter<$PrismaModel> - _max?: NestedBoolFilter<$PrismaModel> - } - export type EventRelationFilter = { is?: EventWhereInput isNot?: EventWhereInput @@ -11555,6 +18955,169 @@ export namespace Prisma { 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 + sortOrder?: SortOrder + } + + export type RegisterFormFieldAvgOrderByAggregateInput = { + sortOrder?: SortOrder + } + + export type RegisterFormFieldMaxOrderByAggregateInput = { + id?: SortOrder + formId?: SortOrder + label?: SortOrder + type?: SortOrder + required?: SortOrder + sortOrder?: SortOrder + } + + export type RegisterFormFieldMinOrderByAggregateInput = { + id?: SortOrder + formId?: SortOrder + label?: SortOrder + type?: SortOrder + required?: SortOrder + sortOrder?: SortOrder + } + + export type RegisterFormFieldSumOrderByAggregateInput = { + sortOrder?: SortOrder + } + + export type RegisterApplicationAnswerListRelationFilter = { + every?: RegisterApplicationAnswerWhereInput + some?: RegisterApplicationAnswerWhereInput + none?: RegisterApplicationAnswerWhereInput + } + + export type RegisterApplicationAnswerOrderByRelationAggregateInput = { + _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 StringFieldUpdateOperationsInput = { set?: string } @@ -11583,6 +19146,19 @@ export namespace Prisma { 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 @@ -11605,10 +19181,6 @@ export namespace Prisma { connect?: EventSignupWhereUniqueInput | EventSignupWhereUniqueInput[] } - export type BoolFieldUpdateOperationsInput = { - set?: boolean - } - export type EventSignupUpdateManyWithoutEventNestedInput = { create?: XOR | EventSignupCreateWithoutEventInput[] | EventSignupUncheckedCreateWithoutEventInput[] connectOrCreate?: EventSignupCreateOrConnectWithoutEventInput | EventSignupCreateOrConnectWithoutEventInput[] @@ -11651,6 +19223,183 @@ export namespace Prisma { update?: XOR, EventUncheckedUpdateWithoutSignupsInput> } + export type RegisterFormCreatenotifyRoleIdsInput = { + set: string[] + } + + export type RegisterFormFieldCreateNestedManyWithoutFormInput = { + create?: XOR | RegisterFormFieldCreateWithoutFormInput[] | RegisterFormFieldUncheckedCreateWithoutFormInput[] + connectOrCreate?: RegisterFormFieldCreateOrConnectWithoutFormInput | RegisterFormFieldCreateOrConnectWithoutFormInput[] + createMany?: RegisterFormFieldCreateManyFormInputEnvelope + connect?: RegisterFormFieldWhereUniqueInput | RegisterFormFieldWhereUniqueInput[] + } + + export type RegisterApplicationCreateNestedManyWithoutFormInput = { + create?: XOR | RegisterApplicationCreateWithoutFormInput[] | RegisterApplicationUncheckedCreateWithoutFormInput[] + connectOrCreate?: RegisterApplicationCreateOrConnectWithoutFormInput | RegisterApplicationCreateOrConnectWithoutFormInput[] + createMany?: RegisterApplicationCreateManyFormInputEnvelope + connect?: RegisterApplicationWhereUniqueInput | RegisterApplicationWhereUniqueInput[] + } + + export type RegisterFormFieldUncheckedCreateNestedManyWithoutFormInput = { + create?: XOR | RegisterFormFieldCreateWithoutFormInput[] | RegisterFormFieldUncheckedCreateWithoutFormInput[] + connectOrCreate?: RegisterFormFieldCreateOrConnectWithoutFormInput | RegisterFormFieldCreateOrConnectWithoutFormInput[] + createMany?: RegisterFormFieldCreateManyFormInputEnvelope + connect?: RegisterFormFieldWhereUniqueInput | RegisterFormFieldWhereUniqueInput[] + } + + export type RegisterApplicationUncheckedCreateNestedManyWithoutFormInput = { + create?: XOR | 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[] + 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[] + 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[] + 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[] + 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 + connectOrCreate?: RegisterFormCreateOrConnectWithoutFieldsInput + connect?: RegisterFormWhereUniqueInput + } + + export type RegisterFormUpdateOneRequiredWithoutFieldsNestedInput = { + create?: XOR + connectOrCreate?: RegisterFormCreateOrConnectWithoutFieldsInput + upsert?: RegisterFormUpsertWithoutFieldsInput + connect?: RegisterFormWhereUniqueInput + update?: XOR, RegisterFormUncheckedUpdateWithoutFieldsInput> + } + + export type RegisterApplicationAnswerCreateNestedManyWithoutApplicationInput = { + create?: XOR | RegisterApplicationAnswerCreateWithoutApplicationInput[] | RegisterApplicationAnswerUncheckedCreateWithoutApplicationInput[] + connectOrCreate?: RegisterApplicationAnswerCreateOrConnectWithoutApplicationInput | RegisterApplicationAnswerCreateOrConnectWithoutApplicationInput[] + createMany?: RegisterApplicationAnswerCreateManyApplicationInputEnvelope + connect?: RegisterApplicationAnswerWhereUniqueInput | RegisterApplicationAnswerWhereUniqueInput[] + } + + export type RegisterFormCreateNestedOneWithoutApplicationsInput = { + create?: XOR + connectOrCreate?: RegisterFormCreateOrConnectWithoutApplicationsInput + connect?: RegisterFormWhereUniqueInput + } + + export type RegisterApplicationAnswerUncheckedCreateNestedManyWithoutApplicationInput = { + create?: XOR | RegisterApplicationAnswerCreateWithoutApplicationInput[] | RegisterApplicationAnswerUncheckedCreateWithoutApplicationInput[] + connectOrCreate?: RegisterApplicationAnswerCreateOrConnectWithoutApplicationInput | RegisterApplicationAnswerCreateOrConnectWithoutApplicationInput[] + createMany?: RegisterApplicationAnswerCreateManyApplicationInputEnvelope + connect?: RegisterApplicationAnswerWhereUniqueInput | RegisterApplicationAnswerWhereUniqueInput[] + } + + export type RegisterApplicationAnswerUpdateManyWithoutApplicationNestedInput = { + create?: XOR | 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 RegisterFormUpdateOneRequiredWithoutApplicationsNestedInput = { + create?: XOR + connectOrCreate?: RegisterFormCreateOrConnectWithoutApplicationsInput + upsert?: RegisterFormUpsertWithoutApplicationsInput + connect?: RegisterFormWhereUniqueInput + update?: XOR, RegisterFormUncheckedUpdateWithoutApplicationsInput> + } + + export type RegisterApplicationAnswerUncheckedUpdateManyWithoutApplicationNestedInput = { + create?: XOR | 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 RegisterApplicationCreateNestedOneWithoutAnswersInput = { + create?: XOR + connectOrCreate?: RegisterApplicationCreateOrConnectWithoutAnswersInput + connect?: RegisterApplicationWhereUniqueInput + } + + export type RegisterApplicationUpdateOneRequiredWithoutAnswersNestedInput = { + create?: XOR + connectOrCreate?: RegisterApplicationCreateOrConnectWithoutAnswersInput + upsert?: RegisterApplicationUpsertWithoutAnswersInput + connect?: RegisterApplicationWhereUniqueInput + update?: XOR, RegisterApplicationUncheckedUpdateWithoutAnswersInput> + } + export type NestedStringFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] | ListStringFieldRefInput<$PrismaModel> @@ -11795,6 +19544,17 @@ export namespace Prisma { _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> @@ -11822,17 +19582,6 @@ export namespace Prisma { not?: NestedFloatFilter<$PrismaModel> | number } - 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 NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null @@ -11847,6 +19596,41 @@ export namespace Prisma { _max?: NestedDateTimeNullableFilter<$PrismaModel> } + export type NestedBoolFilter<$PrismaModel = never> = { + equals?: boolean | BooleanFieldRefInput<$PrismaModel> + not?: NestedBoolFilter<$PrismaModel> | boolean + } + export type NestedJsonFilter<$PrismaModel = never> = + | PatchUndefined< + Either>, Exclude>, 'path'>>, + Required> + > + | OptionalFlat>, '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 @@ -11873,41 +19657,6 @@ export namespace Prisma { gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatNullableFilter<$PrismaModel> | number | null } - export type NestedJsonFilter<$PrismaModel = never> = - | PatchUndefined< - Either>, Exclude>, 'path'>>, - Required> - > - | OptionalFlat>, '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 NestedBoolFilter<$PrismaModel = never> = { - equals?: boolean | BooleanFieldRefInput<$PrismaModel> - not?: NestedBoolFilter<$PrismaModel> | boolean - } - - export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = { - equals?: boolean | BooleanFieldRefInput<$PrismaModel> - not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean - _count?: NestedIntFilter<$PrismaModel> - _min?: NestedBoolFilter<$PrismaModel> - _max?: NestedBoolFilter<$PrismaModel> - } export type EventSignupCreateWithoutEventInput = { id?: string @@ -12047,6 +19796,366 @@ export namespace Prisma { updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } + export type RegisterFormFieldCreateWithoutFormInput = { + id?: string + label: string + type: string + required?: boolean + sortOrder?: number + } + + export type RegisterFormFieldUncheckedCreateWithoutFormInput = { + id?: string + label: string + type: string + required?: boolean + sortOrder?: number + } + + export type RegisterFormFieldCreateOrConnectWithoutFormInput = { + where: RegisterFormFieldWhereUniqueInput + create: XOR + } + + 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 + } + + export type RegisterApplicationUncheckedCreateWithoutFormInput = { + id?: string + guildId: string + userId: string + status?: string + reviewedBy?: string | null + createdAt?: Date | string + updatedAt?: Date | string + answers?: RegisterApplicationAnswerUncheckedCreateNestedManyWithoutApplicationInput + } + + export type RegisterApplicationCreateOrConnectWithoutFormInput = { + where: RegisterApplicationWhereUniqueInput + create: XOR + } + + export type RegisterApplicationCreateManyFormInputEnvelope = { + data: RegisterApplicationCreateManyFormInput | RegisterApplicationCreateManyFormInput[] + skipDuplicates?: boolean + } + + export type RegisterFormFieldUpsertWithWhereUniqueWithoutFormInput = { + where: RegisterFormFieldWhereUniqueInput + update: XOR + create: XOR + } + + export type RegisterFormFieldUpdateWithWhereUniqueWithoutFormInput = { + where: RegisterFormFieldWhereUniqueInput + data: XOR + } + + export type RegisterFormFieldUpdateManyWithWhereWithoutFormInput = { + where: RegisterFormFieldScalarWhereInput + data: XOR + } + + 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 + sortOrder?: IntFilter<"RegisterFormField"> | number + } + + export type RegisterApplicationUpsertWithWhereUniqueWithoutFormInput = { + where: RegisterApplicationWhereUniqueInput + update: XOR + create: XOR + } + + export type RegisterApplicationUpdateWithWhereUniqueWithoutFormInput = { + where: RegisterApplicationWhereUniqueInput + data: XOR + } + + export type RegisterApplicationUpdateManyWithWhereWithoutFormInput = { + where: RegisterApplicationScalarWhereInput + data: XOR + } + + 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 + } + + export type RegisterFormUpsertWithoutFieldsInput = { + update: XOR + create: XOR + where?: RegisterFormWhereInput + } + + export type RegisterFormUpdateToOneWithWhereWithoutFieldsInput = { + where?: RegisterFormWhereInput + data: XOR + } + + 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 + } + + export type RegisterApplicationAnswerCreateManyApplicationInputEnvelope = { + data: RegisterApplicationAnswerCreateManyApplicationInput | RegisterApplicationAnswerCreateManyApplicationInput[] + 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 + } + + export type RegisterApplicationAnswerUpsertWithWhereUniqueWithoutApplicationInput = { + where: RegisterApplicationAnswerWhereUniqueInput + update: XOR + create: XOR + } + + export type RegisterApplicationAnswerUpdateWithWhereUniqueWithoutApplicationInput = { + where: RegisterApplicationAnswerWhereUniqueInput + data: XOR + } + + export type RegisterApplicationAnswerUpdateManyWithWhereWithoutApplicationInput = { + where: RegisterApplicationAnswerScalarWhereInput + data: XOR + } + + 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 RegisterFormUpsertWithoutApplicationsInput = { + update: XOR + create: XOR + where?: RegisterFormWhereInput + } + + export type RegisterFormUpdateToOneWithWhereWithoutApplicationsInput = { + where?: RegisterFormWhereInput + data: XOR + } + + 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 + form: RegisterFormCreateNestedOneWithoutApplicationsInput + } + + export type RegisterApplicationUncheckedCreateWithoutAnswersInput = { + id?: string + guildId: string + userId: string + formId: string + status?: string + reviewedBy?: string | null + createdAt?: Date | string + updatedAt?: Date | string + } + + export type RegisterApplicationCreateOrConnectWithoutAnswersInput = { + where: RegisterApplicationWhereUniqueInput + create: XOR + } + + export type RegisterApplicationUpsertWithoutAnswersInput = { + update: XOR + create: XOR + where?: RegisterApplicationWhereInput + } + + export type RegisterApplicationUpdateToOneWithWhereWithoutAnswersInput = { + where?: RegisterApplicationWhereInput + data: XOR + } + + 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 + 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 + } + export type EventSignupCreateManyEventInput = { id?: string guildId: string @@ -12079,6 +20188,104 @@ export namespace Prisma { canceledAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } + export type RegisterFormFieldCreateManyFormInput = { + id?: string + label: string + type: string + required?: boolean + sortOrder?: 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 + sortOrder?: IntFieldUpdateOperationsInput | number + } + + export type RegisterFormFieldUncheckedUpdateWithoutFormInput = { + id?: StringFieldUpdateOperationsInput | string + label?: StringFieldUpdateOperationsInput | string + type?: StringFieldUpdateOperationsInput | string + required?: BoolFieldUpdateOperationsInput | boolean + sortOrder?: IntFieldUpdateOperationsInput | number + } + + export type RegisterFormFieldUncheckedUpdateManyWithoutFormInput = { + id?: StringFieldUpdateOperationsInput | string + label?: StringFieldUpdateOperationsInput | string + type?: StringFieldUpdateOperationsInput | string + required?: BoolFieldUpdateOperationsInput | boolean + sortOrder?: 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 + } + + 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 + } + + 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 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 + } + /** @@ -12088,6 +20295,14 @@ export namespace Prisma { * @deprecated Use EventCountOutputTypeDefaultArgs instead */ export type EventCountOutputTypeArgs = EventCountOutputTypeDefaultArgs + /** + * @deprecated Use RegisterFormCountOutputTypeDefaultArgs instead + */ + export type RegisterFormCountOutputTypeArgs = RegisterFormCountOutputTypeDefaultArgs + /** + * @deprecated Use RegisterApplicationCountOutputTypeDefaultArgs instead + */ + export type RegisterApplicationCountOutputTypeArgs = RegisterApplicationCountOutputTypeDefaultArgs /** * @deprecated Use GuildSettingsDefaultArgs instead */ @@ -12096,6 +20311,14 @@ export namespace Prisma { * @deprecated Use TicketDefaultArgs instead */ export type TicketArgs = TicketDefaultArgs + /** + * @deprecated Use TicketAutomationRuleDefaultArgs instead + */ + export type TicketAutomationRuleArgs = TicketAutomationRuleDefaultArgs + /** + * @deprecated Use KnowledgeBaseArticleDefaultArgs instead + */ + export type KnowledgeBaseArticleArgs = KnowledgeBaseArticleDefaultArgs /** * @deprecated Use LevelDefaultArgs instead */ @@ -12120,6 +20343,22 @@ export namespace Prisma { * @deprecated Use EventSignupDefaultArgs instead */ export type EventSignupArgs = EventSignupDefaultArgs + /** + * @deprecated Use RegisterFormDefaultArgs instead + */ + export type RegisterFormArgs = RegisterFormDefaultArgs + /** + * @deprecated Use RegisterFormFieldDefaultArgs instead + */ + export type RegisterFormFieldArgs = RegisterFormFieldDefaultArgs + /** + * @deprecated Use RegisterApplicationDefaultArgs instead + */ + export type RegisterApplicationArgs = RegisterApplicationDefaultArgs + /** + * @deprecated Use RegisterApplicationAnswerDefaultArgs instead + */ + export type RegisterApplicationAnswerArgs = RegisterApplicationAnswerDefaultArgs /** * Batch Payload for updateMany & deleteMany & createMany diff --git a/node_modules/.prisma/client/index.js b/node_modules/.prisma/client/index.js index 22a5fa0..31ea8e0 100644 --- a/node_modules/.prisma/client/index.js +++ b/node_modules/.prisma/client/index.js @@ -110,6 +110,8 @@ exports.Prisma.GuildSettingsScalarFieldEnum = { reactionRolesEnabled: 'reactionRolesEnabled', reactionRolesConfig: 'reactionRolesConfig', eventsEnabled: 'eventsEnabled', + registerEnabled: 'registerEnabled', + registerConfig: 'registerConfig', supportRoleId: 'supportRoleId', updatedAt: 'updatedAt', createdAt: 'createdAt' @@ -126,6 +128,30 @@ exports.Prisma.TicketScalarFieldEnum = { status: 'status', claimedBy: 'claimedBy', transcript: 'transcript', + firstClaimAt: 'firstClaimAt', + firstResponseAt: 'firstResponseAt', + kbSuggestionSentAt: 'kbSuggestionSentAt', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +}; + +exports.Prisma.TicketAutomationRuleScalarFieldEnum = { + id: 'id', + guildId: 'guildId', + name: 'name', + condition: 'condition', + action: 'action', + active: 'active', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +}; + +exports.Prisma.KnowledgeBaseArticleScalarFieldEnum = { + id: 'id', + guildId: 'guildId', + title: 'title', + keywords: 'keywords', + content: 'content', createdAt: 'createdAt', updatedAt: 'updatedAt' }; @@ -197,6 +223,45 @@ exports.Prisma.EventSignupScalarFieldEnum = { canceledAt: 'canceledAt' }; +exports.Prisma.RegisterFormScalarFieldEnum = { + id: 'id', + guildId: 'guildId', + name: 'name', + description: 'description', + reviewChannelId: 'reviewChannelId', + notifyRoleIds: 'notifyRoleIds', + isActive: 'isActive', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +}; + +exports.Prisma.RegisterFormFieldScalarFieldEnum = { + id: 'id', + formId: 'formId', + label: 'label', + type: 'type', + required: 'required', + sortOrder: 'sortOrder' +}; + +exports.Prisma.RegisterApplicationScalarFieldEnum = { + id: 'id', + guildId: 'guildId', + userId: 'userId', + formId: 'formId', + status: 'status', + reviewedBy: 'reviewedBy', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +}; + +exports.Prisma.RegisterApplicationAnswerScalarFieldEnum = { + id: 'id', + applicationId: 'applicationId', + fieldId: 'fieldId', + value: 'value' +}; + exports.Prisma.SortOrder = { asc: 'asc', desc: 'desc' @@ -231,12 +296,18 @@ exports.Prisma.NullsOrder = { exports.Prisma.ModelName = { GuildSettings: 'GuildSettings', Ticket: 'Ticket', + TicketAutomationRule: 'TicketAutomationRule', + KnowledgeBaseArticle: 'KnowledgeBaseArticle', Level: 'Level', TicketSupportSession: 'TicketSupportSession', Birthday: 'Birthday', ReactionRoleSet: 'ReactionRoleSet', Event: 'Event', - EventSignup: 'EventSignup' + EventSignup: 'EventSignup', + RegisterForm: 'RegisterForm', + RegisterFormField: 'RegisterFormField', + RegisterApplication: 'RegisterApplication', + RegisterApplicationAnswer: 'RegisterApplicationAnswer' }; /** * Create the Client @@ -285,8 +356,8 @@ const config = { } } }, - "inlineSchema": "generator client {\n provider = \"prisma-client-js\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n}\n\nmodel GuildSettings {\n guildId String @id\n welcomeChannelId String?\n logChannelId String?\n automodEnabled Boolean?\n automodConfig Json?\n levelingEnabled Boolean?\n ticketsEnabled Boolean?\n musicEnabled Boolean?\n statuspageEnabled Boolean?\n statuspageConfig Json?\n dynamicVoiceEnabled Boolean?\n dynamicVoiceConfig Json?\n supportLoginConfig Json?\n birthdayEnabled Boolean?\n birthdayConfig Json?\n reactionRolesEnabled Boolean?\n reactionRolesConfig Json?\n eventsEnabled Boolean?\n supportRoleId String?\n updatedAt DateTime @updatedAt\n createdAt DateTime @default(now())\n}\n\nmodel Ticket {\n id String @id @default(cuid())\n ticketNumber Int @default(autoincrement())\n userId String\n channelId String\n guildId String\n topic String?\n priority String @default(\"normal\")\n status String\n claimedBy String?\n transcript String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n\nmodel Level {\n id String @id @default(cuid())\n userId String\n guildId String\n xp Int @default(0)\n level Int @default(0)\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@unique([userId, guildId], name: \"userId_guildId\")\n}\n\nmodel TicketSupportSession {\n id String @id @default(cuid())\n guildId String\n userId String\n roleId String\n startedAt DateTime @default(now())\n endedAt DateTime?\n durationSeconds Int?\n\n @@index([guildId, userId, endedAt])\n}\n\nmodel Birthday {\n id String @id @default(cuid())\n userId String\n guildId String\n birthDate String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@unique([userId, guildId], name: \"birthday_user_guild\")\n @@index([guildId])\n}\n\nmodel ReactionRoleSet {\n id String @id @default(cuid())\n guildId String\n channelId String\n messageId String?\n title String?\n description String?\n entries Json\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@index([guildId])\n @@index([guildId, messageId])\n}\n\nmodel Event {\n id String @id @default(cuid())\n guildId String\n title String\n description String?\n channelId String\n startTime DateTime\n repeatType String @default(\"none\")\n repeatConfig Json?\n reminderOffsetMinutes Int @default(60)\n roleId String?\n isActive Boolean @default(true)\n lastReminderAt DateTime?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n signups EventSignup[]\n\n @@index([guildId])\n @@index([guildId, startTime])\n}\n\nmodel EventSignup {\n id String @id @default(cuid())\n eventId String\n guildId String\n userId String\n createdAt DateTime @default(now())\n canceledAt DateTime?\n\n event Event @relation(fields: [eventId], references: [id])\n\n @@unique([eventId, userId])\n @@index([guildId, eventId])\n}\n", - "inlineSchemaHash": "568c90a02123b5936efbb0bcba9292354eae27a5022567e88b12cb219e10d706", + "inlineSchema": "generator client {\n provider = \"prisma-client-js\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n}\n\nmodel GuildSettings {\n guildId String @id\n welcomeChannelId String?\n logChannelId String?\n automodEnabled Boolean?\n automodConfig Json?\n levelingEnabled Boolean?\n ticketsEnabled Boolean?\n musicEnabled Boolean?\n statuspageEnabled Boolean?\n statuspageConfig Json?\n dynamicVoiceEnabled Boolean?\n dynamicVoiceConfig Json?\n supportLoginConfig Json?\n birthdayEnabled Boolean?\n birthdayConfig Json?\n reactionRolesEnabled Boolean?\n reactionRolesConfig Json?\n eventsEnabled Boolean?\n registerEnabled Boolean?\n registerConfig Json?\n supportRoleId String?\n updatedAt DateTime @updatedAt\n createdAt DateTime @default(now())\n}\n\nmodel Ticket {\n id String @id @default(cuid())\n ticketNumber Int @default(autoincrement())\n userId String\n channelId String\n guildId String\n topic String?\n priority String @default(\"normal\")\n status String @default(\"neu\")\n claimedBy String?\n transcript String?\n firstClaimAt DateTime?\n firstResponseAt DateTime?\n kbSuggestionSentAt DateTime?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n\nmodel TicketAutomationRule {\n id String @id @default(cuid())\n guildId String\n name String\n condition Json\n action Json\n active Boolean @default(true)\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@index([guildId, active])\n}\n\nmodel KnowledgeBaseArticle {\n id String @id @default(cuid())\n guildId String\n title String\n keywords String[]\n content String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@index([guildId])\n}\n\nmodel Level {\n id String @id @default(cuid())\n userId String\n guildId String\n xp Int @default(0)\n level Int @default(0)\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@unique([userId, guildId], name: \"userId_guildId\")\n}\n\nmodel TicketSupportSession {\n id String @id @default(cuid())\n guildId String\n userId String\n roleId String\n startedAt DateTime @default(now())\n endedAt DateTime?\n durationSeconds Int?\n\n @@index([guildId, userId, endedAt])\n}\n\nmodel Birthday {\n id String @id @default(cuid())\n userId String\n guildId String\n birthDate String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@unique([userId, guildId], name: \"birthday_user_guild\")\n @@index([guildId])\n}\n\nmodel ReactionRoleSet {\n id String @id @default(cuid())\n guildId String\n channelId String\n messageId String?\n title String?\n description String?\n entries Json\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@index([guildId])\n @@index([guildId, messageId])\n}\n\nmodel Event {\n id String @id @default(cuid())\n guildId String\n title String\n description String?\n channelId String\n startTime DateTime\n repeatType String @default(\"none\")\n repeatConfig Json?\n reminderOffsetMinutes Int @default(60)\n roleId String?\n isActive Boolean @default(true)\n lastReminderAt DateTime?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n signups EventSignup[]\n\n @@index([guildId])\n @@index([guildId, startTime])\n}\n\nmodel EventSignup {\n id String @id @default(cuid())\n eventId String\n guildId String\n userId String\n createdAt DateTime @default(now())\n canceledAt DateTime?\n\n event Event @relation(fields: [eventId], references: [id])\n\n @@unique([eventId, userId])\n @@index([guildId, eventId])\n}\n\nmodel RegisterForm {\n id String @id @default(cuid())\n guildId String\n name String\n description String?\n reviewChannelId String?\n notifyRoleIds String[]\n isActive Boolean @default(true)\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n fields RegisterFormField[]\n applications RegisterApplication[]\n\n @@index([guildId, isActive])\n}\n\nmodel RegisterFormField {\n id String @id @default(cuid())\n formId String\n label String\n type String\n required Boolean @default(false)\n sortOrder Int @default(0)\n\n form RegisterForm @relation(fields: [formId], references: [id], onDelete: Cascade)\n}\n\nmodel RegisterApplication {\n id String @id @default(cuid())\n guildId String\n userId String\n formId String\n status String @default(\"pending\")\n reviewedBy String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n answers RegisterApplicationAnswer[]\n\n form RegisterForm @relation(fields: [formId], references: [id])\n\n @@index([guildId, formId, status])\n}\n\nmodel RegisterApplicationAnswer {\n id String @id @default(cuid())\n applicationId String\n fieldId String\n value String\n\n application RegisterApplication @relation(fields: [applicationId], references: [id], onDelete: Cascade)\n}\n", + "inlineSchemaHash": "756d8043e279c17e7e79a520ef58da97a177f9457674e26c7683609ad3005fb0", "copyEngine": true } @@ -307,7 +378,7 @@ if (!fs.existsSync(path.join(__dirname, 'schema.prisma'))) { config.isBundled = true } -config.runtimeDataModel = JSON.parse("{\"models\":{\"GuildSettings\":{\"dbName\":null,\"fields\":[{\"name\":\"guildId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"welcomeChannelId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"logChannelId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"automodEnabled\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"automodConfig\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"levelingEnabled\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"ticketsEnabled\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"musicEnabled\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"statuspageEnabled\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"statuspageConfig\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"dynamicVoiceEnabled\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"dynamicVoiceConfig\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"supportLoginConfig\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"birthdayEnabled\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"birthdayConfig\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reactionRolesEnabled\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reactionRolesConfig\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"eventsEnabled\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"supportRoleId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Ticket\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"ticketNumber\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"default\":{\"name\":\"autoincrement\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"channelId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"guildId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"topic\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"priority\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"normal\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"status\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"claimedBy\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"transcript\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Level\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"guildId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"xp\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"level\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[[\"userId\",\"guildId\"]],\"uniqueIndexes\":[{\"name\":\"userId_guildId\",\"fields\":[\"userId\",\"guildId\"]}],\"isGenerated\":false},\"TicketSupportSession\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"guildId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"roleId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"startedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"endedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"durationSeconds\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Birthday\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"guildId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"birthDate\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[[\"userId\",\"guildId\"]],\"uniqueIndexes\":[{\"name\":\"birthday_user_guild\",\"fields\":[\"userId\",\"guildId\"]}],\"isGenerated\":false},\"ReactionRoleSet\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"guildId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"channelId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"messageId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"title\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"description\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"entries\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Event\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"guildId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"title\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"description\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"channelId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"startTime\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"repeatType\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"none\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"repeatConfig\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reminderOffsetMinutes\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"default\":60,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"roleId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isActive\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"lastReminderAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"signups\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"EventSignup\",\"relationName\":\"EventToEventSignup\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"EventSignup\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"eventId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"guildId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"canceledAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"event\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Event\",\"relationName\":\"EventToEventSignup\",\"relationFromFields\":[\"eventId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"eventId\",\"userId\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"eventId\",\"userId\"]}],\"isGenerated\":false}},\"enums\":{},\"types\":{}}") +config.runtimeDataModel = JSON.parse("{\"models\":{\"GuildSettings\":{\"dbName\":null,\"fields\":[{\"name\":\"guildId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"welcomeChannelId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"logChannelId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"automodEnabled\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"automodConfig\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"levelingEnabled\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"ticketsEnabled\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"musicEnabled\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"statuspageEnabled\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"statuspageConfig\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"dynamicVoiceEnabled\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"dynamicVoiceConfig\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"supportLoginConfig\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"birthdayEnabled\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"birthdayConfig\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reactionRolesEnabled\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reactionRolesConfig\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"eventsEnabled\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"registerEnabled\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"registerConfig\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"supportRoleId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Ticket\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"ticketNumber\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"default\":{\"name\":\"autoincrement\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"channelId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"guildId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"topic\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"priority\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"normal\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"status\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"neu\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"claimedBy\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"transcript\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"firstClaimAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"firstResponseAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"kbSuggestionSentAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"TicketAutomationRule\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"guildId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"condition\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"action\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"active\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"KnowledgeBaseArticle\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"guildId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"title\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"keywords\",\"kind\":\"scalar\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"content\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Level\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"guildId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"xp\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"level\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[[\"userId\",\"guildId\"]],\"uniqueIndexes\":[{\"name\":\"userId_guildId\",\"fields\":[\"userId\",\"guildId\"]}],\"isGenerated\":false},\"TicketSupportSession\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"guildId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"roleId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"startedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"endedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"durationSeconds\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Birthday\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"guildId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"birthDate\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[[\"userId\",\"guildId\"]],\"uniqueIndexes\":[{\"name\":\"birthday_user_guild\",\"fields\":[\"userId\",\"guildId\"]}],\"isGenerated\":false},\"ReactionRoleSet\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"guildId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"channelId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"messageId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"title\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"description\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"entries\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Event\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"guildId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"title\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"description\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"channelId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"startTime\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"repeatType\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"none\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"repeatConfig\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reminderOffsetMinutes\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"default\":60,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"roleId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isActive\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"lastReminderAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"signups\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"EventSignup\",\"relationName\":\"EventToEventSignup\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"EventSignup\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"eventId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"guildId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"canceledAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"event\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Event\",\"relationName\":\"EventToEventSignup\",\"relationFromFields\":[\"eventId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"eventId\",\"userId\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"eventId\",\"userId\"]}],\"isGenerated\":false},\"RegisterForm\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"guildId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"description\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reviewChannelId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"notifyRoleIds\",\"kind\":\"scalar\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isActive\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"fields\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"RegisterFormField\",\"relationName\":\"RegisterFormToRegisterFormField\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"applications\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"RegisterApplication\",\"relationName\":\"RegisterApplicationToRegisterForm\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"RegisterFormField\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"formId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"label\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"type\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"required\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sortOrder\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"default\":0,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"form\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"RegisterForm\",\"relationName\":\"RegisterFormToRegisterFormField\",\"relationFromFields\":[\"formId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"RegisterApplication\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"guildId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"formId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"status\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":\"pending\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reviewedBy\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"answers\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"RegisterApplicationAnswer\",\"relationName\":\"RegisterApplicationToRegisterApplicationAnswer\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"form\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"RegisterForm\",\"relationName\":\"RegisterApplicationToRegisterForm\",\"relationFromFields\":[\"formId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"RegisterApplicationAnswer\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"cuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"applicationId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fieldId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"value\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"application\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"RegisterApplication\",\"relationName\":\"RegisterApplicationToRegisterApplicationAnswer\",\"relationFromFields\":[\"applicationId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false}},\"enums\":{},\"types\":{}}") defineDmmfProperty(exports.Prisma, config.runtimeDataModel) config.engineWasm = undefined diff --git a/node_modules/.prisma/client/wasm.js b/node_modules/.prisma/client/wasm.js index ecb40d9..4768741 100644 --- a/node_modules/.prisma/client/wasm.js +++ b/node_modules/.prisma/client/wasm.js @@ -141,6 +141,8 @@ exports.Prisma.GuildSettingsScalarFieldEnum = { reactionRolesEnabled: 'reactionRolesEnabled', reactionRolesConfig: 'reactionRolesConfig', eventsEnabled: 'eventsEnabled', + registerEnabled: 'registerEnabled', + registerConfig: 'registerConfig', supportRoleId: 'supportRoleId', updatedAt: 'updatedAt', createdAt: 'createdAt' @@ -157,6 +159,30 @@ exports.Prisma.TicketScalarFieldEnum = { status: 'status', claimedBy: 'claimedBy', transcript: 'transcript', + firstClaimAt: 'firstClaimAt', + firstResponseAt: 'firstResponseAt', + kbSuggestionSentAt: 'kbSuggestionSentAt', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +}; + +exports.Prisma.TicketAutomationRuleScalarFieldEnum = { + id: 'id', + guildId: 'guildId', + name: 'name', + condition: 'condition', + action: 'action', + active: 'active', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +}; + +exports.Prisma.KnowledgeBaseArticleScalarFieldEnum = { + id: 'id', + guildId: 'guildId', + title: 'title', + keywords: 'keywords', + content: 'content', createdAt: 'createdAt', updatedAt: 'updatedAt' }; @@ -228,6 +254,45 @@ exports.Prisma.EventSignupScalarFieldEnum = { canceledAt: 'canceledAt' }; +exports.Prisma.RegisterFormScalarFieldEnum = { + id: 'id', + guildId: 'guildId', + name: 'name', + description: 'description', + reviewChannelId: 'reviewChannelId', + notifyRoleIds: 'notifyRoleIds', + isActive: 'isActive', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +}; + +exports.Prisma.RegisterFormFieldScalarFieldEnum = { + id: 'id', + formId: 'formId', + label: 'label', + type: 'type', + required: 'required', + sortOrder: 'sortOrder' +}; + +exports.Prisma.RegisterApplicationScalarFieldEnum = { + id: 'id', + guildId: 'guildId', + userId: 'userId', + formId: 'formId', + status: 'status', + reviewedBy: 'reviewedBy', + createdAt: 'createdAt', + updatedAt: 'updatedAt' +}; + +exports.Prisma.RegisterApplicationAnswerScalarFieldEnum = { + id: 'id', + applicationId: 'applicationId', + fieldId: 'fieldId', + value: 'value' +}; + exports.Prisma.SortOrder = { asc: 'asc', desc: 'desc' @@ -262,12 +327,18 @@ exports.Prisma.NullsOrder = { exports.Prisma.ModelName = { GuildSettings: 'GuildSettings', Ticket: 'Ticket', + TicketAutomationRule: 'TicketAutomationRule', + KnowledgeBaseArticle: 'KnowledgeBaseArticle', Level: 'Level', TicketSupportSession: 'TicketSupportSession', Birthday: 'Birthday', ReactionRoleSet: 'ReactionRoleSet', Event: 'Event', - EventSignup: 'EventSignup' + EventSignup: 'EventSignup', + RegisterForm: 'RegisterForm', + RegisterFormField: 'RegisterFormField', + RegisterApplication: 'RegisterApplication', + RegisterApplicationAnswer: 'RegisterApplicationAnswer' }; /** diff --git a/src/web/routes/dashboard.ts b/src/web/routes/dashboard.ts index bd430b1..acbaea4 100644 --- a/src/web/routes/dashboard.ts +++ b/src/web/routes/dashboard.ts @@ -1,4 +1,4 @@ -import { Router } from 'express'; + import { Router } from 'express'; const router = Router(); @@ -42,20 +42,21 @@ router.get('/', (req, res) => { const sidebar = `