@s-hirano-ist/s-database 1.5.0 → 1.5.2
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/package.json +3 -3
- package/prisma/schema.prisma +2 -2
- package/src/generated/client.d.ts +1 -0
- package/src/generated/client.js +5 -0
- package/src/generated/default.d.ts +1 -0
- package/src/generated/default.js +5 -0
- package/src/generated/edge.d.ts +1 -0
- package/src/generated/edge.js +220 -0
- package/src/generated/index-browser.js +251 -0
- package/src/generated/index.d.ts +8915 -0
- package/src/generated/index.js +220 -0
- package/src/generated/package.json +144 -0
- package/src/generated/query_compiler_bg.js +2 -0
- package/src/generated/query_compiler_bg.wasm +0 -0
- package/src/generated/query_compiler_bg.wasm-base64.js +2 -0
- package/src/generated/runtime/client.d.ts +3317 -0
- package/src/generated/runtime/client.js +86 -0
- package/src/generated/runtime/index-browser.d.ts +87 -0
- package/src/generated/runtime/index-browser.js +6 -0
- package/src/generated/runtime/wasm-compiler-edge.js +76 -0
- package/src/generated/schema.prisma +126 -0
- package/src/generated/wasm-edge-light-loader.mjs +5 -0
- package/src/generated/wasm-worker-loader.mjs +5 -0
- package/src/index.ts +2 -13
- package/src/generated/prisma/browser.ts +0 -44
- package/src/generated/prisma/client.ts +0 -66
- package/src/generated/prisma/commonInputTypes.ts +0 -360
- package/src/generated/prisma/enums.ts +0 -18
- package/src/generated/prisma/internal/class.ts +0 -230
- package/src/generated/prisma/internal/prismaNamespace.ts +0 -1167
- package/src/generated/prisma/internal/prismaNamespaceBrowser.ts +0 -185
- package/src/generated/prisma/models/Article.ts +0 -1638
- package/src/generated/prisma/models/Book.ts +0 -1536
- package/src/generated/prisma/models/Category.ts +0 -1336
- package/src/generated/prisma/models/Image.ts +0 -1449
- package/src/generated/prisma/models/Note.ts +0 -1234
- package/src/generated/prisma/models.ts +0 -16
|
@@ -1,230 +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": "generator client {\n provider = \"prisma-client\"\n output = \"../src/generated/prisma\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n}\n\nenum Status {\n UNEXPORTED\n LAST_UPDATED\n EXPORTED\n}\n\nmodel Category {\n id String @id\n\n name String\n\n Articles Article[]\n\n createdAt DateTime @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n\n userId String @map(\"user_id\")\n\n @@unique([name, userId])\n @@map(\"categories\")\n}\n\nmodel Article {\n id String @id\n\n title String\n url String\n quote String?\n\n ogImageUrl String? @map(\"og_image_url\")\n ogTitle String? @map(\"og_title\")\n ogDescription String? @map(\"og_description\")\n\n Category Category @relation(fields: [categoryId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n categoryId String @map(\"category_id\")\n\n status Status\n\n userId String @map(\"user_id\")\n\n createdAt DateTime @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n exportedAt DateTime? @map(\"exported_at\")\n\n @@unique([url, userId])\n @@map(\"articles\")\n}\n\nmodel Note {\n id String @id\n\n title String\n markdown String\n\n status Status\n\n userId String @map(\"user_id\")\n\n createdAt DateTime @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n exportedAt DateTime? @map(\"exported_at\")\n\n @@unique([title, userId])\n @@map(\"notes\")\n}\n\nmodel Image {\n id String @id\n\n path String\n contentType String @map(\"content_type\") // e.g.: image/jpeg, image/png\n fileSize Int? @map(\"file_size\") // byte\n width Int? // pixel\n height Int? // pixel\n tags String[]\n description String?\n\n status Status\n\n userId String @map(\"user_id\")\n\n createdAt DateTime @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n exportedAt DateTime? @map(\"exported_at\")\n\n @@unique([path, userId])\n @@map(\"images\")\n}\n\nmodel Book {\n id String @id\n ISBN String @map(\"isbn\")\n title String\n\n googleTitle String? @map(\"google_title\")\n googleSubTitle String? @map(\"google_subtitle\")\n googleAuthors String[] @map(\"google_authors\")\n googleDescription String? @map(\"google_description\")\n googleImgSrc String? @map(\"google_img_src\")\n googleHref String? @map(\"google_href\")\n\n markdown String?\n\n rating Int? // 1-5\n tags String[]\n\n status Status\n\n userId String @map(\"user_id\")\n\n createdAt DateTime @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n exportedAt DateTime? @map(\"exported_at\")\n\n @@unique([ISBN, userId])\n @@map(\"books\")\n}\n",
|
|
24
|
-
"runtimeDataModel": {
|
|
25
|
-
"models": {},
|
|
26
|
-
"enums": {},
|
|
27
|
-
"types": {}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
config.runtimeDataModel = JSON.parse("{\"models\":{\"Category\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"Articles\",\"kind\":\"object\",\"type\":\"Article\",\"relationName\":\"ArticleToCategory\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"user_id\"}],\"dbName\":\"categories\"},\"Article\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"title\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"url\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"quote\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"ogImageUrl\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"og_image_url\"},{\"name\":\"ogTitle\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"og_title\"},{\"name\":\"ogDescription\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"og_description\"},{\"name\":\"Category\",\"kind\":\"object\",\"type\":\"Category\",\"relationName\":\"ArticleToCategory\"},{\"name\":\"categoryId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"category_id\"},{\"name\":\"status\",\"kind\":\"enum\",\"type\":\"Status\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"user_id\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"exportedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"exported_at\"}],\"dbName\":\"articles\"},\"Note\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"title\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"markdown\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"status\",\"kind\":\"enum\",\"type\":\"Status\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"user_id\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"exportedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"exported_at\"}],\"dbName\":\"notes\"},\"Image\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"path\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"contentType\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"content_type\"},{\"name\":\"fileSize\",\"kind\":\"scalar\",\"type\":\"Int\",\"dbName\":\"file_size\"},{\"name\":\"width\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"height\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"tags\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"status\",\"kind\":\"enum\",\"type\":\"Status\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"user_id\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"exportedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"exported_at\"}],\"dbName\":\"images\"},\"Book\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"ISBN\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"isbn\"},{\"name\":\"title\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"googleTitle\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"google_title\"},{\"name\":\"googleSubTitle\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"google_subtitle\"},{\"name\":\"googleAuthors\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"google_authors\"},{\"name\":\"googleDescription\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"google_description\"},{\"name\":\"googleImgSrc\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"google_img_src\"},{\"name\":\"googleHref\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"google_href\"},{\"name\":\"markdown\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"rating\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"tags\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"status\",\"kind\":\"enum\",\"type\":\"Status\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"user_id\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"exportedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"exported_at\"}],\"dbName\":\"books\"}},\"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 Categories
|
|
62
|
-
* const categories = await prisma.category.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 Categories
|
|
84
|
-
* const categories = await prisma.category.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.category`: Exposes CRUD operations for the **Category** model.
|
|
179
|
-
* Example usage:
|
|
180
|
-
* ```ts
|
|
181
|
-
* // Fetch zero or more Categories
|
|
182
|
-
* const categories = await prisma.category.findMany()
|
|
183
|
-
* ```
|
|
184
|
-
*/
|
|
185
|
-
get category(): Prisma.CategoryDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* `prisma.article`: Exposes CRUD operations for the **Article** model.
|
|
189
|
-
* Example usage:
|
|
190
|
-
* ```ts
|
|
191
|
-
* // Fetch zero or more Articles
|
|
192
|
-
* const articles = await prisma.article.findMany()
|
|
193
|
-
* ```
|
|
194
|
-
*/
|
|
195
|
-
get article(): Prisma.ArticleDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* `prisma.note`: Exposes CRUD operations for the **Note** model.
|
|
199
|
-
* Example usage:
|
|
200
|
-
* ```ts
|
|
201
|
-
* // Fetch zero or more Notes
|
|
202
|
-
* const notes = await prisma.note.findMany()
|
|
203
|
-
* ```
|
|
204
|
-
*/
|
|
205
|
-
get note(): Prisma.NoteDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* `prisma.image`: Exposes CRUD operations for the **Image** model.
|
|
209
|
-
* Example usage:
|
|
210
|
-
* ```ts
|
|
211
|
-
* // Fetch zero or more Images
|
|
212
|
-
* const images = await prisma.image.findMany()
|
|
213
|
-
* ```
|
|
214
|
-
*/
|
|
215
|
-
get image(): Prisma.ImageDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* `prisma.book`: Exposes CRUD operations for the **Book** model.
|
|
219
|
-
* Example usage:
|
|
220
|
-
* ```ts
|
|
221
|
-
* // Fetch zero or more Books
|
|
222
|
-
* const books = await prisma.book.findMany()
|
|
223
|
-
* ```
|
|
224
|
-
*/
|
|
225
|
-
get book(): Prisma.BookDelegate<ExtArgs, { omit: OmitOpts }>;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
export function getPrismaClientClass(): PrismaClientConstructor {
|
|
229
|
-
return runtime.getPrismaClient(config) as unknown as PrismaClientConstructor
|
|
230
|
-
}
|