@delpa/mt-prisma 0.14.0 → 0.16.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/dist/generated/client/edge.js +425 -23
- package/dist/generated/client/index-browser.js +430 -29
- package/dist/generated/client/index.d.ts +71466 -28468
- package/dist/generated/client/index.js +426 -24
- package/dist/generated/client/package.json +3 -3
- package/dist/generated/client/query_compiler_fast_bg.js +2 -0
- package/dist/generated/client/query_compiler_fast_bg.wasm +0 -0
- package/dist/generated/client/query_compiler_fast_bg.wasm-base64.js +2 -0
- package/dist/generated/client/runtime/client.d.ts +4 -17
- package/dist/generated/client/runtime/client.js +20 -20
- package/dist/generated/client/runtime/wasm-compiler-edge.js +18 -18
- package/dist/generated/client/schema.prisma +648 -66
- package/dist/generated/client/wasm-edge-light-loader.mjs +1 -1
- package/dist/generated/client/wasm-worker-loader.mjs +1 -1
- package/dist/generated/generated/client/edge.js +225 -24
- package/dist/generated/generated/client/index-browser.js +218 -18
- package/dist/generated/generated/client/index.d.ts +63096 -34291
- package/dist/generated/generated/client/index.js +226 -25
- package/dist/generated/generated/client/package.json +3 -3
- package/dist/generated/generated/client/query_compiler_fast_bg.js +2 -0
- package/dist/generated/generated/client/query_compiler_fast_bg.wasm +0 -0
- package/dist/generated/generated/client/query_compiler_fast_bg.wasm-base64.js +2 -0
- package/dist/generated/generated/client/runtime/client.d.ts +4 -17
- package/dist/generated/generated/client/runtime/client.js +20 -20
- package/dist/generated/generated/client/runtime/wasm-compiler-edge.js +18 -18
- package/dist/generated/generated/client/schema.prisma +398 -73
- package/dist/generated/generated/client/wasm-edge-light-loader.mjs +1 -1
- package/dist/generated/generated/client/wasm-worker-loader.mjs +1 -1
- package/generated/client/edge.js +225 -24
- package/generated/client/index-browser.js +218 -18
- package/generated/client/index.d.ts +63096 -34291
- package/generated/client/index.js +226 -25
- package/generated/client/package.json +3 -3
- package/generated/client/query_compiler_fast_bg.js +2 -0
- package/generated/client/query_compiler_fast_bg.wasm +0 -0
- package/generated/client/query_compiler_fast_bg.wasm-base64.js +2 -0
- package/generated/client/runtime/client.d.ts +4 -17
- package/generated/client/runtime/client.js +20 -20
- package/generated/client/runtime/wasm-compiler-edge.js +18 -18
- package/generated/client/schema.prisma +398 -73
- package/generated/client/wasm-edge-light-loader.mjs +1 -1
- package/generated/client/wasm-worker-loader.mjs +1 -1
- package/package.json +1 -1
- package/prisma/migrations/20260127193502_enable_postgis/migration.sql +2 -0
- package/prisma/migrations/20260127193503_add_schema_tenders/migration.sql +410 -0
- package/prisma/migrations/20260202133514_agrega_product_in_handling_units/migration.sql +8 -0
- package/prisma/migrations/20260202150634_simplify_handling_unit_remove_redundant_fields/migration.sql +29 -0
- package/prisma/migrations/20260202162217_fix_reference_for_products/migration.sql +22 -0
- package/prisma/migrations/20260202163057_fix_vechicle_equipment_name/migration.sql +25 -0
- package/prisma/schema.prisma +495 -168
|
@@ -24,12 +24,12 @@ exports.Prisma = Prisma
|
|
|
24
24
|
exports.$Enums = {}
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
* Prisma Client JS version: 7.
|
|
28
|
-
* Query Engine version:
|
|
27
|
+
* Prisma Client JS version: 7.3.0
|
|
28
|
+
* Query Engine version: 9d6ad21cbbceab97458517b147a6a09ff43aa735
|
|
29
29
|
*/
|
|
30
30
|
Prisma.prismaVersion = {
|
|
31
|
-
client: "7.
|
|
32
|
-
engine: "
|
|
31
|
+
client: "7.3.0",
|
|
32
|
+
engine: "9d6ad21cbbceab97458517b147a6a09ff43aa735"
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
Prisma.PrismaClientKnownRequestError = () => {
|
|
@@ -122,7 +122,7 @@ exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
|
|
|
122
122
|
|
|
123
123
|
exports.Prisma.ProductScalarFieldEnum = {
|
|
124
124
|
id: 'id',
|
|
125
|
-
|
|
125
|
+
company_id: 'company_id',
|
|
126
126
|
description: 'description',
|
|
127
127
|
sku: 'sku',
|
|
128
128
|
quantity: 'quantity',
|
|
@@ -200,6 +200,8 @@ exports.Prisma.CompaniesScalarFieldEnum = {
|
|
|
200
200
|
address: 'address',
|
|
201
201
|
contact_info: 'contact_info',
|
|
202
202
|
country_code: 'country_code',
|
|
203
|
+
is_validated: 'is_validated',
|
|
204
|
+
documents: 'documents',
|
|
203
205
|
created_at: 'created_at',
|
|
204
206
|
updated_at: 'updated_at'
|
|
205
207
|
};
|
|
@@ -207,18 +209,7 @@ exports.Prisma.CompaniesScalarFieldEnum = {
|
|
|
207
209
|
exports.Prisma.HandlingUnitScalarFieldEnum = {
|
|
208
210
|
id: 'id',
|
|
209
211
|
order_id: 'order_id',
|
|
210
|
-
description: 'description',
|
|
211
212
|
quantity: 'quantity',
|
|
212
|
-
weight: 'weight',
|
|
213
|
-
weight_unit: 'weight_unit',
|
|
214
|
-
length: 'length',
|
|
215
|
-
width: 'width',
|
|
216
|
-
height: 'height',
|
|
217
|
-
volume: 'volume',
|
|
218
|
-
dimension_unit: 'dimension_unit',
|
|
219
|
-
total_volume: 'total_volume',
|
|
220
|
-
total_weight: 'total_weight',
|
|
221
|
-
commodity: 'commodity',
|
|
222
213
|
delivery_contact: 'delivery_contact',
|
|
223
214
|
pickup_contact: 'pickup_contact',
|
|
224
215
|
delivery_address: 'delivery_address',
|
|
@@ -228,6 +219,8 @@ exports.Prisma.HandlingUnitScalarFieldEnum = {
|
|
|
228
219
|
client_id: 'client_id',
|
|
229
220
|
contact_notify: 'contact_notify',
|
|
230
221
|
eta: 'eta',
|
|
222
|
+
product_id: 'product_id',
|
|
223
|
+
notes: 'notes',
|
|
231
224
|
created_at: 'created_at',
|
|
232
225
|
updated_at: 'updated_at'
|
|
233
226
|
};
|
|
@@ -238,6 +231,8 @@ exports.Prisma.UserScalarFieldEnum = {
|
|
|
238
231
|
name: 'name',
|
|
239
232
|
password: 'password',
|
|
240
233
|
role: 'role',
|
|
234
|
+
driver_validated: 'driver_validated',
|
|
235
|
+
documents: 'documents',
|
|
241
236
|
created_at: 'created_at',
|
|
242
237
|
updated_at: 'updated_at'
|
|
243
238
|
};
|
|
@@ -285,6 +280,7 @@ exports.Prisma.VehicleScalarFieldEnum = {
|
|
|
285
280
|
license_plate: 'license_plate',
|
|
286
281
|
brand_id: 'brand_id',
|
|
287
282
|
model_id: 'model_id',
|
|
283
|
+
vehicle_type_id: 'vehicle_type_id',
|
|
288
284
|
capacity: 'capacity',
|
|
289
285
|
year: 'year',
|
|
290
286
|
fuel_type: 'fuel_type',
|
|
@@ -294,6 +290,8 @@ exports.Prisma.VehicleScalarFieldEnum = {
|
|
|
294
290
|
gps_enabled: 'gps_enabled',
|
|
295
291
|
image_url: 'image_url',
|
|
296
292
|
company_id: 'company_id',
|
|
293
|
+
is_validated: 'is_validated',
|
|
294
|
+
documents: 'documents',
|
|
297
295
|
created_at: 'created_at',
|
|
298
296
|
updated_at: 'updated_at'
|
|
299
297
|
};
|
|
@@ -393,6 +391,8 @@ exports.Prisma.EquipmentScalarFieldEnum = {
|
|
|
393
391
|
status: 'status',
|
|
394
392
|
company_id: 'company_id',
|
|
395
393
|
vehicle_id: 'vehicle_id',
|
|
394
|
+
is_validated: 'is_validated',
|
|
395
|
+
documents: 'documents',
|
|
396
396
|
created_at: 'created_at',
|
|
397
397
|
updated_at: 'updated_at'
|
|
398
398
|
};
|
|
@@ -506,6 +506,155 @@ exports.Prisma.FormFieldScalarFieldEnum = {
|
|
|
506
506
|
updated_at: 'updated_at'
|
|
507
507
|
};
|
|
508
508
|
|
|
509
|
+
exports.Prisma.VehicleTypeScalarFieldEnum = {
|
|
510
|
+
id: 'id',
|
|
511
|
+
name: 'name',
|
|
512
|
+
description: 'description',
|
|
513
|
+
is_active: 'is_active',
|
|
514
|
+
created_at: 'created_at',
|
|
515
|
+
updated_at: 'updated_at'
|
|
516
|
+
};
|
|
517
|
+
|
|
518
|
+
exports.Prisma.VehicleEquipmentScalarFieldEnum = {
|
|
519
|
+
id: 'id',
|
|
520
|
+
name: 'name'
|
|
521
|
+
};
|
|
522
|
+
|
|
523
|
+
exports.Prisma.TenderScalarFieldEnum = {
|
|
524
|
+
id: 'id',
|
|
525
|
+
title: 'title',
|
|
526
|
+
description: 'description',
|
|
527
|
+
status: 'status',
|
|
528
|
+
tender_type: 'tender_type',
|
|
529
|
+
tender_mode: 'tender_mode',
|
|
530
|
+
budget: 'budget',
|
|
531
|
+
currency: 'currency',
|
|
532
|
+
user_id: 'user_id',
|
|
533
|
+
company_id: 'company_id',
|
|
534
|
+
order_id: 'order_id',
|
|
535
|
+
trip_type: 'trip_type',
|
|
536
|
+
expiration_date: 'expiration_date',
|
|
537
|
+
terms_and_conditions: 'terms_and_conditions',
|
|
538
|
+
created_at: 'created_at',
|
|
539
|
+
updated_at: 'updated_at'
|
|
540
|
+
};
|
|
541
|
+
|
|
542
|
+
exports.Prisma.TenderVehicleScalarFieldEnum = {
|
|
543
|
+
id: 'id',
|
|
544
|
+
tender_id: 'tender_id',
|
|
545
|
+
vehicle_type_id: 'vehicle_type_id',
|
|
546
|
+
quantity: 'quantity',
|
|
547
|
+
min_weight_capacity: 'min_weight_capacity',
|
|
548
|
+
weight_unit: 'weight_unit',
|
|
549
|
+
min_volume_capacity: 'min_volume_capacity',
|
|
550
|
+
dimension_unit: 'dimension_unit',
|
|
551
|
+
min_year: 'min_year',
|
|
552
|
+
pickup_datetime: 'pickup_datetime',
|
|
553
|
+
delivery_datetime: 'delivery_datetime',
|
|
554
|
+
pickup_instructions: 'pickup_instructions',
|
|
555
|
+
delivery_instructions: 'delivery_instructions',
|
|
556
|
+
budget_per_vehicle: 'budget_per_vehicle',
|
|
557
|
+
currency: 'currency',
|
|
558
|
+
is_negotiable: 'is_negotiable',
|
|
559
|
+
created_at: 'created_at',
|
|
560
|
+
updated_at: 'updated_at'
|
|
561
|
+
};
|
|
562
|
+
|
|
563
|
+
exports.Prisma.TenderVehicleEquipmentScalarFieldEnum = {
|
|
564
|
+
id: 'id',
|
|
565
|
+
tender_vehicle_id: 'tender_vehicle_id',
|
|
566
|
+
vehicle_equipment_id: 'vehicle_equipment_id',
|
|
567
|
+
created_at: 'created_at',
|
|
568
|
+
updated_at: 'updated_at'
|
|
569
|
+
};
|
|
570
|
+
|
|
571
|
+
exports.Prisma.TenderChatScalarFieldEnum = {
|
|
572
|
+
id: 'id',
|
|
573
|
+
tender_id: 'tender_id',
|
|
574
|
+
user_sends_id: 'user_sends_id',
|
|
575
|
+
user_receives_id: 'user_receives_id',
|
|
576
|
+
message: 'message',
|
|
577
|
+
created_at: 'created_at'
|
|
578
|
+
};
|
|
579
|
+
|
|
580
|
+
exports.Prisma.TenderApplicationScalarFieldEnum = {
|
|
581
|
+
id: 'id',
|
|
582
|
+
status: 'status',
|
|
583
|
+
tender_vehicle_id: 'tender_vehicle_id',
|
|
584
|
+
vehicle_id: 'vehicle_id',
|
|
585
|
+
user_id: 'user_id',
|
|
586
|
+
updated_user_id: 'updated_user_id',
|
|
587
|
+
accepts_terms_conditions: 'accepts_terms_conditions',
|
|
588
|
+
postulated_price: 'postulated_price',
|
|
589
|
+
currency: 'currency',
|
|
590
|
+
created_at: 'created_at',
|
|
591
|
+
updated_at: 'updated_at',
|
|
592
|
+
edit_limit: 'edit_limit'
|
|
593
|
+
};
|
|
594
|
+
|
|
595
|
+
exports.Prisma.GroupScalarFieldEnum = {
|
|
596
|
+
id: 'id',
|
|
597
|
+
name: 'name',
|
|
598
|
+
company_id: 'company_id',
|
|
599
|
+
created_at: 'created_at',
|
|
600
|
+
updated_at: 'updated_at'
|
|
601
|
+
};
|
|
602
|
+
|
|
603
|
+
exports.Prisma.UserGroupScalarFieldEnum = {
|
|
604
|
+
id: 'id',
|
|
605
|
+
user_id: 'user_id',
|
|
606
|
+
group_id: 'group_id',
|
|
607
|
+
created_at: 'created_at',
|
|
608
|
+
updated_at: 'updated_at'
|
|
609
|
+
};
|
|
610
|
+
|
|
611
|
+
exports.Prisma.TenderNotificationScalarFieldEnum = {
|
|
612
|
+
id: 'id',
|
|
613
|
+
tender_id: 'tender_id',
|
|
614
|
+
user_id: 'user_id',
|
|
615
|
+
group_id: 'group_id',
|
|
616
|
+
whatsapp: 'whatsapp',
|
|
617
|
+
email: 'email',
|
|
618
|
+
push: 'push',
|
|
619
|
+
message: 'message',
|
|
620
|
+
created_at: 'created_at'
|
|
621
|
+
};
|
|
622
|
+
|
|
623
|
+
exports.Prisma.LocationScalarFieldEnum = {
|
|
624
|
+
id: 'id',
|
|
625
|
+
title: 'title',
|
|
626
|
+
location_type: 'location_type',
|
|
627
|
+
country_code: 'country_code',
|
|
628
|
+
zip_code: 'zip_code',
|
|
629
|
+
created_at: 'created_at',
|
|
630
|
+
updated_at: 'updated_at'
|
|
631
|
+
};
|
|
632
|
+
|
|
633
|
+
exports.Prisma.CompanyLocationScalarFieldEnum = {
|
|
634
|
+
id: 'id',
|
|
635
|
+
company_id: 'company_id',
|
|
636
|
+
location_id: 'location_id',
|
|
637
|
+
is_active: 'is_active',
|
|
638
|
+
created_at: 'created_at',
|
|
639
|
+
updated_at: 'updated_at'
|
|
640
|
+
};
|
|
641
|
+
|
|
642
|
+
exports.Prisma.TenderLocationNotificationScalarFieldEnum = {
|
|
643
|
+
id: 'id',
|
|
644
|
+
tender_id: 'tender_id',
|
|
645
|
+
location_id: 'location_id',
|
|
646
|
+
created_at: 'created_at',
|
|
647
|
+
updated_at: 'updated_at'
|
|
648
|
+
};
|
|
649
|
+
|
|
650
|
+
exports.Prisma.RegularSupplierScalarFieldEnum = {
|
|
651
|
+
id: 'id',
|
|
652
|
+
company_id: 'company_id',
|
|
653
|
+
supplier_id: 'supplier_id',
|
|
654
|
+
created_at: 'created_at',
|
|
655
|
+
updated_at: 'updated_at'
|
|
656
|
+
};
|
|
657
|
+
|
|
509
658
|
exports.Prisma.SortOrder = {
|
|
510
659
|
asc: 'asc',
|
|
511
660
|
desc: 'desc'
|
|
@@ -724,13 +873,50 @@ exports.FormStatus = exports.$Enums.FormStatus = {
|
|
|
724
873
|
EXPIRED: 'EXPIRED'
|
|
725
874
|
};
|
|
726
875
|
|
|
876
|
+
exports.TenderStatus = exports.$Enums.TenderStatus = {
|
|
877
|
+
OPEN: 'OPEN',
|
|
878
|
+
CLOSED: 'CLOSED',
|
|
879
|
+
AWARDED: 'AWARDED',
|
|
880
|
+
CANCELLED: 'CANCELLED',
|
|
881
|
+
DRAFT: 'DRAFT',
|
|
882
|
+
PAUSED: 'PAUSED'
|
|
883
|
+
};
|
|
884
|
+
|
|
885
|
+
exports.TenderType = exports.$Enums.TenderType = {
|
|
886
|
+
FIXED_PRICE_TENDER: 'FIXED_PRICE_TENDER',
|
|
887
|
+
TENDER_WITHOUT_FIXED_PRICES: 'TENDER_WITHOUT_FIXED_PRICES'
|
|
888
|
+
};
|
|
889
|
+
|
|
890
|
+
exports.TenderMode = exports.$Enums.TenderMode = {
|
|
891
|
+
PUBLIC: 'PUBLIC',
|
|
892
|
+
PRIVATE: 'PRIVATE'
|
|
893
|
+
};
|
|
894
|
+
|
|
895
|
+
exports.TripType = exports.$Enums.TripType = {
|
|
896
|
+
NATIONAL: 'NATIONAL',
|
|
897
|
+
INTERNATIONAL: 'INTERNATIONAL'
|
|
898
|
+
};
|
|
899
|
+
|
|
900
|
+
exports.ApplicationStatus = exports.$Enums.ApplicationStatus = {
|
|
901
|
+
PENDING: 'PENDING',
|
|
902
|
+
APPROVED: 'APPROVED',
|
|
903
|
+
REJECTED: 'REJECTED',
|
|
904
|
+
WITHDRAWN: 'WITHDRAWN'
|
|
905
|
+
};
|
|
906
|
+
|
|
907
|
+
exports.LocationType = exports.$Enums.LocationType = {
|
|
908
|
+
CITY: 'CITY',
|
|
909
|
+
STATE: 'STATE',
|
|
910
|
+
COUNTRY: 'COUNTRY'
|
|
911
|
+
};
|
|
912
|
+
|
|
727
913
|
exports.Prisma.ModelName = {
|
|
728
914
|
Product: 'Product',
|
|
729
915
|
Client: 'Client',
|
|
730
916
|
ClientAddress: 'ClientAddress',
|
|
731
917
|
ClientContact: 'ClientContact',
|
|
732
918
|
Order: 'Order',
|
|
733
|
-
|
|
919
|
+
Companies: 'Companies',
|
|
734
920
|
HandlingUnit: 'HandlingUnit',
|
|
735
921
|
User: 'User',
|
|
736
922
|
UserCompany: 'UserCompany',
|
|
@@ -751,7 +937,21 @@ exports.Prisma.ModelName = {
|
|
|
751
937
|
TemplateField: 'TemplateField',
|
|
752
938
|
FormResponse: 'FormResponse',
|
|
753
939
|
Form: 'Form',
|
|
754
|
-
FormField: 'FormField'
|
|
940
|
+
FormField: 'FormField',
|
|
941
|
+
VehicleType: 'VehicleType',
|
|
942
|
+
VehicleEquipment: 'VehicleEquipment',
|
|
943
|
+
Tender: 'Tender',
|
|
944
|
+
TenderVehicle: 'TenderVehicle',
|
|
945
|
+
TenderVehicleEquipment: 'TenderVehicleEquipment',
|
|
946
|
+
TenderChat: 'TenderChat',
|
|
947
|
+
TenderApplication: 'TenderApplication',
|
|
948
|
+
Group: 'Group',
|
|
949
|
+
UserGroup: 'UserGroup',
|
|
950
|
+
TenderNotification: 'TenderNotification',
|
|
951
|
+
Location: 'Location',
|
|
952
|
+
CompanyLocation: 'CompanyLocation',
|
|
953
|
+
TenderLocationNotification: 'TenderLocationNotification',
|
|
954
|
+
RegularSupplier: 'RegularSupplier'
|
|
755
955
|
};
|
|
756
956
|
|
|
757
957
|
/**
|