@s-hirano-ist/s-database 1.7.1 → 1.8.1
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 +1 -1
- package/prisma/migrations/20260104035357_add_image_paths_for_book_dumper/migration.sql +2 -0
- package/prisma/schema.prisma +2 -0
- package/src/generated/edge.js +3 -2
- package/src/generated/index-browser.js +1 -0
- package/src/generated/index.d.ts +30 -1
- package/src/generated/index.js +3 -2
- package/src/generated/package.json +1 -1
- package/src/generated/schema.prisma +2 -0
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
package/src/generated/edge.js
CHANGED
|
@@ -153,6 +153,7 @@ exports.Prisma.BookScalarFieldEnum = {
|
|
|
153
153
|
googleDescription: 'googleDescription',
|
|
154
154
|
googleImgSrc: 'googleImgSrc',
|
|
155
155
|
googleHref: 'googleHref',
|
|
156
|
+
imagePath: 'imagePath',
|
|
156
157
|
markdown: 'markdown',
|
|
157
158
|
rating: 'rating',
|
|
158
159
|
tags: 'tags',
|
|
@@ -198,10 +199,10 @@ const config = {
|
|
|
198
199
|
"clientVersion": "7.2.0",
|
|
199
200
|
"engineVersion": "0c8ef2ce45c83248ab3df073180d5eda9e8be7a3",
|
|
200
201
|
"activeProvider": "postgresql",
|
|
201
|
-
"inlineSchema": "generator client {\n provider = \"prisma-client-js\"\n output = \"../src/generated\"\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"
|
|
202
|
+
"inlineSchema": "generator client {\n provider = \"prisma-client-js\"\n output = \"../src/generated\"\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 imagePath String? @map(\"image_path\")\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"
|
|
202
203
|
}
|
|
203
204
|
|
|
204
|
-
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\":{}}")
|
|
205
|
+
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\":\"imagePath\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"image_path\"},{\"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\":{}}")
|
|
205
206
|
defineDmmfProperty(exports.Prisma, config.runtimeDataModel)
|
|
206
207
|
config.compilerWasm = {
|
|
207
208
|
getRuntime: async () => require('./query_compiler_bg.js'),
|
package/src/generated/index.d.ts
CHANGED
|
@@ -5706,6 +5706,7 @@ export namespace Prisma {
|
|
|
5706
5706
|
googleDescription: string | null
|
|
5707
5707
|
googleImgSrc: string | null
|
|
5708
5708
|
googleHref: string | null
|
|
5709
|
+
imagePath: string | null
|
|
5709
5710
|
markdown: string | null
|
|
5710
5711
|
rating: number | null
|
|
5711
5712
|
status: $Enums.Status | null
|
|
@@ -5724,6 +5725,7 @@ export namespace Prisma {
|
|
|
5724
5725
|
googleDescription: string | null
|
|
5725
5726
|
googleImgSrc: string | null
|
|
5726
5727
|
googleHref: string | null
|
|
5728
|
+
imagePath: string | null
|
|
5727
5729
|
markdown: string | null
|
|
5728
5730
|
rating: number | null
|
|
5729
5731
|
status: $Enums.Status | null
|
|
@@ -5743,6 +5745,7 @@ export namespace Prisma {
|
|
|
5743
5745
|
googleDescription: number
|
|
5744
5746
|
googleImgSrc: number
|
|
5745
5747
|
googleHref: number
|
|
5748
|
+
imagePath: number
|
|
5746
5749
|
markdown: number
|
|
5747
5750
|
rating: number
|
|
5748
5751
|
tags: number
|
|
@@ -5772,6 +5775,7 @@ export namespace Prisma {
|
|
|
5772
5775
|
googleDescription?: true
|
|
5773
5776
|
googleImgSrc?: true
|
|
5774
5777
|
googleHref?: true
|
|
5778
|
+
imagePath?: true
|
|
5775
5779
|
markdown?: true
|
|
5776
5780
|
rating?: true
|
|
5777
5781
|
status?: true
|
|
@@ -5790,6 +5794,7 @@ export namespace Prisma {
|
|
|
5790
5794
|
googleDescription?: true
|
|
5791
5795
|
googleImgSrc?: true
|
|
5792
5796
|
googleHref?: true
|
|
5797
|
+
imagePath?: true
|
|
5793
5798
|
markdown?: true
|
|
5794
5799
|
rating?: true
|
|
5795
5800
|
status?: true
|
|
@@ -5809,6 +5814,7 @@ export namespace Prisma {
|
|
|
5809
5814
|
googleDescription?: true
|
|
5810
5815
|
googleImgSrc?: true
|
|
5811
5816
|
googleHref?: true
|
|
5817
|
+
imagePath?: true
|
|
5812
5818
|
markdown?: true
|
|
5813
5819
|
rating?: true
|
|
5814
5820
|
tags?: true
|
|
@@ -5916,6 +5922,7 @@ export namespace Prisma {
|
|
|
5916
5922
|
googleDescription: string | null
|
|
5917
5923
|
googleImgSrc: string | null
|
|
5918
5924
|
googleHref: string | null
|
|
5925
|
+
imagePath: string | null
|
|
5919
5926
|
markdown: string | null
|
|
5920
5927
|
rating: number | null
|
|
5921
5928
|
tags: string[]
|
|
@@ -5955,6 +5962,7 @@ export namespace Prisma {
|
|
|
5955
5962
|
googleDescription?: boolean
|
|
5956
5963
|
googleImgSrc?: boolean
|
|
5957
5964
|
googleHref?: boolean
|
|
5965
|
+
imagePath?: boolean
|
|
5958
5966
|
markdown?: boolean
|
|
5959
5967
|
rating?: boolean
|
|
5960
5968
|
tags?: boolean
|
|
@@ -5975,6 +5983,7 @@ export namespace Prisma {
|
|
|
5975
5983
|
googleDescription?: boolean
|
|
5976
5984
|
googleImgSrc?: boolean
|
|
5977
5985
|
googleHref?: boolean
|
|
5986
|
+
imagePath?: boolean
|
|
5978
5987
|
markdown?: boolean
|
|
5979
5988
|
rating?: boolean
|
|
5980
5989
|
tags?: boolean
|
|
@@ -5995,6 +6004,7 @@ export namespace Prisma {
|
|
|
5995
6004
|
googleDescription?: boolean
|
|
5996
6005
|
googleImgSrc?: boolean
|
|
5997
6006
|
googleHref?: boolean
|
|
6007
|
+
imagePath?: boolean
|
|
5998
6008
|
markdown?: boolean
|
|
5999
6009
|
rating?: boolean
|
|
6000
6010
|
tags?: boolean
|
|
@@ -6015,6 +6025,7 @@ export namespace Prisma {
|
|
|
6015
6025
|
googleDescription?: boolean
|
|
6016
6026
|
googleImgSrc?: boolean
|
|
6017
6027
|
googleHref?: boolean
|
|
6028
|
+
imagePath?: boolean
|
|
6018
6029
|
markdown?: boolean
|
|
6019
6030
|
rating?: boolean
|
|
6020
6031
|
tags?: boolean
|
|
@@ -6025,7 +6036,7 @@ export namespace Prisma {
|
|
|
6025
6036
|
exportedAt?: boolean
|
|
6026
6037
|
}
|
|
6027
6038
|
|
|
6028
|
-
export type BookOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "ISBN" | "title" | "googleTitle" | "googleSubTitle" | "googleAuthors" | "googleDescription" | "googleImgSrc" | "googleHref" | "markdown" | "rating" | "tags" | "status" | "userId" | "createdAt" | "updatedAt" | "exportedAt", ExtArgs["result"]["book"]>
|
|
6039
|
+
export type BookOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "ISBN" | "title" | "googleTitle" | "googleSubTitle" | "googleAuthors" | "googleDescription" | "googleImgSrc" | "googleHref" | "imagePath" | "markdown" | "rating" | "tags" | "status" | "userId" | "createdAt" | "updatedAt" | "exportedAt", ExtArgs["result"]["book"]>
|
|
6029
6040
|
|
|
6030
6041
|
export type $BookPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
6031
6042
|
name: "Book"
|
|
@@ -6040,6 +6051,7 @@ export namespace Prisma {
|
|
|
6040
6051
|
googleDescription: string | null
|
|
6041
6052
|
googleImgSrc: string | null
|
|
6042
6053
|
googleHref: string | null
|
|
6054
|
+
imagePath: string | null
|
|
6043
6055
|
markdown: string | null
|
|
6044
6056
|
rating: number | null
|
|
6045
6057
|
tags: string[]
|
|
@@ -6480,6 +6492,7 @@ export namespace Prisma {
|
|
|
6480
6492
|
readonly googleDescription: FieldRef<"Book", 'String'>
|
|
6481
6493
|
readonly googleImgSrc: FieldRef<"Book", 'String'>
|
|
6482
6494
|
readonly googleHref: FieldRef<"Book", 'String'>
|
|
6495
|
+
readonly imagePath: FieldRef<"Book", 'String'>
|
|
6483
6496
|
readonly markdown: FieldRef<"Book", 'String'>
|
|
6484
6497
|
readonly rating: FieldRef<"Book", 'Int'>
|
|
6485
6498
|
readonly tags: FieldRef<"Book", 'String[]'>
|
|
@@ -6941,6 +6954,7 @@ export namespace Prisma {
|
|
|
6941
6954
|
googleDescription: 'googleDescription',
|
|
6942
6955
|
googleImgSrc: 'googleImgSrc',
|
|
6943
6956
|
googleHref: 'googleHref',
|
|
6957
|
+
imagePath: 'imagePath',
|
|
6944
6958
|
markdown: 'markdown',
|
|
6945
6959
|
rating: 'rating',
|
|
6946
6960
|
tags: 'tags',
|
|
@@ -7384,6 +7398,7 @@ export namespace Prisma {
|
|
|
7384
7398
|
googleDescription?: StringNullableFilter<"Book"> | string | null
|
|
7385
7399
|
googleImgSrc?: StringNullableFilter<"Book"> | string | null
|
|
7386
7400
|
googleHref?: StringNullableFilter<"Book"> | string | null
|
|
7401
|
+
imagePath?: StringNullableFilter<"Book"> | string | null
|
|
7387
7402
|
markdown?: StringNullableFilter<"Book"> | string | null
|
|
7388
7403
|
rating?: IntNullableFilter<"Book"> | number | null
|
|
7389
7404
|
tags?: StringNullableListFilter<"Book">
|
|
@@ -7404,6 +7419,7 @@ export namespace Prisma {
|
|
|
7404
7419
|
googleDescription?: SortOrderInput | SortOrder
|
|
7405
7420
|
googleImgSrc?: SortOrderInput | SortOrder
|
|
7406
7421
|
googleHref?: SortOrderInput | SortOrder
|
|
7422
|
+
imagePath?: SortOrderInput | SortOrder
|
|
7407
7423
|
markdown?: SortOrderInput | SortOrder
|
|
7408
7424
|
rating?: SortOrderInput | SortOrder
|
|
7409
7425
|
tags?: SortOrder
|
|
@@ -7428,6 +7444,7 @@ export namespace Prisma {
|
|
|
7428
7444
|
googleDescription?: StringNullableFilter<"Book"> | string | null
|
|
7429
7445
|
googleImgSrc?: StringNullableFilter<"Book"> | string | null
|
|
7430
7446
|
googleHref?: StringNullableFilter<"Book"> | string | null
|
|
7447
|
+
imagePath?: StringNullableFilter<"Book"> | string | null
|
|
7431
7448
|
markdown?: StringNullableFilter<"Book"> | string | null
|
|
7432
7449
|
rating?: IntNullableFilter<"Book"> | number | null
|
|
7433
7450
|
tags?: StringNullableListFilter<"Book">
|
|
@@ -7448,6 +7465,7 @@ export namespace Prisma {
|
|
|
7448
7465
|
googleDescription?: SortOrderInput | SortOrder
|
|
7449
7466
|
googleImgSrc?: SortOrderInput | SortOrder
|
|
7450
7467
|
googleHref?: SortOrderInput | SortOrder
|
|
7468
|
+
imagePath?: SortOrderInput | SortOrder
|
|
7451
7469
|
markdown?: SortOrderInput | SortOrder
|
|
7452
7470
|
rating?: SortOrderInput | SortOrder
|
|
7453
7471
|
tags?: SortOrder
|
|
@@ -7476,6 +7494,7 @@ export namespace Prisma {
|
|
|
7476
7494
|
googleDescription?: StringNullableWithAggregatesFilter<"Book"> | string | null
|
|
7477
7495
|
googleImgSrc?: StringNullableWithAggregatesFilter<"Book"> | string | null
|
|
7478
7496
|
googleHref?: StringNullableWithAggregatesFilter<"Book"> | string | null
|
|
7497
|
+
imagePath?: StringNullableWithAggregatesFilter<"Book"> | string | null
|
|
7479
7498
|
markdown?: StringNullableWithAggregatesFilter<"Book"> | string | null
|
|
7480
7499
|
rating?: IntNullableWithAggregatesFilter<"Book"> | number | null
|
|
7481
7500
|
tags?: StringNullableListFilter<"Book">
|
|
@@ -7856,6 +7875,7 @@ export namespace Prisma {
|
|
|
7856
7875
|
googleDescription?: string | null
|
|
7857
7876
|
googleImgSrc?: string | null
|
|
7858
7877
|
googleHref?: string | null
|
|
7878
|
+
imagePath?: string | null
|
|
7859
7879
|
markdown?: string | null
|
|
7860
7880
|
rating?: number | null
|
|
7861
7881
|
tags?: BookCreatetagsInput | string[]
|
|
@@ -7876,6 +7896,7 @@ export namespace Prisma {
|
|
|
7876
7896
|
googleDescription?: string | null
|
|
7877
7897
|
googleImgSrc?: string | null
|
|
7878
7898
|
googleHref?: string | null
|
|
7899
|
+
imagePath?: string | null
|
|
7879
7900
|
markdown?: string | null
|
|
7880
7901
|
rating?: number | null
|
|
7881
7902
|
tags?: BookCreatetagsInput | string[]
|
|
@@ -7896,6 +7917,7 @@ export namespace Prisma {
|
|
|
7896
7917
|
googleDescription?: NullableStringFieldUpdateOperationsInput | string | null
|
|
7897
7918
|
googleImgSrc?: NullableStringFieldUpdateOperationsInput | string | null
|
|
7898
7919
|
googleHref?: NullableStringFieldUpdateOperationsInput | string | null
|
|
7920
|
+
imagePath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
7899
7921
|
markdown?: NullableStringFieldUpdateOperationsInput | string | null
|
|
7900
7922
|
rating?: NullableIntFieldUpdateOperationsInput | number | null
|
|
7901
7923
|
tags?: BookUpdatetagsInput | string[]
|
|
@@ -7916,6 +7938,7 @@ export namespace Prisma {
|
|
|
7916
7938
|
googleDescription?: NullableStringFieldUpdateOperationsInput | string | null
|
|
7917
7939
|
googleImgSrc?: NullableStringFieldUpdateOperationsInput | string | null
|
|
7918
7940
|
googleHref?: NullableStringFieldUpdateOperationsInput | string | null
|
|
7941
|
+
imagePath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
7919
7942
|
markdown?: NullableStringFieldUpdateOperationsInput | string | null
|
|
7920
7943
|
rating?: NullableIntFieldUpdateOperationsInput | number | null
|
|
7921
7944
|
tags?: BookUpdatetagsInput | string[]
|
|
@@ -7936,6 +7959,7 @@ export namespace Prisma {
|
|
|
7936
7959
|
googleDescription?: string | null
|
|
7937
7960
|
googleImgSrc?: string | null
|
|
7938
7961
|
googleHref?: string | null
|
|
7962
|
+
imagePath?: string | null
|
|
7939
7963
|
markdown?: string | null
|
|
7940
7964
|
rating?: number | null
|
|
7941
7965
|
tags?: BookCreatetagsInput | string[]
|
|
@@ -7956,6 +7980,7 @@ export namespace Prisma {
|
|
|
7956
7980
|
googleDescription?: NullableStringFieldUpdateOperationsInput | string | null
|
|
7957
7981
|
googleImgSrc?: NullableStringFieldUpdateOperationsInput | string | null
|
|
7958
7982
|
googleHref?: NullableStringFieldUpdateOperationsInput | string | null
|
|
7983
|
+
imagePath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
7959
7984
|
markdown?: NullableStringFieldUpdateOperationsInput | string | null
|
|
7960
7985
|
rating?: NullableIntFieldUpdateOperationsInput | number | null
|
|
7961
7986
|
tags?: BookUpdatetagsInput | string[]
|
|
@@ -7976,6 +8001,7 @@ export namespace Prisma {
|
|
|
7976
8001
|
googleDescription?: NullableStringFieldUpdateOperationsInput | string | null
|
|
7977
8002
|
googleImgSrc?: NullableStringFieldUpdateOperationsInput | string | null
|
|
7978
8003
|
googleHref?: NullableStringFieldUpdateOperationsInput | string | null
|
|
8004
|
+
imagePath?: NullableStringFieldUpdateOperationsInput | string | null
|
|
7979
8005
|
markdown?: NullableStringFieldUpdateOperationsInput | string | null
|
|
7980
8006
|
rating?: NullableIntFieldUpdateOperationsInput | number | null
|
|
7981
8007
|
tags?: BookUpdatetagsInput | string[]
|
|
@@ -8372,6 +8398,7 @@ export namespace Prisma {
|
|
|
8372
8398
|
googleDescription?: SortOrder
|
|
8373
8399
|
googleImgSrc?: SortOrder
|
|
8374
8400
|
googleHref?: SortOrder
|
|
8401
|
+
imagePath?: SortOrder
|
|
8375
8402
|
markdown?: SortOrder
|
|
8376
8403
|
rating?: SortOrder
|
|
8377
8404
|
tags?: SortOrder
|
|
@@ -8395,6 +8422,7 @@ export namespace Prisma {
|
|
|
8395
8422
|
googleDescription?: SortOrder
|
|
8396
8423
|
googleImgSrc?: SortOrder
|
|
8397
8424
|
googleHref?: SortOrder
|
|
8425
|
+
imagePath?: SortOrder
|
|
8398
8426
|
markdown?: SortOrder
|
|
8399
8427
|
rating?: SortOrder
|
|
8400
8428
|
status?: SortOrder
|
|
@@ -8413,6 +8441,7 @@ export namespace Prisma {
|
|
|
8413
8441
|
googleDescription?: SortOrder
|
|
8414
8442
|
googleImgSrc?: SortOrder
|
|
8415
8443
|
googleHref?: SortOrder
|
|
8444
|
+
imagePath?: SortOrder
|
|
8416
8445
|
markdown?: SortOrder
|
|
8417
8446
|
rating?: SortOrder
|
|
8418
8447
|
status?: SortOrder
|
package/src/generated/index.js
CHANGED
|
@@ -154,6 +154,7 @@ exports.Prisma.BookScalarFieldEnum = {
|
|
|
154
154
|
googleDescription: 'googleDescription',
|
|
155
155
|
googleImgSrc: 'googleImgSrc',
|
|
156
156
|
googleHref: 'googleHref',
|
|
157
|
+
imagePath: 'imagePath',
|
|
157
158
|
markdown: 'markdown',
|
|
158
159
|
rating: 'rating',
|
|
159
160
|
tags: 'tags',
|
|
@@ -199,10 +200,10 @@ const config = {
|
|
|
199
200
|
"clientVersion": "7.2.0",
|
|
200
201
|
"engineVersion": "0c8ef2ce45c83248ab3df073180d5eda9e8be7a3",
|
|
201
202
|
"activeProvider": "postgresql",
|
|
202
|
-
"inlineSchema": "generator client {\n provider = \"prisma-client-js\"\n output = \"../src/generated\"\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"
|
|
203
|
+
"inlineSchema": "generator client {\n provider = \"prisma-client-js\"\n output = \"../src/generated\"\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 imagePath String? @map(\"image_path\")\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"
|
|
203
204
|
}
|
|
204
205
|
|
|
205
|
-
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\":{}}")
|
|
206
|
+
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\":\"imagePath\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"image_path\"},{\"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\":{}}")
|
|
206
207
|
defineDmmfProperty(exports.Prisma, config.runtimeDataModel)
|
|
207
208
|
config.compilerWasm = {
|
|
208
209
|
getRuntime: async () => require('./query_compiler_bg.js'),
|