@delpa/mt-prisma 0.13.0 → 0.14.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/generated/client/edge.js +204 -3
- package/dist/generated/generated/client/index-browser.js +214 -13
- package/dist/generated/generated/client/index.d.ts +34283 -20030
- package/dist/generated/generated/client/index.js +204 -3
- package/dist/generated/generated/client/package.json +1 -1
- package/dist/generated/generated/client/schema.prisma +264 -4
- package/generated/client/edge.js +204 -3
- package/generated/client/index-browser.js +214 -13
- package/generated/client/index.d.ts +34283 -20030
- package/generated/client/index.js +204 -3
- package/generated/client/package.json +1 -1
- package/generated/client/schema.prisma +264 -4
- package/package.json +1 -1
- package/prisma/migrations/20260122190951_add_forms_models/migration.sql +104 -0
- package/prisma/migrations/20260123025721_add_form_assignments/migration.sql +91 -0
- package/prisma/migrations/20260123043335_rename_assignment_to_form/migration.sql +141 -0
- package/prisma/migrations/20260123165531_add_products/migration.sql +46 -0
- package/prisma/schema.prisma +259 -1
|
@@ -92,6 +92,26 @@ exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
|
|
|
92
92
|
Serializable: 'Serializable'
|
|
93
93
|
});
|
|
94
94
|
|
|
95
|
+
exports.Prisma.ProductScalarFieldEnum = {
|
|
96
|
+
id: 'id',
|
|
97
|
+
client_id: 'client_id',
|
|
98
|
+
description: 'description',
|
|
99
|
+
sku: 'sku',
|
|
100
|
+
quantity: 'quantity',
|
|
101
|
+
packaging_type: 'packaging_type',
|
|
102
|
+
category: 'category',
|
|
103
|
+
subcategory: 'subcategory',
|
|
104
|
+
dimension_unit: 'dimension_unit',
|
|
105
|
+
length: 'length',
|
|
106
|
+
width: 'width',
|
|
107
|
+
height: 'height',
|
|
108
|
+
weight_unit: 'weight_unit',
|
|
109
|
+
weight: 'weight',
|
|
110
|
+
is_active: 'is_active',
|
|
111
|
+
created_at: 'created_at',
|
|
112
|
+
updated_at: 'updated_at'
|
|
113
|
+
};
|
|
114
|
+
|
|
95
115
|
exports.Prisma.ClientScalarFieldEnum = {
|
|
96
116
|
id: 'id',
|
|
97
117
|
tax_id: 'tax_id',
|
|
@@ -378,6 +398,86 @@ exports.Prisma.DriverLocationScalarFieldEnum = {
|
|
|
378
398
|
updated_at: 'updated_at'
|
|
379
399
|
};
|
|
380
400
|
|
|
401
|
+
exports.Prisma.FormTemplateScalarFieldEnum = {
|
|
402
|
+
id: 'id',
|
|
403
|
+
name: 'name',
|
|
404
|
+
description: 'description',
|
|
405
|
+
company_id: 'company_id',
|
|
406
|
+
is_active: 'is_active',
|
|
407
|
+
is_global: 'is_global',
|
|
408
|
+
category: 'category',
|
|
409
|
+
version: 'version',
|
|
410
|
+
created_by: 'created_by',
|
|
411
|
+
created_at: 'created_at',
|
|
412
|
+
updated_at: 'updated_at'
|
|
413
|
+
};
|
|
414
|
+
|
|
415
|
+
exports.Prisma.TemplateFieldScalarFieldEnum = {
|
|
416
|
+
id: 'id',
|
|
417
|
+
template_id: 'template_id',
|
|
418
|
+
label: 'label',
|
|
419
|
+
field_type: 'field_type',
|
|
420
|
+
placeholder: 'placeholder',
|
|
421
|
+
help_text: 'help_text',
|
|
422
|
+
is_required: 'is_required',
|
|
423
|
+
order: 'order',
|
|
424
|
+
options: 'options',
|
|
425
|
+
validations: 'validations',
|
|
426
|
+
default_value: 'default_value',
|
|
427
|
+
conditional_logic: 'conditional_logic',
|
|
428
|
+
created_at: 'created_at',
|
|
429
|
+
updated_at: 'updated_at'
|
|
430
|
+
};
|
|
431
|
+
|
|
432
|
+
exports.Prisma.FormResponseScalarFieldEnum = {
|
|
433
|
+
id: 'id',
|
|
434
|
+
template_id: 'template_id',
|
|
435
|
+
form_id: 'form_id',
|
|
436
|
+
entity_type: 'entity_type',
|
|
437
|
+
entity_id: 'entity_id',
|
|
438
|
+
company_id: 'company_id',
|
|
439
|
+
respondent_id: 'respondent_id',
|
|
440
|
+
responses: 'responses',
|
|
441
|
+
status: 'status',
|
|
442
|
+
submitted_at: 'submitted_at',
|
|
443
|
+
created_at: 'created_at',
|
|
444
|
+
updated_at: 'updated_at'
|
|
445
|
+
};
|
|
446
|
+
|
|
447
|
+
exports.Prisma.FormScalarFieldEnum = {
|
|
448
|
+
id: 'id',
|
|
449
|
+
name: 'name',
|
|
450
|
+
description: 'description',
|
|
451
|
+
template_id: 'template_id',
|
|
452
|
+
company_id: 'company_id',
|
|
453
|
+
target_type: 'target_type',
|
|
454
|
+
target_ids: 'target_ids',
|
|
455
|
+
is_required: 'is_required',
|
|
456
|
+
due_date: 'due_date',
|
|
457
|
+
status: 'status',
|
|
458
|
+
created_by: 'created_by',
|
|
459
|
+
created_at: 'created_at',
|
|
460
|
+
updated_at: 'updated_at'
|
|
461
|
+
};
|
|
462
|
+
|
|
463
|
+
exports.Prisma.FormFieldScalarFieldEnum = {
|
|
464
|
+
id: 'id',
|
|
465
|
+
form_id: 'form_id',
|
|
466
|
+
source_field_id: 'source_field_id',
|
|
467
|
+
label: 'label',
|
|
468
|
+
field_type: 'field_type',
|
|
469
|
+
placeholder: 'placeholder',
|
|
470
|
+
help_text: 'help_text',
|
|
471
|
+
is_required: 'is_required',
|
|
472
|
+
order: 'order',
|
|
473
|
+
options: 'options',
|
|
474
|
+
validations: 'validations',
|
|
475
|
+
default_value: 'default_value',
|
|
476
|
+
conditional_logic: 'conditional_logic',
|
|
477
|
+
created_at: 'created_at',
|
|
478
|
+
updated_at: 'updated_at'
|
|
479
|
+
};
|
|
480
|
+
|
|
381
481
|
exports.Prisma.SortOrder = {
|
|
382
482
|
asc: 'asc',
|
|
383
483
|
desc: 'desc'
|
|
@@ -388,6 +488,10 @@ exports.Prisma.NullableJsonNullValueInput = {
|
|
|
388
488
|
JsonNull: Prisma.JsonNull
|
|
389
489
|
};
|
|
390
490
|
|
|
491
|
+
exports.Prisma.JsonNullValueInput = {
|
|
492
|
+
JsonNull: Prisma.JsonNull
|
|
493
|
+
};
|
|
494
|
+
|
|
391
495
|
exports.Prisma.QueryMode = {
|
|
392
496
|
default: 'default',
|
|
393
497
|
insensitive: 'insensitive'
|
|
@@ -459,6 +563,55 @@ exports.FuelType = exports.$Enums.FuelType = {
|
|
|
459
563
|
GAS: 'GAS'
|
|
460
564
|
};
|
|
461
565
|
|
|
566
|
+
exports.PackagingType = exports.$Enums.PackagingType = {
|
|
567
|
+
BOX: 'BOX',
|
|
568
|
+
PALLET: 'PALLET',
|
|
569
|
+
CRATE: 'CRATE',
|
|
570
|
+
BARREL: 'BARREL',
|
|
571
|
+
BAG: 'BAG',
|
|
572
|
+
ROLL: 'ROLL',
|
|
573
|
+
BUNDLE: 'BUNDLE',
|
|
574
|
+
CONTAINER: 'CONTAINER',
|
|
575
|
+
LOOSE: 'LOOSE',
|
|
576
|
+
OTHER: 'OTHER'
|
|
577
|
+
};
|
|
578
|
+
|
|
579
|
+
exports.ProductCategory = exports.$Enums.ProductCategory = {
|
|
580
|
+
ELECTRONICS: 'ELECTRONICS',
|
|
581
|
+
FOOD_BEVERAGE: 'FOOD_BEVERAGE',
|
|
582
|
+
PHARMACEUTICALS: 'PHARMACEUTICALS',
|
|
583
|
+
TEXTILES: 'TEXTILES',
|
|
584
|
+
MACHINERY: 'MACHINERY',
|
|
585
|
+
CHEMICALS: 'CHEMICALS',
|
|
586
|
+
CONSTRUCTION: 'CONSTRUCTION',
|
|
587
|
+
AUTOMOTIVE: 'AUTOMOTIVE',
|
|
588
|
+
AGRICULTURE: 'AGRICULTURE',
|
|
589
|
+
FURNITURE: 'FURNITURE',
|
|
590
|
+
PAPER: 'PAPER',
|
|
591
|
+
PLASTICS: 'PLASTICS',
|
|
592
|
+
METALS: 'METALS',
|
|
593
|
+
GLASS: 'GLASS',
|
|
594
|
+
OTHER: 'OTHER'
|
|
595
|
+
};
|
|
596
|
+
|
|
597
|
+
exports.ProductSubcategory = exports.$Enums.ProductSubcategory = {
|
|
598
|
+
RAW_MATERIALS: 'RAW_MATERIALS',
|
|
599
|
+
FINISHED_GOODS: 'FINISHED_GOODS',
|
|
600
|
+
SEMI_FINISHED: 'SEMI_FINISHED',
|
|
601
|
+
SPARE_PARTS: 'SPARE_PARTS',
|
|
602
|
+
CONSUMABLES: 'CONSUMABLES',
|
|
603
|
+
HAZARDOUS: 'HAZARDOUS',
|
|
604
|
+
FRAGILE: 'FRAGILE',
|
|
605
|
+
PERISHABLE: 'PERISHABLE',
|
|
606
|
+
REFRIGERATED: 'REFRIGERATED',
|
|
607
|
+
FROZEN: 'FROZEN',
|
|
608
|
+
BULK: 'BULK',
|
|
609
|
+
LIQUID: 'LIQUID',
|
|
610
|
+
OVERSIZED: 'OVERSIZED',
|
|
611
|
+
HIGH_VALUE: 'HIGH_VALUE',
|
|
612
|
+
OTHER: 'OTHER'
|
|
613
|
+
};
|
|
614
|
+
|
|
462
615
|
exports.AddressType = exports.$Enums.AddressType = {
|
|
463
616
|
PICKUP: 'PICKUP',
|
|
464
617
|
DELIVERY: 'DELIVERY',
|
|
@@ -501,7 +654,50 @@ exports.GpsProviders = exports.$Enums.GpsProviders = {
|
|
|
501
654
|
SASCAR: 'SASCAR'
|
|
502
655
|
};
|
|
503
656
|
|
|
657
|
+
exports.FieldType = exports.$Enums.FieldType = {
|
|
658
|
+
TEXT: 'TEXT',
|
|
659
|
+
TEXTAREA: 'TEXTAREA',
|
|
660
|
+
NUMBER: 'NUMBER',
|
|
661
|
+
EMAIL: 'EMAIL',
|
|
662
|
+
PHONE: 'PHONE',
|
|
663
|
+
DATE: 'DATE',
|
|
664
|
+
DATETIME: 'DATETIME',
|
|
665
|
+
TIME: 'TIME',
|
|
666
|
+
SELECT: 'SELECT',
|
|
667
|
+
MULTISELECT: 'MULTISELECT',
|
|
668
|
+
CHECKBOX: 'CHECKBOX',
|
|
669
|
+
RADIO: 'RADIO',
|
|
670
|
+
FILE: 'FILE',
|
|
671
|
+
IMAGE: 'IMAGE',
|
|
672
|
+
SIGNATURE: 'SIGNATURE',
|
|
673
|
+
LOCATION: 'LOCATION'
|
|
674
|
+
};
|
|
675
|
+
|
|
676
|
+
exports.FormResponseStatus = exports.$Enums.FormResponseStatus = {
|
|
677
|
+
DRAFT: 'DRAFT',
|
|
678
|
+
SUBMITTED: 'SUBMITTED',
|
|
679
|
+
APPROVED: 'APPROVED',
|
|
680
|
+
REJECTED: 'REJECTED'
|
|
681
|
+
};
|
|
682
|
+
|
|
683
|
+
exports.FormTargetType = exports.$Enums.FormTargetType = {
|
|
684
|
+
DRIVER: 'DRIVER',
|
|
685
|
+
VEHICLE: 'VEHICLE',
|
|
686
|
+
COMPANY_PARTNER: 'COMPANY_PARTNER',
|
|
687
|
+
CLIENT: 'CLIENT',
|
|
688
|
+
ORDER: 'ORDER',
|
|
689
|
+
ROUTE: 'ROUTE'
|
|
690
|
+
};
|
|
691
|
+
|
|
692
|
+
exports.FormStatus = exports.$Enums.FormStatus = {
|
|
693
|
+
ACTIVE: 'ACTIVE',
|
|
694
|
+
COMPLETED: 'COMPLETED',
|
|
695
|
+
CANCELLED: 'CANCELLED',
|
|
696
|
+
EXPIRED: 'EXPIRED'
|
|
697
|
+
};
|
|
698
|
+
|
|
504
699
|
exports.Prisma.ModelName = {
|
|
700
|
+
Product: 'Product',
|
|
505
701
|
Client: 'Client',
|
|
506
702
|
ClientAddress: 'ClientAddress',
|
|
507
703
|
ClientContact: 'ClientContact',
|
|
@@ -522,7 +718,12 @@ exports.Prisma.ModelName = {
|
|
|
522
718
|
EquipmentModel: 'EquipmentModel',
|
|
523
719
|
Equipment: 'Equipment',
|
|
524
720
|
VehicleLocation: 'VehicleLocation',
|
|
525
|
-
DriverLocation: 'DriverLocation'
|
|
721
|
+
DriverLocation: 'DriverLocation',
|
|
722
|
+
FormTemplate: 'FormTemplate',
|
|
723
|
+
TemplateField: 'TemplateField',
|
|
724
|
+
FormResponse: 'FormResponse',
|
|
725
|
+
Form: 'Form',
|
|
726
|
+
FormField: 'FormField'
|
|
526
727
|
};
|
|
527
728
|
/**
|
|
528
729
|
* Create the Client
|
|
@@ -532,10 +733,10 @@ const config = {
|
|
|
532
733
|
"clientVersion": "7.2.0",
|
|
533
734
|
"engineVersion": "0c8ef2ce45c83248ab3df073180d5eda9e8be7a3",
|
|
534
735
|
"activeProvider": "postgresql",
|
|
535
|
-
"inlineSchema": "generator client {\n provider = \"prisma-client-js\"\n output = \"../generated/client\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n}\n\nenum RouteStatus {\n IN_TRANSIT\n DELIVERED\n PENDING\n CANCELLED\n INCIDENT\n}\n\nenum WeightUnits {\n KG\n LB\n}\n\nenum DimensionUnits {\n CM\n IN\n MT\n FT\n}\n\nenum Roles {\n ADMIN\n OPERATOR\n DRIVER\n GUEST\n}\n\nenum VehicleSize {\n SMALL\n MEDIUM\n LARGE\n EXTRA_LARGE\n}\n\nenum VehicleColor {\n WHITE\n BLACK\n SILVER\n GRAY\n RED\n BLUE\n GREEN\n YELLOW\n ORANGE\n BROWN\n BEIGE\n}\n\nenum FuelType {\n GASOLINE\n DIESEL\n ELECTRIC\n HYBRID\n GAS\n}\n\nenum AddressType {\n PICKUP\n DELIVERY\n WAREHOUSE\n FUEL_STATION\n REST_STOP\n TOLL_BOOTH\n CUSTOMS\n INSPECTION\n MAINTENANCE\n LOADING_DOCK\n CROSS_DOCK\n DISTRIBUTION_CENTER\n BORDER_CROSSING\n WEIGH_STATION\n PARKING\n OVERNIGHT_STOP\n CUSTOMER_SITE\n OTHER\n}\n\nenum EquipmentStatus {\n ACTIVE\n INACTIVE\n MAINTENANCE\n}\n\nenum GpsProviders {\n BEERMAN\n GETRAK\n GPS_GLOBAL\n GPS_CHILE\n IGPS\n MAVI_GPS\n MICHELIN\n RED_GPS\n TRUCK_CONTROL\n GYG\n ONIX\n SASCAR\n}\n\nmodel Client {\n id String @id @default(uuid()) @db.Uuid\n tax_id String?\n name String\n email String?\n phone String?\n country_code String?\n company_id String? @db.Uuid\n created_by String? @db.Uuid\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n company companies? @relation(fields: [company_id], references: [id], onDelete: SetNull)\n addresses ClientAddress[]\n contacts ClientContact[]\n orders_as_shipper Order[] @relation(\"shipper_client\")\n handling_units_as_consignee HandlingUnit[]\n\n @@index([company_id])\n @@index([created_by])\n @@map(\"clients\")\n}\n\nmodel ClientAddress {\n id String @id @default(uuid()) @db.Uuid\n client_id String @db.Uuid\n title String?\n address_type AddressType @default(OTHER)\n line1 String\n line2 String?\n city String?\n state String?\n postal_code String?\n country String?\n formatted_address String?\n latitude Float?\n longitude Float?\n is_default Boolean @default(false)\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n client Client @relation(fields: [client_id], references: [id], onDelete: Cascade)\n\n @@index([client_id])\n @@map(\"client_addresses\")\n}\n\nmodel ClientContact {\n id String @id @default(uuid()) @db.Uuid\n client_id String @db.Uuid\n name String\n email String?\n phone String?\n is_default Boolean @default(false)\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n client Client @relation(fields: [client_id], references: [id], onDelete: Cascade)\n\n @@index([client_id])\n @@map(\"client_contacts\")\n}\n\nmodel Order {\n id String @id @default(uuid()) @db.Uuid\n reference String?\n shipper_id String? @db.Uuid\n attachments Json? @default(\"[]\")\n status RouteStatus @default(PENDING)\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n shipper Client? @relation(\"shipper_client\", fields: [shipper_id], references: [id], onDelete: SetNull)\n handling_units HandlingUnit[]\n routes Route[]\n\n @@index([shipper_id])\n @@map(\"orders\")\n}\n\nmodel companies {\n id String @id @default(uuid()) @db.Uuid\n tax_id String? @unique\n name String\n address Json? @default(\"{}\")\n contact_info Json? @default(\"{}\")\n country_code String?\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n clients Client[]\n vehicles Vehicle[]\n user_companies UserCompany[]\n equipments Equipment[]\n\n @@map(\"companies\")\n}\n\nmodel HandlingUnit {\n id String @id @default(uuid()) @db.Uuid\n order_id String @db.Uuid\n description String\n quantity Int @default(1)\n weight Float?\n weight_unit WeightUnits @default(KG)\n length Float?\n width Float?\n height Float?\n volume Float?\n dimension_unit DimensionUnits @default(CM)\n total_volume Float?\n total_weight Float?\n commodity String?\n delivery_contact Json? @default(\"{}\")\n pickup_contact Json? @default(\"{}\")\n delivery_address Json? @default(\"{}\")\n pickup_address Json? @default(\"{}\")\n delivery_instructions String?\n pickup_instructions String?\n client_id String? @db.Uuid\n contact_notify Json? @default(\"[]\")\n eta DateTime?\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n order Order @relation(fields: [order_id], references: [id], onDelete: Cascade)\n client Client? @relation(fields: [client_id], references: [id], onDelete: SetNull)\n route_handling_units RouteHandlingUnit[]\n address_handling_units AddressHandlingUnit[]\n\n @@index([order_id])\n @@index([client_id])\n @@map(\"handling_units\")\n}\n\nmodel User {\n id String @id @default(uuid()) @db.Uuid\n email String @unique\n name String\n password String\n role Roles @default(GUEST)\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n routes Route[]\n user_companies UserCompany[]\n sessions Session[]\n driverLocations DriverLocation[]\n\n @@map(\"users\")\n}\n\nmodel UserCompany {\n id String @id @default(uuid()) @db.Uuid\n user_id String @db.Uuid\n company_id String @db.Uuid\n is_primary Boolean @default(false)\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n user User @relation(fields: [user_id], references: [id], onDelete: Cascade)\n company companies @relation(fields: [company_id], references: [id], onDelete: Cascade)\n\n @@unique([user_id, company_id])\n @@index([user_id])\n @@index([company_id])\n @@map(\"user_companies\")\n}\n\nmodel Session {\n id String @id @default(uuid()) @db.Uuid\n user_id String @db.Uuid\n refresh_token String @unique\n device_info String?\n ip_address String?\n expires_at DateTime\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n user User @relation(fields: [user_id], references: [id], onDelete: Cascade)\n\n @@index([user_id])\n @@index([refresh_token])\n @@map(\"sessions\")\n}\n\nmodel VehicleBrand {\n id String @id @default(uuid()) @db.Uuid\n name String @unique\n logo_url String?\n is_active Boolean @default(true)\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n models VehicleModel[]\n vehicles Vehicle[]\n\n @@map(\"vehicle_brands\")\n}\n\nmodel VehicleModel {\n id String @id @default(uuid()) @db.Uuid\n name String\n brand_id String @db.Uuid\n is_active Boolean @default(true)\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n brand VehicleBrand @relation(fields: [brand_id], references: [id], onDelete: Cascade)\n vehicles Vehicle[]\n\n @@unique([name, brand_id])\n @@index([brand_id])\n @@map(\"vehicle_models\")\n}\n\nmodel Vehicle {\n id String @id @default(uuid()) @db.Uuid\n license_plate String @unique\n brand_id String? @db.Uuid\n model_id String? @db.Uuid\n capacity Float?\n year Int?\n fuel_type FuelType? @default(DIESEL)\n color VehicleColor?\n chassis_number String? @unique\n size VehicleSize? @default(MEDIUM)\n gps_enabled Boolean @default(false)\n image_url Json? @default(\"[]\")\n company_id String? @db.Uuid\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n brand VehicleBrand? @relation(fields: [brand_id], references: [id], onDelete: SetNull)\n model VehicleModel? @relation(fields: [model_id], references: [id], onDelete: SetNull)\n company companies? @relation(fields: [company_id], references: [id], onDelete: Cascade)\n routes Route[]\n equipments Equipment[]\n vehicleLocations VehicleLocation[]\n\n @@index([company_id])\n @@index([brand_id])\n @@index([model_id])\n @@map(\"vehicles\")\n}\n\nmodel Route {\n id String @id @default(uuid()) @db.Uuid\n order_id String? @db.Uuid\n driver_id String? @db.Uuid\n vehicle_id String? @db.Uuid\n status RouteStatus @default(PENDING)\n started_at DateTime?\n completed_at DateTime?\n\n optimized_at DateTime?\n optimization_polyline String?\n optimization_distance_meters Int?\n optimization_duration_seconds Int?\n optimization_distance_saved_meters Int?\n optimization_duration_saved_seconds Int?\n optimization_percentage Float?\n optimization_waypoint_order Json?\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n order Order? @relation(fields: [order_id], references: [id], onDelete: Cascade)\n driver User? @relation(fields: [driver_id], references: [id], onDelete: SetNull)\n vehicle Vehicle? @relation(fields: [vehicle_id], references: [id], onDelete: SetNull)\n\n route_handling_units RouteHandlingUnit[]\n addresses Address[]\n\n @@index([order_id])\n @@index([driver_id])\n @@index([vehicle_id])\n @@map(\"routes\")\n}\n\nmodel RouteHandlingUnit {\n id String @id @default(uuid()) @db.Uuid\n route_id String @db.Uuid\n handling_unit_id String @db.Uuid\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n route Route @relation(fields: [route_id], references: [id], onDelete: Cascade)\n handling_unit HandlingUnit @relation(fields: [handling_unit_id], references: [id], onDelete: Cascade)\n\n @@index([route_id])\n @@index([handling_unit_id])\n @@map(\"route_handling_units\")\n}\n\nmodel Address {\n id String @id @default(uuid()) @db.Uuid\n address_type AddressType @default(OTHER)\n sequence Int?\n title String?\n address_line1 String\n address_line2 String?\n apartment String?\n city String?\n state String?\n postal_code String?\n country String\n latitude Float?\n longitude Float?\n google_address Json? @default(\"{}\")\n route_id String? @db.Uuid\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n route Route? @relation(fields: [route_id], references: [id], onDelete: Cascade)\n address_handling_units AddressHandlingUnit[]\n\n @@index([route_id])\n @@map(\"addresses\")\n}\n\nmodel AddressHandlingUnit {\n id String @id @default(uuid()) @db.Uuid\n address_id String @db.Uuid\n handling_unit_id String @db.Uuid\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n address Address @relation(fields: [address_id], references: [id], onDelete: Cascade)\n handling_unit HandlingUnit @relation(fields: [handling_unit_id], references: [id], onDelete: Cascade)\n\n @@index([address_id])\n @@index([handling_unit_id])\n @@map(\"address_handling_units\")\n}\n\nmodel EquipmentBrand {\n id String @id @default(uuid()) @db.Uuid\n name String @unique\n logo_url String?\n is_active Boolean @default(true)\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n models EquipmentModel[]\n equipments Equipment[]\n\n @@map(\"equipment_brands\")\n}\n\nmodel EquipmentModel {\n id String @id @default(uuid()) @db.Uuid\n name String\n brand_id String @db.Uuid\n is_active Boolean @default(true)\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n brand EquipmentBrand @relation(fields: [brand_id], references: [id], onDelete: Cascade)\n equipment Equipment[]\n\n @@unique([name, brand_id])\n @@index([brand_id])\n @@map(\"equipment_models\")\n}\n\nmodel Equipment {\n id String @id @default(uuid()) @db.Uuid\n title String\n plate String? @unique\n year Int?\n color VehicleColor?\n brand_id String? @db.Uuid\n model_id String? @db.Uuid\n axles Int?\n chassis_number String? @unique\n weight Float?\n weight_unit WeightUnits @default(KG)\n length Float?\n width Float?\n height Float?\n dimension_unit DimensionUnits @default(CM)\n pallets Int?\n load_capacity Float?\n status EquipmentStatus @default(ACTIVE)\n company_id String? @db.Uuid\n vehicle_id String? @db.Uuid\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n brand EquipmentBrand? @relation(fields: [brand_id], references: [id], onDelete: SetNull)\n model EquipmentModel? @relation(fields: [model_id], references: [id], onDelete: SetNull)\n company companies? @relation(fields: [company_id], references: [id], onDelete: SetNull)\n vehicle Vehicle? @relation(fields: [vehicle_id], references: [id], onDelete: SetNull)\n vehicleLocations VehicleLocation[]\n\n @@index([company_id])\n @@index([brand_id])\n @@index([model_id])\n @@index([vehicle_id])\n @@index([plate])\n @@map(\"equipments\")\n}\n\nmodel VehicleLocation {\n id String @id @default(uuid()) @db.Uuid\n vehicle_id String? @db.Uuid\n equiment_id String? @db.Uuid\n provider GpsProviders?\n plate String?\n temperature Float?\n voltage String?\n odometer String?\n batery_level String?\n stopped_time String?\n ignition_status Boolean?\n current_speed Float?\n latitude Float?\n longitude Float?\n metadata Json? @default(\"{}\")\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n vehicle Vehicle? @relation(fields: [vehicle_id], references: [id], onDelete: SetNull)\n equipment Equipment? @relation(fields: [equiment_id], references: [id], onDelete: SetNull)\n\n @@index([vehicle_id])\n @@index([equiment_id])\n @@index([provider])\n @@index([plate])\n @@index([created_at])\n @@map(\"vehicle_locations\")\n}\n\nmodel DriverLocation {\n id String @id @default(uuid()) @db.Uuid\n driver_id String @db.Uuid\n latitude Float\n longitude Float\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n driver User @relation(fields: [driver_id], references: [id], onDelete: Cascade)\n\n @@index([driver_id])\n @@index([created_at])\n @@map(\"driver_locations\")\n}\n"
|
|
736
|
+
"inlineSchema": "generator client {\n provider = \"prisma-client-js\"\n output = \"../generated/client\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n}\n\nenum RouteStatus {\n IN_TRANSIT\n DELIVERED\n PENDING\n CANCELLED\n INCIDENT\n}\n\nenum WeightUnits {\n KG\n LB\n}\n\nenum DimensionUnits {\n CM\n IN\n MT\n FT\n}\n\nenum Roles {\n ADMIN\n OPERATOR\n DRIVER\n GUEST\n}\n\nenum VehicleSize {\n SMALL\n MEDIUM\n LARGE\n EXTRA_LARGE\n}\n\nenum VehicleColor {\n WHITE\n BLACK\n SILVER\n GRAY\n RED\n BLUE\n GREEN\n YELLOW\n ORANGE\n BROWN\n BEIGE\n}\n\nenum FuelType {\n GASOLINE\n DIESEL\n ELECTRIC\n HYBRID\n GAS\n}\n\nenum PackagingType {\n BOX\n PALLET\n CRATE\n BARREL\n BAG\n ROLL\n BUNDLE\n CONTAINER\n LOOSE\n OTHER\n}\n\nenum ProductCategory {\n ELECTRONICS\n FOOD_BEVERAGE\n PHARMACEUTICALS\n TEXTILES\n MACHINERY\n CHEMICALS\n CONSTRUCTION\n AUTOMOTIVE\n AGRICULTURE\n FURNITURE\n PAPER\n PLASTICS\n METALS\n GLASS\n OTHER\n}\n\nenum ProductSubcategory {\n RAW_MATERIALS\n FINISHED_GOODS\n SEMI_FINISHED\n SPARE_PARTS\n CONSUMABLES\n HAZARDOUS\n FRAGILE\n PERISHABLE\n REFRIGERATED\n FROZEN\n BULK\n LIQUID\n OVERSIZED\n HIGH_VALUE\n OTHER\n}\n\nenum AddressType {\n PICKUP\n DELIVERY\n WAREHOUSE\n FUEL_STATION\n REST_STOP\n TOLL_BOOTH\n CUSTOMS\n INSPECTION\n MAINTENANCE\n LOADING_DOCK\n CROSS_DOCK\n DISTRIBUTION_CENTER\n BORDER_CROSSING\n WEIGH_STATION\n PARKING\n OVERNIGHT_STOP\n CUSTOMER_SITE\n OTHER\n}\n\nenum EquipmentStatus {\n ACTIVE\n INACTIVE\n MAINTENANCE\n}\n\nenum GpsProviders {\n BEERMAN\n GETRAK\n GPS_GLOBAL\n GPS_CHILE\n IGPS\n MAVI_GPS\n MICHELIN\n RED_GPS\n TRUCK_CONTROL\n GYG\n ONIX\n SASCAR\n}\n\nmodel Product {\n id String @id @default(uuid()) @db.Uuid\n client_id String @db.Uuid\n description String\n sku String @unique\n quantity Int @default(0)\n packaging_type PackagingType @default(BOX)\n category ProductCategory @default(OTHER)\n subcategory ProductSubcategory @default(OTHER)\n dimension_unit DimensionUnits @default(CM)\n length Float?\n width Float?\n height Float?\n weight_unit WeightUnits @default(KG)\n weight Float?\n is_active Boolean @default(true)\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n client Client @relation(fields: [client_id], references: [id], onDelete: Cascade)\n\n @@index([client_id])\n @@index([sku])\n @@index([category])\n @@map(\"products\")\n}\n\nmodel Client {\n id String @id @default(uuid()) @db.Uuid\n tax_id String?\n name String\n email String?\n phone String?\n country_code String?\n company_id String? @db.Uuid\n created_by String? @db.Uuid\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n company companies? @relation(fields: [company_id], references: [id], onDelete: SetNull)\n addresses ClientAddress[]\n contacts ClientContact[]\n orders_as_shipper Order[] @relation(\"shipper_client\")\n handling_units_as_consignee HandlingUnit[]\n products Product[]\n\n @@index([company_id])\n @@index([created_by])\n @@map(\"clients\")\n}\n\nmodel ClientAddress {\n id String @id @default(uuid()) @db.Uuid\n client_id String @db.Uuid\n title String?\n address_type AddressType @default(OTHER)\n line1 String\n line2 String?\n city String?\n state String?\n postal_code String?\n country String?\n formatted_address String?\n latitude Float?\n longitude Float?\n is_default Boolean @default(false)\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n client Client @relation(fields: [client_id], references: [id], onDelete: Cascade)\n\n @@index([client_id])\n @@map(\"client_addresses\")\n}\n\nmodel ClientContact {\n id String @id @default(uuid()) @db.Uuid\n client_id String @db.Uuid\n name String\n email String?\n phone String?\n is_default Boolean @default(false)\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n client Client @relation(fields: [client_id], references: [id], onDelete: Cascade)\n\n @@index([client_id])\n @@map(\"client_contacts\")\n}\n\nmodel Order {\n id String @id @default(uuid()) @db.Uuid\n reference String?\n shipper_id String? @db.Uuid\n attachments Json? @default(\"[]\")\n status RouteStatus @default(PENDING)\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n shipper Client? @relation(\"shipper_client\", fields: [shipper_id], references: [id], onDelete: SetNull)\n handling_units HandlingUnit[]\n routes Route[]\n\n @@index([shipper_id])\n @@map(\"orders\")\n}\n\nmodel companies {\n id String @id @default(uuid()) @db.Uuid\n tax_id String? @unique\n name String\n address Json? @default(\"{}\")\n contact_info Json? @default(\"{}\")\n country_code String?\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n clients Client[]\n vehicles Vehicle[]\n user_companies UserCompany[]\n equipments Equipment[]\n form_templates FormTemplate[]\n form_responses FormResponse[]\n forms Form[]\n\n @@map(\"companies\")\n}\n\nmodel HandlingUnit {\n id String @id @default(uuid()) @db.Uuid\n order_id String @db.Uuid\n description String\n quantity Int @default(1)\n weight Float?\n weight_unit WeightUnits @default(KG)\n length Float?\n width Float?\n height Float?\n volume Float?\n dimension_unit DimensionUnits @default(CM)\n total_volume Float?\n total_weight Float?\n commodity String?\n delivery_contact Json? @default(\"{}\")\n pickup_contact Json? @default(\"{}\")\n delivery_address Json? @default(\"{}\")\n pickup_address Json? @default(\"{}\")\n delivery_instructions String?\n pickup_instructions String?\n client_id String? @db.Uuid\n contact_notify Json? @default(\"[]\")\n eta DateTime?\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n order Order @relation(fields: [order_id], references: [id], onDelete: Cascade)\n client Client? @relation(fields: [client_id], references: [id], onDelete: SetNull)\n route_handling_units RouteHandlingUnit[]\n address_handling_units AddressHandlingUnit[]\n\n @@index([order_id])\n @@index([client_id])\n @@map(\"handling_units\")\n}\n\nmodel User {\n id String @id @default(uuid()) @db.Uuid\n email String @unique\n name String\n password String\n role Roles @default(GUEST)\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n routes Route[]\n user_companies UserCompany[]\n sessions Session[]\n driverLocations DriverLocation[]\n form_templates_created FormTemplate[]\n form_responses FormResponse[]\n forms_created Form[] @relation(\"FormCreator\")\n\n @@map(\"users\")\n}\n\nmodel UserCompany {\n id String @id @default(uuid()) @db.Uuid\n user_id String @db.Uuid\n company_id String @db.Uuid\n is_primary Boolean @default(false)\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n user User @relation(fields: [user_id], references: [id], onDelete: Cascade)\n company companies @relation(fields: [company_id], references: [id], onDelete: Cascade)\n\n @@unique([user_id, company_id])\n @@index([user_id])\n @@index([company_id])\n @@map(\"user_companies\")\n}\n\nmodel Session {\n id String @id @default(uuid()) @db.Uuid\n user_id String @db.Uuid\n refresh_token String @unique\n device_info String?\n ip_address String?\n expires_at DateTime\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n user User @relation(fields: [user_id], references: [id], onDelete: Cascade)\n\n @@index([user_id])\n @@index([refresh_token])\n @@map(\"sessions\")\n}\n\nmodel VehicleBrand {\n id String @id @default(uuid()) @db.Uuid\n name String @unique\n logo_url String?\n is_active Boolean @default(true)\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n models VehicleModel[]\n vehicles Vehicle[]\n\n @@map(\"vehicle_brands\")\n}\n\nmodel VehicleModel {\n id String @id @default(uuid()) @db.Uuid\n name String\n brand_id String @db.Uuid\n is_active Boolean @default(true)\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n brand VehicleBrand @relation(fields: [brand_id], references: [id], onDelete: Cascade)\n vehicles Vehicle[]\n\n @@unique([name, brand_id])\n @@index([brand_id])\n @@map(\"vehicle_models\")\n}\n\nmodel Vehicle {\n id String @id @default(uuid()) @db.Uuid\n license_plate String @unique\n brand_id String? @db.Uuid\n model_id String? @db.Uuid\n capacity Float?\n year Int?\n fuel_type FuelType? @default(DIESEL)\n color VehicleColor?\n chassis_number String? @unique\n size VehicleSize? @default(MEDIUM)\n gps_enabled Boolean @default(false)\n image_url Json? @default(\"[]\")\n company_id String? @db.Uuid\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n brand VehicleBrand? @relation(fields: [brand_id], references: [id], onDelete: SetNull)\n model VehicleModel? @relation(fields: [model_id], references: [id], onDelete: SetNull)\n company companies? @relation(fields: [company_id], references: [id], onDelete: Cascade)\n routes Route[]\n equipments Equipment[]\n vehicleLocations VehicleLocation[]\n\n @@index([company_id])\n @@index([brand_id])\n @@index([model_id])\n @@map(\"vehicles\")\n}\n\nmodel Route {\n id String @id @default(uuid()) @db.Uuid\n order_id String? @db.Uuid\n driver_id String? @db.Uuid\n vehicle_id String? @db.Uuid\n status RouteStatus @default(PENDING)\n started_at DateTime?\n completed_at DateTime?\n\n optimized_at DateTime?\n optimization_polyline String?\n optimization_distance_meters Int?\n optimization_duration_seconds Int?\n optimization_distance_saved_meters Int?\n optimization_duration_saved_seconds Int?\n optimization_percentage Float?\n optimization_waypoint_order Json?\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n order Order? @relation(fields: [order_id], references: [id], onDelete: Cascade)\n driver User? @relation(fields: [driver_id], references: [id], onDelete: SetNull)\n vehicle Vehicle? @relation(fields: [vehicle_id], references: [id], onDelete: SetNull)\n\n route_handling_units RouteHandlingUnit[]\n addresses Address[]\n\n @@index([order_id])\n @@index([driver_id])\n @@index([vehicle_id])\n @@map(\"routes\")\n}\n\nmodel RouteHandlingUnit {\n id String @id @default(uuid()) @db.Uuid\n route_id String @db.Uuid\n handling_unit_id String @db.Uuid\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n route Route @relation(fields: [route_id], references: [id], onDelete: Cascade)\n handling_unit HandlingUnit @relation(fields: [handling_unit_id], references: [id], onDelete: Cascade)\n\n @@index([route_id])\n @@index([handling_unit_id])\n @@map(\"route_handling_units\")\n}\n\nmodel Address {\n id String @id @default(uuid()) @db.Uuid\n address_type AddressType @default(OTHER)\n sequence Int?\n title String?\n address_line1 String\n address_line2 String?\n apartment String?\n city String?\n state String?\n postal_code String?\n country String\n latitude Float?\n longitude Float?\n google_address Json? @default(\"{}\")\n route_id String? @db.Uuid\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n route Route? @relation(fields: [route_id], references: [id], onDelete: Cascade)\n address_handling_units AddressHandlingUnit[]\n\n @@index([route_id])\n @@map(\"addresses\")\n}\n\nmodel AddressHandlingUnit {\n id String @id @default(uuid()) @db.Uuid\n address_id String @db.Uuid\n handling_unit_id String @db.Uuid\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n address Address @relation(fields: [address_id], references: [id], onDelete: Cascade)\n handling_unit HandlingUnit @relation(fields: [handling_unit_id], references: [id], onDelete: Cascade)\n\n @@index([address_id])\n @@index([handling_unit_id])\n @@map(\"address_handling_units\")\n}\n\nmodel EquipmentBrand {\n id String @id @default(uuid()) @db.Uuid\n name String @unique\n logo_url String?\n is_active Boolean @default(true)\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n models EquipmentModel[]\n equipments Equipment[]\n\n @@map(\"equipment_brands\")\n}\n\nmodel EquipmentModel {\n id String @id @default(uuid()) @db.Uuid\n name String\n brand_id String @db.Uuid\n is_active Boolean @default(true)\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n brand EquipmentBrand @relation(fields: [brand_id], references: [id], onDelete: Cascade)\n equipment Equipment[]\n\n @@unique([name, brand_id])\n @@index([brand_id])\n @@map(\"equipment_models\")\n}\n\nmodel Equipment {\n id String @id @default(uuid()) @db.Uuid\n title String\n plate String? @unique\n year Int?\n color VehicleColor?\n brand_id String? @db.Uuid\n model_id String? @db.Uuid\n axles Int?\n chassis_number String? @unique\n weight Float?\n weight_unit WeightUnits @default(KG)\n length Float?\n width Float?\n height Float?\n dimension_unit DimensionUnits @default(CM)\n pallets Int?\n load_capacity Float?\n status EquipmentStatus @default(ACTIVE)\n company_id String? @db.Uuid\n vehicle_id String? @db.Uuid\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n brand EquipmentBrand? @relation(fields: [brand_id], references: [id], onDelete: SetNull)\n model EquipmentModel? @relation(fields: [model_id], references: [id], onDelete: SetNull)\n company companies? @relation(fields: [company_id], references: [id], onDelete: SetNull)\n vehicle Vehicle? @relation(fields: [vehicle_id], references: [id], onDelete: SetNull)\n vehicleLocations VehicleLocation[]\n\n @@index([company_id])\n @@index([brand_id])\n @@index([model_id])\n @@index([vehicle_id])\n @@index([plate])\n @@map(\"equipments\")\n}\n\nmodel VehicleLocation {\n id String @id @default(uuid()) @db.Uuid\n vehicle_id String? @db.Uuid\n equiment_id String? @db.Uuid\n provider GpsProviders?\n plate String?\n temperature Float?\n voltage String?\n odometer String?\n batery_level String?\n stopped_time String?\n ignition_status Boolean?\n current_speed Float?\n latitude Float?\n longitude Float?\n metadata Json? @default(\"{}\")\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n vehicle Vehicle? @relation(fields: [vehicle_id], references: [id], onDelete: SetNull)\n equipment Equipment? @relation(fields: [equiment_id], references: [id], onDelete: SetNull)\n\n @@index([vehicle_id])\n @@index([equiment_id])\n @@index([provider])\n @@index([plate])\n @@index([created_at])\n @@map(\"vehicle_locations\")\n}\n\nmodel DriverLocation {\n id String @id @default(uuid()) @db.Uuid\n driver_id String @db.Uuid\n latitude Float\n longitude Float\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n driver User @relation(fields: [driver_id], references: [id], onDelete: Cascade)\n\n @@index([driver_id])\n @@index([created_at])\n @@map(\"driver_locations\")\n}\n\n// ============================================\n// FORMS - Form Templates, Fields and Responses\n// ============================================\n\nenum FieldType {\n TEXT\n TEXTAREA\n NUMBER\n EMAIL\n PHONE\n DATE\n DATETIME\n TIME\n SELECT\n MULTISELECT\n CHECKBOX\n RADIO\n FILE\n IMAGE\n SIGNATURE\n LOCATION\n}\n\nenum FormResponseStatus {\n DRAFT\n SUBMITTED\n APPROVED\n REJECTED\n}\n\nmodel FormTemplate {\n id String @id @default(uuid()) @db.Uuid\n name String\n description String?\n company_id String? @db.Uuid\n is_active Boolean @default(true)\n is_global Boolean @default(false)\n category String?\n version Int @default(1)\n created_by String? @db.Uuid\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n company companies? @relation(fields: [company_id], references: [id], onDelete: SetNull)\n created_by_user User? @relation(fields: [created_by], references: [id], onDelete: SetNull)\n fields TemplateField[]\n responses FormResponse[]\n forms Form[]\n\n @@index([company_id])\n @@index([is_global])\n @@index([category])\n @@index([is_active])\n @@map(\"form_templates\")\n}\n\nmodel TemplateField {\n id String @id @default(uuid()) @db.Uuid\n template_id String @db.Uuid\n label String\n field_type FieldType\n placeholder String?\n help_text String?\n is_required Boolean @default(false)\n order Int @default(0)\n options Json?\n validations Json?\n default_value String?\n conditional_logic Json?\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n template FormTemplate @relation(fields: [template_id], references: [id], onDelete: Cascade)\n\n @@index([template_id])\n @@map(\"template_fields\")\n}\n\nmodel FormResponse {\n id String @id @default(uuid()) @db.Uuid\n template_id String? @db.Uuid\n form_id String? @db.Uuid\n entity_type String\n entity_id String @db.Uuid\n company_id String? @db.Uuid\n respondent_id String? @db.Uuid\n responses Json\n status FormResponseStatus @default(DRAFT)\n submitted_at DateTime?\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n template FormTemplate? @relation(fields: [template_id], references: [id])\n form Form? @relation(fields: [form_id], references: [id])\n company companies? @relation(fields: [company_id], references: [id], onDelete: SetNull)\n respondent User? @relation(fields: [respondent_id], references: [id], onDelete: SetNull)\n\n @@index([template_id])\n @@index([form_id])\n @@index([entity_type, entity_id])\n @@index([company_id])\n @@index([status])\n @@map(\"form_responses\")\n}\n\n// ============================================\n// FORMS - Created forms from templates\n// ============================================\n\nenum FormTargetType {\n DRIVER\n VEHICLE\n COMPANY_PARTNER\n CLIENT\n ORDER\n ROUTE\n}\n\nenum FormStatus {\n ACTIVE\n COMPLETED\n CANCELLED\n EXPIRED\n}\n\nmodel Form {\n id String @id @default(uuid()) @db.Uuid\n name String\n description String?\n template_id String? @db.Uuid\n company_id String? @db.Uuid\n target_type FormTargetType\n target_ids String[] @db.Uuid\n is_required Boolean @default(false)\n due_date DateTime?\n status FormStatus @default(ACTIVE)\n created_by String? @db.Uuid\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n template FormTemplate? @relation(fields: [template_id], references: [id], onDelete: SetNull)\n company companies? @relation(fields: [company_id], references: [id], onDelete: SetNull)\n created_by_user User? @relation(\"FormCreator\", fields: [created_by], references: [id], onDelete: SetNull)\n fields FormField[]\n responses FormResponse[]\n\n @@index([company_id])\n @@index([template_id])\n @@index([target_type])\n @@index([status])\n @@index([due_date])\n @@map(\"forms\")\n}\n\nmodel FormField {\n id String @id @default(uuid()) @db.Uuid\n form_id String @db.Uuid\n source_field_id String? @db.Uuid\n label String\n field_type FieldType\n placeholder String?\n help_text String?\n is_required Boolean @default(false)\n order Int @default(0)\n options Json?\n validations Json?\n default_value String?\n conditional_logic Json?\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n form Form @relation(fields: [form_id], references: [id], onDelete: Cascade)\n\n @@index([form_id])\n @@map(\"form_fields\")\n}\n"
|
|
536
737
|
}
|
|
537
738
|
|
|
538
|
-
config.runtimeDataModel = JSON.parse("{\"models\":{\"Client\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"tax_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"phone\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"country_code\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"company_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"created_by\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"company\",\"kind\":\"object\",\"type\":\"companies\",\"relationName\":\"ClientTocompanies\"},{\"name\":\"addresses\",\"kind\":\"object\",\"type\":\"ClientAddress\",\"relationName\":\"ClientToClientAddress\"},{\"name\":\"contacts\",\"kind\":\"object\",\"type\":\"ClientContact\",\"relationName\":\"ClientToClientContact\"},{\"name\":\"orders_as_shipper\",\"kind\":\"object\",\"type\":\"Order\",\"relationName\":\"shipper_client\"},{\"name\":\"handling_units_as_consignee\",\"kind\":\"object\",\"type\":\"HandlingUnit\",\"relationName\":\"ClientToHandlingUnit\"}],\"dbName\":\"clients\"},\"ClientAddress\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"client_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"title\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"address_type\",\"kind\":\"enum\",\"type\":\"AddressType\"},{\"name\":\"line1\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"line2\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"city\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"state\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"postal_code\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"country\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"formatted_address\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"latitude\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"longitude\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"is_default\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"client\",\"kind\":\"object\",\"type\":\"Client\",\"relationName\":\"ClientToClientAddress\"}],\"dbName\":\"client_addresses\"},\"ClientContact\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"client_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"phone\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"is_default\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"client\",\"kind\":\"object\",\"type\":\"Client\",\"relationName\":\"ClientToClientContact\"}],\"dbName\":\"client_contacts\"},\"Order\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"reference\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"shipper_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"attachments\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"status\",\"kind\":\"enum\",\"type\":\"RouteStatus\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"shipper\",\"kind\":\"object\",\"type\":\"Client\",\"relationName\":\"shipper_client\"},{\"name\":\"handling_units\",\"kind\":\"object\",\"type\":\"HandlingUnit\",\"relationName\":\"HandlingUnitToOrder\"},{\"name\":\"routes\",\"kind\":\"object\",\"type\":\"Route\",\"relationName\":\"OrderToRoute\"}],\"dbName\":\"orders\"},\"companies\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"tax_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"address\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"contact_info\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"country_code\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"clients\",\"kind\":\"object\",\"type\":\"Client\",\"relationName\":\"ClientTocompanies\"},{\"name\":\"vehicles\",\"kind\":\"object\",\"type\":\"Vehicle\",\"relationName\":\"VehicleTocompanies\"},{\"name\":\"user_companies\",\"kind\":\"object\",\"type\":\"UserCompany\",\"relationName\":\"UserCompanyTocompanies\"},{\"name\":\"equipments\",\"kind\":\"object\",\"type\":\"Equipment\",\"relationName\":\"EquipmentTocompanies\"}],\"dbName\":\"companies\"},\"HandlingUnit\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"order_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"quantity\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"weight\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"weight_unit\",\"kind\":\"enum\",\"type\":\"WeightUnits\"},{\"name\":\"length\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"width\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"height\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"volume\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"dimension_unit\",\"kind\":\"enum\",\"type\":\"DimensionUnits\"},{\"name\":\"total_volume\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"total_weight\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"commodity\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"delivery_contact\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"pickup_contact\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"delivery_address\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"pickup_address\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"delivery_instructions\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"pickup_instructions\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"client_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"contact_notify\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"eta\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"order\",\"kind\":\"object\",\"type\":\"Order\",\"relationName\":\"HandlingUnitToOrder\"},{\"name\":\"client\",\"kind\":\"object\",\"type\":\"Client\",\"relationName\":\"ClientToHandlingUnit\"},{\"name\":\"route_handling_units\",\"kind\":\"object\",\"type\":\"RouteHandlingUnit\",\"relationName\":\"HandlingUnitToRouteHandlingUnit\"},{\"name\":\"address_handling_units\",\"kind\":\"object\",\"type\":\"AddressHandlingUnit\",\"relationName\":\"AddressHandlingUnitToHandlingUnit\"}],\"dbName\":\"handling_units\"},\"User\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"password\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"role\",\"kind\":\"enum\",\"type\":\"Roles\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"routes\",\"kind\":\"object\",\"type\":\"Route\",\"relationName\":\"RouteToUser\"},{\"name\":\"user_companies\",\"kind\":\"object\",\"type\":\"UserCompany\",\"relationName\":\"UserToUserCompany\"},{\"name\":\"sessions\",\"kind\":\"object\",\"type\":\"Session\",\"relationName\":\"SessionToUser\"},{\"name\":\"driverLocations\",\"kind\":\"object\",\"type\":\"DriverLocation\",\"relationName\":\"DriverLocationToUser\"}],\"dbName\":\"users\"},\"UserCompany\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"user_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"company_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"is_primary\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"UserToUserCompany\"},{\"name\":\"company\",\"kind\":\"object\",\"type\":\"companies\",\"relationName\":\"UserCompanyTocompanies\"}],\"dbName\":\"user_companies\"},\"Session\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"user_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"refresh_token\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"device_info\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"ip_address\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"expires_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"SessionToUser\"}],\"dbName\":\"sessions\"},\"VehicleBrand\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"logo_url\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"is_active\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"models\",\"kind\":\"object\",\"type\":\"VehicleModel\",\"relationName\":\"VehicleBrandToVehicleModel\"},{\"name\":\"vehicles\",\"kind\":\"object\",\"type\":\"Vehicle\",\"relationName\":\"VehicleToVehicleBrand\"}],\"dbName\":\"vehicle_brands\"},\"VehicleModel\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"brand_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"is_active\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"brand\",\"kind\":\"object\",\"type\":\"VehicleBrand\",\"relationName\":\"VehicleBrandToVehicleModel\"},{\"name\":\"vehicles\",\"kind\":\"object\",\"type\":\"Vehicle\",\"relationName\":\"VehicleToVehicleModel\"}],\"dbName\":\"vehicle_models\"},\"Vehicle\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"license_plate\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"brand_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"model_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"capacity\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"year\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"fuel_type\",\"kind\":\"enum\",\"type\":\"FuelType\"},{\"name\":\"color\",\"kind\":\"enum\",\"type\":\"VehicleColor\"},{\"name\":\"chassis_number\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"size\",\"kind\":\"enum\",\"type\":\"VehicleSize\"},{\"name\":\"gps_enabled\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"image_url\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"company_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"brand\",\"kind\":\"object\",\"type\":\"VehicleBrand\",\"relationName\":\"VehicleToVehicleBrand\"},{\"name\":\"model\",\"kind\":\"object\",\"type\":\"VehicleModel\",\"relationName\":\"VehicleToVehicleModel\"},{\"name\":\"company\",\"kind\":\"object\",\"type\":\"companies\",\"relationName\":\"VehicleTocompanies\"},{\"name\":\"routes\",\"kind\":\"object\",\"type\":\"Route\",\"relationName\":\"RouteToVehicle\"},{\"name\":\"equipments\",\"kind\":\"object\",\"type\":\"Equipment\",\"relationName\":\"EquipmentToVehicle\"},{\"name\":\"vehicleLocations\",\"kind\":\"object\",\"type\":\"VehicleLocation\",\"relationName\":\"VehicleToVehicleLocation\"}],\"dbName\":\"vehicles\"},\"Route\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"order_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"driver_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"vehicle_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"status\",\"kind\":\"enum\",\"type\":\"RouteStatus\"},{\"name\":\"started_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"completed_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"optimized_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"optimization_polyline\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"optimization_distance_meters\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"optimization_duration_seconds\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"optimization_distance_saved_meters\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"optimization_duration_saved_seconds\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"optimization_percentage\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"optimization_waypoint_order\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"order\",\"kind\":\"object\",\"type\":\"Order\",\"relationName\":\"OrderToRoute\"},{\"name\":\"driver\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"RouteToUser\"},{\"name\":\"vehicle\",\"kind\":\"object\",\"type\":\"Vehicle\",\"relationName\":\"RouteToVehicle\"},{\"name\":\"route_handling_units\",\"kind\":\"object\",\"type\":\"RouteHandlingUnit\",\"relationName\":\"RouteToRouteHandlingUnit\"},{\"name\":\"addresses\",\"kind\":\"object\",\"type\":\"Address\",\"relationName\":\"AddressToRoute\"}],\"dbName\":\"routes\"},\"RouteHandlingUnit\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"route_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"handling_unit_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"route\",\"kind\":\"object\",\"type\":\"Route\",\"relationName\":\"RouteToRouteHandlingUnit\"},{\"name\":\"handling_unit\",\"kind\":\"object\",\"type\":\"HandlingUnit\",\"relationName\":\"HandlingUnitToRouteHandlingUnit\"}],\"dbName\":\"route_handling_units\"},\"Address\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"address_type\",\"kind\":\"enum\",\"type\":\"AddressType\"},{\"name\":\"sequence\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"title\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"address_line1\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"address_line2\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"apartment\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"city\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"state\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"postal_code\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"country\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"latitude\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"longitude\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"google_address\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"route_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"route\",\"kind\":\"object\",\"type\":\"Route\",\"relationName\":\"AddressToRoute\"},{\"name\":\"address_handling_units\",\"kind\":\"object\",\"type\":\"AddressHandlingUnit\",\"relationName\":\"AddressToAddressHandlingUnit\"}],\"dbName\":\"addresses\"},\"AddressHandlingUnit\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"address_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"handling_unit_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"address\",\"kind\":\"object\",\"type\":\"Address\",\"relationName\":\"AddressToAddressHandlingUnit\"},{\"name\":\"handling_unit\",\"kind\":\"object\",\"type\":\"HandlingUnit\",\"relationName\":\"AddressHandlingUnitToHandlingUnit\"}],\"dbName\":\"address_handling_units\"},\"EquipmentBrand\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"logo_url\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"is_active\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"models\",\"kind\":\"object\",\"type\":\"EquipmentModel\",\"relationName\":\"EquipmentBrandToEquipmentModel\"},{\"name\":\"equipments\",\"kind\":\"object\",\"type\":\"Equipment\",\"relationName\":\"EquipmentToEquipmentBrand\"}],\"dbName\":\"equipment_brands\"},\"EquipmentModel\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"brand_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"is_active\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"brand\",\"kind\":\"object\",\"type\":\"EquipmentBrand\",\"relationName\":\"EquipmentBrandToEquipmentModel\"},{\"name\":\"equipment\",\"kind\":\"object\",\"type\":\"Equipment\",\"relationName\":\"EquipmentToEquipmentModel\"}],\"dbName\":\"equipment_models\"},\"Equipment\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"title\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"plate\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"year\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"color\",\"kind\":\"enum\",\"type\":\"VehicleColor\"},{\"name\":\"brand_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"model_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"axles\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"chassis_number\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"weight\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"weight_unit\",\"kind\":\"enum\",\"type\":\"WeightUnits\"},{\"name\":\"length\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"width\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"height\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"dimension_unit\",\"kind\":\"enum\",\"type\":\"DimensionUnits\"},{\"name\":\"pallets\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"load_capacity\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"status\",\"kind\":\"enum\",\"type\":\"EquipmentStatus\"},{\"name\":\"company_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"vehicle_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"brand\",\"kind\":\"object\",\"type\":\"EquipmentBrand\",\"relationName\":\"EquipmentToEquipmentBrand\"},{\"name\":\"model\",\"kind\":\"object\",\"type\":\"EquipmentModel\",\"relationName\":\"EquipmentToEquipmentModel\"},{\"name\":\"company\",\"kind\":\"object\",\"type\":\"companies\",\"relationName\":\"EquipmentTocompanies\"},{\"name\":\"vehicle\",\"kind\":\"object\",\"type\":\"Vehicle\",\"relationName\":\"EquipmentToVehicle\"},{\"name\":\"vehicleLocations\",\"kind\":\"object\",\"type\":\"VehicleLocation\",\"relationName\":\"EquipmentToVehicleLocation\"}],\"dbName\":\"equipments\"},\"VehicleLocation\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"vehicle_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"equiment_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"provider\",\"kind\":\"enum\",\"type\":\"GpsProviders\"},{\"name\":\"plate\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"temperature\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"voltage\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"odometer\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"batery_level\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"stopped_time\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"ignition_status\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"current_speed\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"latitude\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"longitude\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"metadata\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"vehicle\",\"kind\":\"object\",\"type\":\"Vehicle\",\"relationName\":\"VehicleToVehicleLocation\"},{\"name\":\"equipment\",\"kind\":\"object\",\"type\":\"Equipment\",\"relationName\":\"EquipmentToVehicleLocation\"}],\"dbName\":\"vehicle_locations\"},\"DriverLocation\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"driver_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"latitude\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"longitude\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"driver\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"DriverLocationToUser\"}],\"dbName\":\"driver_locations\"}},\"enums\":{},\"types\":{}}")
|
|
739
|
+
config.runtimeDataModel = JSON.parse("{\"models\":{\"Product\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"client_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"sku\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"quantity\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"packaging_type\",\"kind\":\"enum\",\"type\":\"PackagingType\"},{\"name\":\"category\",\"kind\":\"enum\",\"type\":\"ProductCategory\"},{\"name\":\"subcategory\",\"kind\":\"enum\",\"type\":\"ProductSubcategory\"},{\"name\":\"dimension_unit\",\"kind\":\"enum\",\"type\":\"DimensionUnits\"},{\"name\":\"length\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"width\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"height\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"weight_unit\",\"kind\":\"enum\",\"type\":\"WeightUnits\"},{\"name\":\"weight\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"is_active\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"client\",\"kind\":\"object\",\"type\":\"Client\",\"relationName\":\"ClientToProduct\"}],\"dbName\":\"products\"},\"Client\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"tax_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"phone\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"country_code\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"company_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"created_by\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"company\",\"kind\":\"object\",\"type\":\"companies\",\"relationName\":\"ClientTocompanies\"},{\"name\":\"addresses\",\"kind\":\"object\",\"type\":\"ClientAddress\",\"relationName\":\"ClientToClientAddress\"},{\"name\":\"contacts\",\"kind\":\"object\",\"type\":\"ClientContact\",\"relationName\":\"ClientToClientContact\"},{\"name\":\"orders_as_shipper\",\"kind\":\"object\",\"type\":\"Order\",\"relationName\":\"shipper_client\"},{\"name\":\"handling_units_as_consignee\",\"kind\":\"object\",\"type\":\"HandlingUnit\",\"relationName\":\"ClientToHandlingUnit\"},{\"name\":\"products\",\"kind\":\"object\",\"type\":\"Product\",\"relationName\":\"ClientToProduct\"}],\"dbName\":\"clients\"},\"ClientAddress\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"client_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"title\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"address_type\",\"kind\":\"enum\",\"type\":\"AddressType\"},{\"name\":\"line1\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"line2\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"city\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"state\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"postal_code\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"country\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"formatted_address\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"latitude\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"longitude\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"is_default\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"client\",\"kind\":\"object\",\"type\":\"Client\",\"relationName\":\"ClientToClientAddress\"}],\"dbName\":\"client_addresses\"},\"ClientContact\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"client_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"phone\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"is_default\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"client\",\"kind\":\"object\",\"type\":\"Client\",\"relationName\":\"ClientToClientContact\"}],\"dbName\":\"client_contacts\"},\"Order\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"reference\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"shipper_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"attachments\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"status\",\"kind\":\"enum\",\"type\":\"RouteStatus\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"shipper\",\"kind\":\"object\",\"type\":\"Client\",\"relationName\":\"shipper_client\"},{\"name\":\"handling_units\",\"kind\":\"object\",\"type\":\"HandlingUnit\",\"relationName\":\"HandlingUnitToOrder\"},{\"name\":\"routes\",\"kind\":\"object\",\"type\":\"Route\",\"relationName\":\"OrderToRoute\"}],\"dbName\":\"orders\"},\"companies\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"tax_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"address\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"contact_info\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"country_code\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"clients\",\"kind\":\"object\",\"type\":\"Client\",\"relationName\":\"ClientTocompanies\"},{\"name\":\"vehicles\",\"kind\":\"object\",\"type\":\"Vehicle\",\"relationName\":\"VehicleTocompanies\"},{\"name\":\"user_companies\",\"kind\":\"object\",\"type\":\"UserCompany\",\"relationName\":\"UserCompanyTocompanies\"},{\"name\":\"equipments\",\"kind\":\"object\",\"type\":\"Equipment\",\"relationName\":\"EquipmentTocompanies\"},{\"name\":\"form_templates\",\"kind\":\"object\",\"type\":\"FormTemplate\",\"relationName\":\"FormTemplateTocompanies\"},{\"name\":\"form_responses\",\"kind\":\"object\",\"type\":\"FormResponse\",\"relationName\":\"FormResponseTocompanies\"},{\"name\":\"forms\",\"kind\":\"object\",\"type\":\"Form\",\"relationName\":\"FormTocompanies\"}],\"dbName\":\"companies\"},\"HandlingUnit\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"order_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"quantity\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"weight\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"weight_unit\",\"kind\":\"enum\",\"type\":\"WeightUnits\"},{\"name\":\"length\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"width\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"height\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"volume\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"dimension_unit\",\"kind\":\"enum\",\"type\":\"DimensionUnits\"},{\"name\":\"total_volume\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"total_weight\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"commodity\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"delivery_contact\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"pickup_contact\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"delivery_address\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"pickup_address\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"delivery_instructions\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"pickup_instructions\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"client_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"contact_notify\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"eta\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"order\",\"kind\":\"object\",\"type\":\"Order\",\"relationName\":\"HandlingUnitToOrder\"},{\"name\":\"client\",\"kind\":\"object\",\"type\":\"Client\",\"relationName\":\"ClientToHandlingUnit\"},{\"name\":\"route_handling_units\",\"kind\":\"object\",\"type\":\"RouteHandlingUnit\",\"relationName\":\"HandlingUnitToRouteHandlingUnit\"},{\"name\":\"address_handling_units\",\"kind\":\"object\",\"type\":\"AddressHandlingUnit\",\"relationName\":\"AddressHandlingUnitToHandlingUnit\"}],\"dbName\":\"handling_units\"},\"User\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"password\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"role\",\"kind\":\"enum\",\"type\":\"Roles\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"routes\",\"kind\":\"object\",\"type\":\"Route\",\"relationName\":\"RouteToUser\"},{\"name\":\"user_companies\",\"kind\":\"object\",\"type\":\"UserCompany\",\"relationName\":\"UserToUserCompany\"},{\"name\":\"sessions\",\"kind\":\"object\",\"type\":\"Session\",\"relationName\":\"SessionToUser\"},{\"name\":\"driverLocations\",\"kind\":\"object\",\"type\":\"DriverLocation\",\"relationName\":\"DriverLocationToUser\"},{\"name\":\"form_templates_created\",\"kind\":\"object\",\"type\":\"FormTemplate\",\"relationName\":\"FormTemplateToUser\"},{\"name\":\"form_responses\",\"kind\":\"object\",\"type\":\"FormResponse\",\"relationName\":\"FormResponseToUser\"},{\"name\":\"forms_created\",\"kind\":\"object\",\"type\":\"Form\",\"relationName\":\"FormCreator\"}],\"dbName\":\"users\"},\"UserCompany\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"user_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"company_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"is_primary\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"UserToUserCompany\"},{\"name\":\"company\",\"kind\":\"object\",\"type\":\"companies\",\"relationName\":\"UserCompanyTocompanies\"}],\"dbName\":\"user_companies\"},\"Session\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"user_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"refresh_token\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"device_info\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"ip_address\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"expires_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"SessionToUser\"}],\"dbName\":\"sessions\"},\"VehicleBrand\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"logo_url\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"is_active\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"models\",\"kind\":\"object\",\"type\":\"VehicleModel\",\"relationName\":\"VehicleBrandToVehicleModel\"},{\"name\":\"vehicles\",\"kind\":\"object\",\"type\":\"Vehicle\",\"relationName\":\"VehicleToVehicleBrand\"}],\"dbName\":\"vehicle_brands\"},\"VehicleModel\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"brand_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"is_active\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"brand\",\"kind\":\"object\",\"type\":\"VehicleBrand\",\"relationName\":\"VehicleBrandToVehicleModel\"},{\"name\":\"vehicles\",\"kind\":\"object\",\"type\":\"Vehicle\",\"relationName\":\"VehicleToVehicleModel\"}],\"dbName\":\"vehicle_models\"},\"Vehicle\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"license_plate\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"brand_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"model_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"capacity\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"year\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"fuel_type\",\"kind\":\"enum\",\"type\":\"FuelType\"},{\"name\":\"color\",\"kind\":\"enum\",\"type\":\"VehicleColor\"},{\"name\":\"chassis_number\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"size\",\"kind\":\"enum\",\"type\":\"VehicleSize\"},{\"name\":\"gps_enabled\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"image_url\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"company_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"brand\",\"kind\":\"object\",\"type\":\"VehicleBrand\",\"relationName\":\"VehicleToVehicleBrand\"},{\"name\":\"model\",\"kind\":\"object\",\"type\":\"VehicleModel\",\"relationName\":\"VehicleToVehicleModel\"},{\"name\":\"company\",\"kind\":\"object\",\"type\":\"companies\",\"relationName\":\"VehicleTocompanies\"},{\"name\":\"routes\",\"kind\":\"object\",\"type\":\"Route\",\"relationName\":\"RouteToVehicle\"},{\"name\":\"equipments\",\"kind\":\"object\",\"type\":\"Equipment\",\"relationName\":\"EquipmentToVehicle\"},{\"name\":\"vehicleLocations\",\"kind\":\"object\",\"type\":\"VehicleLocation\",\"relationName\":\"VehicleToVehicleLocation\"}],\"dbName\":\"vehicles\"},\"Route\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"order_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"driver_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"vehicle_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"status\",\"kind\":\"enum\",\"type\":\"RouteStatus\"},{\"name\":\"started_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"completed_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"optimized_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"optimization_polyline\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"optimization_distance_meters\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"optimization_duration_seconds\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"optimization_distance_saved_meters\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"optimization_duration_saved_seconds\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"optimization_percentage\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"optimization_waypoint_order\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"order\",\"kind\":\"object\",\"type\":\"Order\",\"relationName\":\"OrderToRoute\"},{\"name\":\"driver\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"RouteToUser\"},{\"name\":\"vehicle\",\"kind\":\"object\",\"type\":\"Vehicle\",\"relationName\":\"RouteToVehicle\"},{\"name\":\"route_handling_units\",\"kind\":\"object\",\"type\":\"RouteHandlingUnit\",\"relationName\":\"RouteToRouteHandlingUnit\"},{\"name\":\"addresses\",\"kind\":\"object\",\"type\":\"Address\",\"relationName\":\"AddressToRoute\"}],\"dbName\":\"routes\"},\"RouteHandlingUnit\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"route_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"handling_unit_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"route\",\"kind\":\"object\",\"type\":\"Route\",\"relationName\":\"RouteToRouteHandlingUnit\"},{\"name\":\"handling_unit\",\"kind\":\"object\",\"type\":\"HandlingUnit\",\"relationName\":\"HandlingUnitToRouteHandlingUnit\"}],\"dbName\":\"route_handling_units\"},\"Address\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"address_type\",\"kind\":\"enum\",\"type\":\"AddressType\"},{\"name\":\"sequence\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"title\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"address_line1\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"address_line2\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"apartment\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"city\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"state\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"postal_code\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"country\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"latitude\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"longitude\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"google_address\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"route_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"route\",\"kind\":\"object\",\"type\":\"Route\",\"relationName\":\"AddressToRoute\"},{\"name\":\"address_handling_units\",\"kind\":\"object\",\"type\":\"AddressHandlingUnit\",\"relationName\":\"AddressToAddressHandlingUnit\"}],\"dbName\":\"addresses\"},\"AddressHandlingUnit\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"address_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"handling_unit_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"address\",\"kind\":\"object\",\"type\":\"Address\",\"relationName\":\"AddressToAddressHandlingUnit\"},{\"name\":\"handling_unit\",\"kind\":\"object\",\"type\":\"HandlingUnit\",\"relationName\":\"AddressHandlingUnitToHandlingUnit\"}],\"dbName\":\"address_handling_units\"},\"EquipmentBrand\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"logo_url\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"is_active\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"models\",\"kind\":\"object\",\"type\":\"EquipmentModel\",\"relationName\":\"EquipmentBrandToEquipmentModel\"},{\"name\":\"equipments\",\"kind\":\"object\",\"type\":\"Equipment\",\"relationName\":\"EquipmentToEquipmentBrand\"}],\"dbName\":\"equipment_brands\"},\"EquipmentModel\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"brand_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"is_active\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"brand\",\"kind\":\"object\",\"type\":\"EquipmentBrand\",\"relationName\":\"EquipmentBrandToEquipmentModel\"},{\"name\":\"equipment\",\"kind\":\"object\",\"type\":\"Equipment\",\"relationName\":\"EquipmentToEquipmentModel\"}],\"dbName\":\"equipment_models\"},\"Equipment\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"title\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"plate\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"year\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"color\",\"kind\":\"enum\",\"type\":\"VehicleColor\"},{\"name\":\"brand_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"model_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"axles\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"chassis_number\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"weight\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"weight_unit\",\"kind\":\"enum\",\"type\":\"WeightUnits\"},{\"name\":\"length\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"width\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"height\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"dimension_unit\",\"kind\":\"enum\",\"type\":\"DimensionUnits\"},{\"name\":\"pallets\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"load_capacity\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"status\",\"kind\":\"enum\",\"type\":\"EquipmentStatus\"},{\"name\":\"company_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"vehicle_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"brand\",\"kind\":\"object\",\"type\":\"EquipmentBrand\",\"relationName\":\"EquipmentToEquipmentBrand\"},{\"name\":\"model\",\"kind\":\"object\",\"type\":\"EquipmentModel\",\"relationName\":\"EquipmentToEquipmentModel\"},{\"name\":\"company\",\"kind\":\"object\",\"type\":\"companies\",\"relationName\":\"EquipmentTocompanies\"},{\"name\":\"vehicle\",\"kind\":\"object\",\"type\":\"Vehicle\",\"relationName\":\"EquipmentToVehicle\"},{\"name\":\"vehicleLocations\",\"kind\":\"object\",\"type\":\"VehicleLocation\",\"relationName\":\"EquipmentToVehicleLocation\"}],\"dbName\":\"equipments\"},\"VehicleLocation\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"vehicle_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"equiment_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"provider\",\"kind\":\"enum\",\"type\":\"GpsProviders\"},{\"name\":\"plate\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"temperature\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"voltage\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"odometer\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"batery_level\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"stopped_time\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"ignition_status\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"current_speed\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"latitude\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"longitude\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"metadata\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"vehicle\",\"kind\":\"object\",\"type\":\"Vehicle\",\"relationName\":\"VehicleToVehicleLocation\"},{\"name\":\"equipment\",\"kind\":\"object\",\"type\":\"Equipment\",\"relationName\":\"EquipmentToVehicleLocation\"}],\"dbName\":\"vehicle_locations\"},\"DriverLocation\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"driver_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"latitude\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"longitude\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"driver\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"DriverLocationToUser\"}],\"dbName\":\"driver_locations\"},\"FormTemplate\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"company_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"is_active\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"is_global\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"category\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"version\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"created_by\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"company\",\"kind\":\"object\",\"type\":\"companies\",\"relationName\":\"FormTemplateTocompanies\"},{\"name\":\"created_by_user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"FormTemplateToUser\"},{\"name\":\"fields\",\"kind\":\"object\",\"type\":\"TemplateField\",\"relationName\":\"FormTemplateToTemplateField\"},{\"name\":\"responses\",\"kind\":\"object\",\"type\":\"FormResponse\",\"relationName\":\"FormResponseToFormTemplate\"},{\"name\":\"forms\",\"kind\":\"object\",\"type\":\"Form\",\"relationName\":\"FormToFormTemplate\"}],\"dbName\":\"form_templates\"},\"TemplateField\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"template_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"label\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"field_type\",\"kind\":\"enum\",\"type\":\"FieldType\"},{\"name\":\"placeholder\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"help_text\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"is_required\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"order\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"options\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"validations\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"default_value\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"conditional_logic\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"template\",\"kind\":\"object\",\"type\":\"FormTemplate\",\"relationName\":\"FormTemplateToTemplateField\"}],\"dbName\":\"template_fields\"},\"FormResponse\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"template_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"form_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"entity_type\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"entity_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"company_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"respondent_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"responses\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"status\",\"kind\":\"enum\",\"type\":\"FormResponseStatus\"},{\"name\":\"submitted_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"template\",\"kind\":\"object\",\"type\":\"FormTemplate\",\"relationName\":\"FormResponseToFormTemplate\"},{\"name\":\"form\",\"kind\":\"object\",\"type\":\"Form\",\"relationName\":\"FormToFormResponse\"},{\"name\":\"company\",\"kind\":\"object\",\"type\":\"companies\",\"relationName\":\"FormResponseTocompanies\"},{\"name\":\"respondent\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"FormResponseToUser\"}],\"dbName\":\"form_responses\"},\"Form\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"template_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"company_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"target_type\",\"kind\":\"enum\",\"type\":\"FormTargetType\"},{\"name\":\"target_ids\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"is_required\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"due_date\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"status\",\"kind\":\"enum\",\"type\":\"FormStatus\"},{\"name\":\"created_by\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"template\",\"kind\":\"object\",\"type\":\"FormTemplate\",\"relationName\":\"FormToFormTemplate\"},{\"name\":\"company\",\"kind\":\"object\",\"type\":\"companies\",\"relationName\":\"FormTocompanies\"},{\"name\":\"created_by_user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"FormCreator\"},{\"name\":\"fields\",\"kind\":\"object\",\"type\":\"FormField\",\"relationName\":\"FormToFormField\"},{\"name\":\"responses\",\"kind\":\"object\",\"type\":\"FormResponse\",\"relationName\":\"FormToFormResponse\"}],\"dbName\":\"forms\"},\"FormField\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"form_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"source_field_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"label\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"field_type\",\"kind\":\"enum\",\"type\":\"FieldType\"},{\"name\":\"placeholder\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"help_text\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"is_required\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"order\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"options\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"validations\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"default_value\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"conditional_logic\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"form\",\"kind\":\"object\",\"type\":\"Form\",\"relationName\":\"FormToFormField\"}],\"dbName\":\"form_fields\"}},\"enums\":{},\"types\":{}}")
|
|
539
740
|
defineDmmfProperty(exports.Prisma, config.runtimeDataModel)
|
|
540
741
|
config.compilerWasm = {
|
|
541
742
|
getRuntime: async () => require('./query_compiler_bg.js'),
|