@danielcok17/prisma-db 1.9.0 → 1.10.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 +3 -2
- package/prisma/law.prisma +45 -47
- package/prisma/generated/app/client.d.ts +0 -1
- package/prisma/generated/app/client.js +0 -4
- package/prisma/generated/app/default.d.ts +0 -1
- package/prisma/generated/app/default.js +0 -4
- package/prisma/generated/app/edge.d.ts +0 -1
- package/prisma/generated/app/edge.js +0 -768
- package/prisma/generated/app/index-browser.js +0 -750
- package/prisma/generated/app/index.d.ts +0 -63852
- package/prisma/generated/app/index.js +0 -793
- package/prisma/generated/app/libquery_engine-darwin-arm64.dylib.node +0 -0
- package/prisma/generated/app/libquery_engine-linux-musl-openssl-3.0.x.so.node +0 -0
- package/prisma/generated/app/package.json +0 -183
- package/prisma/generated/app/query_engine_bg.js +0 -2
- package/prisma/generated/app/query_engine_bg.wasm +0 -0
- package/prisma/generated/app/runtime/edge-esm.js +0 -34
- package/prisma/generated/app/runtime/edge.js +0 -34
- package/prisma/generated/app/runtime/index-browser.d.ts +0 -370
- package/prisma/generated/app/runtime/index-browser.js +0 -16
- package/prisma/generated/app/runtime/library.d.ts +0 -3977
- package/prisma/generated/app/runtime/library.js +0 -146
- package/prisma/generated/app/runtime/react-native.js +0 -83
- package/prisma/generated/app/runtime/wasm-compiler-edge.js +0 -84
- package/prisma/generated/app/runtime/wasm-engine-edge.js +0 -36
- package/prisma/generated/app/schema.prisma +0 -941
- package/prisma/generated/app/wasm-edge-light-loader.mjs +0 -4
- package/prisma/generated/app/wasm-worker-loader.mjs +0 -4
- package/prisma/generated/app/wasm.d.ts +0 -1
- package/prisma/generated/app/wasm.js +0 -775
- package/prisma/generated/law/client.d.ts +0 -1
- package/prisma/generated/law/client.js +0 -4
- package/prisma/generated/law/default.d.ts +0 -1
- package/prisma/generated/law/default.js +0 -4
- package/prisma/generated/law/edge.d.ts +0 -1
- package/prisma/generated/law/edge.js +0 -256
- package/prisma/generated/law/index-browser.js +0 -238
- package/prisma/generated/law/index.d.ts +0 -6868
- package/prisma/generated/law/index.js +0 -281
- package/prisma/generated/law/libquery_engine-darwin-arm64.dylib.node +0 -0
- package/prisma/generated/law/libquery_engine-linux-musl-openssl-3.0.x.so.node +0 -0
- package/prisma/generated/law/package.json +0 -183
- package/prisma/generated/law/query_engine_bg.js +0 -2
- package/prisma/generated/law/query_engine_bg.wasm +0 -0
- package/prisma/generated/law/runtime/edge-esm.js +0 -34
- package/prisma/generated/law/runtime/edge.js +0 -34
- package/prisma/generated/law/runtime/index-browser.d.ts +0 -370
- package/prisma/generated/law/runtime/index-browser.js +0 -16
- package/prisma/generated/law/runtime/library.d.ts +0 -3977
- package/prisma/generated/law/runtime/library.js +0 -146
- package/prisma/generated/law/runtime/react-native.js +0 -83
- package/prisma/generated/law/runtime/wasm-compiler-edge.js +0 -84
- package/prisma/generated/law/runtime/wasm-engine-edge.js +0 -36
- package/prisma/generated/law/schema.prisma +0 -82
- package/prisma/generated/law/wasm-edge-light-loader.mjs +0 -4
- package/prisma/generated/law/wasm-worker-loader.mjs +0 -4
- package/prisma/generated/law/wasm.d.ts +0 -1
- package/prisma/generated/law/wasm.js +0 -263
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danielcok17/prisma-db",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.1",
|
|
4
4
|
"description": "Shared Prisma schema for Legal AI applications",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist",
|
|
9
|
-
"prisma"
|
|
9
|
+
"prisma/*.prisma",
|
|
10
|
+
"prisma/migrations"
|
|
10
11
|
],
|
|
11
12
|
"publishConfig": {
|
|
12
13
|
"access": "public"
|
package/prisma/law.prisma
CHANGED
|
@@ -13,24 +13,24 @@ datasource db {
|
|
|
13
13
|
|
|
14
14
|
/// Existing public tables (read-only recommended). Validate nullability via introspection.
|
|
15
15
|
model LawVersion {
|
|
16
|
-
id String
|
|
17
|
-
lawId String?
|
|
18
|
-
lawName String?
|
|
19
|
-
versionNumber String?
|
|
20
|
-
lawUrl String?
|
|
21
|
-
isLawVersionEffective Boolean?
|
|
22
|
-
isAmendment Boolean?
|
|
23
|
-
fullLawId String?
|
|
24
|
-
approvalDate DateTime? @map("
|
|
25
|
-
publicationDate DateTime? @map("
|
|
26
|
-
effectiveFrom DateTime? @map("
|
|
27
|
-
effectiveUntil DateTime? @map("
|
|
16
|
+
id String @id
|
|
17
|
+
lawId String? @map("law_id")
|
|
18
|
+
lawName String? @map("law_name")
|
|
19
|
+
versionNumber String? @map("version_number")
|
|
20
|
+
lawUrl String? @map("law_url")
|
|
21
|
+
isLawVersionEffective Boolean? @map("is_law_version_effective")
|
|
22
|
+
isAmendment Boolean? @map("is_amendment")
|
|
23
|
+
fullLawId String? @map("full_law_id")
|
|
24
|
+
approvalDate DateTime? @map("approval_date")
|
|
25
|
+
publicationDate DateTime? @map("publication_date")
|
|
26
|
+
effectiveFrom DateTime? @map("effective_from")
|
|
27
|
+
effectiveUntil DateTime? @map("effective_until")
|
|
28
28
|
author String?
|
|
29
|
-
fullLawHtml String?
|
|
30
|
-
fullLaw String?
|
|
31
|
-
legalAreas Json?
|
|
32
|
-
publishedIn Json?
|
|
33
|
-
relationships Json?
|
|
29
|
+
fullLawHtml String? @map("full_law_html")
|
|
30
|
+
fullLaw String? @map("full_law")
|
|
31
|
+
legalAreas Json? @map("legal_areas")
|
|
32
|
+
publishedIn Json? @map("published_in")
|
|
33
|
+
relationships Json?
|
|
34
34
|
|
|
35
35
|
attachments LawAttachment[]
|
|
36
36
|
paragraphs VersionParagraph[]
|
|
@@ -40,45 +40,43 @@ model LawVersion {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
model LawAttachment {
|
|
43
|
-
id
|
|
44
|
-
name
|
|
45
|
-
attachmentId
|
|
46
|
-
content
|
|
47
|
-
lawVersionId
|
|
43
|
+
id Int @id
|
|
44
|
+
name String?
|
|
45
|
+
attachmentId String? @map("attachment_id")
|
|
46
|
+
content String?
|
|
47
|
+
lawVersionId String @map("law_version_id")
|
|
48
48
|
|
|
49
|
-
lawVersion
|
|
49
|
+
lawVersion LawVersion @relation(fields: [lawVersionId], references: [id])
|
|
50
50
|
|
|
51
51
|
@@map("law_attachments")
|
|
52
52
|
@@schema("public")
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
model VersionParagraph {
|
|
56
|
-
id
|
|
57
|
-
paragraphId
|
|
58
|
-
versionId
|
|
59
|
-
sequenceNumber
|
|
60
|
-
text
|
|
61
|
-
fullText
|
|
62
|
-
fullTextWithCitations
|
|
63
|
-
embedding
|
|
64
|
-
partId
|
|
65
|
-
partName
|
|
66
|
-
chapterId
|
|
67
|
-
chapterName
|
|
68
|
-
divisionId
|
|
69
|
-
divisionName
|
|
70
|
-
sectionId
|
|
71
|
-
sectionName
|
|
72
|
-
paragraphPath
|
|
73
|
-
paragraphGroupName
|
|
74
|
-
isAmendment
|
|
75
|
-
validFrom
|
|
76
|
-
validTo
|
|
56
|
+
id Int @id
|
|
57
|
+
paragraphId String? @map("paragraph_id")
|
|
58
|
+
versionId String @map("version_id")
|
|
59
|
+
sequenceNumber Int? @map("sequence_number")
|
|
60
|
+
text String?
|
|
61
|
+
fullText String? @map("full_text")
|
|
62
|
+
fullTextWithCitations String? @map("full_text_with_citations")
|
|
63
|
+
embedding Json?
|
|
64
|
+
partId String? @map("part_id")
|
|
65
|
+
partName String? @map("part_name")
|
|
66
|
+
chapterId String? @map("chapter_id")
|
|
67
|
+
chapterName String? @map("chapter_name")
|
|
68
|
+
divisionId String? @map("division_id")
|
|
69
|
+
divisionName String? @map("division_name")
|
|
70
|
+
sectionId String? @map("section_id")
|
|
71
|
+
sectionName String? @map("section_name")
|
|
72
|
+
paragraphPath String? @map("paragraph_path")
|
|
73
|
+
paragraphGroupName String? @map("paragraph_group_name")
|
|
74
|
+
isAmendment Boolean? @map("is_amendment")
|
|
75
|
+
validFrom DateTime? @map("valid_from")
|
|
76
|
+
validTo DateTime? @map("valid_to")
|
|
77
77
|
|
|
78
|
-
lawVersion
|
|
78
|
+
lawVersion LawVersion @relation(fields: [versionId], references: [id])
|
|
79
79
|
|
|
80
80
|
@@map("version_paragraphs")
|
|
81
81
|
@@schema("public")
|
|
82
82
|
}
|
|
83
|
-
|
|
84
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./index"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./index"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./default"
|