@s-hirano-ist/s-database 0.0.0
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/LICENSE +661 -0
- package/package.json +49 -0
- package/prisma/migrations/20241005070905_initial_with_user/migration.sql +105 -0
- package/prisma/migrations/20241005122052_category_unique_name/migration.sql +11 -0
- package/prisma/migrations/20241006114119_add_role/migration.sql +5 -0
- package/prisma/migrations/20241011230910_add_scope_and_username/migration.sql +24 -0
- package/prisma/migrations/20241012012914_migrate_user_verified_to_role/migration.sql +11 -0
- package/prisma/migrations/20241012014828_delete_user_email/migration.sql +11 -0
- package/prisma/migrations/20241013122009_delete_unique_on_profile_name/migration.sql +2 -0
- package/prisma/migrations/20241113115839_add_image_table/migration.sql +13 -0
- package/prisma/migrations/20241116050545_login_lock/migration.sql +3 -0
- package/prisma/migrations/20250104003943_delete_user_scope_column/migration.sql +11 -0
- package/prisma/migrations/20250104031930_delete_unauthorized_role_enum/migration.sql +16 -0
- package/prisma/migrations/20250104033736_change_user_role_enum_name/migration.sql +19 -0
- package/prisma/migrations/20250104064405_add_static_books_and_contents/migration.sql +27 -0
- package/prisma/migrations/20250113084254_drop_user_table/migration.sql +37 -0
- package/prisma/migrations/20250118084244_add_image_metadata/migration.sql +14 -0
- package/prisma/migrations/20250129231002_add_static_image_table/migration.sql +14 -0
- package/prisma/migrations/20250504020635_add_static_news_table/migration.sql +27 -0
- package/prisma/migrations/20250510025039_fix_no_unique_for_categories/migration.sql +2 -0
- package/prisma/migrations/20250614000736_add_google_api_data/migration.sql +31 -0
- package/prisma/migrations/20250719061839_add_og_for_static_news/migration.sql +4 -0
- package/prisma/migrations/20250730114244_delete_uint8arrayimage_from_static_books/migration.sql +8 -0
- package/prisma/migrations/20250811111733_delete_static_news/migration.sql +20 -0
- package/prisma/migrations/20250811115459_delete_updated_recently/migration.sql +34 -0
- package/prisma/migrations/20250811131348_merge_viewer_to_dumper/migration.sql +54 -0
- package/prisma/migrations/20250812234654_add_unique_costraints_on_unique_key/migration.sql +19 -0
- package/prisma/migrations/20250813033448_add_unique_constraints_on_images/migration.sql +8 -0
- package/prisma/migrations/20250813085846_delete_single_unique_constraints/migration.sql +5 -0
- package/prisma/migrations/20250813140904_change_id_from_int_to_uuid/migration.sql +27 -0
- package/prisma/migrations/20250813141347_move_image_id_to_paths/migration.sql +15 -0
- package/prisma/migrations/20250815002544_change_default_values/migration.sql +39 -0
- package/prisma/migrations/20250815040824_rename_images_paths_to_path/migration.sql +17 -0
- package/prisma/migrations/20250818232331_change_news_contents_to_article_note/migration.sql +57 -0
- package/prisma/migrations/20250819024722_delete_default_now_for_created_at/migration.sql +14 -0
- package/prisma/migrations/migration_lock.toml +3 -0
- package/prisma/schema.prisma +127 -0
- 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 +264 -0
- package/src/generated/index-browser.js +251 -0
- package/src/generated/index.d.ts +8913 -0
- package/src/generated/index.js +279 -0
- package/src/generated/package.json +183 -0
- package/src/generated/runtime/edge-esm.js +35 -0
- package/src/generated/runtime/edge.js +35 -0
- package/src/generated/runtime/index-browser.d.ts +370 -0
- package/src/generated/runtime/index-browser.js +17 -0
- package/src/generated/runtime/library.d.ts +3982 -0
- package/src/generated/runtime/library.js +147 -0
- package/src/generated/runtime/react-native.js +84 -0
- package/src/generated/runtime/wasm-compiler-edge.js +85 -0
- package/src/generated/runtime/wasm-engine-edge.js +37 -0
- package/src/generated/schema.prisma +127 -0
- package/src/generated/wasm-edge-light-loader.mjs +5 -0
- package/src/generated/wasm-worker-loader.mjs +5 -0
- package/src/generated/wasm.d.ts +1 -0
- package/src/generated/wasm.js +264 -0
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
|
|
2
|
+
/* !!! This is code generated by Prisma. Do not edit directly. !!!
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// biome-ignore-all lint: generated file
|
|
5
|
+
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
|
|
8
|
+
const {
|
|
9
|
+
PrismaClientKnownRequestError,
|
|
10
|
+
PrismaClientUnknownRequestError,
|
|
11
|
+
PrismaClientRustPanicError,
|
|
12
|
+
PrismaClientInitializationError,
|
|
13
|
+
PrismaClientValidationError,
|
|
14
|
+
getPrismaClient,
|
|
15
|
+
sqltag,
|
|
16
|
+
empty,
|
|
17
|
+
join,
|
|
18
|
+
raw,
|
|
19
|
+
skip,
|
|
20
|
+
Decimal,
|
|
21
|
+
Debug,
|
|
22
|
+
objectEnumValues,
|
|
23
|
+
makeStrictEnum,
|
|
24
|
+
Extensions,
|
|
25
|
+
warnOnce,
|
|
26
|
+
defineDmmfProperty,
|
|
27
|
+
Public,
|
|
28
|
+
getRuntime,
|
|
29
|
+
createParam,
|
|
30
|
+
} = require('./runtime/wasm-engine-edge.js')
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
const Prisma = {}
|
|
34
|
+
|
|
35
|
+
exports.Prisma = Prisma
|
|
36
|
+
exports.$Enums = {}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Prisma Client JS version: 6.19.0
|
|
40
|
+
* Query Engine version: 2ba551f319ab1df4bc874a89965d8b3641056773
|
|
41
|
+
*/
|
|
42
|
+
Prisma.prismaVersion = {
|
|
43
|
+
client: "6.19.0",
|
|
44
|
+
engine: "2ba551f319ab1df4bc874a89965d8b3641056773"
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
Prisma.PrismaClientKnownRequestError = PrismaClientKnownRequestError;
|
|
48
|
+
Prisma.PrismaClientUnknownRequestError = PrismaClientUnknownRequestError
|
|
49
|
+
Prisma.PrismaClientRustPanicError = PrismaClientRustPanicError
|
|
50
|
+
Prisma.PrismaClientInitializationError = PrismaClientInitializationError
|
|
51
|
+
Prisma.PrismaClientValidationError = PrismaClientValidationError
|
|
52
|
+
Prisma.Decimal = Decimal
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Re-export of sql-template-tag
|
|
56
|
+
*/
|
|
57
|
+
Prisma.sql = sqltag
|
|
58
|
+
Prisma.empty = empty
|
|
59
|
+
Prisma.join = join
|
|
60
|
+
Prisma.raw = raw
|
|
61
|
+
Prisma.validator = Public.validator
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Extensions
|
|
65
|
+
*/
|
|
66
|
+
Prisma.getExtensionContext = Extensions.getExtensionContext
|
|
67
|
+
Prisma.defineExtension = Extensions.defineExtension
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Shorthand utilities for JSON filtering
|
|
71
|
+
*/
|
|
72
|
+
Prisma.DbNull = objectEnumValues.instances.DbNull
|
|
73
|
+
Prisma.JsonNull = objectEnumValues.instances.JsonNull
|
|
74
|
+
Prisma.AnyNull = objectEnumValues.instances.AnyNull
|
|
75
|
+
|
|
76
|
+
Prisma.NullTypes = {
|
|
77
|
+
DbNull: objectEnumValues.classes.DbNull,
|
|
78
|
+
JsonNull: objectEnumValues.classes.JsonNull,
|
|
79
|
+
AnyNull: objectEnumValues.classes.AnyNull
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Enums
|
|
88
|
+
*/
|
|
89
|
+
exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
|
|
90
|
+
ReadUncommitted: 'ReadUncommitted',
|
|
91
|
+
ReadCommitted: 'ReadCommitted',
|
|
92
|
+
RepeatableRead: 'RepeatableRead',
|
|
93
|
+
Serializable: 'Serializable'
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
exports.Prisma.CategoryScalarFieldEnum = {
|
|
97
|
+
id: 'id',
|
|
98
|
+
name: 'name',
|
|
99
|
+
createdAt: 'createdAt',
|
|
100
|
+
updatedAt: 'updatedAt',
|
|
101
|
+
userId: 'userId'
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
exports.Prisma.ArticleScalarFieldEnum = {
|
|
105
|
+
id: 'id',
|
|
106
|
+
title: 'title',
|
|
107
|
+
url: 'url',
|
|
108
|
+
quote: 'quote',
|
|
109
|
+
ogImageUrl: 'ogImageUrl',
|
|
110
|
+
ogTitle: 'ogTitle',
|
|
111
|
+
ogDescription: 'ogDescription',
|
|
112
|
+
categoryId: 'categoryId',
|
|
113
|
+
status: 'status',
|
|
114
|
+
userId: 'userId',
|
|
115
|
+
createdAt: 'createdAt',
|
|
116
|
+
updatedAt: 'updatedAt',
|
|
117
|
+
exportedAt: 'exportedAt'
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
exports.Prisma.NoteScalarFieldEnum = {
|
|
121
|
+
id: 'id',
|
|
122
|
+
title: 'title',
|
|
123
|
+
markdown: 'markdown',
|
|
124
|
+
status: 'status',
|
|
125
|
+
userId: 'userId',
|
|
126
|
+
createdAt: 'createdAt',
|
|
127
|
+
updatedAt: 'updatedAt',
|
|
128
|
+
exportedAt: 'exportedAt'
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
exports.Prisma.ImageScalarFieldEnum = {
|
|
132
|
+
id: 'id',
|
|
133
|
+
path: 'path',
|
|
134
|
+
contentType: 'contentType',
|
|
135
|
+
fileSize: 'fileSize',
|
|
136
|
+
width: 'width',
|
|
137
|
+
height: 'height',
|
|
138
|
+
tags: 'tags',
|
|
139
|
+
description: 'description',
|
|
140
|
+
status: 'status',
|
|
141
|
+
userId: 'userId',
|
|
142
|
+
createdAt: 'createdAt',
|
|
143
|
+
updatedAt: 'updatedAt',
|
|
144
|
+
exportedAt: 'exportedAt'
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
exports.Prisma.BookScalarFieldEnum = {
|
|
148
|
+
id: 'id',
|
|
149
|
+
ISBN: 'ISBN',
|
|
150
|
+
title: 'title',
|
|
151
|
+
googleTitle: 'googleTitle',
|
|
152
|
+
googleSubTitle: 'googleSubTitle',
|
|
153
|
+
googleAuthors: 'googleAuthors',
|
|
154
|
+
googleDescription: 'googleDescription',
|
|
155
|
+
googleImgSrc: 'googleImgSrc',
|
|
156
|
+
googleHref: 'googleHref',
|
|
157
|
+
markdown: 'markdown',
|
|
158
|
+
rating: 'rating',
|
|
159
|
+
tags: 'tags',
|
|
160
|
+
status: 'status',
|
|
161
|
+
userId: 'userId',
|
|
162
|
+
createdAt: 'createdAt',
|
|
163
|
+
updatedAt: 'updatedAt',
|
|
164
|
+
exportedAt: 'exportedAt'
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
exports.Prisma.SortOrder = {
|
|
168
|
+
asc: 'asc',
|
|
169
|
+
desc: 'desc'
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
exports.Prisma.QueryMode = {
|
|
173
|
+
default: 'default',
|
|
174
|
+
insensitive: 'insensitive'
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
exports.Prisma.NullsOrder = {
|
|
178
|
+
first: 'first',
|
|
179
|
+
last: 'last'
|
|
180
|
+
};
|
|
181
|
+
exports.Status = exports.$Enums.Status = {
|
|
182
|
+
UNEXPORTED: 'UNEXPORTED',
|
|
183
|
+
EXPORTED: 'EXPORTED'
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
exports.Prisma.ModelName = {
|
|
187
|
+
Category: 'Category',
|
|
188
|
+
Article: 'Article',
|
|
189
|
+
Note: 'Note',
|
|
190
|
+
Image: 'Image',
|
|
191
|
+
Book: 'Book'
|
|
192
|
+
};
|
|
193
|
+
/**
|
|
194
|
+
* Create the Client
|
|
195
|
+
*/
|
|
196
|
+
const config = {
|
|
197
|
+
"generator": {
|
|
198
|
+
"name": "client",
|
|
199
|
+
"provider": {
|
|
200
|
+
"fromEnvVar": null,
|
|
201
|
+
"value": "prisma-client-js"
|
|
202
|
+
},
|
|
203
|
+
"output": {
|
|
204
|
+
"value": "/Users/sola/personal/on-going/s-private/packages/database/src/generated",
|
|
205
|
+
"fromEnvVar": null
|
|
206
|
+
},
|
|
207
|
+
"config": {
|
|
208
|
+
"engineType": "library"
|
|
209
|
+
},
|
|
210
|
+
"binaryTargets": [
|
|
211
|
+
{
|
|
212
|
+
"fromEnvVar": null,
|
|
213
|
+
"value": "darwin-arm64",
|
|
214
|
+
"native": true
|
|
215
|
+
}
|
|
216
|
+
],
|
|
217
|
+
"previewFeatures": [],
|
|
218
|
+
"sourceFilePath": "/Users/sola/personal/on-going/s-private/packages/database/prisma/schema.prisma",
|
|
219
|
+
"isCustomOutput": true
|
|
220
|
+
},
|
|
221
|
+
"relativeEnvPaths": {
|
|
222
|
+
"rootEnvPath": null
|
|
223
|
+
},
|
|
224
|
+
"relativePath": "../../prisma",
|
|
225
|
+
"clientVersion": "6.19.0",
|
|
226
|
+
"engineVersion": "2ba551f319ab1df4bc874a89965d8b3641056773",
|
|
227
|
+
"datasourceNames": [
|
|
228
|
+
"db"
|
|
229
|
+
],
|
|
230
|
+
"activeProvider": "postgresql",
|
|
231
|
+
"postinstall": false,
|
|
232
|
+
"inlineDatasources": {
|
|
233
|
+
"db": {
|
|
234
|
+
"url": {
|
|
235
|
+
"fromEnvVar": "DATABASE_URL",
|
|
236
|
+
"value": null
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
"inlineSchema": "generator client {\n provider = \"prisma-client-js\"\n output = \"../src/generated\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\") // uses connection pooling\n // directUrl = env(\"POSTGRES_DIRECT_URL\") // uses a direct connection // not needed for prisma postgresql database\n}\n\nenum Status {\n UNEXPORTED\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",
|
|
241
|
+
"inlineSchemaHash": "8728a5c5069e9e0530f97e733a5fcee6bda99bbf0eab99769714ef9bd272854c",
|
|
242
|
+
"copyEngine": false
|
|
243
|
+
}
|
|
244
|
+
config.dirname = '/'
|
|
245
|
+
|
|
246
|
+
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\":{}}")
|
|
247
|
+
defineDmmfProperty(exports.Prisma, config.runtimeDataModel)
|
|
248
|
+
config.engineWasm = undefined
|
|
249
|
+
config.compilerWasm = undefined
|
|
250
|
+
|
|
251
|
+
config.injectableEdgeEnv = () => ({
|
|
252
|
+
parsed: {
|
|
253
|
+
DATABASE_URL: typeof globalThis !== 'undefined' && globalThis['DATABASE_URL'] || typeof process !== 'undefined' && process.env && process.env.DATABASE_URL || undefined
|
|
254
|
+
}
|
|
255
|
+
})
|
|
256
|
+
|
|
257
|
+
if (typeof globalThis !== 'undefined' && globalThis['DEBUG'] || typeof process !== 'undefined' && process.env && process.env.DEBUG || undefined) {
|
|
258
|
+
Debug.enable(typeof globalThis !== 'undefined' && globalThis['DEBUG'] || typeof process !== 'undefined' && process.env && process.env.DEBUG || undefined)
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
const PrismaClient = getPrismaClient(config)
|
|
262
|
+
exports.PrismaClient = PrismaClient
|
|
263
|
+
Object.assign(exports, Prisma)
|
|
264
|
+
|