@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.
Files changed (61) hide show
  1. package/LICENSE +661 -0
  2. package/package.json +49 -0
  3. package/prisma/migrations/20241005070905_initial_with_user/migration.sql +105 -0
  4. package/prisma/migrations/20241005122052_category_unique_name/migration.sql +11 -0
  5. package/prisma/migrations/20241006114119_add_role/migration.sql +5 -0
  6. package/prisma/migrations/20241011230910_add_scope_and_username/migration.sql +24 -0
  7. package/prisma/migrations/20241012012914_migrate_user_verified_to_role/migration.sql +11 -0
  8. package/prisma/migrations/20241012014828_delete_user_email/migration.sql +11 -0
  9. package/prisma/migrations/20241013122009_delete_unique_on_profile_name/migration.sql +2 -0
  10. package/prisma/migrations/20241113115839_add_image_table/migration.sql +13 -0
  11. package/prisma/migrations/20241116050545_login_lock/migration.sql +3 -0
  12. package/prisma/migrations/20250104003943_delete_user_scope_column/migration.sql +11 -0
  13. package/prisma/migrations/20250104031930_delete_unauthorized_role_enum/migration.sql +16 -0
  14. package/prisma/migrations/20250104033736_change_user_role_enum_name/migration.sql +19 -0
  15. package/prisma/migrations/20250104064405_add_static_books_and_contents/migration.sql +27 -0
  16. package/prisma/migrations/20250113084254_drop_user_table/migration.sql +37 -0
  17. package/prisma/migrations/20250118084244_add_image_metadata/migration.sql +14 -0
  18. package/prisma/migrations/20250129231002_add_static_image_table/migration.sql +14 -0
  19. package/prisma/migrations/20250504020635_add_static_news_table/migration.sql +27 -0
  20. package/prisma/migrations/20250510025039_fix_no_unique_for_categories/migration.sql +2 -0
  21. package/prisma/migrations/20250614000736_add_google_api_data/migration.sql +31 -0
  22. package/prisma/migrations/20250719061839_add_og_for_static_news/migration.sql +4 -0
  23. package/prisma/migrations/20250730114244_delete_uint8arrayimage_from_static_books/migration.sql +8 -0
  24. package/prisma/migrations/20250811111733_delete_static_news/migration.sql +20 -0
  25. package/prisma/migrations/20250811115459_delete_updated_recently/migration.sql +34 -0
  26. package/prisma/migrations/20250811131348_merge_viewer_to_dumper/migration.sql +54 -0
  27. package/prisma/migrations/20250812234654_add_unique_costraints_on_unique_key/migration.sql +19 -0
  28. package/prisma/migrations/20250813033448_add_unique_constraints_on_images/migration.sql +8 -0
  29. package/prisma/migrations/20250813085846_delete_single_unique_constraints/migration.sql +5 -0
  30. package/prisma/migrations/20250813140904_change_id_from_int_to_uuid/migration.sql +27 -0
  31. package/prisma/migrations/20250813141347_move_image_id_to_paths/migration.sql +15 -0
  32. package/prisma/migrations/20250815002544_change_default_values/migration.sql +39 -0
  33. package/prisma/migrations/20250815040824_rename_images_paths_to_path/migration.sql +17 -0
  34. package/prisma/migrations/20250818232331_change_news_contents_to_article_note/migration.sql +57 -0
  35. package/prisma/migrations/20250819024722_delete_default_now_for_created_at/migration.sql +14 -0
  36. package/prisma/migrations/migration_lock.toml +3 -0
  37. package/prisma/schema.prisma +127 -0
  38. package/src/generated/client.d.ts +1 -0
  39. package/src/generated/client.js +5 -0
  40. package/src/generated/default.d.ts +1 -0
  41. package/src/generated/default.js +5 -0
  42. package/src/generated/edge.d.ts +1 -0
  43. package/src/generated/edge.js +264 -0
  44. package/src/generated/index-browser.js +251 -0
  45. package/src/generated/index.d.ts +8913 -0
  46. package/src/generated/index.js +279 -0
  47. package/src/generated/package.json +183 -0
  48. package/src/generated/runtime/edge-esm.js +35 -0
  49. package/src/generated/runtime/edge.js +35 -0
  50. package/src/generated/runtime/index-browser.d.ts +370 -0
  51. package/src/generated/runtime/index-browser.js +17 -0
  52. package/src/generated/runtime/library.d.ts +3982 -0
  53. package/src/generated/runtime/library.js +147 -0
  54. package/src/generated/runtime/react-native.js +84 -0
  55. package/src/generated/runtime/wasm-compiler-edge.js +85 -0
  56. package/src/generated/runtime/wasm-engine-edge.js +37 -0
  57. package/src/generated/schema.prisma +127 -0
  58. package/src/generated/wasm-edge-light-loader.mjs +5 -0
  59. package/src/generated/wasm-worker-loader.mjs +5 -0
  60. package/src/generated/wasm.d.ts +1 -0
  61. package/src/generated/wasm.js +264 -0
@@ -0,0 +1,15 @@
1
+ /*
2
+ Warnings:
3
+
4
+ - A unique constraint covering the columns `[paths,user_id]` on the table `images` will be added. If there are existing duplicate values, this will fail.
5
+ - Added the required column `paths` to the `images` table without a default value. This is not possible if the table is not empty.
6
+
7
+ */
8
+ -- DropIndex
9
+ DROP INDEX "public"."images_id_user_id_key";
10
+
11
+ -- AlterTable
12
+ ALTER TABLE "public"."images" ADD COLUMN "paths" TEXT NOT NULL;
13
+
14
+ -- CreateIndex
15
+ CREATE UNIQUE INDEX "images_paths_user_id_key" ON "public"."images"("paths", "user_id");
@@ -0,0 +1,39 @@
1
+ /*
2
+ Warnings:
3
+
4
+ - The primary key for the `categories` table will be changed. If it partially fails, the table could be left without primary key constraint.
5
+
6
+ */
7
+ -- DropForeignKey
8
+ ALTER TABLE "public"."news" DROP CONSTRAINT "news_category_id_fkey";
9
+
10
+ -- AlterTable
11
+ ALTER TABLE "public"."books" ALTER COLUMN "google_title" DROP NOT NULL,
12
+ ALTER COLUMN "google_subtitle" DROP NOT NULL,
13
+ ALTER COLUMN "google_description" DROP NOT NULL,
14
+ ALTER COLUMN "google_img_src" DROP NOT NULL,
15
+ ALTER COLUMN "google_href" DROP NOT NULL,
16
+ ALTER COLUMN "markdown" DROP NOT NULL,
17
+ ALTER COLUMN "tags" DROP DEFAULT,
18
+ ALTER COLUMN "status" DROP DEFAULT;
19
+
20
+ -- AlterTable
21
+ ALTER TABLE "public"."categories" DROP CONSTRAINT "categories_pkey",
22
+ ALTER COLUMN "id" DROP DEFAULT,
23
+ ALTER COLUMN "id" SET DATA TYPE TEXT,
24
+ ADD CONSTRAINT "categories_pkey" PRIMARY KEY ("id");
25
+ DROP SEQUENCE "categories_id_seq";
26
+
27
+ -- AlterTable
28
+ ALTER TABLE "public"."contents" ALTER COLUMN "status" DROP DEFAULT;
29
+
30
+ -- AlterTable
31
+ ALTER TABLE "public"."images" ALTER COLUMN "status" DROP DEFAULT,
32
+ ALTER COLUMN "tags" DROP DEFAULT;
33
+
34
+ -- AlterTable
35
+ ALTER TABLE "public"."news" ALTER COLUMN "status" DROP DEFAULT,
36
+ ALTER COLUMN "category_id" SET DATA TYPE TEXT;
37
+
38
+ -- AddForeignKey
39
+ ALTER TABLE "public"."news" ADD CONSTRAINT "news_category_id_fkey" FOREIGN KEY ("category_id") REFERENCES "public"."categories"("id") ON DELETE CASCADE ON UPDATE CASCADE;
@@ -0,0 +1,17 @@
1
+ /*
2
+ Warnings:
3
+
4
+ - You are about to drop the column `paths` on the `images` table. All the data in the column will be lost.
5
+ - A unique constraint covering the columns `[path,user_id]` on the table `images` will be added. If there are existing duplicate values, this will fail.
6
+ - Added the required column `path` to the `images` table without a default value. This is not possible if the table is not empty.
7
+
8
+ */
9
+ -- DropIndex
10
+ DROP INDEX "public"."images_paths_user_id_key";
11
+
12
+ -- AlterTable
13
+ ALTER TABLE "public"."images" DROP COLUMN "paths",
14
+ ADD COLUMN "path" TEXT NOT NULL;
15
+
16
+ -- CreateIndex
17
+ CREATE UNIQUE INDEX "images_path_user_id_key" ON "public"."images"("path", "user_id");
@@ -0,0 +1,57 @@
1
+ /*
2
+ Warnings:
3
+
4
+ - You are about to drop the `contents` table. If the table is not empty, all the data it contains will be lost.
5
+ - You are about to drop the `news` table. If the table is not empty, all the data it contains will be lost.
6
+
7
+ */
8
+ -- DropForeignKey
9
+ ALTER TABLE "public"."news" DROP CONSTRAINT "news_category_id_fkey";
10
+
11
+ -- DropTable
12
+ DROP TABLE "public"."contents";
13
+
14
+ -- DropTable
15
+ DROP TABLE "public"."news";
16
+
17
+ -- CreateTable
18
+ CREATE TABLE "public"."articles" (
19
+ "id" TEXT NOT NULL,
20
+ "title" TEXT NOT NULL,
21
+ "url" TEXT NOT NULL,
22
+ "quote" TEXT,
23
+ "og_image_url" TEXT,
24
+ "og_title" TEXT,
25
+ "og_description" TEXT,
26
+ "category_id" TEXT NOT NULL,
27
+ "status" "public"."Status" NOT NULL,
28
+ "user_id" TEXT NOT NULL,
29
+ "created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
30
+ "updated_at" TIMESTAMP(3) NOT NULL,
31
+ "exported_at" TIMESTAMP(3),
32
+
33
+ CONSTRAINT "articles_pkey" PRIMARY KEY ("id")
34
+ );
35
+
36
+ -- CreateTable
37
+ CREATE TABLE "public"."notes" (
38
+ "id" TEXT NOT NULL,
39
+ "title" TEXT NOT NULL,
40
+ "markdown" TEXT NOT NULL,
41
+ "status" "public"."Status" NOT NULL,
42
+ "user_id" TEXT NOT NULL,
43
+ "created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
44
+ "updated_at" TIMESTAMP(3) NOT NULL,
45
+ "exported_at" TIMESTAMP(3),
46
+
47
+ CONSTRAINT "notes_pkey" PRIMARY KEY ("id")
48
+ );
49
+
50
+ -- CreateIndex
51
+ CREATE UNIQUE INDEX "articles_url_user_id_key" ON "public"."articles"("url", "user_id");
52
+
53
+ -- CreateIndex
54
+ CREATE UNIQUE INDEX "notes_title_user_id_key" ON "public"."notes"("title", "user_id");
55
+
56
+ -- AddForeignKey
57
+ ALTER TABLE "public"."articles" ADD CONSTRAINT "articles_category_id_fkey" FOREIGN KEY ("category_id") REFERENCES "public"."categories"("id") ON DELETE CASCADE ON UPDATE CASCADE;
@@ -0,0 +1,14 @@
1
+ -- AlterTable
2
+ ALTER TABLE "public"."articles" ALTER COLUMN "created_at" DROP DEFAULT;
3
+
4
+ -- AlterTable
5
+ ALTER TABLE "public"."books" ALTER COLUMN "created_at" DROP DEFAULT;
6
+
7
+ -- AlterTable
8
+ ALTER TABLE "public"."categories" ALTER COLUMN "created_at" DROP DEFAULT;
9
+
10
+ -- AlterTable
11
+ ALTER TABLE "public"."images" ALTER COLUMN "created_at" DROP DEFAULT;
12
+
13
+ -- AlterTable
14
+ ALTER TABLE "public"."notes" ALTER COLUMN "created_at" DROP DEFAULT;
@@ -0,0 +1,3 @@
1
+ # Please do not edit this file manually
2
+ # It should be added in your version-control system (e.g., Git)
3
+ provider = "postgresql"
@@ -0,0 +1,127 @@
1
+ generator client {
2
+ provider = "prisma-client-js"
3
+ output = "../src/generated"
4
+ }
5
+
6
+ datasource db {
7
+ provider = "postgresql"
8
+ url = env("DATABASE_URL") // uses connection pooling
9
+ // directUrl = env("POSTGRES_DIRECT_URL") // uses a direct connection // not needed for prisma postgresql database
10
+ }
11
+
12
+ enum Status {
13
+ UNEXPORTED
14
+ EXPORTED
15
+ }
16
+
17
+ model Category {
18
+ id String @id
19
+
20
+ name String
21
+
22
+ Articles Article[]
23
+
24
+ createdAt DateTime @map("created_at")
25
+ updatedAt DateTime @updatedAt @map("updated_at")
26
+
27
+ userId String @map("user_id")
28
+
29
+ @@unique([name, userId])
30
+ @@map("categories")
31
+ }
32
+
33
+ model Article {
34
+ id String @id
35
+
36
+ title String
37
+ url String
38
+ quote String?
39
+
40
+ ogImageUrl String? @map("og_image_url")
41
+ ogTitle String? @map("og_title")
42
+ ogDescription String? @map("og_description")
43
+
44
+ Category Category @relation(fields: [categoryId], references: [id], onDelete: Cascade, onUpdate: Cascade)
45
+ categoryId String @map("category_id")
46
+
47
+ status Status
48
+
49
+ userId String @map("user_id")
50
+
51
+ createdAt DateTime @map("created_at")
52
+ updatedAt DateTime @updatedAt @map("updated_at")
53
+ exportedAt DateTime? @map("exported_at")
54
+
55
+ @@unique([url, userId])
56
+ @@map("articles")
57
+ }
58
+
59
+ model Note {
60
+ id String @id
61
+
62
+ title String
63
+ markdown String
64
+
65
+ status Status
66
+
67
+ userId String @map("user_id")
68
+
69
+ createdAt DateTime @map("created_at")
70
+ updatedAt DateTime @updatedAt @map("updated_at")
71
+ exportedAt DateTime? @map("exported_at")
72
+
73
+ @@unique([title, userId])
74
+ @@map("notes")
75
+ }
76
+
77
+ model Image {
78
+ id String @id
79
+
80
+ path String
81
+ contentType String @map("content_type") // e.g.: image/jpeg, image/png
82
+ fileSize Int? @map("file_size") // byte
83
+ width Int? // pixel
84
+ height Int? // pixel
85
+ tags String[]
86
+ description String?
87
+
88
+ status Status
89
+
90
+ userId String @map("user_id")
91
+
92
+ createdAt DateTime @map("created_at")
93
+ updatedAt DateTime @updatedAt @map("updated_at")
94
+ exportedAt DateTime? @map("exported_at")
95
+
96
+ @@unique([path, userId])
97
+ @@map("images")
98
+ }
99
+
100
+ model Book {
101
+ id String @id
102
+ ISBN String @map("isbn")
103
+ title String
104
+
105
+ googleTitle String? @map("google_title")
106
+ googleSubTitle String? @map("google_subtitle")
107
+ googleAuthors String[] @map("google_authors")
108
+ googleDescription String? @map("google_description")
109
+ googleImgSrc String? @map("google_img_src")
110
+ googleHref String? @map("google_href")
111
+
112
+ markdown String?
113
+
114
+ rating Int? // 1-5
115
+ tags String[]
116
+
117
+ status Status
118
+
119
+ userId String @map("user_id")
120
+
121
+ createdAt DateTime @map("created_at")
122
+ updatedAt DateTime @updatedAt @map("updated_at")
123
+ exportedAt DateTime? @map("exported_at")
124
+
125
+ @@unique([ISBN, userId])
126
+ @@map("books")
127
+ }
@@ -0,0 +1 @@
1
+ export * from "./index"
@@ -0,0 +1,5 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!!
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+ module.exports = { ...require('.') }
@@ -0,0 +1 @@
1
+ export * from "./index"
@@ -0,0 +1,5 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!!
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+ module.exports = { ...require('#main-entry-point') }
@@ -0,0 +1 @@
1
+ export * from "./default"
@@ -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/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\":{\"dbName\":\"categories\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"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\":\"Articles\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Article\",\"nativeType\":null,\"relationName\":\"ArticleToCategory\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"dbName\":\"created_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"dbName\":\"updated_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"userId\",\"dbName\":\"user_id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"name\",\"userId\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"name\",\"userId\"]}],\"isGenerated\":false},\"Article\":{\"dbName\":\"articles\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"title\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"url\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"quote\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"ogImageUrl\",\"dbName\":\"og_image_url\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"ogTitle\",\"dbName\":\"og_title\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"ogDescription\",\"dbName\":\"og_description\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"Category\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Category\",\"nativeType\":null,\"relationName\":\"ArticleToCategory\",\"relationFromFields\":[\"categoryId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"relationOnUpdate\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"categoryId\",\"dbName\":\"category_id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"status\",\"kind\":\"enum\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Status\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"dbName\":\"user_id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"dbName\":\"created_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"dbName\":\"updated_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"exportedAt\",\"dbName\":\"exported_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"url\",\"userId\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"url\",\"userId\"]}],\"isGenerated\":false},\"Note\":{\"dbName\":\"notes\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"title\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"markdown\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"status\",\"kind\":\"enum\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Status\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"dbName\":\"user_id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"dbName\":\"created_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"dbName\":\"updated_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"exportedAt\",\"dbName\":\"exported_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"title\",\"userId\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"title\",\"userId\"]}],\"isGenerated\":false},\"Image\":{\"dbName\":\"images\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"path\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"contentType\",\"dbName\":\"content_type\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fileSize\",\"dbName\":\"file_size\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"width\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"height\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"tags\",\"kind\":\"scalar\",\"isList\":true,\"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\":\"status\",\"kind\":\"enum\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Status\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"dbName\":\"user_id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"dbName\":\"created_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"dbName\":\"updated_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"exportedAt\",\"dbName\":\"exported_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"path\",\"userId\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"path\",\"userId\"]}],\"isGenerated\":false},\"Book\":{\"dbName\":\"books\",\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"ISBN\",\"dbName\":\"isbn\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"title\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"googleTitle\",\"dbName\":\"google_title\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"googleSubTitle\",\"dbName\":\"google_subtitle\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"googleAuthors\",\"dbName\":\"google_authors\",\"kind\":\"scalar\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"googleDescription\",\"dbName\":\"google_description\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"googleImgSrc\",\"dbName\":\"google_img_src\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"googleHref\",\"dbName\":\"google_href\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"markdown\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"rating\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"tags\",\"kind\":\"scalar\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"status\",\"kind\":\"enum\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Status\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"dbName\":\"user_id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"dbName\":\"created_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"dbName\":\"updated_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"exportedAt\",\"dbName\":\"exported_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"ISBN\",\"userId\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"ISBN\",\"userId\"]}],\"isGenerated\":false}},\"enums\":{\"Status\":{\"values\":[{\"name\":\"UNEXPORTED\",\"dbName\":null},{\"name\":\"EXPORTED\",\"dbName\":null}],\"dbName\":null}},\"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
+