@s-hirano-ist/s-database 1.18.2 → 1.18.4

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.2",
3
+ "version": "1.18.4",
4
4
  "description": "Prisma database schema and client for s-private project",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -29,15 +29,14 @@
29
29
  },
30
30
  "license": "AGPL-3.0",
31
31
  "dependencies": {
32
- "@prisma/client": "7.4.1",
33
- "@prisma/client-runtime-utils": "7.4.1",
34
- "prisma": "7.4.1"
32
+ "@prisma/client": "7.5.0",
33
+ "@prisma/client-runtime-utils": "7.5.0",
34
+ "prisma": "7.5.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@softwaretechnik/dbml-renderer": "1.0.31",
38
- "dotenv": "17.3.1",
39
38
  "prisma-dbml-generator": "0.12.0",
40
- "typescript": "5.9.3"
39
+ "typescript": "6.0.2"
41
40
  },
42
41
  "scripts": {
43
42
  "prisma:generate": "prisma generate",
@@ -39,12 +39,12 @@ exports.Prisma = Prisma
39
39
  exports.$Enums = {}
40
40
 
41
41
  /**
42
- * Prisma Client JS version: 7.4.1
43
- * Query Engine version: 55ae170b1ced7fc6ed07a15f110549408c501bb3
42
+ * Prisma Client JS version: 7.5.0
43
+ * Query Engine version: 280c870be64f457428992c43c1f6d557fab6e29e
44
44
  */
45
45
  Prisma.prismaVersion = {
46
- client: "7.4.1",
47
- engine: "55ae170b1ced7fc6ed07a15f110549408c501bb3"
46
+ client: "7.5.0",
47
+ engine: "280c870be64f457428992c43c1f6d557fab6e29e"
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.1",
198
- "engineVersion": "55ae170b1ced7fc6ed07a15f110549408c501bb3",
197
+ "clientVersion": "7.5.0",
198
+ "engineVersion": "280c870be64f457428992c43c1f6d557fab6e29e",
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.1
28
- * Query Engine version: 55ae170b1ced7fc6ed07a15f110549408c501bb3
27
+ * Prisma Client JS version: 7.5.0
28
+ * Query Engine version: 280c870be64f457428992c43c1f6d557fab6e29e
29
29
  */
30
30
  Prisma.prismaVersion = {
31
- client: "7.4.1",
32
- engine: "55ae170b1ced7fc6ed07a15f110549408c501bb3"
31
+ client: "7.5.0",
32
+ engine: "280c870be64f457428992c43c1f6d557fab6e29e"
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
  * ```
@@ -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.1
277
- * Query Engine version: 55ae170b1ced7fc6ed07a15f110549408c501bb3
280
+ * Prisma Client JS version: 7.5.0
281
+ * Query Engine version: 280c870be64f457428992c43c1f6d557fab6e29e
278
282
  */
279
283
  export type PrismaVersion = {
280
284
  client: string
@@ -2110,6 +2114,11 @@ export namespace Prisma {
2110
2114
  * Skip the first `n` Categories.
2111
2115
  */
2112
2116
  skip?: number
2117
+ /**
2118
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2119
+ *
2120
+ * Filter by unique combinations of Categories.
2121
+ */
2113
2122
  distinct?: CategoryScalarFieldEnum | CategoryScalarFieldEnum[]
2114
2123
  }
2115
2124
 
@@ -3288,6 +3297,11 @@ export namespace Prisma {
3288
3297
  * Skip the first `n` Articles.
3289
3298
  */
3290
3299
  skip?: number
3300
+ /**
3301
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
3302
+ *
3303
+ * Filter by unique combinations of Articles.
3304
+ */
3291
3305
  distinct?: ArticleScalarFieldEnum | ArticleScalarFieldEnum[]
3292
3306
  }
3293
3307
 
@@ -4350,6 +4364,11 @@ export namespace Prisma {
4350
4364
  * Skip the first `n` Notes.
4351
4365
  */
4352
4366
  skip?: number
4367
+ /**
4368
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
4369
+ *
4370
+ * Filter by unique combinations of Notes.
4371
+ */
4353
4372
  distinct?: NoteScalarFieldEnum | NoteScalarFieldEnum[]
4354
4373
  }
4355
4374
 
@@ -5465,6 +5484,11 @@ export namespace Prisma {
5465
5484
  * Skip the first `n` Images.
5466
5485
  */
5467
5486
  skip?: number
5487
+ /**
5488
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
5489
+ *
5490
+ * Filter by unique combinations of Images.
5491
+ */
5468
5492
  distinct?: ImageScalarFieldEnum | ImageScalarFieldEnum[]
5469
5493
  }
5470
5494
 
@@ -6655,6 +6679,11 @@ export namespace Prisma {
6655
6679
  * Skip the first `n` Books.
6656
6680
  */
6657
6681
  skip?: number
6682
+ /**
6683
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
6684
+ *
6685
+ * Filter by unique combinations of Books.
6686
+ */
6658
6687
  distinct?: BookScalarFieldEnum | BookScalarFieldEnum[]
6659
6688
  }
6660
6689
 
@@ -39,12 +39,12 @@ exports.Prisma = Prisma
39
39
  exports.$Enums = {}
40
40
 
41
41
  /**
42
- * Prisma Client JS version: 7.4.1
43
- * Query Engine version: 55ae170b1ced7fc6ed07a15f110549408c501bb3
42
+ * Prisma Client JS version: 7.5.0
43
+ * Query Engine version: 280c870be64f457428992c43c1f6d557fab6e29e
44
44
  */
45
45
  Prisma.prismaVersion = {
46
- client: "7.4.1",
47
- engine: "55ae170b1ced7fc6ed07a15f110549408c501bb3"
46
+ client: "7.5.0",
47
+ engine: "280c870be64f457428992c43c1f6d557fab6e29e"
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.1",
199
- "engineVersion": "55ae170b1ced7fc6ed07a15f110549408c501bb3",
198
+ "clientVersion": "7.5.0",
199
+ "engineVersion": "280c870be64f457428992c43c1f6d557fab6e29e",
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.1",
112
+ "version": "7.5.0",
113
113
  "sideEffects": false,
114
114
  "dependencies": {
115
- "@prisma/client-runtime-utils": "7.4.1"
115
+ "@prisma/client-runtime-utils": "7.5.0"
116
116
  },
117
117
  "imports": {
118
118
  "#wasm-compiler-loader": {