diff --git a/lib/generated/prisma/edge.js b/lib/generated/prisma/edge.js index acb8276..ccfda00 100644 --- a/lib/generated/prisma/edge.js +++ b/lib/generated/prisma/edge.js @@ -97,7 +97,8 @@ exports.Prisma.ApplicationScalarFieldEnum = { icon: 'icon', publicURL: 'publicURL', localURL: 'localURL', - createdAt: 'createdAt' + createdAt: 'createdAt', + online: 'online' }; exports.Prisma.ServerScalarFieldEnum = { @@ -108,6 +109,11 @@ exports.Prisma.ServerScalarFieldEnum = { url: 'url' }; +exports.Prisma.SettingsScalarFieldEnum = { + id: 'id', + uptime_checks: 'uptime_checks' +}; + exports.Prisma.SortOrder = { asc: 'asc', desc: 'desc' @@ -126,7 +132,8 @@ exports.Prisma.NullsOrder = { exports.Prisma.ModelName = { application: 'application', - server: 'server' + server: 'server', + settings: 'settings' }; /** * Create the Client @@ -175,13 +182,13 @@ const config = { } } }, - "inlineSchema": "// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\n// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?\n// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init\n\ngenerator client {\n provider = \"prisma-client-js\"\n output = \"../lib/generated/prisma\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n}\n\nmodel application {\n id Int @id @default(autoincrement())\n serverId Int @default(1)\n name String\n description String?\n icon String\n publicURL String\n localURL String?\n createdAt DateTime @default(now())\n}\n\nmodel server {\n id Int @id @default(autoincrement())\n name String\n os String?\n ip String?\n url String?\n}\n", - "inlineSchemaHash": "f689d07c314e551dbb544b300c2eaf202c8b2a3439248ed3dbdc3eb508f94dc1", + "inlineSchema": "// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\n// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?\n// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init\n\ngenerator client {\n provider = \"prisma-client-js\"\n output = \"../lib/generated/prisma\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n}\n\nmodel application {\n id Int @id @default(autoincrement())\n serverId Int @default(1)\n name String\n description String?\n icon String\n publicURL String\n localURL String?\n createdAt DateTime @default(now())\n online Boolean @default(true)\n}\n\nmodel server {\n id Int @id @default(autoincrement())\n name String\n os String?\n ip String?\n url String?\n}\n\nmodel settings {\n id Int @id @default(autoincrement())\n uptime_checks Boolean @default(true)\n}\n", + "inlineSchemaHash": "62c035f366c2e73c52f566a41235614513c487e30d2e4c5b51a8be7171ffe25c", "copyEngine": true } config.dirname = '/' -config.runtimeDataModel = JSON.parse("{\"models\":{\"application\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":{\"name\":\"autoincrement\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"serverId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":1,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"description\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"icon\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"publicURL\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"localURL\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"server\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":{\"name\":\"autoincrement\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"os\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"ip\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"url\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false}},\"enums\":{},\"types\":{}}") +config.runtimeDataModel = JSON.parse("{\"models\":{\"application\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":{\"name\":\"autoincrement\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"serverId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":1,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"description\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"icon\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"publicURL\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"localURL\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"online\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"server\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":{\"name\":\"autoincrement\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"os\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"ip\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"url\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"settings\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":{\"name\":\"autoincrement\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"uptime_checks\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false}},\"enums\":{},\"types\":{}}") defineDmmfProperty(exports.Prisma, config.runtimeDataModel) config.engineWasm = undefined config.compilerWasm = undefined diff --git a/lib/generated/prisma/index-browser.js b/lib/generated/prisma/index-browser.js index e0217f5..ffd6063 100644 --- a/lib/generated/prisma/index-browser.js +++ b/lib/generated/prisma/index-browser.js @@ -125,7 +125,8 @@ exports.Prisma.ApplicationScalarFieldEnum = { icon: 'icon', publicURL: 'publicURL', localURL: 'localURL', - createdAt: 'createdAt' + createdAt: 'createdAt', + online: 'online' }; exports.Prisma.ServerScalarFieldEnum = { @@ -136,6 +137,11 @@ exports.Prisma.ServerScalarFieldEnum = { url: 'url' }; +exports.Prisma.SettingsScalarFieldEnum = { + id: 'id', + uptime_checks: 'uptime_checks' +}; + exports.Prisma.SortOrder = { asc: 'asc', desc: 'desc' @@ -154,7 +160,8 @@ exports.Prisma.NullsOrder = { exports.Prisma.ModelName = { application: 'application', - server: 'server' + server: 'server', + settings: 'settings' }; /** diff --git a/lib/generated/prisma/index.d.ts b/lib/generated/prisma/index.d.ts index 8a48fd1..2e06839 100644 --- a/lib/generated/prisma/index.d.ts +++ b/lib/generated/prisma/index.d.ts @@ -23,6 +23,11 @@ export type application = $Result.DefaultSelection * */ export type server = $Result.DefaultSelection +/** + * Model settings + * + */ +export type settings = $Result.DefaultSelection /** * ## Prisma Client ʲˢ @@ -168,6 +173,16 @@ export class PrismaClient< * ``` */ get server(): Prisma.serverDelegate; + + /** + * `prisma.settings`: Exposes CRUD operations for the **settings** model. + * Example usage: + * ```ts + * // Fetch zero or more Settings + * const settings = await prisma.settings.findMany() + * ``` + */ + get settings(): Prisma.settingsDelegate; } export namespace Prisma { @@ -609,7 +624,8 @@ export namespace Prisma { export const ModelName: { application: 'application', - server: 'server' + server: 'server', + settings: 'settings' }; export type ModelName = (typeof ModelName)[keyof typeof ModelName] @@ -628,7 +644,7 @@ export namespace Prisma { omit: GlobalOmitOptions } meta: { - modelProps: "application" | "server" + modelProps: "application" | "server" | "settings" txIsolationLevel: Prisma.TransactionIsolationLevel } model: { @@ -780,6 +796,80 @@ export namespace Prisma { } } } + settings: { + payload: Prisma.$settingsPayload + fields: Prisma.settingsFieldRefs + operations: { + findUnique: { + args: Prisma.settingsFindUniqueArgs + result: $Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.settingsFindUniqueOrThrowArgs + result: $Utils.PayloadToResult + } + findFirst: { + args: Prisma.settingsFindFirstArgs + result: $Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.settingsFindFirstOrThrowArgs + result: $Utils.PayloadToResult + } + findMany: { + args: Prisma.settingsFindManyArgs + result: $Utils.PayloadToResult[] + } + create: { + args: Prisma.settingsCreateArgs + result: $Utils.PayloadToResult + } + createMany: { + args: Prisma.settingsCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.settingsCreateManyAndReturnArgs + result: $Utils.PayloadToResult[] + } + delete: { + args: Prisma.settingsDeleteArgs + result: $Utils.PayloadToResult + } + update: { + args: Prisma.settingsUpdateArgs + result: $Utils.PayloadToResult + } + deleteMany: { + args: Prisma.settingsDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.settingsUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.settingsUpdateManyAndReturnArgs + result: $Utils.PayloadToResult[] + } + upsert: { + args: Prisma.settingsUpsertArgs + result: $Utils.PayloadToResult + } + aggregate: { + args: Prisma.SettingsAggregateArgs + result: $Utils.Optional + } + groupBy: { + args: Prisma.settingsGroupByArgs + result: $Utils.Optional[] + } + count: { + args: Prisma.settingsCountArgs + result: $Utils.Optional | number + } + } + } } } & { other: { @@ -866,6 +956,7 @@ export namespace Prisma { export type GlobalOmitConfig = { application?: applicationOmit server?: serverOmit + settings?: settingsOmit } /* Types for Logging */ @@ -991,6 +1082,7 @@ export namespace Prisma { publicURL: string | null localURL: string | null createdAt: Date | null + online: boolean | null } export type ApplicationMaxAggregateOutputType = { @@ -1002,6 +1094,7 @@ export namespace Prisma { publicURL: string | null localURL: string | null createdAt: Date | null + online: boolean | null } export type ApplicationCountAggregateOutputType = { @@ -1013,6 +1106,7 @@ export namespace Prisma { publicURL: number localURL: number createdAt: number + online: number _all: number } @@ -1036,6 +1130,7 @@ export namespace Prisma { publicURL?: true localURL?: true createdAt?: true + online?: true } export type ApplicationMaxAggregateInputType = { @@ -1047,6 +1142,7 @@ export namespace Prisma { publicURL?: true localURL?: true createdAt?: true + online?: true } export type ApplicationCountAggregateInputType = { @@ -1058,6 +1154,7 @@ export namespace Prisma { publicURL?: true localURL?: true createdAt?: true + online?: true _all?: true } @@ -1156,6 +1253,7 @@ export namespace Prisma { publicURL: string localURL: string | null createdAt: Date + online: boolean _count: ApplicationCountAggregateOutputType | null _avg: ApplicationAvgAggregateOutputType | null _sum: ApplicationSumAggregateOutputType | null @@ -1186,6 +1284,7 @@ export namespace Prisma { publicURL?: boolean localURL?: boolean createdAt?: boolean + online?: boolean }, ExtArgs["result"]["application"]> export type applicationSelectCreateManyAndReturn = $Extensions.GetSelect<{ @@ -1197,6 +1296,7 @@ export namespace Prisma { publicURL?: boolean localURL?: boolean createdAt?: boolean + online?: boolean }, ExtArgs["result"]["application"]> export type applicationSelectUpdateManyAndReturn = $Extensions.GetSelect<{ @@ -1208,6 +1308,7 @@ export namespace Prisma { publicURL?: boolean localURL?: boolean createdAt?: boolean + online?: boolean }, ExtArgs["result"]["application"]> export type applicationSelectScalar = { @@ -1219,9 +1320,10 @@ export namespace Prisma { publicURL?: boolean localURL?: boolean createdAt?: boolean + online?: boolean } - export type applicationOmit = $Extensions.GetOmit<"id" | "serverId" | "name" | "description" | "icon" | "publicURL" | "localURL" | "createdAt", ExtArgs["result"]["application"]> + export type applicationOmit = $Extensions.GetOmit<"id" | "serverId" | "name" | "description" | "icon" | "publicURL" | "localURL" | "createdAt" | "online", ExtArgs["result"]["application"]> export type $applicationPayload = { name: "application" @@ -1235,6 +1337,7 @@ export namespace Prisma { publicURL: string localURL: string | null createdAt: Date + online: boolean }, ExtArgs["result"]["application"]> composites: {} } @@ -1666,6 +1769,7 @@ export namespace Prisma { readonly publicURL: FieldRef<"application", 'String'> readonly localURL: FieldRef<"application", 'String'> readonly createdAt: FieldRef<"application", 'DateTime'> + readonly online: FieldRef<"application", 'Boolean'> } @@ -3061,6 +3165,996 @@ export namespace Prisma { } + /** + * Model settings + */ + + export type AggregateSettings = { + _count: SettingsCountAggregateOutputType | null + _avg: SettingsAvgAggregateOutputType | null + _sum: SettingsSumAggregateOutputType | null + _min: SettingsMinAggregateOutputType | null + _max: SettingsMaxAggregateOutputType | null + } + + export type SettingsAvgAggregateOutputType = { + id: number | null + } + + export type SettingsSumAggregateOutputType = { + id: number | null + } + + export type SettingsMinAggregateOutputType = { + id: number | null + uptime_checks: boolean | null + } + + export type SettingsMaxAggregateOutputType = { + id: number | null + uptime_checks: boolean | null + } + + export type SettingsCountAggregateOutputType = { + id: number + uptime_checks: number + _all: number + } + + + export type SettingsAvgAggregateInputType = { + id?: true + } + + export type SettingsSumAggregateInputType = { + id?: true + } + + export type SettingsMinAggregateInputType = { + id?: true + uptime_checks?: true + } + + export type SettingsMaxAggregateInputType = { + id?: true + uptime_checks?: true + } + + export type SettingsCountAggregateInputType = { + id?: true + uptime_checks?: true + _all?: true + } + + export type SettingsAggregateArgs = { + /** + * Filter which settings to aggregate. + */ + where?: settingsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of settings to fetch. + */ + orderBy?: settingsOrderByWithRelationInput | settingsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: settingsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` settings 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` settings. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned settings + **/ + _count?: true | SettingsCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: SettingsAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: SettingsSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: SettingsMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: SettingsMaxAggregateInputType + } + + export type GetSettingsAggregateType = { + [P in keyof T & keyof AggregateSettings]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : GetScalarType + : GetScalarType + } + + + + + export type settingsGroupByArgs = { + where?: settingsWhereInput + orderBy?: settingsOrderByWithAggregationInput | settingsOrderByWithAggregationInput[] + by: SettingsScalarFieldEnum[] | SettingsScalarFieldEnum + having?: settingsScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: SettingsCountAggregateInputType | true + _avg?: SettingsAvgAggregateInputType + _sum?: SettingsSumAggregateInputType + _min?: SettingsMinAggregateInputType + _max?: SettingsMaxAggregateInputType + } + + export type SettingsGroupByOutputType = { + id: number + uptime_checks: boolean + _count: SettingsCountAggregateOutputType | null + _avg: SettingsAvgAggregateOutputType | null + _sum: SettingsSumAggregateOutputType | null + _min: SettingsMinAggregateOutputType | null + _max: SettingsMaxAggregateOutputType | null + } + + type GetSettingsGroupByPayload = Prisma.PrismaPromise< + Array< + PickEnumerable & + { + [P in ((keyof T) & (keyof SettingsGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : GetScalarType + : GetScalarType + } + > + > + + + export type settingsSelect = $Extensions.GetSelect<{ + id?: boolean + uptime_checks?: boolean + }, ExtArgs["result"]["settings"]> + + export type settingsSelectCreateManyAndReturn = $Extensions.GetSelect<{ + id?: boolean + uptime_checks?: boolean + }, ExtArgs["result"]["settings"]> + + export type settingsSelectUpdateManyAndReturn = $Extensions.GetSelect<{ + id?: boolean + uptime_checks?: boolean + }, ExtArgs["result"]["settings"]> + + export type settingsSelectScalar = { + id?: boolean + uptime_checks?: boolean + } + + export type settingsOmit = $Extensions.GetOmit<"id" | "uptime_checks", ExtArgs["result"]["settings"]> + + export type $settingsPayload = { + name: "settings" + objects: {} + scalars: $Extensions.GetPayloadResult<{ + id: number + uptime_checks: boolean + }, ExtArgs["result"]["settings"]> + composites: {} + } + + type settingsGetPayload = $Result.GetResult + + type settingsCountArgs = + Omit & { + select?: SettingsCountAggregateInputType | true + } + + export interface settingsDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['settings'], meta: { name: 'settings' } } + /** + * Find zero or one Settings that matches the filter. + * @param {settingsFindUniqueArgs} args - Arguments to find a Settings + * @example + * // Get one Settings + * const settings = await prisma.settings.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: SelectSubset>): Prisma__settingsClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Settings that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {settingsFindUniqueOrThrowArgs} args - Arguments to find a Settings + * @example + * // Get one Settings + * const settings = await prisma.settings.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: SelectSubset>): Prisma__settingsClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Settings 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 {settingsFindFirstArgs} args - Arguments to find a Settings + * @example + * // Get one Settings + * const settings = await prisma.settings.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: SelectSubset>): Prisma__settingsClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Settings 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 {settingsFindFirstOrThrowArgs} args - Arguments to find a Settings + * @example + * // Get one Settings + * const settings = await prisma.settings.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: SelectSubset>): Prisma__settingsClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Settings 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 {settingsFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Settings + * const settings = await prisma.settings.findMany() + * + * // Get first 10 Settings + * const settings = await prisma.settings.findMany({ take: 10 }) + * + * // Only select the `id` + * const settingsWithIdOnly = await prisma.settings.findMany({ select: { id: true } }) + * + */ + findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Settings. + * @param {settingsCreateArgs} args - Arguments to create a Settings. + * @example + * // Create one Settings + * const Settings = await prisma.settings.create({ + * data: { + * // ... data to create a Settings + * } + * }) + * + */ + create(args: SelectSubset>): Prisma__settingsClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Settings. + * @param {settingsCreateManyArgs} args - Arguments to create many Settings. + * @example + * // Create many Settings + * const settings = await prisma.settings.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Settings and returns the data saved in the database. + * @param {settingsCreateManyAndReturnArgs} args - Arguments to create many Settings. + * @example + * // Create many Settings + * const settings = await prisma.settings.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Settings and only return the `id` + * const settingsWithIdOnly = await prisma.settings.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", GlobalOmitOptions>> + + /** + * Delete a Settings. + * @param {settingsDeleteArgs} args - Arguments to delete one Settings. + * @example + * // Delete one Settings + * const Settings = await prisma.settings.delete({ + * where: { + * // ... filter to delete one Settings + * } + * }) + * + */ + delete(args: SelectSubset>): Prisma__settingsClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Settings. + * @param {settingsUpdateArgs} args - Arguments to update one Settings. + * @example + * // Update one Settings + * const settings = await prisma.settings.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: SelectSubset>): Prisma__settingsClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Settings. + * @param {settingsDeleteManyArgs} args - Arguments to filter Settings to delete. + * @example + * // Delete a few Settings + * const { count } = await prisma.settings.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Settings. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {settingsUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Settings + * const settings = await prisma.settings.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Settings and returns the data updated in the database. + * @param {settingsUpdateManyAndReturnArgs} args - Arguments to update many Settings. + * @example + * // Update many Settings + * const settings = await prisma.settings.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Settings and only return the `id` + * const settingsWithIdOnly = await prisma.settings.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one Settings. + * @param {settingsUpsertArgs} args - Arguments to update or create a Settings. + * @example + * // Update or create a Settings + * const settings = await prisma.settings.upsert({ + * create: { + * // ... data to create a Settings + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Settings we want to update + * } + * }) + */ + upsert(args: SelectSubset>): Prisma__settingsClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Settings. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {settingsCountArgs} args - Arguments to filter Settings to count. + * @example + * // Count the number of Settings + * const count = await prisma.settings.count({ + * where: { + * // ... the filter for the Settings 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 Settings. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {SettingsAggregateArgs} 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 Settings. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {settingsGroupByArgs} 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 settingsGroupByArgs, + HasSelectOrTake extends Or< + Extends<'skip', Keys>, + Extends<'take', Keys> + >, + OrderByArg extends True extends HasSelectOrTake + ? { orderBy: settingsGroupByArgs['orderBy'] } + : { orderBy?: settingsGroupByArgs['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 ? GetSettingsGroupByPayload : Prisma.PrismaPromise + /** + * Fields of the settings model + */ + readonly fields: settingsFieldRefs; + } + + /** + * The delegate class that acts as a "Promise-like" for settings. + * 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__settingsClient 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 settings model + */ + interface settingsFieldRefs { + readonly id: FieldRef<"settings", 'Int'> + readonly uptime_checks: FieldRef<"settings", 'Boolean'> + } + + + // Custom InputTypes + /** + * settings findUnique + */ + export type settingsFindUniqueArgs = { + /** + * Select specific fields to fetch from the settings + */ + select?: settingsSelect | null + /** + * Omit specific fields from the settings + */ + omit?: settingsOmit | null + /** + * Filter, which settings to fetch. + */ + where: settingsWhereUniqueInput + } + + /** + * settings findUniqueOrThrow + */ + export type settingsFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the settings + */ + select?: settingsSelect | null + /** + * Omit specific fields from the settings + */ + omit?: settingsOmit | null + /** + * Filter, which settings to fetch. + */ + where: settingsWhereUniqueInput + } + + /** + * settings findFirst + */ + export type settingsFindFirstArgs = { + /** + * Select specific fields to fetch from the settings + */ + select?: settingsSelect | null + /** + * Omit specific fields from the settings + */ + omit?: settingsOmit | null + /** + * Filter, which settings to fetch. + */ + where?: settingsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of settings to fetch. + */ + orderBy?: settingsOrderByWithRelationInput | settingsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for settings. + */ + cursor?: settingsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` settings 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` settings. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of settings. + */ + distinct?: SettingsScalarFieldEnum | SettingsScalarFieldEnum[] + } + + /** + * settings findFirstOrThrow + */ + export type settingsFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the settings + */ + select?: settingsSelect | null + /** + * Omit specific fields from the settings + */ + omit?: settingsOmit | null + /** + * Filter, which settings to fetch. + */ + where?: settingsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of settings to fetch. + */ + orderBy?: settingsOrderByWithRelationInput | settingsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for settings. + */ + cursor?: settingsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` settings 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` settings. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of settings. + */ + distinct?: SettingsScalarFieldEnum | SettingsScalarFieldEnum[] + } + + /** + * settings findMany + */ + export type settingsFindManyArgs = { + /** + * Select specific fields to fetch from the settings + */ + select?: settingsSelect | null + /** + * Omit specific fields from the settings + */ + omit?: settingsOmit | null + /** + * Filter, which settings to fetch. + */ + where?: settingsWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of settings to fetch. + */ + orderBy?: settingsOrderByWithRelationInput | settingsOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing settings. + */ + cursor?: settingsWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` settings 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` settings. + */ + skip?: number + distinct?: SettingsScalarFieldEnum | SettingsScalarFieldEnum[] + } + + /** + * settings create + */ + export type settingsCreateArgs = { + /** + * Select specific fields to fetch from the settings + */ + select?: settingsSelect | null + /** + * Omit specific fields from the settings + */ + omit?: settingsOmit | null + /** + * The data needed to create a settings. + */ + data?: XOR + } + + /** + * settings createMany + */ + export type settingsCreateManyArgs = { + /** + * The data used to create many settings. + */ + data: settingsCreateManyInput | settingsCreateManyInput[] + skipDuplicates?: boolean + } + + /** + * settings createManyAndReturn + */ + export type settingsCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the settings + */ + select?: settingsSelectCreateManyAndReturn | null + /** + * Omit specific fields from the settings + */ + omit?: settingsOmit | null + /** + * The data used to create many settings. + */ + data: settingsCreateManyInput | settingsCreateManyInput[] + skipDuplicates?: boolean + } + + /** + * settings update + */ + export type settingsUpdateArgs = { + /** + * Select specific fields to fetch from the settings + */ + select?: settingsSelect | null + /** + * Omit specific fields from the settings + */ + omit?: settingsOmit | null + /** + * The data needed to update a settings. + */ + data: XOR + /** + * Choose, which settings to update. + */ + where: settingsWhereUniqueInput + } + + /** + * settings updateMany + */ + export type settingsUpdateManyArgs = { + /** + * The data used to update settings. + */ + data: XOR + /** + * Filter which settings to update + */ + where?: settingsWhereInput + /** + * Limit how many settings to update. + */ + limit?: number + } + + /** + * settings updateManyAndReturn + */ + export type settingsUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the settings + */ + select?: settingsSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the settings + */ + omit?: settingsOmit | null + /** + * The data used to update settings. + */ + data: XOR + /** + * Filter which settings to update + */ + where?: settingsWhereInput + /** + * Limit how many settings to update. + */ + limit?: number + } + + /** + * settings upsert + */ + export type settingsUpsertArgs = { + /** + * Select specific fields to fetch from the settings + */ + select?: settingsSelect | null + /** + * Omit specific fields from the settings + */ + omit?: settingsOmit | null + /** + * The filter to search for the settings to update in case it exists. + */ + where: settingsWhereUniqueInput + /** + * In case the settings found by the `where` argument doesn't exist, create a new settings with this data. + */ + create: XOR + /** + * In case the settings was found with the provided `where` argument, update it with this data. + */ + update: XOR + } + + /** + * settings delete + */ + export type settingsDeleteArgs = { + /** + * Select specific fields to fetch from the settings + */ + select?: settingsSelect | null + /** + * Omit specific fields from the settings + */ + omit?: settingsOmit | null + /** + * Filter which settings to delete. + */ + where: settingsWhereUniqueInput + } + + /** + * settings deleteMany + */ + export type settingsDeleteManyArgs = { + /** + * Filter which settings to delete + */ + where?: settingsWhereInput + /** + * Limit how many settings to delete. + */ + limit?: number + } + + /** + * settings without action + */ + export type settingsDefaultArgs = { + /** + * Select specific fields to fetch from the settings + */ + select?: settingsSelect | null + /** + * Omit specific fields from the settings + */ + omit?: settingsOmit | null + } + + /** * Enums */ @@ -3083,7 +4177,8 @@ export namespace Prisma { icon: 'icon', publicURL: 'publicURL', localURL: 'localURL', - createdAt: 'createdAt' + createdAt: 'createdAt', + online: 'online' }; export type ApplicationScalarFieldEnum = (typeof ApplicationScalarFieldEnum)[keyof typeof ApplicationScalarFieldEnum] @@ -3100,6 +4195,14 @@ export namespace Prisma { export type ServerScalarFieldEnum = (typeof ServerScalarFieldEnum)[keyof typeof ServerScalarFieldEnum] + export const SettingsScalarFieldEnum: { + id: 'id', + uptime_checks: 'uptime_checks' + }; + + export type SettingsScalarFieldEnum = (typeof SettingsScalarFieldEnum)[keyof typeof SettingsScalarFieldEnum] + + export const SortOrder: { asc: 'asc', desc: 'desc' @@ -3171,6 +4274,13 @@ export namespace Prisma { + /** + * Reference to a field of type 'Boolean' + */ + export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'> + + + /** * Reference to a field of type 'Float' */ @@ -3200,6 +4310,7 @@ export namespace Prisma { publicURL?: StringFilter<"application"> | string localURL?: StringNullableFilter<"application"> | string | null createdAt?: DateTimeFilter<"application"> | Date | string + online?: BoolFilter<"application"> | boolean } export type applicationOrderByWithRelationInput = { @@ -3211,6 +4322,7 @@ export namespace Prisma { publicURL?: SortOrder localURL?: SortOrderInput | SortOrder createdAt?: SortOrder + online?: SortOrder } export type applicationWhereUniqueInput = Prisma.AtLeast<{ @@ -3225,6 +4337,7 @@ export namespace Prisma { publicURL?: StringFilter<"application"> | string localURL?: StringNullableFilter<"application"> | string | null createdAt?: DateTimeFilter<"application"> | Date | string + online?: BoolFilter<"application"> | boolean }, "id"> export type applicationOrderByWithAggregationInput = { @@ -3236,6 +4349,7 @@ export namespace Prisma { publicURL?: SortOrder localURL?: SortOrderInput | SortOrder createdAt?: SortOrder + online?: SortOrder _count?: applicationCountOrderByAggregateInput _avg?: applicationAvgOrderByAggregateInput _max?: applicationMaxOrderByAggregateInput @@ -3255,6 +4369,7 @@ export namespace Prisma { publicURL?: StringWithAggregatesFilter<"application"> | string localURL?: StringNullableWithAggregatesFilter<"application"> | string | null createdAt?: DateTimeWithAggregatesFilter<"application"> | Date | string + online?: BoolWithAggregatesFilter<"application"> | boolean } export type serverWhereInput = { @@ -3311,6 +4426,45 @@ export namespace Prisma { url?: StringNullableWithAggregatesFilter<"server"> | string | null } + export type settingsWhereInput = { + AND?: settingsWhereInput | settingsWhereInput[] + OR?: settingsWhereInput[] + NOT?: settingsWhereInput | settingsWhereInput[] + id?: IntFilter<"settings"> | number + uptime_checks?: BoolFilter<"settings"> | boolean + } + + export type settingsOrderByWithRelationInput = { + id?: SortOrder + uptime_checks?: SortOrder + } + + export type settingsWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: settingsWhereInput | settingsWhereInput[] + OR?: settingsWhereInput[] + NOT?: settingsWhereInput | settingsWhereInput[] + uptime_checks?: BoolFilter<"settings"> | boolean + }, "id"> + + export type settingsOrderByWithAggregationInput = { + id?: SortOrder + uptime_checks?: SortOrder + _count?: settingsCountOrderByAggregateInput + _avg?: settingsAvgOrderByAggregateInput + _max?: settingsMaxOrderByAggregateInput + _min?: settingsMinOrderByAggregateInput + _sum?: settingsSumOrderByAggregateInput + } + + export type settingsScalarWhereWithAggregatesInput = { + AND?: settingsScalarWhereWithAggregatesInput | settingsScalarWhereWithAggregatesInput[] + OR?: settingsScalarWhereWithAggregatesInput[] + NOT?: settingsScalarWhereWithAggregatesInput | settingsScalarWhereWithAggregatesInput[] + id?: IntWithAggregatesFilter<"settings"> | number + uptime_checks?: BoolWithAggregatesFilter<"settings"> | boolean + } + export type applicationCreateInput = { serverId?: number name: string @@ -3319,6 +4473,7 @@ export namespace Prisma { publicURL: string localURL?: string | null createdAt?: Date | string + online?: boolean } export type applicationUncheckedCreateInput = { @@ -3330,6 +4485,7 @@ export namespace Prisma { publicURL: string localURL?: string | null createdAt?: Date | string + online?: boolean } export type applicationUpdateInput = { @@ -3340,6 +4496,7 @@ export namespace Prisma { publicURL?: StringFieldUpdateOperationsInput | string localURL?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + online?: BoolFieldUpdateOperationsInput | boolean } export type applicationUncheckedUpdateInput = { @@ -3351,6 +4508,7 @@ export namespace Prisma { publicURL?: StringFieldUpdateOperationsInput | string localURL?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + online?: BoolFieldUpdateOperationsInput | boolean } export type applicationCreateManyInput = { @@ -3362,6 +4520,7 @@ export namespace Prisma { publicURL: string localURL?: string | null createdAt?: Date | string + online?: boolean } export type applicationUpdateManyMutationInput = { @@ -3372,6 +4531,7 @@ export namespace Prisma { publicURL?: StringFieldUpdateOperationsInput | string localURL?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + online?: BoolFieldUpdateOperationsInput | boolean } export type applicationUncheckedUpdateManyInput = { @@ -3383,6 +4543,7 @@ export namespace Prisma { publicURL?: StringFieldUpdateOperationsInput | string localURL?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + online?: BoolFieldUpdateOperationsInput | boolean } export type serverCreateInput = { @@ -3438,6 +4599,38 @@ export namespace Prisma { url?: NullableStringFieldUpdateOperationsInput | string | null } + export type settingsCreateInput = { + uptime_checks?: boolean + } + + export type settingsUncheckedCreateInput = { + id?: number + uptime_checks?: boolean + } + + export type settingsUpdateInput = { + uptime_checks?: BoolFieldUpdateOperationsInput | boolean + } + + export type settingsUncheckedUpdateInput = { + id?: IntFieldUpdateOperationsInput | number + uptime_checks?: BoolFieldUpdateOperationsInput | boolean + } + + export type settingsCreateManyInput = { + id?: number + uptime_checks?: boolean + } + + export type settingsUpdateManyMutationInput = { + uptime_checks?: BoolFieldUpdateOperationsInput | boolean + } + + export type settingsUncheckedUpdateManyInput = { + id?: IntFieldUpdateOperationsInput | number + uptime_checks?: BoolFieldUpdateOperationsInput | boolean + } + export type IntFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] | ListIntFieldRefInput<$PrismaModel> @@ -3490,6 +4683,11 @@ export namespace Prisma { not?: NestedDateTimeFilter<$PrismaModel> | Date | string } + export type BoolFilter<$PrismaModel = never> = { + equals?: boolean | BooleanFieldRefInput<$PrismaModel> + not?: NestedBoolFilter<$PrismaModel> | boolean + } + export type SortOrderInput = { sort: SortOrder nulls?: NullsOrder @@ -3504,6 +4702,7 @@ export namespace Prisma { publicURL?: SortOrder localURL?: SortOrder createdAt?: SortOrder + online?: SortOrder } export type applicationAvgOrderByAggregateInput = { @@ -3520,6 +4719,7 @@ export namespace Prisma { publicURL?: SortOrder localURL?: SortOrder createdAt?: SortOrder + online?: SortOrder } export type applicationMinOrderByAggregateInput = { @@ -3531,6 +4731,7 @@ export namespace Prisma { publicURL?: SortOrder localURL?: SortOrder createdAt?: SortOrder + online?: SortOrder } export type applicationSumOrderByAggregateInput = { @@ -3604,6 +4805,14 @@ export namespace Prisma { _max?: NestedDateTimeFilter<$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 serverCountOrderByAggregateInput = { id?: SortOrder name?: SortOrder @@ -3636,6 +4845,29 @@ export namespace Prisma { id?: SortOrder } + export type settingsCountOrderByAggregateInput = { + id?: SortOrder + uptime_checks?: SortOrder + } + + export type settingsAvgOrderByAggregateInput = { + id?: SortOrder + } + + export type settingsMaxOrderByAggregateInput = { + id?: SortOrder + uptime_checks?: SortOrder + } + + export type settingsMinOrderByAggregateInput = { + id?: SortOrder + uptime_checks?: SortOrder + } + + export type settingsSumOrderByAggregateInput = { + id?: SortOrder + } + export type IntFieldUpdateOperationsInput = { set?: number increment?: number @@ -3656,6 +4888,10 @@ export namespace Prisma { set?: Date | string } + export type BoolFieldUpdateOperationsInput = { + set?: boolean + } + export type NestedIntFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] | ListIntFieldRefInput<$PrismaModel> @@ -3706,6 +4942,11 @@ export namespace Prisma { not?: NestedDateTimeFilter<$PrismaModel> | Date | string } + export type NestedBoolFilter<$PrismaModel = never> = { + equals?: boolean | BooleanFieldRefInput<$PrismaModel> + not?: NestedBoolFilter<$PrismaModel> | boolean + } + export type NestedIntWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] | ListIntFieldRefInput<$PrismaModel> @@ -3792,6 +5033,14 @@ export namespace Prisma { _max?: NestedDateTimeFilter<$PrismaModel> } + export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = { + equals?: boolean | BooleanFieldRefInput<$PrismaModel> + not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean + _count?: NestedIntFilter<$PrismaModel> + _min?: NestedBoolFilter<$PrismaModel> + _max?: NestedBoolFilter<$PrismaModel> + } + /** diff --git a/lib/generated/prisma/index.js b/lib/generated/prisma/index.js index a5772b3..3d48023 100644 --- a/lib/generated/prisma/index.js +++ b/lib/generated/prisma/index.js @@ -98,7 +98,8 @@ exports.Prisma.ApplicationScalarFieldEnum = { icon: 'icon', publicURL: 'publicURL', localURL: 'localURL', - createdAt: 'createdAt' + createdAt: 'createdAt', + online: 'online' }; exports.Prisma.ServerScalarFieldEnum = { @@ -109,6 +110,11 @@ exports.Prisma.ServerScalarFieldEnum = { url: 'url' }; +exports.Prisma.SettingsScalarFieldEnum = { + id: 'id', + uptime_checks: 'uptime_checks' +}; + exports.Prisma.SortOrder = { asc: 'asc', desc: 'desc' @@ -127,7 +133,8 @@ exports.Prisma.NullsOrder = { exports.Prisma.ModelName = { application: 'application', - server: 'server' + server: 'server', + settings: 'settings' }; /** * Create the Client @@ -176,8 +183,8 @@ const config = { } } }, - "inlineSchema": "// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\n// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?\n// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init\n\ngenerator client {\n provider = \"prisma-client-js\"\n output = \"../lib/generated/prisma\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n}\n\nmodel application {\n id Int @id @default(autoincrement())\n serverId Int @default(1)\n name String\n description String?\n icon String\n publicURL String\n localURL String?\n createdAt DateTime @default(now())\n}\n\nmodel server {\n id Int @id @default(autoincrement())\n name String\n os String?\n ip String?\n url String?\n}\n", - "inlineSchemaHash": "f689d07c314e551dbb544b300c2eaf202c8b2a3439248ed3dbdc3eb508f94dc1", + "inlineSchema": "// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\n// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?\n// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init\n\ngenerator client {\n provider = \"prisma-client-js\"\n output = \"../lib/generated/prisma\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n}\n\nmodel application {\n id Int @id @default(autoincrement())\n serverId Int @default(1)\n name String\n description String?\n icon String\n publicURL String\n localURL String?\n createdAt DateTime @default(now())\n online Boolean @default(true)\n}\n\nmodel server {\n id Int @id @default(autoincrement())\n name String\n os String?\n ip String?\n url String?\n}\n\nmodel settings {\n id Int @id @default(autoincrement())\n uptime_checks Boolean @default(true)\n}\n", + "inlineSchemaHash": "62c035f366c2e73c52f566a41235614513c487e30d2e4c5b51a8be7171ffe25c", "copyEngine": true } @@ -198,7 +205,7 @@ if (!fs.existsSync(path.join(__dirname, 'schema.prisma'))) { config.isBundled = true } -config.runtimeDataModel = JSON.parse("{\"models\":{\"application\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":{\"name\":\"autoincrement\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"serverId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":1,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"description\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"icon\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"publicURL\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"localURL\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"server\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":{\"name\":\"autoincrement\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"os\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"ip\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"url\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false}},\"enums\":{},\"types\":{}}") +config.runtimeDataModel = JSON.parse("{\"models\":{\"application\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":{\"name\":\"autoincrement\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"serverId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":1,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"description\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"icon\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"publicURL\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"localURL\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"online\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"server\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":{\"name\":\"autoincrement\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"os\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"ip\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"url\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"settings\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":{\"name\":\"autoincrement\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"uptime_checks\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false}},\"enums\":{},\"types\":{}}") defineDmmfProperty(exports.Prisma, config.runtimeDataModel) config.engineWasm = undefined config.compilerWasm = undefined diff --git a/lib/generated/prisma/package.json b/lib/generated/prisma/package.json index fdcf7be..3fde20d 100644 --- a/lib/generated/prisma/package.json +++ b/lib/generated/prisma/package.json @@ -1,5 +1,5 @@ { - "name": "prisma-client-f7cc69aeb506e155eedcc5da662a564d36a835b479dc7bc47312d45e3e955ebe", + "name": "prisma-client-3cca458213079308f6a48d11bf199a5e86068a203caa155a2d3c336d3e840807", "main": "index.js", "types": "index.d.ts", "browser": "index-browser.js", diff --git a/lib/generated/prisma/query_engine-windows.dll.node.tmp17916 b/lib/generated/prisma/query_engine-windows.dll.node.tmp17916 new file mode 100644 index 0000000..97f9a43 Binary files /dev/null and b/lib/generated/prisma/query_engine-windows.dll.node.tmp17916 differ diff --git a/lib/generated/prisma/query_engine-windows.dll.node.tmp7464 b/lib/generated/prisma/query_engine-windows.dll.node.tmp7464 new file mode 100644 index 0000000..97f9a43 Binary files /dev/null and b/lib/generated/prisma/query_engine-windows.dll.node.tmp7464 differ diff --git a/lib/generated/prisma/wasm.js b/lib/generated/prisma/wasm.js index e0217f5..ffd6063 100644 --- a/lib/generated/prisma/wasm.js +++ b/lib/generated/prisma/wasm.js @@ -125,7 +125,8 @@ exports.Prisma.ApplicationScalarFieldEnum = { icon: 'icon', publicURL: 'publicURL', localURL: 'localURL', - createdAt: 'createdAt' + createdAt: 'createdAt', + online: 'online' }; exports.Prisma.ServerScalarFieldEnum = { @@ -136,6 +137,11 @@ exports.Prisma.ServerScalarFieldEnum = { url: 'url' }; +exports.Prisma.SettingsScalarFieldEnum = { + id: 'id', + uptime_checks: 'uptime_checks' +}; + exports.Prisma.SortOrder = { asc: 'asc', desc: 'desc' @@ -154,7 +160,8 @@ exports.Prisma.NullsOrder = { exports.Prisma.ModelName = { application: 'application', - server: 'server' + server: 'server', + settings: 'settings' }; /** diff --git a/prisma/migrations/20250412135831_settings/migration.sql b/prisma/migrations/20250412135831_settings/migration.sql new file mode 100644 index 0000000..0943097 --- /dev/null +++ b/prisma/migrations/20250412135831_settings/migration.sql @@ -0,0 +1,7 @@ +-- CreateTable +CREATE TABLE "settings" ( + "id" SERIAL NOT NULL, + "uptime_checks" BOOLEAN NOT NULL DEFAULT true, + + CONSTRAINT "settings_pkey" PRIMARY KEY ("id") +); diff --git a/prisma/migrations/20250412141334_online/migration.sql b/prisma/migrations/20250412141334_online/migration.sql new file mode 100644 index 0000000..7037cc4 --- /dev/null +++ b/prisma/migrations/20250412141334_online/migration.sql @@ -0,0 +1,2 @@ +-- AlterTable +ALTER TABLE "application" ADD COLUMN "online" BOOLEAN NOT NULL DEFAULT true; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 320124b..ba2a0de 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -23,6 +23,7 @@ model application { publicURL String localURL String? createdAt DateTime @default(now()) + online Boolean @default(true) } model server {