@s-hirano-ist/s-database 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@s-hirano-ist/s-database",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "Prisma database schema and client for s-private project",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
},
|
|
30
30
|
"license": "AGPL-3.0",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@prisma/client": "7.
|
|
32
|
+
"@prisma/client": "7.2.0",
|
|
33
33
|
"@prisma/extension-accelerate": "3.0.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"dotenv": "17.2.3",
|
|
37
|
-
"prisma": "7.
|
|
37
|
+
"prisma": "7.2.0",
|
|
38
38
|
"typescript": "5.9.3"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
@@ -17,8 +17,8 @@ import type * as Prisma from "./prismaNamespace"
|
|
|
17
17
|
|
|
18
18
|
const config: runtime.GetPrismaClientConfig = {
|
|
19
19
|
"previewFeatures": [],
|
|
20
|
-
"clientVersion": "7.
|
|
21
|
-
"engineVersion": "
|
|
20
|
+
"clientVersion": "7.2.0",
|
|
21
|
+
"engineVersion": "0c8ef2ce45c83248ab3df073180d5eda9e8be7a3",
|
|
22
22
|
"activeProvider": "postgresql",
|
|
23
23
|
"inlineSchema": "generator client {\n provider = \"prisma-client\"\n output = \"../src/generated/prisma\"\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",
|
|
24
24
|
"runtimeDataModel": {
|
|
@@ -80,12 +80,12 @@ export type PrismaVersion = {
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
/**
|
|
83
|
-
* Prisma Client JS version: 7.
|
|
84
|
-
* Query Engine version:
|
|
83
|
+
* Prisma Client JS version: 7.2.0
|
|
84
|
+
* Query Engine version: 0c8ef2ce45c83248ab3df073180d5eda9e8be7a3
|
|
85
85
|
*/
|
|
86
86
|
export const prismaVersion: PrismaVersion = {
|
|
87
|
-
client: "7.
|
|
88
|
-
engine: "
|
|
87
|
+
client: "7.2.0",
|
|
88
|
+
engine: "0c8ef2ce45c83248ab3df073180d5eda9e8be7a3"
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
/**
|
package/src/index.ts
CHANGED
|
@@ -48,5 +48,18 @@
|
|
|
48
48
|
* @see {@link https://www.prisma.io/docs | Prisma Documentation}
|
|
49
49
|
*/
|
|
50
50
|
|
|
51
|
-
export
|
|
52
|
-
|
|
51
|
+
export type {
|
|
52
|
+
Article,
|
|
53
|
+
Book,
|
|
54
|
+
Category,
|
|
55
|
+
Image,
|
|
56
|
+
Note,
|
|
57
|
+
} from "./generated/prisma/client";
|
|
58
|
+
// Re-export everything from generated Prisma client
|
|
59
|
+
// Note: We use separate exports to maintain proper ESM compatibility
|
|
60
|
+
export {
|
|
61
|
+
$Enums,
|
|
62
|
+
Prisma,
|
|
63
|
+
PrismaClient,
|
|
64
|
+
Status,
|
|
65
|
+
} from "./generated/prisma/client";
|