create-zhx-monorepo 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/index.js +0 -11
- package/package.json +1 -1
- package/templates/monorepo-starter/README.md +28 -0
- package/templates/monorepo-starter/server/.env.example +1 -0
- package/templates/monorepo-starter/server/prisma/generated/browser.ts +0 -54
- package/templates/monorepo-starter/server/prisma/generated/client.ts +0 -76
- package/templates/monorepo-starter/server/prisma/generated/commonInputTypes.ts +0 -577
- package/templates/monorepo-starter/server/prisma/generated/enums.ts +0 -68
- package/templates/monorepo-starter/server/prisma/generated/internal/class.ts +0 -250
- package/templates/monorepo-starter/server/prisma/generated/internal/prismaNamespace.ts +0 -1436
- package/templates/monorepo-starter/server/prisma/generated/internal/prismaNamespaceBrowser.ts +0 -227
- package/templates/monorepo-starter/server/prisma/generated/models/BackupCode.ts +0 -1375
- package/templates/monorepo-starter/server/prisma/generated/models/Notification.ts +0 -1587
- package/templates/monorepo-starter/server/prisma/generated/models/Otp.ts +0 -1488
- package/templates/monorepo-starter/server/prisma/generated/models/RefreshToken.ts +0 -1515
- package/templates/monorepo-starter/server/prisma/generated/models/RoleAssignment.ts +0 -1385
- package/templates/monorepo-starter/server/prisma/generated/models/SecuritySetting.ts +0 -1422
- package/templates/monorepo-starter/server/prisma/generated/models/User.ts +0 -2498
- package/templates/monorepo-starter/server/prisma/generated/models.ts +0 -18
- package/templates/monorepo-starter/server/prisma/migrations/20251218164821_init/migration.sql +0 -210
- package/templates/monorepo-starter/server/prisma/migrations/migration_lock.toml +0 -3
|
@@ -1,250 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
// biome-ignore-all lint: generated file
|
|
5
|
-
// @ts-nocheck
|
|
6
|
-
/*
|
|
7
|
-
* WARNING: This is an internal file that is subject to change!
|
|
8
|
-
*
|
|
9
|
-
* 🛑 Under no circumstances should you import this file directly! 🛑
|
|
10
|
-
*
|
|
11
|
-
* Please import the `PrismaClient` class from the `client.ts` file instead.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
import * as runtime from "@prisma/client/runtime/client"
|
|
15
|
-
import type * as Prisma from "./prismaNamespace"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const config: runtime.GetPrismaClientConfig = {
|
|
19
|
-
"previewFeatures": [],
|
|
20
|
-
"clientVersion": "7.2.0",
|
|
21
|
-
"engineVersion": "0c8ef2ce45c83248ab3df073180d5eda9e8be7a3",
|
|
22
|
-
"activeProvider": "postgresql",
|
|
23
|
-
"inlineSchema": "// prisma/schema.prisma\n\ngenerator client {\n provider = \"prisma-client\"\n output = \"./generated\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n}\n\n//\n// ENUMS\n//\n\nenum UserRole {\n admin\n customer\n}\n\nenum OtpPurpose {\n setPassword\n resetPassword\n verifyIdentifier\n changeIdentifier\n enableMfa\n disableMfa\n verifyMfa\n}\n\nenum OtpType {\n otp\n token\n}\n\nenum MfaMethod {\n email\n sms\n whatsapp\n authApp\n}\n\nenum NotificationType {\n email\n sms\n whatsapp\n inApp\n}\n\nenum NotificationStatus {\n pending\n sent\n failed\n read\n}\n\n//\n// AUTH MODELS\n//\n\nmodel User {\n id String @id @default(ulid())\n username String? @unique\n password String?\n firstName String\n lastName String?\n displayName String\n imageUrl String?\n\n // Contact\n email String? @unique\n phone String? @unique\n isEmailVerified Boolean @default(false)\n isPhoneVerified Boolean @default(false)\n\n // Status\n lastLoginAt DateTime?\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n deletedAt DateTime?\n\n // Relations\n refreshTokens RefreshToken[]\n otps Otp[]\n roles RoleAssignment[]\n securitySetting SecuritySetting?\n\n notifications Notification[]\n backupCodes BackupCode[]\n\n @@index([email])\n @@index([phone])\n @@index([username])\n @@index([email, isEmailVerified])\n @@index([phone, isPhoneVerified])\n}\n\nmodel RoleAssignment {\n id String @id @default(ulid())\n userId String\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n role UserRole\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n revokedAt DateTime?\n\n @@unique([userId, role])\n}\n\nmodel SecuritySetting {\n id String @id @default(ulid())\n userId String @unique\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n preferredMfa MfaMethod?\n recoveryEmail String?\n recoveryPhone String?\n isMfaEnabled Boolean @default(false)\n loginAlerts Boolean @default(true)\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@index([userId])\n @@index([isMfaEnabled])\n}\n\nmodel BackupCode {\n id String @id @default(ulid())\n userId String\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n code String @unique\n usedAt DateTime?\n createdAt DateTime @default(now())\n expiresAt DateTime\n\n @@index([userId, usedAt])\n}\n\nmodel RefreshToken {\n id String @id @default(ulid())\n token String @unique\n userId String\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n ip String\n userAgent String\n lastUsed DateTime @default(now())\n createdAt DateTime @default(now())\n expiresAt DateTime\n isActive Boolean @default(true)\n blacklisted Boolean @default(false)\n\n @@index([userId])\n @@index([expiresAt])\n @@index([userId, expiresAt])\n}\n\nmodel Otp {\n id String @id @default(ulid())\n userId String\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n purpose OtpPurpose\n type OtpType @default(otp)\n secret String\n expiresAt DateTime\n usedAt DateTime?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@index([userId, purpose])\n @@index([expiresAt])\n}\n\nmodel Notification {\n id String @id @default(cuid())\n userId String\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n type NotificationType\n title String?\n message String?\n purpose String\n metadata Json?\n status NotificationStatus @default(pending)\n sentAt DateTime?\n readAt DateTime?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@index([userId])\n @@index([userId, readAt])\n}\n",
|
|
24
|
-
"runtimeDataModel": {
|
|
25
|
-
"models": {},
|
|
26
|
-
"enums": {},
|
|
27
|
-
"types": {}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
config.runtimeDataModel = JSON.parse("{\"models\":{\"User\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"username\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"password\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"firstName\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"lastName\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"displayName\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"imageUrl\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"phone\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"isEmailVerified\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"isPhoneVerified\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"lastLoginAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"deletedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"refreshTokens\",\"kind\":\"object\",\"type\":\"RefreshToken\",\"relationName\":\"RefreshTokenToUser\"},{\"name\":\"otps\",\"kind\":\"object\",\"type\":\"Otp\",\"relationName\":\"OtpToUser\"},{\"name\":\"roles\",\"kind\":\"object\",\"type\":\"RoleAssignment\",\"relationName\":\"RoleAssignmentToUser\"},{\"name\":\"securitySetting\",\"kind\":\"object\",\"type\":\"SecuritySetting\",\"relationName\":\"SecuritySettingToUser\"},{\"name\":\"notifications\",\"kind\":\"object\",\"type\":\"Notification\",\"relationName\":\"NotificationToUser\"},{\"name\":\"backupCodes\",\"kind\":\"object\",\"type\":\"BackupCode\",\"relationName\":\"BackupCodeToUser\"}],\"dbName\":null},\"RoleAssignment\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"RoleAssignmentToUser\"},{\"name\":\"role\",\"kind\":\"enum\",\"type\":\"UserRole\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"revokedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"SecuritySetting\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"SecuritySettingToUser\"},{\"name\":\"preferredMfa\",\"kind\":\"enum\",\"type\":\"MfaMethod\"},{\"name\":\"recoveryEmail\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"recoveryPhone\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"isMfaEnabled\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"loginAlerts\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"BackupCode\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"BackupCodeToUser\"},{\"name\":\"code\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"usedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"expiresAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"RefreshToken\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"token\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"RefreshTokenToUser\"},{\"name\":\"ip\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userAgent\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"lastUsed\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"expiresAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"isActive\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"blacklisted\",\"kind\":\"scalar\",\"type\":\"Boolean\"}],\"dbName\":null},\"Otp\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"OtpToUser\"},{\"name\":\"purpose\",\"kind\":\"enum\",\"type\":\"OtpPurpose\"},{\"name\":\"type\",\"kind\":\"enum\",\"type\":\"OtpType\"},{\"name\":\"secret\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"expiresAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"usedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"Notification\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"NotificationToUser\"},{\"name\":\"type\",\"kind\":\"enum\",\"type\":\"NotificationType\"},{\"name\":\"title\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"message\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"purpose\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"metadata\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"status\",\"kind\":\"enum\",\"type\":\"NotificationStatus\"},{\"name\":\"sentAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"readAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null}},\"enums\":{},\"types\":{}}")
|
|
32
|
-
|
|
33
|
-
async function decodeBase64AsWasm(wasmBase64: string): Promise<WebAssembly.Module> {
|
|
34
|
-
const { Buffer } = await import('node:buffer')
|
|
35
|
-
const wasmArray = Buffer.from(wasmBase64, 'base64')
|
|
36
|
-
return new WebAssembly.Module(wasmArray)
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
config.compilerWasm = {
|
|
40
|
-
getRuntime: async () => await import("@prisma/client/runtime/query_compiler_bg.postgresql.mjs"),
|
|
41
|
-
|
|
42
|
-
getQueryCompilerWasmModule: async () => {
|
|
43
|
-
const { wasm } = await import("@prisma/client/runtime/query_compiler_bg.postgresql.wasm-base64.mjs")
|
|
44
|
-
return await decodeBase64AsWasm(wasm)
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
export type LogOptions<ClientOptions extends Prisma.PrismaClientOptions> =
|
|
51
|
-
'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array<Prisma.LogLevel | Prisma.LogDefinition> ? Prisma.GetEvents<ClientOptions['log']> : never : never
|
|
52
|
-
|
|
53
|
-
export interface PrismaClientConstructor {
|
|
54
|
-
/**
|
|
55
|
-
* ## Prisma Client
|
|
56
|
-
*
|
|
57
|
-
* Type-safe database client for TypeScript
|
|
58
|
-
* @example
|
|
59
|
-
* ```
|
|
60
|
-
* const prisma = new PrismaClient()
|
|
61
|
-
* // Fetch zero or more Users
|
|
62
|
-
* const users = await prisma.user.findMany()
|
|
63
|
-
* ```
|
|
64
|
-
*
|
|
65
|
-
* Read more in our [docs](https://pris.ly/d/client).
|
|
66
|
-
*/
|
|
67
|
-
|
|
68
|
-
new <
|
|
69
|
-
Options extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions,
|
|
70
|
-
LogOpts extends LogOptions<Options> = LogOptions<Options>,
|
|
71
|
-
OmitOpts extends Prisma.PrismaClientOptions['omit'] = Options extends { omit: infer U } ? U : Prisma.PrismaClientOptions['omit'],
|
|
72
|
-
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs
|
|
73
|
-
>(options: Prisma.Subset<Options, Prisma.PrismaClientOptions> ): PrismaClient<LogOpts, OmitOpts, ExtArgs>
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* ## Prisma Client
|
|
78
|
-
*
|
|
79
|
-
* Type-safe database client for TypeScript
|
|
80
|
-
* @example
|
|
81
|
-
* ```
|
|
82
|
-
* const prisma = new PrismaClient()
|
|
83
|
-
* // Fetch zero or more Users
|
|
84
|
-
* const users = await prisma.user.findMany()
|
|
85
|
-
* ```
|
|
86
|
-
*
|
|
87
|
-
* Read more in our [docs](https://pris.ly/d/client).
|
|
88
|
-
*/
|
|
89
|
-
|
|
90
|
-
export interface PrismaClient<
|
|
91
|
-
in LogOpts extends Prisma.LogLevel = never,
|
|
92
|
-
in out OmitOpts extends Prisma.PrismaClientOptions['omit'] = undefined,
|
|
93
|
-
in out ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs
|
|
94
|
-
> {
|
|
95
|
-
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['other'] }
|
|
96
|
-
|
|
97
|
-
$on<V extends LogOpts>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* Connect with the database
|
|
101
|
-
*/
|
|
102
|
-
$connect(): runtime.Types.Utils.JsPromise<void>;
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* Disconnect from the database
|
|
106
|
-
*/
|
|
107
|
-
$disconnect(): runtime.Types.Utils.JsPromise<void>;
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* Executes a prepared raw query and returns the number of affected rows.
|
|
111
|
-
* @example
|
|
112
|
-
* ```
|
|
113
|
-
* const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`
|
|
114
|
-
* ```
|
|
115
|
-
*
|
|
116
|
-
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
117
|
-
*/
|
|
118
|
-
$executeRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>;
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* Executes a raw query and returns the number of affected rows.
|
|
122
|
-
* Susceptible to SQL injections, see documentation.
|
|
123
|
-
* @example
|
|
124
|
-
* ```
|
|
125
|
-
* const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com')
|
|
126
|
-
* ```
|
|
127
|
-
*
|
|
128
|
-
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
129
|
-
*/
|
|
130
|
-
$executeRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* Performs a prepared raw query and returns the `SELECT` data.
|
|
134
|
-
* @example
|
|
135
|
-
* ```
|
|
136
|
-
* const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`
|
|
137
|
-
* ```
|
|
138
|
-
*
|
|
139
|
-
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
140
|
-
*/
|
|
141
|
-
$queryRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>;
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* Performs a raw query and returns the `SELECT` data.
|
|
145
|
-
* Susceptible to SQL injections, see documentation.
|
|
146
|
-
* @example
|
|
147
|
-
* ```
|
|
148
|
-
* const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com')
|
|
149
|
-
* ```
|
|
150
|
-
*
|
|
151
|
-
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
152
|
-
*/
|
|
153
|
-
$queryRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole.
|
|
158
|
-
* @example
|
|
159
|
-
* ```
|
|
160
|
-
* const [george, bob, alice] = await prisma.$transaction([
|
|
161
|
-
* prisma.user.create({ data: { name: 'George' } }),
|
|
162
|
-
* prisma.user.create({ data: { name: 'Bob' } }),
|
|
163
|
-
* prisma.user.create({ data: { name: 'Alice' } }),
|
|
164
|
-
* ])
|
|
165
|
-
* ```
|
|
166
|
-
*
|
|
167
|
-
* Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions).
|
|
168
|
-
*/
|
|
169
|
-
$transaction<P extends Prisma.PrismaPromise<any>[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): runtime.Types.Utils.JsPromise<runtime.Types.Utils.UnwrapTuple<P>>
|
|
170
|
-
|
|
171
|
-
$transaction<R>(fn: (prisma: Omit<PrismaClient, runtime.ITXClientDenyList>) => runtime.Types.Utils.JsPromise<R>, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): runtime.Types.Utils.JsPromise<R>
|
|
172
|
-
|
|
173
|
-
$extends: runtime.Types.Extensions.ExtendsHook<"extends", Prisma.TypeMapCb<OmitOpts>, ExtArgs, runtime.Types.Utils.Call<Prisma.TypeMapCb<OmitOpts>, {
|
|
174
|
-
extArgs: ExtArgs
|
|
175
|
-
}>>
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* `prisma.user`: Exposes CRUD operations for the **User** model.
|
|
179
|
-
* Example usage:
|
|
180
|
-
* ```ts
|
|
181
|
-
* // Fetch zero or more Users
|
|
182
|
-
* const users = await prisma.user.findMany()
|
|
183
|
-
* ```
|
|
184
|
-
*/
|
|
185
|
-
get user(): Prisma.UserDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* `prisma.roleAssignment`: Exposes CRUD operations for the **RoleAssignment** model.
|
|
189
|
-
* Example usage:
|
|
190
|
-
* ```ts
|
|
191
|
-
* // Fetch zero or more RoleAssignments
|
|
192
|
-
* const roleAssignments = await prisma.roleAssignment.findMany()
|
|
193
|
-
* ```
|
|
194
|
-
*/
|
|
195
|
-
get roleAssignment(): Prisma.RoleAssignmentDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* `prisma.securitySetting`: Exposes CRUD operations for the **SecuritySetting** model.
|
|
199
|
-
* Example usage:
|
|
200
|
-
* ```ts
|
|
201
|
-
* // Fetch zero or more SecuritySettings
|
|
202
|
-
* const securitySettings = await prisma.securitySetting.findMany()
|
|
203
|
-
* ```
|
|
204
|
-
*/
|
|
205
|
-
get securitySetting(): Prisma.SecuritySettingDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* `prisma.backupCode`: Exposes CRUD operations for the **BackupCode** model.
|
|
209
|
-
* Example usage:
|
|
210
|
-
* ```ts
|
|
211
|
-
* // Fetch zero or more BackupCodes
|
|
212
|
-
* const backupCodes = await prisma.backupCode.findMany()
|
|
213
|
-
* ```
|
|
214
|
-
*/
|
|
215
|
-
get backupCode(): Prisma.BackupCodeDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* `prisma.refreshToken`: Exposes CRUD operations for the **RefreshToken** model.
|
|
219
|
-
* Example usage:
|
|
220
|
-
* ```ts
|
|
221
|
-
* // Fetch zero or more RefreshTokens
|
|
222
|
-
* const refreshTokens = await prisma.refreshToken.findMany()
|
|
223
|
-
* ```
|
|
224
|
-
*/
|
|
225
|
-
get refreshToken(): Prisma.RefreshTokenDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* `prisma.otp`: Exposes CRUD operations for the **Otp** model.
|
|
229
|
-
* Example usage:
|
|
230
|
-
* ```ts
|
|
231
|
-
* // Fetch zero or more Otps
|
|
232
|
-
* const otps = await prisma.otp.findMany()
|
|
233
|
-
* ```
|
|
234
|
-
*/
|
|
235
|
-
get otp(): Prisma.OtpDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
236
|
-
|
|
237
|
-
/**
|
|
238
|
-
* `prisma.notification`: Exposes CRUD operations for the **Notification** model.
|
|
239
|
-
* Example usage:
|
|
240
|
-
* ```ts
|
|
241
|
-
* // Fetch zero or more Notifications
|
|
242
|
-
* const notifications = await prisma.notification.findMany()
|
|
243
|
-
* ```
|
|
244
|
-
*/
|
|
245
|
-
get notification(): Prisma.NotificationDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
export function getPrismaClientClass(): PrismaClientConstructor {
|
|
249
|
-
return runtime.getPrismaClient(config) as unknown as PrismaClientConstructor
|
|
250
|
-
}
|