@allbluecn/database 0.9.4 → 0.10.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/desktop-init.ts +48 -14
- package/generated/browser.ts +10 -0
- package/generated/client.ts +10 -0
- package/generated/commonInputTypes.ts +54 -54
- package/generated/internal/class.ts +24 -4
- package/generated/internal/prismaNamespace.ts +153 -10
- package/generated/internal/prismaNamespaceBrowser.ts +26 -1
- package/generated/models/DesignEmbedding.ts +993 -0
- package/generated/models/HarnessPlugin.ts +0 -8
- package/generated/models/KnowledgeEmbedding.ts +1017 -0
- package/generated/models/LegalRegulation.ts +36 -1
- package/generated/models/User.ts +400 -1
- package/generated/models.ts +2 -0
- package/generated-sqlite/commonInputTypes.ts +54 -54
- package/generated-sqlite/internal/class.ts +4 -4
- package/generated-sqlite/internal/prismaNamespace.ts +9 -7
- package/generated-sqlite/internal/prismaNamespaceBrowser.ts +2 -0
- package/generated-sqlite/models/HarnessPlugin.ts +0 -8
- package/generated-sqlite/models/LegalRegulation.ts +36 -1
- package/generated-sqlite/models/User.ts +288 -1
- package/migrations/20261026130000_recreate_vector_tables/migration.sql +38 -0
- package/migrations/20261028120000_audit_token_version_share_index/migration.sql +8 -0
- package/migrations/20261028130000_legal_regulation_code/migration.sql +9 -0
- package/package.json +6 -5
- package/schema.prisma +32 -1
- package/schema.sqlite.prisma +3 -1
- package/src/lib/share-utils.ts +9 -4
- package/src/lib/vec-tables.ts +33 -0
|
@@ -38,6 +38,7 @@ export type LegalRegulationMinAggregateOutputType = {
|
|
|
38
38
|
id: string | null
|
|
39
39
|
canonicalId: string | null
|
|
40
40
|
title: string | null
|
|
41
|
+
code: string | null
|
|
41
42
|
jurisdiction: string | null
|
|
42
43
|
region: string | null
|
|
43
44
|
country: string | null
|
|
@@ -59,6 +60,7 @@ export type LegalRegulationMaxAggregateOutputType = {
|
|
|
59
60
|
id: string | null
|
|
60
61
|
canonicalId: string | null
|
|
61
62
|
title: string | null
|
|
63
|
+
code: string | null
|
|
62
64
|
jurisdiction: string | null
|
|
63
65
|
region: string | null
|
|
64
66
|
country: string | null
|
|
@@ -80,6 +82,7 @@ export type LegalRegulationCountAggregateOutputType = {
|
|
|
80
82
|
id: number
|
|
81
83
|
canonicalId: number
|
|
82
84
|
title: number
|
|
85
|
+
code: number
|
|
83
86
|
jurisdiction: number
|
|
84
87
|
region: number
|
|
85
88
|
country: number
|
|
@@ -112,6 +115,7 @@ export type LegalRegulationMinAggregateInputType = {
|
|
|
112
115
|
id?: true
|
|
113
116
|
canonicalId?: true
|
|
114
117
|
title?: true
|
|
118
|
+
code?: true
|
|
115
119
|
jurisdiction?: true
|
|
116
120
|
region?: true
|
|
117
121
|
country?: true
|
|
@@ -133,6 +137,7 @@ export type LegalRegulationMaxAggregateInputType = {
|
|
|
133
137
|
id?: true
|
|
134
138
|
canonicalId?: true
|
|
135
139
|
title?: true
|
|
140
|
+
code?: true
|
|
136
141
|
jurisdiction?: true
|
|
137
142
|
region?: true
|
|
138
143
|
country?: true
|
|
@@ -154,6 +159,7 @@ export type LegalRegulationCountAggregateInputType = {
|
|
|
154
159
|
id?: true
|
|
155
160
|
canonicalId?: true
|
|
156
161
|
title?: true
|
|
162
|
+
code?: true
|
|
157
163
|
jurisdiction?: true
|
|
158
164
|
region?: true
|
|
159
165
|
country?: true
|
|
@@ -263,6 +269,7 @@ export type LegalRegulationGroupByOutputType = {
|
|
|
263
269
|
id: string
|
|
264
270
|
canonicalId: string
|
|
265
271
|
title: string
|
|
272
|
+
code: string | null
|
|
266
273
|
jurisdiction: string
|
|
267
274
|
region: string | null
|
|
268
275
|
country: string | null
|
|
@@ -308,6 +315,7 @@ export type LegalRegulationWhereInput = {
|
|
|
308
315
|
id?: Prisma.StringFilter<"LegalRegulation"> | string
|
|
309
316
|
canonicalId?: Prisma.StringFilter<"LegalRegulation"> | string
|
|
310
317
|
title?: Prisma.StringFilter<"LegalRegulation"> | string
|
|
318
|
+
code?: Prisma.StringNullableFilter<"LegalRegulation"> | string | null
|
|
311
319
|
jurisdiction?: Prisma.StringFilter<"LegalRegulation"> | string
|
|
312
320
|
region?: Prisma.StringNullableFilter<"LegalRegulation"> | string | null
|
|
313
321
|
country?: Prisma.StringNullableFilter<"LegalRegulation"> | string | null
|
|
@@ -331,6 +339,7 @@ export type LegalRegulationOrderByWithRelationInput = {
|
|
|
331
339
|
id?: Prisma.SortOrder
|
|
332
340
|
canonicalId?: Prisma.SortOrder
|
|
333
341
|
title?: Prisma.SortOrder
|
|
342
|
+
code?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
334
343
|
jurisdiction?: Prisma.SortOrder
|
|
335
344
|
region?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
336
345
|
country?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
@@ -357,6 +366,7 @@ export type LegalRegulationWhereUniqueInput = Prisma.AtLeast<{
|
|
|
357
366
|
NOT?: Prisma.LegalRegulationWhereInput | Prisma.LegalRegulationWhereInput[]
|
|
358
367
|
canonicalId?: Prisma.StringFilter<"LegalRegulation"> | string
|
|
359
368
|
title?: Prisma.StringFilter<"LegalRegulation"> | string
|
|
369
|
+
code?: Prisma.StringNullableFilter<"LegalRegulation"> | string | null
|
|
360
370
|
jurisdiction?: Prisma.StringFilter<"LegalRegulation"> | string
|
|
361
371
|
region?: Prisma.StringNullableFilter<"LegalRegulation"> | string | null
|
|
362
372
|
country?: Prisma.StringNullableFilter<"LegalRegulation"> | string | null
|
|
@@ -380,6 +390,7 @@ export type LegalRegulationOrderByWithAggregationInput = {
|
|
|
380
390
|
id?: Prisma.SortOrder
|
|
381
391
|
canonicalId?: Prisma.SortOrder
|
|
382
392
|
title?: Prisma.SortOrder
|
|
393
|
+
code?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
383
394
|
jurisdiction?: Prisma.SortOrder
|
|
384
395
|
region?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
385
396
|
country?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
@@ -410,6 +421,7 @@ export type LegalRegulationScalarWhereWithAggregatesInput = {
|
|
|
410
421
|
id?: Prisma.StringWithAggregatesFilter<"LegalRegulation"> | string
|
|
411
422
|
canonicalId?: Prisma.StringWithAggregatesFilter<"LegalRegulation"> | string
|
|
412
423
|
title?: Prisma.StringWithAggregatesFilter<"LegalRegulation"> | string
|
|
424
|
+
code?: Prisma.StringNullableWithAggregatesFilter<"LegalRegulation"> | string | null
|
|
413
425
|
jurisdiction?: Prisma.StringWithAggregatesFilter<"LegalRegulation"> | string
|
|
414
426
|
region?: Prisma.StringNullableWithAggregatesFilter<"LegalRegulation"> | string | null
|
|
415
427
|
country?: Prisma.StringNullableWithAggregatesFilter<"LegalRegulation"> | string | null
|
|
@@ -432,6 +444,7 @@ export type LegalRegulationCreateInput = {
|
|
|
432
444
|
id?: string
|
|
433
445
|
canonicalId: string
|
|
434
446
|
title: string
|
|
447
|
+
code?: string | null
|
|
435
448
|
jurisdiction: string
|
|
436
449
|
region?: string | null
|
|
437
450
|
country?: string | null
|
|
@@ -454,6 +467,7 @@ export type LegalRegulationUncheckedCreateInput = {
|
|
|
454
467
|
id?: string
|
|
455
468
|
canonicalId: string
|
|
456
469
|
title: string
|
|
470
|
+
code?: string | null
|
|
457
471
|
jurisdiction: string
|
|
458
472
|
region?: string | null
|
|
459
473
|
country?: string | null
|
|
@@ -476,6 +490,7 @@ export type LegalRegulationUpdateInput = {
|
|
|
476
490
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
477
491
|
canonicalId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
478
492
|
title?: Prisma.StringFieldUpdateOperationsInput | string
|
|
493
|
+
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
479
494
|
jurisdiction?: Prisma.StringFieldUpdateOperationsInput | string
|
|
480
495
|
region?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
481
496
|
country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
@@ -498,6 +513,7 @@ export type LegalRegulationUncheckedUpdateInput = {
|
|
|
498
513
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
499
514
|
canonicalId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
500
515
|
title?: Prisma.StringFieldUpdateOperationsInput | string
|
|
516
|
+
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
501
517
|
jurisdiction?: Prisma.StringFieldUpdateOperationsInput | string
|
|
502
518
|
region?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
503
519
|
country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
@@ -520,6 +536,7 @@ export type LegalRegulationCreateManyInput = {
|
|
|
520
536
|
id?: string
|
|
521
537
|
canonicalId: string
|
|
522
538
|
title: string
|
|
539
|
+
code?: string | null
|
|
523
540
|
jurisdiction: string
|
|
524
541
|
region?: string | null
|
|
525
542
|
country?: string | null
|
|
@@ -542,6 +559,7 @@ export type LegalRegulationUpdateManyMutationInput = {
|
|
|
542
559
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
543
560
|
canonicalId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
544
561
|
title?: Prisma.StringFieldUpdateOperationsInput | string
|
|
562
|
+
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
545
563
|
jurisdiction?: Prisma.StringFieldUpdateOperationsInput | string
|
|
546
564
|
region?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
547
565
|
country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
@@ -563,6 +581,7 @@ export type LegalRegulationUncheckedUpdateManyInput = {
|
|
|
563
581
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
564
582
|
canonicalId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
565
583
|
title?: Prisma.StringFieldUpdateOperationsInput | string
|
|
584
|
+
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
566
585
|
jurisdiction?: Prisma.StringFieldUpdateOperationsInput | string
|
|
567
586
|
region?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
568
587
|
country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
@@ -595,6 +614,7 @@ export type LegalRegulationCountOrderByAggregateInput = {
|
|
|
595
614
|
id?: Prisma.SortOrder
|
|
596
615
|
canonicalId?: Prisma.SortOrder
|
|
597
616
|
title?: Prisma.SortOrder
|
|
617
|
+
code?: Prisma.SortOrder
|
|
598
618
|
jurisdiction?: Prisma.SortOrder
|
|
599
619
|
region?: Prisma.SortOrder
|
|
600
620
|
country?: Prisma.SortOrder
|
|
@@ -621,6 +641,7 @@ export type LegalRegulationMaxOrderByAggregateInput = {
|
|
|
621
641
|
id?: Prisma.SortOrder
|
|
622
642
|
canonicalId?: Prisma.SortOrder
|
|
623
643
|
title?: Prisma.SortOrder
|
|
644
|
+
code?: Prisma.SortOrder
|
|
624
645
|
jurisdiction?: Prisma.SortOrder
|
|
625
646
|
region?: Prisma.SortOrder
|
|
626
647
|
country?: Prisma.SortOrder
|
|
@@ -642,6 +663,7 @@ export type LegalRegulationMinOrderByAggregateInput = {
|
|
|
642
663
|
id?: Prisma.SortOrder
|
|
643
664
|
canonicalId?: Prisma.SortOrder
|
|
644
665
|
title?: Prisma.SortOrder
|
|
666
|
+
code?: Prisma.SortOrder
|
|
645
667
|
jurisdiction?: Prisma.SortOrder
|
|
646
668
|
region?: Prisma.SortOrder
|
|
647
669
|
country?: Prisma.SortOrder
|
|
@@ -709,6 +731,7 @@ export type LegalRegulationCreateWithoutUserInput = {
|
|
|
709
731
|
id?: string
|
|
710
732
|
canonicalId: string
|
|
711
733
|
title: string
|
|
734
|
+
code?: string | null
|
|
712
735
|
jurisdiction: string
|
|
713
736
|
region?: string | null
|
|
714
737
|
country?: string | null
|
|
@@ -730,6 +753,7 @@ export type LegalRegulationUncheckedCreateWithoutUserInput = {
|
|
|
730
753
|
id?: string
|
|
731
754
|
canonicalId: string
|
|
732
755
|
title: string
|
|
756
|
+
code?: string | null
|
|
733
757
|
jurisdiction: string
|
|
734
758
|
region?: string | null
|
|
735
759
|
country?: string | null
|
|
@@ -780,6 +804,7 @@ export type LegalRegulationScalarWhereInput = {
|
|
|
780
804
|
id?: Prisma.StringFilter<"LegalRegulation"> | string
|
|
781
805
|
canonicalId?: Prisma.StringFilter<"LegalRegulation"> | string
|
|
782
806
|
title?: Prisma.StringFilter<"LegalRegulation"> | string
|
|
807
|
+
code?: Prisma.StringNullableFilter<"LegalRegulation"> | string | null
|
|
783
808
|
jurisdiction?: Prisma.StringFilter<"LegalRegulation"> | string
|
|
784
809
|
region?: Prisma.StringNullableFilter<"LegalRegulation"> | string | null
|
|
785
810
|
country?: Prisma.StringNullableFilter<"LegalRegulation"> | string | null
|
|
@@ -802,6 +827,7 @@ export type LegalRegulationCreateManyUserInput = {
|
|
|
802
827
|
id?: string
|
|
803
828
|
canonicalId: string
|
|
804
829
|
title: string
|
|
830
|
+
code?: string | null
|
|
805
831
|
jurisdiction: string
|
|
806
832
|
region?: string | null
|
|
807
833
|
country?: string | null
|
|
@@ -823,6 +849,7 @@ export type LegalRegulationUpdateWithoutUserInput = {
|
|
|
823
849
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
824
850
|
canonicalId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
825
851
|
title?: Prisma.StringFieldUpdateOperationsInput | string
|
|
852
|
+
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
826
853
|
jurisdiction?: Prisma.StringFieldUpdateOperationsInput | string
|
|
827
854
|
region?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
828
855
|
country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
@@ -844,6 +871,7 @@ export type LegalRegulationUncheckedUpdateWithoutUserInput = {
|
|
|
844
871
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
845
872
|
canonicalId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
846
873
|
title?: Prisma.StringFieldUpdateOperationsInput | string
|
|
874
|
+
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
847
875
|
jurisdiction?: Prisma.StringFieldUpdateOperationsInput | string
|
|
848
876
|
region?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
849
877
|
country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
@@ -865,6 +893,7 @@ export type LegalRegulationUncheckedUpdateManyWithoutUserInput = {
|
|
|
865
893
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
866
894
|
canonicalId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
867
895
|
title?: Prisma.StringFieldUpdateOperationsInput | string
|
|
896
|
+
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
868
897
|
jurisdiction?: Prisma.StringFieldUpdateOperationsInput | string
|
|
869
898
|
region?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
870
899
|
country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
@@ -888,6 +917,7 @@ export type LegalRegulationSelect<ExtArgs extends runtime.Types.Extensions.Inter
|
|
|
888
917
|
id?: boolean
|
|
889
918
|
canonicalId?: boolean
|
|
890
919
|
title?: boolean
|
|
920
|
+
code?: boolean
|
|
891
921
|
jurisdiction?: boolean
|
|
892
922
|
region?: boolean
|
|
893
923
|
country?: boolean
|
|
@@ -911,6 +941,7 @@ export type LegalRegulationSelectCreateManyAndReturn<ExtArgs extends runtime.Typ
|
|
|
911
941
|
id?: boolean
|
|
912
942
|
canonicalId?: boolean
|
|
913
943
|
title?: boolean
|
|
944
|
+
code?: boolean
|
|
914
945
|
jurisdiction?: boolean
|
|
915
946
|
region?: boolean
|
|
916
947
|
country?: boolean
|
|
@@ -934,6 +965,7 @@ export type LegalRegulationSelectUpdateManyAndReturn<ExtArgs extends runtime.Typ
|
|
|
934
965
|
id?: boolean
|
|
935
966
|
canonicalId?: boolean
|
|
936
967
|
title?: boolean
|
|
968
|
+
code?: boolean
|
|
937
969
|
jurisdiction?: boolean
|
|
938
970
|
region?: boolean
|
|
939
971
|
country?: boolean
|
|
@@ -957,6 +989,7 @@ export type LegalRegulationSelectScalar = {
|
|
|
957
989
|
id?: boolean
|
|
958
990
|
canonicalId?: boolean
|
|
959
991
|
title?: boolean
|
|
992
|
+
code?: boolean
|
|
960
993
|
jurisdiction?: boolean
|
|
961
994
|
region?: boolean
|
|
962
995
|
country?: boolean
|
|
@@ -975,7 +1008,7 @@ export type LegalRegulationSelectScalar = {
|
|
|
975
1008
|
updatedAt?: boolean
|
|
976
1009
|
}
|
|
977
1010
|
|
|
978
|
-
export type LegalRegulationOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "canonicalId" | "title" | "jurisdiction" | "region" | "country" | "category" | "issuingAuthority" | "effectiveDate" | "summary" | "content" | "sourceUrl" | "likeCount" | "tags" | "visibility" | "userId" | "isDeleted" | "createdAt" | "updatedAt", ExtArgs["result"]["legalRegulation"]>
|
|
1011
|
+
export type LegalRegulationOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "canonicalId" | "title" | "code" | "jurisdiction" | "region" | "country" | "category" | "issuingAuthority" | "effectiveDate" | "summary" | "content" | "sourceUrl" | "likeCount" | "tags" | "visibility" | "userId" | "isDeleted" | "createdAt" | "updatedAt", ExtArgs["result"]["legalRegulation"]>
|
|
979
1012
|
export type LegalRegulationInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
980
1013
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
981
1014
|
}
|
|
@@ -995,6 +1028,7 @@ export type $LegalRegulationPayload<ExtArgs extends runtime.Types.Extensions.Int
|
|
|
995
1028
|
id: string
|
|
996
1029
|
canonicalId: string
|
|
997
1030
|
title: string
|
|
1031
|
+
code: string | null
|
|
998
1032
|
jurisdiction: string
|
|
999
1033
|
region: string | null
|
|
1000
1034
|
country: string | null
|
|
@@ -1438,6 +1472,7 @@ export interface LegalRegulationFieldRefs {
|
|
|
1438
1472
|
readonly id: Prisma.FieldRef<"LegalRegulation", 'String'>
|
|
1439
1473
|
readonly canonicalId: Prisma.FieldRef<"LegalRegulation", 'String'>
|
|
1440
1474
|
readonly title: Prisma.FieldRef<"LegalRegulation", 'String'>
|
|
1475
|
+
readonly code: Prisma.FieldRef<"LegalRegulation", 'String'>
|
|
1441
1476
|
readonly jurisdiction: Prisma.FieldRef<"LegalRegulation", 'String'>
|
|
1442
1477
|
readonly region: Prisma.FieldRef<"LegalRegulation", 'String'>
|
|
1443
1478
|
readonly country: Prisma.FieldRef<"LegalRegulation", 'String'>
|