@s-hirano-ist/s-database 1.18.1 → 1.18.3

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@s-hirano-ist/s-database",
3
- "version": "1.18.1",
3
+ "version": "1.18.3",
4
4
  "description": "Prisma database schema and client for s-private project",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -29,9 +29,9 @@
29
29
  },
30
30
  "license": "AGPL-3.0",
31
31
  "dependencies": {
32
- "@prisma/client": "7.4.0",
33
- "@prisma/client-runtime-utils": "7.4.0",
34
- "prisma": "7.4.0"
32
+ "@prisma/client": "7.4.2",
33
+ "@prisma/client-runtime-utils": "7.4.2",
34
+ "prisma": "7.4.2"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@softwaretechnik/dbml-renderer": "1.0.31",
@@ -39,12 +39,12 @@ exports.Prisma = Prisma
39
39
  exports.$Enums = {}
40
40
 
41
41
  /**
42
- * Prisma Client JS version: 7.4.0
43
- * Query Engine version: ab56fe763f921d033a6c195e7ddeb3e255bdbb57
42
+ * Prisma Client JS version: 7.4.2
43
+ * Query Engine version: 94a226be1cf2967af2541cca5529f0f7ba866919
44
44
  */
45
45
  Prisma.prismaVersion = {
46
- client: "7.4.0",
47
- engine: "ab56fe763f921d033a6c195e7ddeb3e255bdbb57"
46
+ client: "7.4.2",
47
+ engine: "94a226be1cf2967af2541cca5529f0f7ba866919"
48
48
  }
49
49
 
50
50
  Prisma.PrismaClientKnownRequestError = PrismaClientKnownRequestError;
@@ -194,8 +194,8 @@ exports.Prisma.ModelName = {
194
194
  */
195
195
  const config = {
196
196
  "previewFeatures": [],
197
- "clientVersion": "7.4.0",
198
- "engineVersion": "ab56fe763f921d033a6c195e7ddeb3e255bdbb57",
197
+ "clientVersion": "7.4.2",
198
+ "engineVersion": "94a226be1cf2967af2541cca5529f0f7ba866919",
199
199
  "activeProvider": "postgresql",
200
200
  "inlineSchema": "generator client {\n provider = \"prisma-client-js\"\n output = \"../src/generated\"\n}\n\ngenerator dbml {\n provider = \"prisma-dbml-generator\"\n output = \"../dbml\"\n outputName = \"schema.dbml\"\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 @db.VarChar(36)\n\n name String @db.VarChar(16)\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\") @db.VarChar(128)\n\n @@unique([name, userId])\n @@map(\"categories\")\n}\n\nmodel Article {\n id String @id @db.VarChar(36)\n\n title String @db.VarChar(128)\n url String @db.VarChar(2048)\n quote String? @db.VarChar(512)\n\n ogImageUrl String? @map(\"og_image_url\") @db.VarChar(4096)\n ogTitle String? @map(\"og_title\") @db.VarChar(512)\n ogDescription String? @map(\"og_description\") @db.VarChar(1024)\n\n Category Category @relation(fields: [categoryId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n categoryId String @map(\"category_id\") @db.VarChar(36)\n\n status Status\n\n userId String @map(\"user_id\") @db.VarChar(128)\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 @db.VarChar(36)\n\n title String @db.VarChar(64)\n markdown String @db.Text\n\n status Status\n\n userId String @map(\"user_id\") @db.VarChar(128)\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 @db.VarChar(36)\n\n path String @db.VarChar(512)\n contentType String @map(\"content_type\") @db.VarChar(32) // e.g.: image/jpeg, image/png\n fileSize Int? @map(\"file_size\") // byte\n width Int? // pixel\n height Int? // pixel\n\n status Status\n\n userId String @map(\"user_id\") @db.VarChar(128)\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 @db.VarChar(36)\n isbn String @db.VarChar(17)\n title String @db.VarChar(256)\n\n googleTitle String? @map(\"google_title\") @db.VarChar(512)\n googleSubTitle String? @map(\"google_subtitle\") @db.VarChar(512)\n googleAuthors String[] @map(\"google_authors\")\n googleDescription String? @map(\"google_description\") @db.Text\n googleImgSrc String? @map(\"google_img_src\") @db.VarChar(2048)\n googleHref String? @map(\"google_href\") @db.VarChar(2048)\n\n imagePath String? @map(\"image_path\") @db.VarChar(512)\n\n markdown String? @db.Text\n\n rating Int? // 1-5\n tags String[]\n\n status Status\n\n userId String @map(\"user_id\") @db.VarChar(128)\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"
201
201
  }
@@ -24,12 +24,12 @@ exports.Prisma = Prisma
24
24
  exports.$Enums = {}
25
25
 
26
26
  /**
27
- * Prisma Client JS version: 7.4.0
28
- * Query Engine version: ab56fe763f921d033a6c195e7ddeb3e255bdbb57
27
+ * Prisma Client JS version: 7.4.2
28
+ * Query Engine version: 94a226be1cf2967af2541cca5529f0f7ba866919
29
29
  */
30
30
  Prisma.prismaVersion = {
31
- client: "7.4.0",
32
- engine: "ab56fe763f921d033a6c195e7ddeb3e255bdbb57"
31
+ client: "7.4.2",
32
+ engine: "94a226be1cf2967af2541cca5529f0f7ba866919"
33
33
  }
34
34
 
35
35
  Prisma.PrismaClientKnownRequestError = () => {
@@ -63,7 +63,9 @@ export const Status: typeof $Enums.Status
63
63
  * Type-safe database client for TypeScript & Node.js
64
64
  * @example
65
65
  * ```
66
- * const prisma = new PrismaClient()
66
+ * const prisma = new PrismaClient({
67
+ * adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL })
68
+ * })
67
69
  * // Fetch zero or more Categories
68
70
  * const categories = await prisma.category.findMany()
69
71
  * ```
@@ -84,7 +86,9 @@ export class PrismaClient<
84
86
  * Type-safe database client for TypeScript & Node.js
85
87
  * @example
86
88
  * ```
87
- * const prisma = new PrismaClient()
89
+ * const prisma = new PrismaClient({
90
+ * adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL })
91
+ * })
88
92
  * // Fetch zero or more Categories
89
93
  * const categories = await prisma.category.findMany()
90
94
  * ```
@@ -164,7 +168,7 @@ export class PrismaClient<
164
168
  * ])
165
169
  * ```
166
170
  *
167
- * Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions).
171
+ * Read more in our [docs](https://www.prisma.io/docs/orm/prisma-client/queries/transactions).
168
172
  */
169
173
  $transaction<P extends Prisma.PrismaPromise<any>[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise<runtime.Types.Utils.UnwrapTuple<P>>
170
174
 
@@ -273,8 +277,8 @@ export namespace Prisma {
273
277
  export import Exact = $Public.Exact
274
278
 
275
279
  /**
276
- * Prisma Client JS version: 7.4.0
277
- * Query Engine version: ab56fe763f921d033a6c195e7ddeb3e255bdbb57
280
+ * Prisma Client JS version: 7.4.2
281
+ * Query Engine version: 94a226be1cf2967af2541cca5529f0f7ba866919
278
282
  */
279
283
  export type PrismaVersion = {
280
284
  client: string
@@ -39,12 +39,12 @@ exports.Prisma = Prisma
39
39
  exports.$Enums = {}
40
40
 
41
41
  /**
42
- * Prisma Client JS version: 7.4.0
43
- * Query Engine version: ab56fe763f921d033a6c195e7ddeb3e255bdbb57
42
+ * Prisma Client JS version: 7.4.2
43
+ * Query Engine version: 94a226be1cf2967af2541cca5529f0f7ba866919
44
44
  */
45
45
  Prisma.prismaVersion = {
46
- client: "7.4.0",
47
- engine: "ab56fe763f921d033a6c195e7ddeb3e255bdbb57"
46
+ client: "7.4.2",
47
+ engine: "94a226be1cf2967af2541cca5529f0f7ba866919"
48
48
  }
49
49
 
50
50
  Prisma.PrismaClientKnownRequestError = PrismaClientKnownRequestError;
@@ -195,8 +195,8 @@ exports.Prisma.ModelName = {
195
195
  */
196
196
  const config = {
197
197
  "previewFeatures": [],
198
- "clientVersion": "7.4.0",
199
- "engineVersion": "ab56fe763f921d033a6c195e7ddeb3e255bdbb57",
198
+ "clientVersion": "7.4.2",
199
+ "engineVersion": "94a226be1cf2967af2541cca5529f0f7ba866919",
200
200
  "activeProvider": "postgresql",
201
201
  "inlineSchema": "generator client {\n provider = \"prisma-client-js\"\n output = \"../src/generated\"\n}\n\ngenerator dbml {\n provider = \"prisma-dbml-generator\"\n output = \"../dbml\"\n outputName = \"schema.dbml\"\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 @db.VarChar(36)\n\n name String @db.VarChar(16)\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\") @db.VarChar(128)\n\n @@unique([name, userId])\n @@map(\"categories\")\n}\n\nmodel Article {\n id String @id @db.VarChar(36)\n\n title String @db.VarChar(128)\n url String @db.VarChar(2048)\n quote String? @db.VarChar(512)\n\n ogImageUrl String? @map(\"og_image_url\") @db.VarChar(4096)\n ogTitle String? @map(\"og_title\") @db.VarChar(512)\n ogDescription String? @map(\"og_description\") @db.VarChar(1024)\n\n Category Category @relation(fields: [categoryId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n categoryId String @map(\"category_id\") @db.VarChar(36)\n\n status Status\n\n userId String @map(\"user_id\") @db.VarChar(128)\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 @db.VarChar(36)\n\n title String @db.VarChar(64)\n markdown String @db.Text\n\n status Status\n\n userId String @map(\"user_id\") @db.VarChar(128)\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 @db.VarChar(36)\n\n path String @db.VarChar(512)\n contentType String @map(\"content_type\") @db.VarChar(32) // e.g.: image/jpeg, image/png\n fileSize Int? @map(\"file_size\") // byte\n width Int? // pixel\n height Int? // pixel\n\n status Status\n\n userId String @map(\"user_id\") @db.VarChar(128)\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 @db.VarChar(36)\n isbn String @db.VarChar(17)\n title String @db.VarChar(256)\n\n googleTitle String? @map(\"google_title\") @db.VarChar(512)\n googleSubTitle String? @map(\"google_subtitle\") @db.VarChar(512)\n googleAuthors String[] @map(\"google_authors\")\n googleDescription String? @map(\"google_description\") @db.Text\n googleImgSrc String? @map(\"google_img_src\") @db.VarChar(2048)\n googleHref String? @map(\"google_href\") @db.VarChar(2048)\n\n imagePath String? @map(\"image_path\") @db.VarChar(512)\n\n markdown String? @db.Text\n\n rating Int? // 1-5\n tags String[]\n\n status Status\n\n userId String @map(\"user_id\") @db.VarChar(128)\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
202
  }
@@ -109,10 +109,10 @@
109
109
  },
110
110
  "./*": "./*"
111
111
  },
112
- "version": "7.4.0",
112
+ "version": "7.4.2",
113
113
  "sideEffects": false,
114
114
  "dependencies": {
115
- "@prisma/client-runtime-utils": "7.4.0"
115
+ "@prisma/client-runtime-utils": "7.4.2"
116
116
  },
117
117
  "imports": {
118
118
  "#wasm-compiler-loader": {