|
| 1 | + |
| 2 | +Object.defineProperty(exports, "__esModule", { value: true }); |
| 3 | + |
| 4 | +const { |
| 5 | + PrismaClientKnownRequestError, |
| 6 | + PrismaClientUnknownRequestError, |
| 7 | + PrismaClientRustPanicError, |
| 8 | + PrismaClientInitializationError, |
| 9 | + PrismaClientValidationError, |
| 10 | + getPrismaClient, |
| 11 | + sqltag, |
| 12 | + empty, |
| 13 | + join, |
| 14 | + raw, |
| 15 | + skip, |
| 16 | + Decimal, |
| 17 | + Debug, |
| 18 | + objectEnumValues, |
| 19 | + makeStrictEnum, |
| 20 | + Extensions, |
| 21 | + warnOnce, |
| 22 | + defineDmmfProperty, |
| 23 | + Public, |
| 24 | + getRuntime, |
| 25 | + createParam, |
| 26 | +} = require('./runtime/edge.js') |
| 27 | + |
| 28 | + |
| 29 | +const Prisma = {} |
| 30 | + |
| 31 | +exports.Prisma = Prisma |
| 32 | +exports.$Enums = {} |
| 33 | + |
| 34 | +/** |
| 35 | + * Prisma Client JS version: 6.6.0 |
| 36 | + * Query Engine version: f676762280b54cd07c770017ed3711ddde35f37a |
| 37 | + */ |
| 38 | +Prisma.prismaVersion = { |
| 39 | + client: "6.6.0", |
| 40 | + engine: "f676762280b54cd07c770017ed3711ddde35f37a" |
| 41 | +} |
| 42 | + |
| 43 | +Prisma.PrismaClientKnownRequestError = PrismaClientKnownRequestError; |
| 44 | +Prisma.PrismaClientUnknownRequestError = PrismaClientUnknownRequestError |
| 45 | +Prisma.PrismaClientRustPanicError = PrismaClientRustPanicError |
| 46 | +Prisma.PrismaClientInitializationError = PrismaClientInitializationError |
| 47 | +Prisma.PrismaClientValidationError = PrismaClientValidationError |
| 48 | +Prisma.Decimal = Decimal |
| 49 | + |
| 50 | +/** |
| 51 | + * Re-export of sql-template-tag |
| 52 | + */ |
| 53 | +Prisma.sql = sqltag |
| 54 | +Prisma.empty = empty |
| 55 | +Prisma.join = join |
| 56 | +Prisma.raw = raw |
| 57 | +Prisma.validator = Public.validator |
| 58 | + |
| 59 | +/** |
| 60 | +* Extensions |
| 61 | +*/ |
| 62 | +Prisma.getExtensionContext = Extensions.getExtensionContext |
| 63 | +Prisma.defineExtension = Extensions.defineExtension |
| 64 | + |
| 65 | +/** |
| 66 | + * Shorthand utilities for JSON filtering |
| 67 | + */ |
| 68 | +Prisma.DbNull = objectEnumValues.instances.DbNull |
| 69 | +Prisma.JsonNull = objectEnumValues.instances.JsonNull |
| 70 | +Prisma.AnyNull = objectEnumValues.instances.AnyNull |
| 71 | + |
| 72 | +Prisma.NullTypes = { |
| 73 | + DbNull: objectEnumValues.classes.DbNull, |
| 74 | + JsonNull: objectEnumValues.classes.JsonNull, |
| 75 | + AnyNull: objectEnumValues.classes.AnyNull |
| 76 | +} |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | +/** |
| 83 | + * Enums |
| 84 | + */ |
| 85 | +exports.Prisma.TransactionIsolationLevel = makeStrictEnum({ |
| 86 | + ReadUncommitted: 'ReadUncommitted', |
| 87 | + ReadCommitted: 'ReadCommitted', |
| 88 | + RepeatableRead: 'RepeatableRead', |
| 89 | + Serializable: 'Serializable' |
| 90 | +}); |
| 91 | + |
| 92 | +exports.Prisma.UserScalarFieldEnum = { |
| 93 | + id: 'id', |
| 94 | + email: 'email', |
| 95 | + name: 'name', |
| 96 | + password: 'password', |
| 97 | + createdAt: 'createdAt', |
| 98 | + updatedAt: 'updatedAt' |
| 99 | +}; |
| 100 | + |
| 101 | +exports.Prisma.SortOrder = { |
| 102 | + asc: 'asc', |
| 103 | + desc: 'desc' |
| 104 | +}; |
| 105 | + |
| 106 | +exports.Prisma.QueryMode = { |
| 107 | + default: 'default', |
| 108 | + insensitive: 'insensitive' |
| 109 | +}; |
| 110 | + |
| 111 | + |
| 112 | +exports.Prisma.ModelName = { |
| 113 | + User: 'User' |
| 114 | +}; |
| 115 | +/** |
| 116 | + * Create the Client |
| 117 | + */ |
| 118 | +const config = { |
| 119 | + "generator": { |
| 120 | + "name": "client", |
| 121 | + "provider": { |
| 122 | + "fromEnvVar": null, |
| 123 | + "value": "prisma-client-js" |
| 124 | + }, |
| 125 | + "output": { |
| 126 | + "value": "C:\\Users\\djchr\\Documents\\Coding\\skills-platform\\generated\\prisma", |
| 127 | + "fromEnvVar": null |
| 128 | + }, |
| 129 | + "config": { |
| 130 | + "engineType": "library" |
| 131 | + }, |
| 132 | + "binaryTargets": [ |
| 133 | + { |
| 134 | + "fromEnvVar": null, |
| 135 | + "value": "windows", |
| 136 | + "native": true |
| 137 | + } |
| 138 | + ], |
| 139 | + "previewFeatures": [], |
| 140 | + "sourceFilePath": "C:\\Users\\djchr\\Documents\\Coding\\skills-platform\\prisma\\schema.prisma", |
| 141 | + "isCustomOutput": true |
| 142 | + }, |
| 143 | + "relativeEnvPaths": { |
| 144 | + "rootEnvPath": "../../.env", |
| 145 | + "schemaEnvPath": "../../.env" |
| 146 | + }, |
| 147 | + "relativePath": "../../prisma", |
| 148 | + "clientVersion": "6.6.0", |
| 149 | + "engineVersion": "f676762280b54cd07c770017ed3711ddde35f37a", |
| 150 | + "datasourceNames": [ |
| 151 | + "db" |
| 152 | + ], |
| 153 | + "activeProvider": "postgresql", |
| 154 | + "inlineDatasources": { |
| 155 | + "db": { |
| 156 | + "url": { |
| 157 | + "fromEnvVar": "DATABASE_URL", |
| 158 | + "value": "postgresql://ctp_user:ctp_pass@localhost:5432/skills_platform?schema=public" |
| 159 | + } |
| 160 | + } |
| 161 | + }, |
| 162 | + "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 = \"../generated/prisma\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n}\n\nmodel User {\n id Int @id @default(autoincrement())\n email String @unique\n name String\n password String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n", |
| 163 | + "inlineSchemaHash": "9f301172024ae9e5c02437c22d40fd02879c9a3d8882dcba12aede9c16c8e275", |
| 164 | + "copyEngine": true |
| 165 | +} |
| 166 | +config.dirname = '/' |
| 167 | + |
| 168 | +config.runtimeDataModel = JSON.parse("{\"models\":{\"User\":{\"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\":\"email\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"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\":\"password\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"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\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false}},\"enums\":{},\"types\":{}}") |
| 169 | +defineDmmfProperty(exports.Prisma, config.runtimeDataModel) |
| 170 | +config.engineWasm = undefined |
| 171 | +config.compilerWasm = undefined |
| 172 | + |
| 173 | +config.injectableEdgeEnv = () => ({ |
| 174 | + parsed: { |
| 175 | + DATABASE_URL: typeof globalThis !== 'undefined' && globalThis['DATABASE_URL'] || typeof process !== 'undefined' && process.env && process.env.DATABASE_URL || undefined |
| 176 | + } |
| 177 | +}) |
| 178 | + |
| 179 | +if (typeof globalThis !== 'undefined' && globalThis['DEBUG'] || typeof process !== 'undefined' && process.env && process.env.DEBUG || undefined) { |
| 180 | + Debug.enable(typeof globalThis !== 'undefined' && globalThis['DEBUG'] || typeof process !== 'undefined' && process.env && process.env.DEBUG || undefined) |
| 181 | +} |
| 182 | + |
| 183 | +const PrismaClient = getPrismaClient(config) |
| 184 | +exports.PrismaClient = PrismaClient |
| 185 | +Object.assign(exports, Prisma) |
| 186 | + |
0 commit comments