





















const db = require('../models');
const Users = db.users;






const Companies = db.companies;

const CompanyLocations = db.company_locations;

const CompanyContacts = db.company_contacts;

const CompanyBankAccounts = db.company_bank_accounts;

const CompanyPermits = db.company_permits;

const CompanyInsurances = db.company_insurances;

const CompanyDocuments = db.company_documents;

const CompanyDocumentVersions = db.company_document_versions;

const Employees = db.employees;

const EmployeeAssignments = db.employee_assignments;

const EmployeeHrRecords = db.employee_hr_records;

const DriverProfiles = db.driver_profiles;

const DriverCompliances = db.driver_compliances;

const Incidents = db.incidents;

const Documents = db.documents;

const DocumentVersions = db.document_versions;

const DocumentRetentionPolicies = db.document_retention_policies;

const Customers = db.customers;

const Vendors = db.vendors;

const Vehicles = db.vehicles;

const Trailers = db.trailers;

const VehicleTrailerLinks = db.vehicle_trailer_links;

const VehicleInspections = db.vehicle_inspections;

const VehicleMaintenances = db.vehicle_maintenances;

const VehicleInsurances = db.vehicle_insurances;

const VehicleDocuments = db.vehicle_documents;

const VehicleDocumentVersions = db.vehicle_document_versions;

const DriverVehicleAssignments = db.driver_vehicle_assignments;

const Orders = db.orders;

const Loads = db.loads;

const LoadStops = db.load_stops;

const Trips = db.trips;

const TripLoads = db.trip_loads;

const PodFiles = db.pod_files;

const Invoices = db.invoices;

const InvoiceLines = db.invoice_lines;

const Payments = db.payments;

const CostItems = db.cost_items;

const CostFiles = db.cost_files;

const FuelEntries = db.fuel_entries;

const TollEntries = db.toll_entries;







const CompaniesData = [
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "short_name": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "status": "ACTIVE",
            
        
    
        
        
            
                "legal_name": "Grace Hopper",
            
        
    
        
        
            
                "legal_form": "AG",
            
        
    
        
        
            
                "handelsregister_number": "Grace Hopper",
            
        
    
        
        
            
                "register_court": "Alan Turing",
            
        
    
        
        
            
                "managing_directors": "Grace Hopper",
            
        
    
        
        
            
                "founding_date": new Date(Date.now()),
            
        
    
        
        
            
                "vat_number": "Alan Turing",
            
        
    
        
        
            
                "tax_number": "Marie Curie",
            
        
    
        
        
            
                "vat_status": "VAT_REGISTERED",
            
        
    
        
        
            
                "eori_number": "Marie Curie",
            
        
    
        
        
            
                "gln_number": "Grace Hopper",
            
        
    
        
        
            
                "scac": "Grace Hopper",
            
        
    
        
        
            
                "address_line1": "Grace Hopper",
            
        
    
        
        
            
                "address_line2": "Alan Turing",
            
        
    
        
        
            
                "postal_code": "Grace Hopper",
            
        
    
        
        
            
                "city": "Marie Curie",
            
        
    
        
        
            
                "state": "Alan Turing",
            
        
    
        
        
            
                "country_code": "Ada Lovelace",
            
        
    
        
        
            
                "email": "Grace Hopper",
            
        
    
        
        
            
                "phone": "Marie Curie",
            
        
    
        
        
            
                "website": "Ada Lovelace",
            
        
    
        
        
            
                "dispatch_email": "Alan Turing",
            
        
    
        
        
            
                "accounting_email": "Marie Curie",
            
        
    
        
        
            
                "hr_email": "Grace Hopper",
            
        
    
        
        
            
                "default_currency": "EUR",
            
        
    
        
        
            
                "invoice_prefix": "Alan Turing",
            
        
    
        
        
            
                "invoice_numbering_mode": "MONTHLY_RESET",
            
        
    
        
        
            
                "invoice_next_number": 7,
            
        
    
        
        
            
                "invoice_rounding": "ROUND_0_DECIMALS",
            
        
    
        
        
            
                "payment_terms_days": 1,
            
        
    
        
        
            
                "payroll_provider": "Marie Curie",
            
        
    
        
        
            
                "payroll_contact_email": "Ada Lovelace",
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "short_name": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "status": "INACTIVE",
            
        
    
        
        
            
                "legal_name": "Alan Turing",
            
        
    
        
        
            
                "legal_form": "OTHER",
            
        
    
        
        
            
                "handelsregister_number": "Marie Curie",
            
        
    
        
        
            
                "register_court": "Grace Hopper",
            
        
    
        
        
            
                "managing_directors": "Ada Lovelace",
            
        
    
        
        
            
                "founding_date": new Date(Date.now()),
            
        
    
        
        
            
                "vat_number": "Grace Hopper",
            
        
    
        
        
            
                "tax_number": "Ada Lovelace",
            
        
    
        
        
            
                "vat_status": "NOT_VAT_REGISTERED",
            
        
    
        
        
            
                "eori_number": "Grace Hopper",
            
        
    
        
        
            
                "gln_number": "Marie Curie",
            
        
    
        
        
            
                "scac": "Ada Lovelace",
            
        
    
        
        
            
                "address_line1": "Ada Lovelace",
            
        
    
        
        
            
                "address_line2": "Ada Lovelace",
            
        
    
        
        
            
                "postal_code": "Grace Hopper",
            
        
    
        
        
            
                "city": "Marie Curie",
            
        
    
        
        
            
                "state": "Marie Curie",
            
        
    
        
        
            
                "country_code": "Marie Curie",
            
        
    
        
        
            
                "email": "Ada Lovelace",
            
        
    
        
        
            
                "phone": "Marie Curie",
            
        
    
        
        
            
                "website": "Ada Lovelace",
            
        
    
        
        
            
                "dispatch_email": "Alan Turing",
            
        
    
        
        
            
                "accounting_email": "Ada Lovelace",
            
        
    
        
        
            
                "hr_email": "Marie Curie",
            
        
    
        
        
            
                "default_currency": "EUR",
            
        
    
        
        
            
                "invoice_prefix": "Alan Turing",
            
        
    
        
        
            
                "invoice_numbering_mode": "SEQUENTIAL",
            
        
    
        
        
            
                "invoice_next_number": 7,
            
        
    
        
        
            
                "invoice_rounding": "ROUND_0_DECIMALS",
            
        
    
        
        
            
                "payment_terms_days": 5,
            
        
    
        
        
            
                "payroll_provider": "Ada Lovelace",
            
        
    
        
        
            
                "payroll_contact_email": "Marie Curie",
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "short_name": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "status": "ACTIVE",
            
        
    
        
        
            
                "legal_name": "Ada Lovelace",
            
        
    
        
        
            
                "legal_form": "GMBH",
            
        
    
        
        
            
                "handelsregister_number": "Marie Curie",
            
        
    
        
        
            
                "register_court": "Grace Hopper",
            
        
    
        
        
            
                "managing_directors": "Alan Turing",
            
        
    
        
        
            
                "founding_date": new Date(Date.now()),
            
        
    
        
        
            
                "vat_number": "Alan Turing",
            
        
    
        
        
            
                "tax_number": "Marie Curie",
            
        
    
        
        
            
                "vat_status": "VAT_REGISTERED",
            
        
    
        
        
            
                "eori_number": "Alan Turing",
            
        
    
        
        
            
                "gln_number": "Alan Turing",
            
        
    
        
        
            
                "scac": "Alan Turing",
            
        
    
        
        
            
                "address_line1": "Grace Hopper",
            
        
    
        
        
            
                "address_line2": "Alan Turing",
            
        
    
        
        
            
                "postal_code": "Alan Turing",
            
        
    
        
        
            
                "city": "Ada Lovelace",
            
        
    
        
        
            
                "state": "Ada Lovelace",
            
        
    
        
        
            
                "country_code": "Alan Turing",
            
        
    
        
        
            
                "email": "Marie Curie",
            
        
    
        
        
            
                "phone": "Marie Curie",
            
        
    
        
        
            
                "website": "Grace Hopper",
            
        
    
        
        
            
                "dispatch_email": "Alan Turing",
            
        
    
        
        
            
                "accounting_email": "Grace Hopper",
            
        
    
        
        
            
                "hr_email": "Marie Curie",
            
        
    
        
        
            
                "default_currency": "OTHER",
            
        
    
        
        
            
                "invoice_prefix": "Alan Turing",
            
        
    
        
        
            
                "invoice_numbering_mode": "YEARLY_RESET",
            
        
    
        
        
            
                "invoice_next_number": 1,
            
        
    
        
        
            
                "invoice_rounding": "NONE",
            
        
    
        
        
            
                "payment_terms_days": 2,
            
        
    
        
        
            
                "payroll_provider": "Ada Lovelace",
            
        
    
        
        
            
                "payroll_contact_email": "Alan Turing",
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "short_name": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "status": "ACTIVE",
            
        
    
        
        
            
                "legal_name": "Ada Lovelace",
            
        
    
        
        
            
                "legal_form": "UG",
            
        
    
        
        
            
                "handelsregister_number": "Ada Lovelace",
            
        
    
        
        
            
                "register_court": "Marie Curie",
            
        
    
        
        
            
                "managing_directors": "Marie Curie",
            
        
    
        
        
            
                "founding_date": new Date(Date.now()),
            
        
    
        
        
            
                "vat_number": "Ada Lovelace",
            
        
    
        
        
            
                "tax_number": "Marie Curie",
            
        
    
        
        
            
                "vat_status": "SMALL_BUSINESS_19_USTG",
            
        
    
        
        
            
                "eori_number": "Ada Lovelace",
            
        
    
        
        
            
                "gln_number": "Marie Curie",
            
        
    
        
        
            
                "scac": "Alan Turing",
            
        
    
        
        
            
                "address_line1": "Grace Hopper",
            
        
    
        
        
            
                "address_line2": "Grace Hopper",
            
        
    
        
        
            
                "postal_code": "Grace Hopper",
            
        
    
        
        
            
                "city": "Grace Hopper",
            
        
    
        
        
            
                "state": "Ada Lovelace",
            
        
    
        
        
            
                "country_code": "Grace Hopper",
            
        
    
        
        
            
                "email": "Ada Lovelace",
            
        
    
        
        
            
                "phone": "Marie Curie",
            
        
    
        
        
            
                "website": "Marie Curie",
            
        
    
        
        
            
                "dispatch_email": "Ada Lovelace",
            
        
    
        
        
            
                "accounting_email": "Alan Turing",
            
        
    
        
        
            
                "hr_email": "Grace Hopper",
            
        
    
        
        
            
                "default_currency": "PLN",
            
        
    
        
        
            
                "invoice_prefix": "Ada Lovelace",
            
        
    
        
        
            
                "invoice_numbering_mode": "MONTHLY_RESET",
            
        
    
        
        
            
                "invoice_next_number": 9,
            
        
    
        
        
            
                "invoice_rounding": "ROUND_2_DECIMALS",
            
        
    
        
        
            
                "payment_terms_days": 8,
            
        
    
        
        
            
                "payroll_provider": "Marie Curie",
            
        
    
        
        
            
                "payroll_contact_email": "Marie Curie",
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "short_name": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "status": "ACTIVE",
            
        
    
        
        
            
                "legal_name": "Ada Lovelace",
            
        
    
        
        
            
                "legal_form": "OTHER",
            
        
    
        
        
            
                "handelsregister_number": "Grace Hopper",
            
        
    
        
        
            
                "register_court": "Grace Hopper",
            
        
    
        
        
            
                "managing_directors": "Ada Lovelace",
            
        
    
        
        
            
                "founding_date": new Date(Date.now()),
            
        
    
        
        
            
                "vat_number": "Marie Curie",
            
        
    
        
        
            
                "tax_number": "Marie Curie",
            
        
    
        
        
            
                "vat_status": "SMALL_BUSINESS_19_USTG",
            
        
    
        
        
            
                "eori_number": "Marie Curie",
            
        
    
        
        
            
                "gln_number": "Marie Curie",
            
        
    
        
        
            
                "scac": "Marie Curie",
            
        
    
        
        
            
                "address_line1": "Alan Turing",
            
        
    
        
        
            
                "address_line2": "Ada Lovelace",
            
        
    
        
        
            
                "postal_code": "Marie Curie",
            
        
    
        
        
            
                "city": "Marie Curie",
            
        
    
        
        
            
                "state": "Grace Hopper",
            
        
    
        
        
            
                "country_code": "Ada Lovelace",
            
        
    
        
        
            
                "email": "Marie Curie",
            
        
    
        
        
            
                "phone": "Alan Turing",
            
        
    
        
        
            
                "website": "Grace Hopper",
            
        
    
        
        
            
                "dispatch_email": "Marie Curie",
            
        
    
        
        
            
                "accounting_email": "Marie Curie",
            
        
    
        
        
            
                "hr_email": "Alan Turing",
            
        
    
        
        
            
                "default_currency": "CZK",
            
        
    
        
        
            
                "invoice_prefix": "Alan Turing",
            
        
    
        
        
            
                "invoice_numbering_mode": "YEARLY_RESET",
            
        
    
        
        
            
                "invoice_next_number": 8,
            
        
    
        
        
            
                "invoice_rounding": "NONE",
            
        
    
        
        
            
                "payment_terms_days": 2,
            
        
    
        
        
            
                "payroll_provider": "Alan Turing",
            
        
    
        
        
            
                "payroll_contact_email": "Grace Hopper",
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
    },
    
];



const CompanyLocationsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "HQ",
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "address_line1": "Alan Turing",
            
        
    
        
        
            
                "address_line2": "Alan Turing",
            
        
    
        
        
            
                "postal_code": "Alan Turing",
            
        
    
        
        
            
                "city": "Marie Curie",
            
        
    
        
        
            
                "state": "Ada Lovelace",
            
        
    
        
        
            
                "country_code": "Alan Turing",
            
        
    
        
        
            
                "phone": "Ada Lovelace",
            
        
    
        
        
            
                "email": "Grace Hopper",
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "GARAGE",
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "address_line1": "Marie Curie",
            
        
    
        
        
            
                "address_line2": "Ada Lovelace",
            
        
    
        
        
            
                "postal_code": "Ada Lovelace",
            
        
    
        
        
            
                "city": "Grace Hopper",
            
        
    
        
        
            
                "state": "Ada Lovelace",
            
        
    
        
        
            
                "country_code": "Marie Curie",
            
        
    
        
        
            
                "phone": "Ada Lovelace",
            
        
    
        
        
            
                "email": "Grace Hopper",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "DEPOT",
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "address_line1": "Ada Lovelace",
            
        
    
        
        
            
                "address_line2": "Ada Lovelace",
            
        
    
        
        
            
                "postal_code": "Ada Lovelace",
            
        
    
        
        
            
                "city": "Alan Turing",
            
        
    
        
        
            
                "state": "Marie Curie",
            
        
    
        
        
            
                "country_code": "Alan Turing",
            
        
    
        
        
            
                "phone": "Alan Turing",
            
        
    
        
        
            
                "email": "Ada Lovelace",
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "OTHER",
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "address_line1": "Ada Lovelace",
            
        
    
        
        
            
                "address_line2": "Marie Curie",
            
        
    
        
        
            
                "postal_code": "Marie Curie",
            
        
    
        
        
            
                "city": "Alan Turing",
            
        
    
        
        
            
                "state": "Alan Turing",
            
        
    
        
        
            
                "country_code": "Ada Lovelace",
            
        
    
        
        
            
                "phone": "Alan Turing",
            
        
    
        
        
            
                "email": "Ada Lovelace",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "HQ",
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "address_line1": "Alan Turing",
            
        
    
        
        
            
                "address_line2": "Marie Curie",
            
        
    
        
        
            
                "postal_code": "Ada Lovelace",
            
        
    
        
        
            
                "city": "Ada Lovelace",
            
        
    
        
        
            
                "state": "Ada Lovelace",
            
        
    
        
        
            
                "country_code": "Grace Hopper",
            
        
    
        
        
            
                "phone": "Alan Turing",
            
        
    
        
        
            
                "email": "Ada Lovelace",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
];



const CompanyContactsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "HR",
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "email": "Grace Hopper",
            
        
    
        
        
            
                "phone": "Grace Hopper",
            
        
    
        
        
            
                "mobile": "Grace Hopper",
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "MANAGEMENT",
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "email": "Marie Curie",
            
        
    
        
        
            
                "phone": "Ada Lovelace",
            
        
    
        
        
            
                "mobile": "Marie Curie",
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "SAFETY_COMPLIANCE",
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "email": "Marie Curie",
            
        
    
        
        
            
                "phone": "Marie Curie",
            
        
    
        
        
            
                "mobile": "Grace Hopper",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "MANAGEMENT",
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "email": "Marie Curie",
            
        
    
        
        
            
                "phone": "Marie Curie",
            
        
    
        
        
            
                "mobile": "Ada Lovelace",
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "role": "IT",
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "email": "Grace Hopper",
            
        
    
        
        
            
                "phone": "Ada Lovelace",
            
        
    
        
        
            
                "mobile": "Ada Lovelace",
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
];



const CompanyBankAccountsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "PAYROLL",
            
        
    
        
        
            
                "currency": "GBP",
            
        
    
        
        
            
                "bank_name": "Marie Curie",
            
        
    
        
        
            
                "iban": "Alan Turing",
            
        
    
        
        
            
                "bic": "Marie Curie",
            
        
    
        
        
            
                "account_holder": "Alan Turing",
            
        
    
        
        
            
                "is_default": false,
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "VAT",
            
        
    
        
        
            
                "currency": "BGN",
            
        
    
        
        
            
                "bank_name": "Grace Hopper",
            
        
    
        
        
            
                "iban": "Marie Curie",
            
        
    
        
        
            
                "bic": "Alan Turing",
            
        
    
        
        
            
                "account_holder": "Marie Curie",
            
        
    
        
        
            
                "is_default": false,
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "OTHER",
            
        
    
        
        
            
                "currency": "PLN",
            
        
    
        
        
            
                "bank_name": "Marie Curie",
            
        
    
        
        
            
                "iban": "Ada Lovelace",
            
        
    
        
        
            
                "bic": "Ada Lovelace",
            
        
    
        
        
            
                "account_holder": "Marie Curie",
            
        
    
        
        
            
                "is_default": true,
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "OTHER",
            
        
    
        
        
            
                "currency": "CZK",
            
        
    
        
        
            
                "bank_name": "Ada Lovelace",
            
        
    
        
        
            
                "iban": "Grace Hopper",
            
        
    
        
        
            
                "bic": "Ada Lovelace",
            
        
    
        
        
            
                "account_holder": "Alan Turing",
            
        
    
        
        
            
                "is_default": false,
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "VAT",
            
        
    
        
        
            
                "currency": "PLN",
            
        
    
        
        
            
                "bank_name": "Alan Turing",
            
        
    
        
        
            
                "iban": "Grace Hopper",
            
        
    
        
        
            
                "bic": "Ada Lovelace",
            
        
    
        
        
            
                "account_holder": "Alan Turing",
            
        
    
        
        
            
                "is_default": false,
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
];



const CompanyPermitsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "EU_COMMUNITY_LICENSE",
            
        
    
        
        
            
                "number": "Marie Curie",
            
        
    
        
        
            
                "issuer": "Marie Curie",
            
        
    
        
        
            
                "country_code": "Ada Lovelace",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "valid_from": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "ADR_COMPANY",
            
        
    
        
        
            
                "number": "Ada Lovelace",
            
        
    
        
        
            
                "issuer": "Alan Turing",
            
        
    
        
        
            
                "country_code": "Ada Lovelace",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "valid_from": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "EU_COMMUNITY_LICENSE",
            
        
    
        
        
            
                "number": "Ada Lovelace",
            
        
    
        
        
            
                "issuer": "Ada Lovelace",
            
        
    
        
        
            
                "country_code": "Alan Turing",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "valid_from": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "ANIMAL_TRANSPORT",
            
        
    
        
        
            
                "number": "Alan Turing",
            
        
    
        
        
            
                "issuer": "Marie Curie",
            
        
    
        
        
            
                "country_code": "Ada Lovelace",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "valid_from": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "ADR_COMPANY",
            
        
    
        
        
            
                "number": "Alan Turing",
            
        
    
        
        
            
                "issuer": "Alan Turing",
            
        
    
        
        
            
                "country_code": "Ada Lovelace",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "valid_from": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
];



const CompanyInsurancesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "LEGAL_PROTECTION",
            
        
    
        
        
            
                "provider": "Marie Curie",
            
        
    
        
        
            
                "policy_number": "Ada Lovelace",
            
        
    
        
        
            
                "broker": "Ada Lovelace",
            
        
    
        
        
            
                "coverage_amount": 5.0,
            
        
    
        
        
            
                "currency": "RON",
            
        
    
        
        
            
                "valid_from": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "contact_name": "Alan Turing",
            
        
    
        
        
            
                "contact_email": "Marie Curie",
            
        
    
        
        
            
                "contact_phone": "Alan Turing",
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "GOODS_IN_TRANSIT",
            
        
    
        
        
            
                "provider": "Alan Turing",
            
        
    
        
        
            
                "policy_number": "Grace Hopper",
            
        
    
        
        
            
                "broker": "Grace Hopper",
            
        
    
        
        
            
                "coverage_amount": 3.82,
            
        
    
        
        
            
                "currency": "PLN",
            
        
    
        
        
            
                "valid_from": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "contact_name": "Marie Curie",
            
        
    
        
        
            
                "contact_email": "Ada Lovelace",
            
        
    
        
        
            
                "contact_phone": "Grace Hopper",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "KASKO",
            
        
    
        
        
            
                "provider": "Grace Hopper",
            
        
    
        
        
            
                "policy_number": "Ada Lovelace",
            
        
    
        
        
            
                "broker": "Alan Turing",
            
        
    
        
        
            
                "coverage_amount": 8.16,
            
        
    
        
        
            
                "currency": "RON",
            
        
    
        
        
            
                "valid_from": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "contact_name": "Grace Hopper",
            
        
    
        
        
            
                "contact_email": "Grace Hopper",
            
        
    
        
        
            
                "contact_phone": "Ada Lovelace",
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "FORWARDER_LIABILITY",
            
        
    
        
        
            
                "provider": "Ada Lovelace",
            
        
    
        
        
            
                "policy_number": "Ada Lovelace",
            
        
    
        
        
            
                "broker": "Grace Hopper",
            
        
    
        
        
            
                "coverage_amount": 8.2,
            
        
    
        
        
            
                "currency": "PLN",
            
        
    
        
        
            
                "valid_from": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "contact_name": "Marie Curie",
            
        
    
        
        
            
                "contact_email": "Marie Curie",
            
        
    
        
        
            
                "contact_phone": "Alan Turing",
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "OTHER",
            
        
    
        
        
            
                "provider": "Marie Curie",
            
        
    
        
        
            
                "policy_number": "Marie Curie",
            
        
    
        
        
            
                "broker": "Alan Turing",
            
        
    
        
        
            
                "coverage_amount": 5.61,
            
        
    
        
        
            
                "currency": "CZK",
            
        
    
        
        
            
                "valid_from": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "contact_name": "Grace Hopper",
            
        
    
        
        
            
                "contact_email": "Grace Hopper",
            
        
    
        
        
            
                "contact_phone": "Grace Hopper",
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
];



const CompanyDocumentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "GENERAL_TERMS",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "VAT_CERTIFICATE",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "GENERAL_TERMS",
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "INSURANCE_POLICY",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "VAT_CERTIFICATE",
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const CompanyDocumentVersionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "version_no": 3,
            
        
    
        
        
            
                "is_current": true,
            
        
    
        
        
            
                "number": "Marie Curie",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "version_no": 5,
            
        
    
        
        
            
                "is_current": true,
            
        
    
        
        
            
                "number": "Marie Curie",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "version_no": 7,
            
        
    
        
        
            
                "is_current": true,
            
        
    
        
        
            
                "number": "Marie Curie",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "version_no": 1,
            
        
    
        
        
            
                "is_current": false,
            
        
    
        
        
            
                "number": "Grace Hopper",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "version_no": 4,
            
        
    
        
        
            
                "is_current": false,
            
        
    
        
        
            
                "number": "Grace Hopper",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
];



const EmployeesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "first_name": "Marie Curie",
            
        
    
        
        
            
                "middle_name": "Alan Turing",
            
        
    
        
        
            
                "last_name": "Marie Curie",
            
        
    
        
        
            
                "national_id": "Ada Lovelace",
            
        
    
        
        
            
                "birth_date": new Date(Date.now()),
            
        
    
        
        
            
                "nationality": "Alan Turing",
            
        
    
        
        
            
                "email": "Ada Lovelace",
            
        
    
        
        
            
                "phone": "Marie Curie",
            
        
    
        
        
            
                "phone2": "Marie Curie",
            
        
    
        
        
            
                "permanent_address": "Alan Turing",
            
        
    
        
        
            
                "current_address": "Ada Lovelace",
            
        
    
        
        
            
                "emergency_contact": "Marie Curie",
            
        
    
        
        
            
                "emergency_phone": "Ada Lovelace",
            
        
    
        
        
            
                "status": "SUSPENDED",
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
        
        
            
                "is_driver": false,
            
        
    
        
        
            
                "is_dispatcher": true,
            
        
    
        
        
            
                "is_accounting": true,
            
        
    
        
        
            
                "deleted_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "first_name": "Alan Turing",
            
        
    
        
        
            
                "middle_name": "Marie Curie",
            
        
    
        
        
            
                "last_name": "Marie Curie",
            
        
    
        
        
            
                "national_id": "Grace Hopper",
            
        
    
        
        
            
                "birth_date": new Date(Date.now()),
            
        
    
        
        
            
                "nationality": "Alan Turing",
            
        
    
        
        
            
                "email": "Alan Turing",
            
        
    
        
        
            
                "phone": "Alan Turing",
            
        
    
        
        
            
                "phone2": "Ada Lovelace",
            
        
    
        
        
            
                "permanent_address": "Grace Hopper",
            
        
    
        
        
            
                "current_address": "Alan Turing",
            
        
    
        
        
            
                "emergency_contact": "Grace Hopper",
            
        
    
        
        
            
                "emergency_phone": "Ada Lovelace",
            
        
    
        
        
            
                "status": "ACTIVE",
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
        
        
            
                "is_driver": false,
            
        
    
        
        
            
                "is_dispatcher": true,
            
        
    
        
        
            
                "is_accounting": true,
            
        
    
        
        
            
                "deleted_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "first_name": "Grace Hopper",
            
        
    
        
        
            
                "middle_name": "Marie Curie",
            
        
    
        
        
            
                "last_name": "Alan Turing",
            
        
    
        
        
            
                "national_id": "Marie Curie",
            
        
    
        
        
            
                "birth_date": new Date(Date.now()),
            
        
    
        
        
            
                "nationality": "Alan Turing",
            
        
    
        
        
            
                "email": "Grace Hopper",
            
        
    
        
        
            
                "phone": "Grace Hopper",
            
        
    
        
        
            
                "phone2": "Grace Hopper",
            
        
    
        
        
            
                "permanent_address": "Ada Lovelace",
            
        
    
        
        
            
                "current_address": "Alan Turing",
            
        
    
        
        
            
                "emergency_contact": "Marie Curie",
            
        
    
        
        
            
                "emergency_phone": "Marie Curie",
            
        
    
        
        
            
                "status": "TERMINATED",
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                "is_driver": true,
            
        
    
        
        
            
                "is_dispatcher": false,
            
        
    
        
        
            
                "is_accounting": true,
            
        
    
        
        
            
                "deleted_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "first_name": "Ada Lovelace",
            
        
    
        
        
            
                "middle_name": "Marie Curie",
            
        
    
        
        
            
                "last_name": "Alan Turing",
            
        
    
        
        
            
                "national_id": "Ada Lovelace",
            
        
    
        
        
            
                "birth_date": new Date(Date.now()),
            
        
    
        
        
            
                "nationality": "Grace Hopper",
            
        
    
        
        
            
                "email": "Marie Curie",
            
        
    
        
        
            
                "phone": "Alan Turing",
            
        
    
        
        
            
                "phone2": "Marie Curie",
            
        
    
        
        
            
                "permanent_address": "Alan Turing",
            
        
    
        
        
            
                "current_address": "Alan Turing",
            
        
    
        
        
            
                "emergency_contact": "Alan Turing",
            
        
    
        
        
            
                "emergency_phone": "Ada Lovelace",
            
        
    
        
        
            
                "status": "ACTIVE",
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
        
        
            
                "is_driver": true,
            
        
    
        
        
            
                "is_dispatcher": false,
            
        
    
        
        
            
                "is_accounting": true,
            
        
    
        
        
            
                "deleted_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "first_name": "Grace Hopper",
            
        
    
        
        
            
                "middle_name": "Ada Lovelace",
            
        
    
        
        
            
                "last_name": "Alan Turing",
            
        
    
        
        
            
                "national_id": "Grace Hopper",
            
        
    
        
        
            
                "birth_date": new Date(Date.now()),
            
        
    
        
        
            
                "nationality": "Marie Curie",
            
        
    
        
        
            
                "email": "Ada Lovelace",
            
        
    
        
        
            
                "phone": "Ada Lovelace",
            
        
    
        
        
            
                "phone2": "Marie Curie",
            
        
    
        
        
            
                "permanent_address": "Alan Turing",
            
        
    
        
        
            
                "current_address": "Alan Turing",
            
        
    
        
        
            
                "emergency_contact": "Ada Lovelace",
            
        
    
        
        
            
                "emergency_phone": "Alan Turing",
            
        
    
        
        
            
                "status": "ACTIVE",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
        
        
            
                "is_driver": true,
            
        
    
        
        
            
                "is_dispatcher": false,
            
        
    
        
        
            
                "is_accounting": true,
            
        
    
        
        
            
                "deleted_at": new Date(Date.now()),
            
        
    
    },
    
];



const EmployeeAssignmentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "DISPATCHER",
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "valid_from": new Date(Date.now()),
            
        
    
        
        
            
                "valid_to": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "ACCOUNTING",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "valid_from": new Date(Date.now()),
            
        
    
        
        
            
                "valid_to": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "DISPATCHER",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "valid_from": new Date(Date.now()),
            
        
    
        
        
            
                "valid_to": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "DISPATCHER",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "valid_from": new Date(Date.now()),
            
        
    
        
        
            
                "valid_to": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "DRIVER",
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "valid_from": new Date(Date.now()),
            
        
    
        
        
            
                "valid_to": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
    },
    
];



const EmployeeHrRecordsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "contract_number": "Ada Lovelace",
            
        
    
        
        
            
                "hire_date": new Date(Date.now()),
            
        
    
        
        
            
                "contract_type": "PERMANENT",
            
        
    
        
        
            
                "position": "Grace Hopper",
            
        
    
        
        
            
                "work_schedule": "Grace Hopper",
            
        
    
        
        
            
                "probation_days": 3,
            
        
    
        
        
            
                "salary": 3.43,
            
        
    
        
        
            
                "daily_allowance": 7.32,
            
        
    
        
        
            
                "bonuses": 4.05,
            
        
    
        
        
            
                "deductions": 7.75,
            
        
    
        
        
            
                "bank_account_iban": "Ada Lovelace",
            
        
    
        
        
            
                "bank_name": "Marie Curie",
            
        
    
        
        
            
                "insurance_number": "Marie Curie",
            
        
    
        
        
            
                "tax_number": "Ada Lovelace",
            
        
    
        
        
            
                "tax_category": "Ada Lovelace",
            
        
    
        
        
            
                "vacation_days": 3,
            
        
    
        
        
            
                "used_vacation_days": 5,
            
        
    
        
        
            
                "employment_status": "TERMINATED",
            
        
    
        
        
            
                "termination_date": new Date(Date.now()),
            
        
    
        
        
            
                "termination_reason": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "contract_number": "Alan Turing",
            
        
    
        
        
            
                "hire_date": new Date(Date.now()),
            
        
    
        
        
            
                "contract_type": "FIXED",
            
        
    
        
        
            
                "position": "Grace Hopper",
            
        
    
        
        
            
                "work_schedule": "Grace Hopper",
            
        
    
        
        
            
                "probation_days": 6,
            
        
    
        
        
            
                "salary": 6.38,
            
        
    
        
        
            
                "daily_allowance": 6.21,
            
        
    
        
        
            
                "bonuses": 2.01,
            
        
    
        
        
            
                "deductions": 3.58,
            
        
    
        
        
            
                "bank_account_iban": "Ada Lovelace",
            
        
    
        
        
            
                "bank_name": "Marie Curie",
            
        
    
        
        
            
                "insurance_number": "Ada Lovelace",
            
        
    
        
        
            
                "tax_number": "Ada Lovelace",
            
        
    
        
        
            
                "tax_category": "Marie Curie",
            
        
    
        
        
            
                "vacation_days": 7,
            
        
    
        
        
            
                "used_vacation_days": 2,
            
        
    
        
        
            
                "employment_status": "TERMINATED",
            
        
    
        
        
            
                "termination_date": new Date(Date.now()),
            
        
    
        
        
            
                "termination_reason": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "contract_number": "Grace Hopper",
            
        
    
        
        
            
                "hire_date": new Date(Date.now()),
            
        
    
        
        
            
                "contract_type": "PERMANENT",
            
        
    
        
        
            
                "position": "Marie Curie",
            
        
    
        
        
            
                "work_schedule": "Ada Lovelace",
            
        
    
        
        
            
                "probation_days": 1,
            
        
    
        
        
            
                "salary": 7.51,
            
        
    
        
        
            
                "daily_allowance": 2.05,
            
        
    
        
        
            
                "bonuses": 9.61,
            
        
    
        
        
            
                "deductions": 6.12,
            
        
    
        
        
            
                "bank_account_iban": "Marie Curie",
            
        
    
        
        
            
                "bank_name": "Marie Curie",
            
        
    
        
        
            
                "insurance_number": "Ada Lovelace",
            
        
    
        
        
            
                "tax_number": "Alan Turing",
            
        
    
        
        
            
                "tax_category": "Alan Turing",
            
        
    
        
        
            
                "vacation_days": 7,
            
        
    
        
        
            
                "used_vacation_days": 3,
            
        
    
        
        
            
                "employment_status": "VACATION",
            
        
    
        
        
            
                "termination_date": new Date(Date.now()),
            
        
    
        
        
            
                "termination_reason": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "contract_number": "Ada Lovelace",
            
        
    
        
        
            
                "hire_date": new Date(Date.now()),
            
        
    
        
        
            
                "contract_type": "PERMANENT",
            
        
    
        
        
            
                "position": "Grace Hopper",
            
        
    
        
        
            
                "work_schedule": "Marie Curie",
            
        
    
        
        
            
                "probation_days": 5,
            
        
    
        
        
            
                "salary": 7.85,
            
        
    
        
        
            
                "daily_allowance": 0.07,
            
        
    
        
        
            
                "bonuses": 1.34,
            
        
    
        
        
            
                "deductions": 6.58,
            
        
    
        
        
            
                "bank_account_iban": "Alan Turing",
            
        
    
        
        
            
                "bank_name": "Marie Curie",
            
        
    
        
        
            
                "insurance_number": "Ada Lovelace",
            
        
    
        
        
            
                "tax_number": "Ada Lovelace",
            
        
    
        
        
            
                "tax_category": "Alan Turing",
            
        
    
        
        
            
                "vacation_days": 9,
            
        
    
        
        
            
                "used_vacation_days": 7,
            
        
    
        
        
            
                "employment_status": "TERMINATED",
            
        
    
        
        
            
                "termination_date": new Date(Date.now()),
            
        
    
        
        
            
                "termination_reason": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "contract_number": "Grace Hopper",
            
        
    
        
        
            
                "hire_date": new Date(Date.now()),
            
        
    
        
        
            
                "contract_type": "FIXED",
            
        
    
        
        
            
                "position": "Marie Curie",
            
        
    
        
        
            
                "work_schedule": "Marie Curie",
            
        
    
        
        
            
                "probation_days": 6,
            
        
    
        
        
            
                "salary": 9.78,
            
        
    
        
        
            
                "daily_allowance": 7.27,
            
        
    
        
        
            
                "bonuses": 4.89,
            
        
    
        
        
            
                "deductions": 7.21,
            
        
    
        
        
            
                "bank_account_iban": "Alan Turing",
            
        
    
        
        
            
                "bank_name": "Ada Lovelace",
            
        
    
        
        
            
                "insurance_number": "Grace Hopper",
            
        
    
        
        
            
                "tax_number": "Marie Curie",
            
        
    
        
        
            
                "tax_category": "Marie Curie",
            
        
    
        
        
            
                "vacation_days": 4,
            
        
    
        
        
            
                "used_vacation_days": 2,
            
        
    
        
        
            
                "employment_status": "TERMINATED",
            
        
    
        
        
            
                "termination_date": new Date(Date.now()),
            
        
    
        
        
            
                "termination_reason": "Alan Turing",
            
        
    
    },
    
];



const DriverProfilesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "driver_notes": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "driver_notes": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "driver_notes": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "driver_notes": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "driver_notes": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const DriverCompliancesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "license_country": "Alan Turing",
            
        
    
        
        
            
                "license_number": "Alan Turing",
            
        
    
        
        
            
                "license_issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "license_expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "license_restrictions": "Ada Lovelace",
            
        
    
        
        
            
                "license_suspended": false,
            
        
    
        
        
            
                "cpc_number": "Alan Turing",
            
        
    
        
        
            
                "cpc_issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "cpc_expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "cpc_center": "Marie Curie",
            
        
    
        
        
            
                "cpc_last_training_at": new Date(Date.now()),
            
        
    
        
        
            
                "cpc_next_training_at": new Date(Date.now()),
            
        
    
        
        
            
                "cpc_type": "Ada Lovelace",
            
        
    
        
        
            
                "adr_number": "Ada Lovelace",
            
        
    
        
        
            
                "adr_expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "adr_tank": true,
            
        
    
        
        
            
                "adr_packages": true,
            
        
    
        
        
            
                "adr_last_course_at": new Date(Date.now()),
            
        
    
        
        
            
                "adr_next_course_at": new Date(Date.now()),
            
        
    
        
        
            
                "adr_restrictions": "Ada Lovelace",
            
        
    
        
        
            
                "medical_cert_number": "Ada Lovelace",
            
        
    
        
        
            
                "medical_issued_by": "Alan Turing",
            
        
    
        
        
            
                "medical_expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "psych_test_number": "Ada Lovelace",
            
        
    
        
        
            
                "psych_expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "eye_exam_at": new Date(Date.now()),
            
        
    
        
        
            
                "cardio_exam_at": new Date(Date.now()),
            
        
    
        
        
            
                "medical_restrictions": "Ada Lovelace",
            
        
    
        
        
            
                "tacho_card_number": "Ada Lovelace",
            
        
    
        
        
            
                "tacho_country": "Marie Curie",
            
        
    
        
        
            
                "tacho_expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "tacho_last_download_at": new Date(Date.now()),
            
        
    
        
        
            
                "tacho_next_download_at": new Date(Date.now()),
            
        
    
        
        
            
                "violations_count": 4,
            
        
    
        
        
            
                "warnings_count": 1,
            
        
    
        
        
            
                "driving_ban": false,
            
        
    
        
        
            
                "driving_ban_until": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "license_country": "Marie Curie",
            
        
    
        
        
            
                "license_number": "Ada Lovelace",
            
        
    
        
        
            
                "license_issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "license_expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "license_restrictions": "Ada Lovelace",
            
        
    
        
        
            
                "license_suspended": false,
            
        
    
        
        
            
                "cpc_number": "Alan Turing",
            
        
    
        
        
            
                "cpc_issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "cpc_expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "cpc_center": "Marie Curie",
            
        
    
        
        
            
                "cpc_last_training_at": new Date(Date.now()),
            
        
    
        
        
            
                "cpc_next_training_at": new Date(Date.now()),
            
        
    
        
        
            
                "cpc_type": "Ada Lovelace",
            
        
    
        
        
            
                "adr_number": "Ada Lovelace",
            
        
    
        
        
            
                "adr_expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "adr_tank": true,
            
        
    
        
        
            
                "adr_packages": false,
            
        
    
        
        
            
                "adr_last_course_at": new Date(Date.now()),
            
        
    
        
        
            
                "adr_next_course_at": new Date(Date.now()),
            
        
    
        
        
            
                "adr_restrictions": "Marie Curie",
            
        
    
        
        
            
                "medical_cert_number": "Marie Curie",
            
        
    
        
        
            
                "medical_issued_by": "Marie Curie",
            
        
    
        
        
            
                "medical_expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "psych_test_number": "Grace Hopper",
            
        
    
        
        
            
                "psych_expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "eye_exam_at": new Date(Date.now()),
            
        
    
        
        
            
                "cardio_exam_at": new Date(Date.now()),
            
        
    
        
        
            
                "medical_restrictions": "Alan Turing",
            
        
    
        
        
            
                "tacho_card_number": "Grace Hopper",
            
        
    
        
        
            
                "tacho_country": "Marie Curie",
            
        
    
        
        
            
                "tacho_expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "tacho_last_download_at": new Date(Date.now()),
            
        
    
        
        
            
                "tacho_next_download_at": new Date(Date.now()),
            
        
    
        
        
            
                "violations_count": 9,
            
        
    
        
        
            
                "warnings_count": 6,
            
        
    
        
        
            
                "driving_ban": false,
            
        
    
        
        
            
                "driving_ban_until": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "license_country": "Ada Lovelace",
            
        
    
        
        
            
                "license_number": "Ada Lovelace",
            
        
    
        
        
            
                "license_issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "license_expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "license_restrictions": "Alan Turing",
            
        
    
        
        
            
                "license_suspended": false,
            
        
    
        
        
            
                "cpc_number": "Alan Turing",
            
        
    
        
        
            
                "cpc_issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "cpc_expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "cpc_center": "Grace Hopper",
            
        
    
        
        
            
                "cpc_last_training_at": new Date(Date.now()),
            
        
    
        
        
            
                "cpc_next_training_at": new Date(Date.now()),
            
        
    
        
        
            
                "cpc_type": "Ada Lovelace",
            
        
    
        
        
            
                "adr_number": "Ada Lovelace",
            
        
    
        
        
            
                "adr_expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "adr_tank": true,
            
        
    
        
        
            
                "adr_packages": true,
            
        
    
        
        
            
                "adr_last_course_at": new Date(Date.now()),
            
        
    
        
        
            
                "adr_next_course_at": new Date(Date.now()),
            
        
    
        
        
            
                "adr_restrictions": "Marie Curie",
            
        
    
        
        
            
                "medical_cert_number": "Marie Curie",
            
        
    
        
        
            
                "medical_issued_by": "Grace Hopper",
            
        
    
        
        
            
                "medical_expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "psych_test_number": "Alan Turing",
            
        
    
        
        
            
                "psych_expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "eye_exam_at": new Date(Date.now()),
            
        
    
        
        
            
                "cardio_exam_at": new Date(Date.now()),
            
        
    
        
        
            
                "medical_restrictions": "Grace Hopper",
            
        
    
        
        
            
                "tacho_card_number": "Grace Hopper",
            
        
    
        
        
            
                "tacho_country": "Ada Lovelace",
            
        
    
        
        
            
                "tacho_expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "tacho_last_download_at": new Date(Date.now()),
            
        
    
        
        
            
                "tacho_next_download_at": new Date(Date.now()),
            
        
    
        
        
            
                "violations_count": 1,
            
        
    
        
        
            
                "warnings_count": 7,
            
        
    
        
        
            
                "driving_ban": false,
            
        
    
        
        
            
                "driving_ban_until": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "license_country": "Marie Curie",
            
        
    
        
        
            
                "license_number": "Marie Curie",
            
        
    
        
        
            
                "license_issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "license_expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "license_restrictions": "Grace Hopper",
            
        
    
        
        
            
                "license_suspended": false,
            
        
    
        
        
            
                "cpc_number": "Grace Hopper",
            
        
    
        
        
            
                "cpc_issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "cpc_expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "cpc_center": "Alan Turing",
            
        
    
        
        
            
                "cpc_last_training_at": new Date(Date.now()),
            
        
    
        
        
            
                "cpc_next_training_at": new Date(Date.now()),
            
        
    
        
        
            
                "cpc_type": "Alan Turing",
            
        
    
        
        
            
                "adr_number": "Grace Hopper",
            
        
    
        
        
            
                "adr_expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "adr_tank": true,
            
        
    
        
        
            
                "adr_packages": true,
            
        
    
        
        
            
                "adr_last_course_at": new Date(Date.now()),
            
        
    
        
        
            
                "adr_next_course_at": new Date(Date.now()),
            
        
    
        
        
            
                "adr_restrictions": "Marie Curie",
            
        
    
        
        
            
                "medical_cert_number": "Ada Lovelace",
            
        
    
        
        
            
                "medical_issued_by": "Grace Hopper",
            
        
    
        
        
            
                "medical_expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "psych_test_number": "Ada Lovelace",
            
        
    
        
        
            
                "psych_expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "eye_exam_at": new Date(Date.now()),
            
        
    
        
        
            
                "cardio_exam_at": new Date(Date.now()),
            
        
    
        
        
            
                "medical_restrictions": "Marie Curie",
            
        
    
        
        
            
                "tacho_card_number": "Alan Turing",
            
        
    
        
        
            
                "tacho_country": "Ada Lovelace",
            
        
    
        
        
            
                "tacho_expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "tacho_last_download_at": new Date(Date.now()),
            
        
    
        
        
            
                "tacho_next_download_at": new Date(Date.now()),
            
        
    
        
        
            
                "violations_count": 8,
            
        
    
        
        
            
                "warnings_count": 9,
            
        
    
        
        
            
                "driving_ban": true,
            
        
    
        
        
            
                "driving_ban_until": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "license_country": "Marie Curie",
            
        
    
        
        
            
                "license_number": "Marie Curie",
            
        
    
        
        
            
                "license_issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "license_expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "license_restrictions": "Grace Hopper",
            
        
    
        
        
            
                "license_suspended": true,
            
        
    
        
        
            
                "cpc_number": "Marie Curie",
            
        
    
        
        
            
                "cpc_issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "cpc_expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "cpc_center": "Grace Hopper",
            
        
    
        
        
            
                "cpc_last_training_at": new Date(Date.now()),
            
        
    
        
        
            
                "cpc_next_training_at": new Date(Date.now()),
            
        
    
        
        
            
                "cpc_type": "Ada Lovelace",
            
        
    
        
        
            
                "adr_number": "Alan Turing",
            
        
    
        
        
            
                "adr_expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "adr_tank": true,
            
        
    
        
        
            
                "adr_packages": false,
            
        
    
        
        
            
                "adr_last_course_at": new Date(Date.now()),
            
        
    
        
        
            
                "adr_next_course_at": new Date(Date.now()),
            
        
    
        
        
            
                "adr_restrictions": "Marie Curie",
            
        
    
        
        
            
                "medical_cert_number": "Ada Lovelace",
            
        
    
        
        
            
                "medical_issued_by": "Ada Lovelace",
            
        
    
        
        
            
                "medical_expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "psych_test_number": "Ada Lovelace",
            
        
    
        
        
            
                "psych_expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "eye_exam_at": new Date(Date.now()),
            
        
    
        
        
            
                "cardio_exam_at": new Date(Date.now()),
            
        
    
        
        
            
                "medical_restrictions": "Marie Curie",
            
        
    
        
        
            
                "tacho_card_number": "Alan Turing",
            
        
    
        
        
            
                "tacho_country": "Ada Lovelace",
            
        
    
        
        
            
                "tacho_expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "tacho_last_download_at": new Date(Date.now()),
            
        
    
        
        
            
                "tacho_next_download_at": new Date(Date.now()),
            
        
    
        
        
            
                "violations_count": 1,
            
        
    
        
        
            
                "warnings_count": 9,
            
        
    
        
        
            
                "driving_ban": false,
            
        
    
        
        
            
                "driving_ban_until": new Date(Date.now()),
            
        
    
    },
    
];



const IncidentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "TACHO_VIOLATION",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                "amount": 5.68,
            
        
    
        
        
            
                "currency": "Grace Hopper",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "location": "Marie Curie",
            
        
    
        
        
            
                "paid": true,
            
        
    
        
        
            
                "paid_at": new Date(Date.now()),
            
        
    
        
        
            
                "points": 2,
            
        
    
        
        
            
                "severity": "Marie Curie",
            
        
    
        
        
            
                "reported_by": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "DISCIPLINARY",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                "amount": 4.73,
            
        
    
        
        
            
                "currency": "Alan Turing",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "location": "Marie Curie",
            
        
    
        
        
            
                "paid": true,
            
        
    
        
        
            
                "paid_at": new Date(Date.now()),
            
        
    
        
        
            
                "points": 9,
            
        
    
        
        
            
                "severity": "Alan Turing",
            
        
    
        
        
            
                "reported_by": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "FINE",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                "amount": 5.33,
            
        
    
        
        
            
                "currency": "Marie Curie",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "location": "Ada Lovelace",
            
        
    
        
        
            
                "paid": true,
            
        
    
        
        
            
                "paid_at": new Date(Date.now()),
            
        
    
        
        
            
                "points": 1,
            
        
    
        
        
            
                "severity": "Ada Lovelace",
            
        
    
        
        
            
                "reported_by": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "DISCIPLINARY",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                "amount": 7.39,
            
        
    
        
        
            
                "currency": "Ada Lovelace",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "location": "Alan Turing",
            
        
    
        
        
            
                "paid": true,
            
        
    
        
        
            
                "paid_at": new Date(Date.now()),
            
        
    
        
        
            
                "points": 4,
            
        
    
        
        
            
                "severity": "Ada Lovelace",
            
        
    
        
        
            
                "reported_by": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "FINE",
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                "amount": 1.2,
            
        
    
        
        
            
                "currency": "Marie Curie",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "location": "Grace Hopper",
            
        
    
        
        
            
                "paid": false,
            
        
    
        
        
            
                "paid_at": new Date(Date.now()),
            
        
    
        
        
            
                "points": 6,
            
        
    
        
        
            
                "severity": "Marie Curie",
            
        
    
        
        
            
                "reported_by": "Grace Hopper",
            
        
    
    },
    
];



const DocumentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "ADR",
            
        
    
        
        
            
                "scope": "DRIVER",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "TACHO_CARD",
            
        
    
        
        
            
                "scope": "EMPLOYEE",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "WORK_CONTRACT",
            
        
    
        
        
            
                "scope": "DISPATCHER",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "PASSPORT",
            
        
    
        
        
            
                "scope": "EMPLOYEE",
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "OTHER",
            
        
    
        
        
            
                "scope": "EMPLOYEE",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const DocumentVersionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "version_no": 2,
            
        
    
        
        
            
                "number": "Marie Curie",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "country": "Alan Turing",
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
        
        
            
                "is_current": true,
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "version_no": 7,
            
        
    
        
        
            
                "number": "Alan Turing",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "country": "Alan Turing",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
        
        
            
                "is_current": false,
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "version_no": 3,
            
        
    
        
        
            
                "number": "Marie Curie",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "country": "Ada Lovelace",
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
        
        
            
                "is_current": false,
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "version_no": 7,
            
        
    
        
        
            
                "number": "Marie Curie",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "country": "Alan Turing",
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                "is_current": false,
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "version_no": 5,
            
        
    
        
        
            
                "number": "Marie Curie",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "country": "Ada Lovelace",
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
        
        
            
                "is_current": false,
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
];



const DocumentRetentionPoliciesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "MEDICAL",
            
        
    
        
        
            
                "keep_min_versions": 2,
            
        
    
        
        
            
                "keep_files_days": 2,
            
        
    
        
        
            
                "keep_version_days": 4,
            
        
    
        
        
            
                "keep_audit_after_file_removal": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "OTHER",
            
        
    
        
        
            
                "keep_min_versions": 9,
            
        
    
        
        
            
                "keep_files_days": 6,
            
        
    
        
        
            
                "keep_version_days": 7,
            
        
    
        
        
            
                "keep_audit_after_file_removal": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "DRIVING_LICENSE",
            
        
    
        
        
            
                "keep_min_versions": 1,
            
        
    
        
        
            
                "keep_files_days": 2,
            
        
    
        
        
            
                "keep_version_days": 7,
            
        
    
        
        
            
                "keep_audit_after_file_removal": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "CPC_CODE95",
            
        
    
        
        
            
                "keep_min_versions": 1,
            
        
    
        
        
            
                "keep_files_days": 6,
            
        
    
        
        
            
                "keep_version_days": 9,
            
        
    
        
        
            
                "keep_audit_after_file_removal": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "BANK_DETAILS",
            
        
    
        
        
            
                "keep_min_versions": 3,
            
        
    
        
        
            
                "keep_files_days": 9,
            
        
    
        
        
            
                "keep_version_days": 4,
            
        
    
        
        
            
                "keep_audit_after_file_removal": true,
            
        
    
    },
    
];



const CustomersData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "legal_name": "Marie Curie",
            
        
    
        
        
            
                "tax_number": "Grace Hopper",
            
        
    
        
        
            
                "vat_number": "Alan Turing",
            
        
    
        
        
            
                "eori_number": "Ada Lovelace",
            
        
    
        
        
            
                "email": "Alan Turing",
            
        
    
        
        
            
                "phone": "Alan Turing",
            
        
    
        
        
            
                "phone2": "Grace Hopper",
            
        
    
        
        
            
                "website": "Marie Curie",
            
        
    
        
        
            
                "address_line1": "Grace Hopper",
            
        
    
        
        
            
                "address_line2": "Alan Turing",
            
        
    
        
        
            
                "postal_code": "Grace Hopper",
            
        
    
        
        
            
                "city": "Grace Hopper",
            
        
    
        
        
            
                "country_code": "Ada Lovelace",
            
        
    
        
        
            
                "payment_terms_days": 7,
            
        
    
        
        
            
                "currency": "GBP",
            
        
    
        
        
            
                "credit_limit_eur": 5.16,
            
        
    
        
        
            
                "contact_person": "Grace Hopper",
            
        
    
        
        
            
                "contact_email": "Grace Hopper",
            
        
    
        
        
            
                "contact_phone": "Grace Hopper",
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "legal_name": "Alan Turing",
            
        
    
        
        
            
                "tax_number": "Marie Curie",
            
        
    
        
        
            
                "vat_number": "Ada Lovelace",
            
        
    
        
        
            
                "eori_number": "Ada Lovelace",
            
        
    
        
        
            
                "email": "Ada Lovelace",
            
        
    
        
        
            
                "phone": "Ada Lovelace",
            
        
    
        
        
            
                "phone2": "Grace Hopper",
            
        
    
        
        
            
                "website": "Alan Turing",
            
        
    
        
        
            
                "address_line1": "Grace Hopper",
            
        
    
        
        
            
                "address_line2": "Ada Lovelace",
            
        
    
        
        
            
                "postal_code": "Alan Turing",
            
        
    
        
        
            
                "city": "Grace Hopper",
            
        
    
        
        
            
                "country_code": "Ada Lovelace",
            
        
    
        
        
            
                "payment_terms_days": 3,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "credit_limit_eur": 1.28,
            
        
    
        
        
            
                "contact_person": "Alan Turing",
            
        
    
        
        
            
                "contact_email": "Grace Hopper",
            
        
    
        
        
            
                "contact_phone": "Grace Hopper",
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
        
        
            
                "is_active": true,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "legal_name": "Marie Curie",
            
        
    
        
        
            
                "tax_number": "Ada Lovelace",
            
        
    
        
        
            
                "vat_number": "Alan Turing",
            
        
    
        
        
            
                "eori_number": "Ada Lovelace",
            
        
    
        
        
            
                "email": "Marie Curie",
            
        
    
        
        
            
                "phone": "Ada Lovelace",
            
        
    
        
        
            
                "phone2": "Marie Curie",
            
        
    
        
        
            
                "website": "Marie Curie",
            
        
    
        
        
            
                "address_line1": "Grace Hopper",
            
        
    
        
        
            
                "address_line2": "Marie Curie",
            
        
    
        
        
            
                "postal_code": "Grace Hopper",
            
        
    
        
        
            
                "city": "Alan Turing",
            
        
    
        
        
            
                "country_code": "Alan Turing",
            
        
    
        
        
            
                "payment_terms_days": 3,
            
        
    
        
        
            
                "currency": "RON",
            
        
    
        
        
            
                "credit_limit_eur": 6.85,
            
        
    
        
        
            
                "contact_person": "Marie Curie",
            
        
    
        
        
            
                "contact_email": "Marie Curie",
            
        
    
        
        
            
                "contact_phone": "Grace Hopper",
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "legal_name": "Grace Hopper",
            
        
    
        
        
            
                "tax_number": "Marie Curie",
            
        
    
        
        
            
                "vat_number": "Grace Hopper",
            
        
    
        
        
            
                "eori_number": "Ada Lovelace",
            
        
    
        
        
            
                "email": "Ada Lovelace",
            
        
    
        
        
            
                "phone": "Marie Curie",
            
        
    
        
        
            
                "phone2": "Ada Lovelace",
            
        
    
        
        
            
                "website": "Grace Hopper",
            
        
    
        
        
            
                "address_line1": "Marie Curie",
            
        
    
        
        
            
                "address_line2": "Grace Hopper",
            
        
    
        
        
            
                "postal_code": "Grace Hopper",
            
        
    
        
        
            
                "city": "Marie Curie",
            
        
    
        
        
            
                "country_code": "Marie Curie",
            
        
    
        
        
            
                "payment_terms_days": 1,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "credit_limit_eur": 3.29,
            
        
    
        
        
            
                "contact_person": "Marie Curie",
            
        
    
        
        
            
                "contact_email": "Alan Turing",
            
        
    
        
        
            
                "contact_phone": "Marie Curie",
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "legal_name": "Marie Curie",
            
        
    
        
        
            
                "tax_number": "Alan Turing",
            
        
    
        
        
            
                "vat_number": "Ada Lovelace",
            
        
    
        
        
            
                "eori_number": "Grace Hopper",
            
        
    
        
        
            
                "email": "Grace Hopper",
            
        
    
        
        
            
                "phone": "Grace Hopper",
            
        
    
        
        
            
                "phone2": "Grace Hopper",
            
        
    
        
        
            
                "website": "Grace Hopper",
            
        
    
        
        
            
                "address_line1": "Grace Hopper",
            
        
    
        
        
            
                "address_line2": "Alan Turing",
            
        
    
        
        
            
                "postal_code": "Alan Turing",
            
        
    
        
        
            
                "city": "Alan Turing",
            
        
    
        
        
            
                "country_code": "Alan Turing",
            
        
    
        
        
            
                "payment_terms_days": 6,
            
        
    
        
        
            
                "currency": "CZK",
            
        
    
        
        
            
                "credit_limit_eur": 1.81,
            
        
    
        
        
            
                "contact_person": "Grace Hopper",
            
        
    
        
        
            
                "contact_email": "Marie Curie",
            
        
    
        
        
            
                "contact_phone": "Grace Hopper",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
        
        
            
                "is_active": false,
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
];



const VendorsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "LEASING",
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "legal_name": "Marie Curie",
            
        
    
        
        
            
                "tax_number": "Ada Lovelace",
            
        
    
        
        
            
                "vat_number": "Alan Turing",
            
        
    
        
        
            
                "iban": "Marie Curie",
            
        
    
        
        
            
                "bank_name": "Ada Lovelace",
            
        
    
        
        
            
                "email": "Ada Lovelace",
            
        
    
        
        
            
                "phone": "Alan Turing",
            
        
    
        
        
            
                "phone2": "Marie Curie",
            
        
    
        
        
            
                "website": "Marie Curie",
            
        
    
        
        
            
                "address_line1": "Grace Hopper",
            
        
    
        
        
            
                "address_line2": "Grace Hopper",
            
        
    
        
        
            
                "postal_code": "Grace Hopper",
            
        
    
        
        
            
                "city": "Ada Lovelace",
            
        
    
        
        
            
                "country_code": "Alan Turing",
            
        
    
        
        
            
                "contact_person": "Ada Lovelace",
            
        
    
        
        
            
                "contact_email": "Alan Turing",
            
        
    
        
        
            
                "contact_phone": "Alan Turing",
            
        
    
        
        
            
                "contract_number": "Marie Curie",
            
        
    
        
        
            
                "contract_valid_to": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "GARAGE",
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "legal_name": "Alan Turing",
            
        
    
        
        
            
                "tax_number": "Grace Hopper",
            
        
    
        
        
            
                "vat_number": "Alan Turing",
            
        
    
        
        
            
                "iban": "Ada Lovelace",
            
        
    
        
        
            
                "bank_name": "Alan Turing",
            
        
    
        
        
            
                "email": "Marie Curie",
            
        
    
        
        
            
                "phone": "Alan Turing",
            
        
    
        
        
            
                "phone2": "Marie Curie",
            
        
    
        
        
            
                "website": "Grace Hopper",
            
        
    
        
        
            
                "address_line1": "Marie Curie",
            
        
    
        
        
            
                "address_line2": "Grace Hopper",
            
        
    
        
        
            
                "postal_code": "Ada Lovelace",
            
        
    
        
        
            
                "city": "Alan Turing",
            
        
    
        
        
            
                "country_code": "Alan Turing",
            
        
    
        
        
            
                "contact_person": "Grace Hopper",
            
        
    
        
        
            
                "contact_email": "Alan Turing",
            
        
    
        
        
            
                "contact_phone": "Grace Hopper",
            
        
    
        
        
            
                "contract_number": "Alan Turing",
            
        
    
        
        
            
                "contract_valid_to": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "INSURANCE",
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "legal_name": "Ada Lovelace",
            
        
    
        
        
            
                "tax_number": "Marie Curie",
            
        
    
        
        
            
                "vat_number": "Marie Curie",
            
        
    
        
        
            
                "iban": "Grace Hopper",
            
        
    
        
        
            
                "bank_name": "Ada Lovelace",
            
        
    
        
        
            
                "email": "Alan Turing",
            
        
    
        
        
            
                "phone": "Alan Turing",
            
        
    
        
        
            
                "phone2": "Grace Hopper",
            
        
    
        
        
            
                "website": "Alan Turing",
            
        
    
        
        
            
                "address_line1": "Marie Curie",
            
        
    
        
        
            
                "address_line2": "Grace Hopper",
            
        
    
        
        
            
                "postal_code": "Ada Lovelace",
            
        
    
        
        
            
                "city": "Alan Turing",
            
        
    
        
        
            
                "country_code": "Alan Turing",
            
        
    
        
        
            
                "contact_person": "Alan Turing",
            
        
    
        
        
            
                "contact_email": "Alan Turing",
            
        
    
        
        
            
                "contact_phone": "Grace Hopper",
            
        
    
        
        
            
                "contract_number": "Marie Curie",
            
        
    
        
        
            
                "contract_valid_to": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "LEASING",
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "legal_name": "Marie Curie",
            
        
    
        
        
            
                "tax_number": "Ada Lovelace",
            
        
    
        
        
            
                "vat_number": "Grace Hopper",
            
        
    
        
        
            
                "iban": "Grace Hopper",
            
        
    
        
        
            
                "bank_name": "Grace Hopper",
            
        
    
        
        
            
                "email": "Marie Curie",
            
        
    
        
        
            
                "phone": "Alan Turing",
            
        
    
        
        
            
                "phone2": "Grace Hopper",
            
        
    
        
        
            
                "website": "Grace Hopper",
            
        
    
        
        
            
                "address_line1": "Marie Curie",
            
        
    
        
        
            
                "address_line2": "Ada Lovelace",
            
        
    
        
        
            
                "postal_code": "Alan Turing",
            
        
    
        
        
            
                "city": "Alan Turing",
            
        
    
        
        
            
                "country_code": "Grace Hopper",
            
        
    
        
        
            
                "contact_person": "Grace Hopper",
            
        
    
        
        
            
                "contact_email": "Alan Turing",
            
        
    
        
        
            
                "contact_phone": "Marie Curie",
            
        
    
        
        
            
                "contract_number": "Ada Lovelace",
            
        
    
        
        
            
                "contract_valid_to": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "TIRES",
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "legal_name": "Grace Hopper",
            
        
    
        
        
            
                "tax_number": "Alan Turing",
            
        
    
        
        
            
                "vat_number": "Marie Curie",
            
        
    
        
        
            
                "iban": "Alan Turing",
            
        
    
        
        
            
                "bank_name": "Ada Lovelace",
            
        
    
        
        
            
                "email": "Marie Curie",
            
        
    
        
        
            
                "phone": "Marie Curie",
            
        
    
        
        
            
                "phone2": "Grace Hopper",
            
        
    
        
        
            
                "website": "Ada Lovelace",
            
        
    
        
        
            
                "address_line1": "Grace Hopper",
            
        
    
        
        
            
                "address_line2": "Grace Hopper",
            
        
    
        
        
            
                "postal_code": "Ada Lovelace",
            
        
    
        
        
            
                "city": "Alan Turing",
            
        
    
        
        
            
                "country_code": "Ada Lovelace",
            
        
    
        
        
            
                "contact_person": "Marie Curie",
            
        
    
        
        
            
                "contact_email": "Alan Turing",
            
        
    
        
        
            
                "contact_phone": "Grace Hopper",
            
        
    
        
        
            
                "contract_number": "Alan Turing",
            
        
    
        
        
            
                "contract_valid_to": new Date(Date.now()),
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
];



const VehiclesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "OTHER",
            
        
    
        
        
            
                "status": "INACTIVE",
            
        
    
        
        
            
                "ownership": "OWNED",
            
        
    
        
        
            
                "plate_number": "Grace Hopper",
            
        
    
        
        
            
                "vin": "Grace Hopper",
            
        
    
        
        
            
                "brand": "Alan Turing",
            
        
    
        
        
            
                "model": "Grace Hopper",
            
        
    
        
        
            
                "variant": "Ada Lovelace",
            
        
    
        
        
            
                "year": 8,
            
        
    
        
        
            
                "first_registration_at": new Date(Date.now()),
            
        
    
        
        
            
                "fuel_type": "ELECTRIC",
            
        
    
        
        
            
                "emission_class": "EURO_6",
            
        
    
        
        
            
                "gross_weight_kg": 3,
            
        
    
        
        
            
                "curb_weight_kg": 7,
            
        
    
        
        
            
                "payload_kg": 5,
            
        
    
        
        
            
                "axle_count": 7,
            
        
    
        
        
            
                "has_liftgate": false,
            
        
    
        
        
            
                "tachograph_type": "OTHER",
            
        
    
        
        
            
                "tachograph_serial": "Grace Hopper",
            
        
    
        
        
            
                "tachograph_last_calibration_at": new Date(Date.now()),
            
        
    
        
        
            
                "tachograph_next_calibration_at": new Date(Date.now()),
            
        
    
        
        
            
                "toll_provider": "OTHER",
            
        
    
        
        
            
                "toll_obu_serial": "Grace Hopper",
            
        
    
        
        
            
                "toll_contract_no": "Marie Curie",
            
        
    
        
        
            
                "insurance_notes": "Grace Hopper",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "TRUCK",
            
        
    
        
        
            
                "status": "SUSPENDED",
            
        
    
        
        
            
                "ownership": "LEASED",
            
        
    
        
        
            
                "plate_number": "Marie Curie",
            
        
    
        
        
            
                "vin": "Ada Lovelace",
            
        
    
        
        
            
                "brand": "Ada Lovelace",
            
        
    
        
        
            
                "model": "Ada Lovelace",
            
        
    
        
        
            
                "variant": "Grace Hopper",
            
        
    
        
        
            
                "year": 4,
            
        
    
        
        
            
                "first_registration_at": new Date(Date.now()),
            
        
    
        
        
            
                "fuel_type": "LNG",
            
        
    
        
        
            
                "emission_class": "EURO_6",
            
        
    
        
        
            
                "gross_weight_kg": 5,
            
        
    
        
        
            
                "curb_weight_kg": 1,
            
        
    
        
        
            
                "payload_kg": 1,
            
        
    
        
        
            
                "axle_count": 5,
            
        
    
        
        
            
                "has_liftgate": false,
            
        
    
        
        
            
                "tachograph_type": "DIGITAL",
            
        
    
        
        
            
                "tachograph_serial": "Grace Hopper",
            
        
    
        
        
            
                "tachograph_last_calibration_at": new Date(Date.now()),
            
        
    
        
        
            
                "tachograph_next_calibration_at": new Date(Date.now()),
            
        
    
        
        
            
                "toll_provider": "TOLL_COLLECT",
            
        
    
        
        
            
                "toll_obu_serial": "Alan Turing",
            
        
    
        
        
            
                "toll_contract_no": "Ada Lovelace",
            
        
    
        
        
            
                "insurance_notes": "Grace Hopper",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "BUS",
            
        
    
        
        
            
                "status": "INACTIVE",
            
        
    
        
        
            
                "ownership": "LEASED",
            
        
    
        
        
            
                "plate_number": "Ada Lovelace",
            
        
    
        
        
            
                "vin": "Marie Curie",
            
        
    
        
        
            
                "brand": "Ada Lovelace",
            
        
    
        
        
            
                "model": "Ada Lovelace",
            
        
    
        
        
            
                "variant": "Ada Lovelace",
            
        
    
        
        
            
                "year": 9,
            
        
    
        
        
            
                "first_registration_at": new Date(Date.now()),
            
        
    
        
        
            
                "fuel_type": "DIESEL",
            
        
    
        
        
            
                "emission_class": "EURO_5",
            
        
    
        
        
            
                "gross_weight_kg": 1,
            
        
    
        
        
            
                "curb_weight_kg": 9,
            
        
    
        
        
            
                "payload_kg": 7,
            
        
    
        
        
            
                "axle_count": 7,
            
        
    
        
        
            
                "has_liftgate": false,
            
        
    
        
        
            
                "tachograph_type": "OTHER",
            
        
    
        
        
            
                "tachograph_serial": "Ada Lovelace",
            
        
    
        
        
            
                "tachograph_last_calibration_at": new Date(Date.now()),
            
        
    
        
        
            
                "tachograph_next_calibration_at": new Date(Date.now()),
            
        
    
        
        
            
                "toll_provider": "TOLL_COLLECT",
            
        
    
        
        
            
                "toll_obu_serial": "Marie Curie",
            
        
    
        
        
            
                "toll_contract_no": "Ada Lovelace",
            
        
    
        
        
            
                "insurance_notes": "Grace Hopper",
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "BUS",
            
        
    
        
        
            
                "status": "SOLD",
            
        
    
        
        
            
                "ownership": "OWNED",
            
        
    
        
        
            
                "plate_number": "Grace Hopper",
            
        
    
        
        
            
                "vin": "Alan Turing",
            
        
    
        
        
            
                "brand": "Marie Curie",
            
        
    
        
        
            
                "model": "Alan Turing",
            
        
    
        
        
            
                "variant": "Grace Hopper",
            
        
    
        
        
            
                "year": 1,
            
        
    
        
        
            
                "first_registration_at": new Date(Date.now()),
            
        
    
        
        
            
                "fuel_type": "CNG",
            
        
    
        
        
            
                "emission_class": "EURO_4",
            
        
    
        
        
            
                "gross_weight_kg": 1,
            
        
    
        
        
            
                "curb_weight_kg": 7,
            
        
    
        
        
            
                "payload_kg": 8,
            
        
    
        
        
            
                "axle_count": 5,
            
        
    
        
        
            
                "has_liftgate": true,
            
        
    
        
        
            
                "tachograph_type": "SMART_2",
            
        
    
        
        
            
                "tachograph_serial": "Grace Hopper",
            
        
    
        
        
            
                "tachograph_last_calibration_at": new Date(Date.now()),
            
        
    
        
        
            
                "tachograph_next_calibration_at": new Date(Date.now()),
            
        
    
        
        
            
                "toll_provider": "TOLL_COLLECT",
            
        
    
        
        
            
                "toll_obu_serial": "Ada Lovelace",
            
        
    
        
        
            
                "toll_contract_no": "Grace Hopper",
            
        
    
        
        
            
                "insurance_notes": "Marie Curie",
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "BUS",
            
        
    
        
        
            
                "status": "SCRAPPED",
            
        
    
        
        
            
                "ownership": "OWNED",
            
        
    
        
        
            
                "plate_number": "Alan Turing",
            
        
    
        
        
            
                "vin": "Ada Lovelace",
            
        
    
        
        
            
                "brand": "Grace Hopper",
            
        
    
        
        
            
                "model": "Alan Turing",
            
        
    
        
        
            
                "variant": "Ada Lovelace",
            
        
    
        
        
            
                "year": 7,
            
        
    
        
        
            
                "first_registration_at": new Date(Date.now()),
            
        
    
        
        
            
                "fuel_type": "DIESEL",
            
        
    
        
        
            
                "emission_class": "EURO_4",
            
        
    
        
        
            
                "gross_weight_kg": 2,
            
        
    
        
        
            
                "curb_weight_kg": 7,
            
        
    
        
        
            
                "payload_kg": 6,
            
        
    
        
        
            
                "axle_count": 4,
            
        
    
        
        
            
                "has_liftgate": true,
            
        
    
        
        
            
                "tachograph_type": "DIGITAL",
            
        
    
        
        
            
                "tachograph_serial": "Marie Curie",
            
        
    
        
        
            
                "tachograph_last_calibration_at": new Date(Date.now()),
            
        
    
        
        
            
                "tachograph_next_calibration_at": new Date(Date.now()),
            
        
    
        
        
            
                "toll_provider": "OTHER",
            
        
    
        
        
            
                "toll_obu_serial": "Grace Hopper",
            
        
    
        
        
            
                "toll_contract_no": "Marie Curie",
            
        
    
        
        
            
                "insurance_notes": "Ada Lovelace",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
];



const TrailersData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "SEMI_TRAILER",
            
        
    
        
        
            
                "status": "ACTIVE",
            
        
    
        
        
            
                "ownership": "LEASED",
            
        
    
        
        
            
                "plate_number": "Ada Lovelace",
            
        
    
        
        
            
                "vin": "Ada Lovelace",
            
        
    
        
        
            
                "brand": "Alan Turing",
            
        
    
        
        
            
                "model": "Marie Curie",
            
        
    
        
        
            
                "year": 7,
            
        
    
        
        
            
                "first_registration_at": new Date(Date.now()),
            
        
    
        
        
            
                "gross_weight_kg": 4,
            
        
    
        
        
            
                "curb_weight_kg": 4,
            
        
    
        
        
            
                "payload_kg": 8,
            
        
    
        
        
            
                "axle_count": 9,
            
        
    
        
        
            
                "has_liftgate": true,
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "SEMI_TRAILER",
            
        
    
        
        
            
                "status": "SOLD",
            
        
    
        
        
            
                "ownership": "RENTED",
            
        
    
        
        
            
                "plate_number": "Marie Curie",
            
        
    
        
        
            
                "vin": "Ada Lovelace",
            
        
    
        
        
            
                "brand": "Marie Curie",
            
        
    
        
        
            
                "model": "Grace Hopper",
            
        
    
        
        
            
                "year": 6,
            
        
    
        
        
            
                "first_registration_at": new Date(Date.now()),
            
        
    
        
        
            
                "gross_weight_kg": 5,
            
        
    
        
        
            
                "curb_weight_kg": 8,
            
        
    
        
        
            
                "payload_kg": 3,
            
        
    
        
        
            
                "axle_count": 6,
            
        
    
        
        
            
                "has_liftgate": false,
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "OTHER",
            
        
    
        
        
            
                "status": "INACTIVE",
            
        
    
        
        
            
                "ownership": "RENTED",
            
        
    
        
        
            
                "plate_number": "Alan Turing",
            
        
    
        
        
            
                "vin": "Ada Lovelace",
            
        
    
        
        
            
                "brand": "Ada Lovelace",
            
        
    
        
        
            
                "model": "Alan Turing",
            
        
    
        
        
            
                "year": 6,
            
        
    
        
        
            
                "first_registration_at": new Date(Date.now()),
            
        
    
        
        
            
                "gross_weight_kg": 4,
            
        
    
        
        
            
                "curb_weight_kg": 2,
            
        
    
        
        
            
                "payload_kg": 5,
            
        
    
        
        
            
                "axle_count": 5,
            
        
    
        
        
            
                "has_liftgate": false,
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "OTHER",
            
        
    
        
        
            
                "status": "INACTIVE",
            
        
    
        
        
            
                "ownership": "RENTED",
            
        
    
        
        
            
                "plate_number": "Alan Turing",
            
        
    
        
        
            
                "vin": "Alan Turing",
            
        
    
        
        
            
                "brand": "Alan Turing",
            
        
    
        
        
            
                "model": "Grace Hopper",
            
        
    
        
        
            
                "year": 1,
            
        
    
        
        
            
                "first_registration_at": new Date(Date.now()),
            
        
    
        
        
            
                "gross_weight_kg": 3,
            
        
    
        
        
            
                "curb_weight_kg": 5,
            
        
    
        
        
            
                "payload_kg": 4,
            
        
    
        
        
            
                "axle_count": 2,
            
        
    
        
        
            
                "has_liftgate": true,
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "FULL_TRAILER",
            
        
    
        
        
            
                "status": "SCRAPPED",
            
        
    
        
        
            
                "ownership": "LEASED",
            
        
    
        
        
            
                "plate_number": "Alan Turing",
            
        
    
        
        
            
                "vin": "Alan Turing",
            
        
    
        
        
            
                "brand": "Grace Hopper",
            
        
    
        
        
            
                "model": "Marie Curie",
            
        
    
        
        
            
                "year": 9,
            
        
    
        
        
            
                "first_registration_at": new Date(Date.now()),
            
        
    
        
        
            
                "gross_weight_kg": 4,
            
        
    
        
        
            
                "curb_weight_kg": 3,
            
        
    
        
        
            
                "payload_kg": 6,
            
        
    
        
        
            
                "axle_count": 3,
            
        
    
        
        
            
                "has_liftgate": false,
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                // type code here for "images" field
            
        
    
    },
    
];



const VehicleTrailerLinksData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "linked_from": new Date(Date.now()),
            
        
    
        
        
            
                "linked_to": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "linked_from": new Date(Date.now()),
            
        
    
        
        
            
                "linked_to": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "linked_from": new Date(Date.now()),
            
        
    
        
        
            
                "linked_to": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "linked_from": new Date(Date.now()),
            
        
    
        
        
            
                "linked_to": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "linked_from": new Date(Date.now()),
            
        
    
        
        
            
                "linked_to": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
    },
    
];



const VehicleInspectionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "OTHER",
            
        
    
        
        
            
                "issuer": "Grace Hopper",
            
        
    
        
        
            
                "report_no": "Ada Lovelace",
            
        
    
        
        
            
                "performed_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "passed": false,
            
        
    
        
        
            
                "odometer_km": 1,
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "AU",
            
        
    
        
        
            
                "issuer": "Alan Turing",
            
        
    
        
        
            
                "report_no": "Alan Turing",
            
        
    
        
        
            
                "performed_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "passed": false,
            
        
    
        
        
            
                "odometer_km": 6,
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "SP",
            
        
    
        
        
            
                "issuer": "Grace Hopper",
            
        
    
        
        
            
                "report_no": "Marie Curie",
            
        
    
        
        
            
                "performed_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "passed": true,
            
        
    
        
        
            
                "odometer_km": 2,
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "TAIL_LIFT",
            
        
    
        
        
            
                "issuer": "Marie Curie",
            
        
    
        
        
            
                "report_no": "Ada Lovelace",
            
        
    
        
        
            
                "performed_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "passed": true,
            
        
    
        
        
            
                "odometer_km": 5,
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "SP",
            
        
    
        
        
            
                "issuer": "Ada Lovelace",
            
        
    
        
        
            
                "report_no": "Ada Lovelace",
            
        
    
        
        
            
                "performed_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "passed": false,
            
        
    
        
        
            
                "odometer_km": 5,
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
    },
    
];



const VehicleMaintenancesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "INSPECTION_PREP",
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "workshop_name": "Grace Hopper",
            
        
    
        
        
            
                "workshop_contact": "Ada Lovelace",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "finished_at": new Date(Date.now()),
            
        
    
        
        
            
                "odometer_km": 6,
            
        
    
        
        
            
                "cost_amount": 9.62,
            
        
    
        
        
            
                "currency": "OTHER",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "SERVICE",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "workshop_name": "Marie Curie",
            
        
    
        
        
            
                "workshop_contact": "Grace Hopper",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "finished_at": new Date(Date.now()),
            
        
    
        
        
            
                "odometer_km": 7,
            
        
    
        
        
            
                "cost_amount": 8.98,
            
        
    
        
        
            
                "currency": "PLN",
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "TIRES",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "workshop_name": "Ada Lovelace",
            
        
    
        
        
            
                "workshop_contact": "Alan Turing",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "finished_at": new Date(Date.now()),
            
        
    
        
        
            
                "odometer_km": 1,
            
        
    
        
        
            
                "cost_amount": 2.15,
            
        
    
        
        
            
                "currency": "OTHER",
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "OIL_CHANGE",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "workshop_name": "Grace Hopper",
            
        
    
        
        
            
                "workshop_contact": "Grace Hopper",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "finished_at": new Date(Date.now()),
            
        
    
        
        
            
                "odometer_km": 6,
            
        
    
        
        
            
                "cost_amount": 1.85,
            
        
    
        
        
            
                "currency": "BGN",
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "TIRES",
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "workshop_name": "Marie Curie",
            
        
    
        
        
            
                "workshop_contact": "Ada Lovelace",
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "finished_at": new Date(Date.now()),
            
        
    
        
        
            
                "odometer_km": 5,
            
        
    
        
        
            
                "cost_amount": 0.73,
            
        
    
        
        
            
                "currency": "PLN",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
    },
    
];



const VehicleInsurancesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "FORWARDER_LIABILITY",
            
        
    
        
        
            
                "provider": "Grace Hopper",
            
        
    
        
        
            
                "policy_number": "Marie Curie",
            
        
    
        
        
            
                "broker": "Ada Lovelace",
            
        
    
        
        
            
                "coverage_amount": 3.32,
            
        
    
        
        
            
                "currency": "BGN",
            
        
    
        
        
            
                "valid_from": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "CMR",
            
        
    
        
        
            
                "provider": "Alan Turing",
            
        
    
        
        
            
                "policy_number": "Marie Curie",
            
        
    
        
        
            
                "broker": "Grace Hopper",
            
        
    
        
        
            
                "coverage_amount": 8.27,
            
        
    
        
        
            
                "currency": "CZK",
            
        
    
        
        
            
                "valid_from": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "EMPLOYER_LIABILITY",
            
        
    
        
        
            
                "provider": "Grace Hopper",
            
        
    
        
        
            
                "policy_number": "Grace Hopper",
            
        
    
        
        
            
                "broker": "Marie Curie",
            
        
    
        
        
            
                "coverage_amount": 1.9,
            
        
    
        
        
            
                "currency": "EUR",
            
        
    
        
        
            
                "valid_from": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "LEGAL_PROTECTION",
            
        
    
        
        
            
                "provider": "Marie Curie",
            
        
    
        
        
            
                "policy_number": "Grace Hopper",
            
        
    
        
        
            
                "broker": "Grace Hopper",
            
        
    
        
        
            
                "coverage_amount": 7.8,
            
        
    
        
        
            
                "currency": "CZK",
            
        
    
        
        
            
                "valid_from": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
        
        
            
                "is_active": true,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "LEGAL_PROTECTION",
            
        
    
        
        
            
                "provider": "Alan Turing",
            
        
    
        
        
            
                "policy_number": "Ada Lovelace",
            
        
    
        
        
            
                "broker": "Grace Hopper",
            
        
    
        
        
            
                "coverage_amount": 4.12,
            
        
    
        
        
            
                "currency": "PLN",
            
        
    
        
        
            
                "valid_from": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
        
        
            
                "is_active": false,
            
        
    
    },
    
];



const VehicleDocumentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "UVV_REPORT",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "CMR_EQUIPMENT_LIST",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "TACHOGRAPH_CERT",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "CMR_EQUIPMENT_LIST",
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "REGISTRATION_CERT_PART_2",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const VehicleDocumentVersionsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "version_no": 9,
            
        
    
        
        
            
                "is_current": true,
            
        
    
        
        
            
                "number": "Ada Lovelace",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "version_no": 8,
            
        
    
        
        
            
                "is_current": true,
            
        
    
        
        
            
                "number": "Ada Lovelace",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "version_no": 2,
            
        
    
        
        
            
                "is_current": true,
            
        
    
        
        
            
                "number": "Alan Turing",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "version_no": 5,
            
        
    
        
        
            
                "is_current": true,
            
        
    
        
        
            
                "number": "Alan Turing",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "version_no": 4,
            
        
    
        
        
            
                "is_current": false,
            
        
    
        
        
            
                "number": "Alan Turing",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "expires_at": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
    },
    
];



const DriverVehicleAssignmentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "assigned_from": new Date(Date.now()),
            
        
    
        
        
            
                "assigned_to": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "assigned_from": new Date(Date.now()),
            
        
    
        
        
            
                "assigned_to": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "assigned_from": new Date(Date.now()),
            
        
    
        
        
            
                "assigned_to": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "assigned_from": new Date(Date.now()),
            
        
    
        
        
            
                "assigned_to": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "assigned_from": new Date(Date.now()),
            
        
    
        
        
            
                "assigned_to": new Date(Date.now()),
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
    },
    
];



const OrdersData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "order_no": "Grace Hopper",
            
        
    
        
        
            
                "reference": "Grace Hopper",
            
        
    
        
        
            
                "status": "IN_PROGRESS",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
        
        
            
                "currency": "RON",
            
        
    
        
        
            
                "agreed_price": 8.66,
            
        
    
        
        
            
                "payment_terms_days": 4,
            
        
    
        
        
            
                "planned_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "planned_end_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "order_no": "Grace Hopper",
            
        
    
        
        
            
                "reference": "Marie Curie",
            
        
    
        
        
            
                "status": "CANCELLED",
            
        
    
        
        
            
                "title": "Grace Hopper",
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
        
        
            
                "currency": "OTHER",
            
        
    
        
        
            
                "agreed_price": 7.12,
            
        
    
        
        
            
                "payment_terms_days": 8,
            
        
    
        
        
            
                "planned_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "planned_end_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "order_no": "Ada Lovelace",
            
        
    
        
        
            
                "reference": "Alan Turing",
            
        
    
        
        
            
                "status": "CONFIRMED",
            
        
    
        
        
            
                "title": "Marie Curie",
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
        
        
            
                "currency": "GBP",
            
        
    
        
        
            
                "agreed_price": 2.76,
            
        
    
        
        
            
                "payment_terms_days": 2,
            
        
    
        
        
            
                "planned_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "planned_end_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "order_no": "Alan Turing",
            
        
    
        
        
            
                "reference": "Ada Lovelace",
            
        
    
        
        
            
                "status": "DRAFT",
            
        
    
        
        
            
                "title": "Alan Turing",
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
        
        
            
                "currency": "GBP",
            
        
    
        
        
            
                "agreed_price": 8.4,
            
        
    
        
        
            
                "payment_terms_days": 3,
            
        
    
        
        
            
                "planned_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "planned_end_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "order_no": "Alan Turing",
            
        
    
        
        
            
                "reference": "Grace Hopper",
            
        
    
        
        
            
                "status": "CANCELLED",
            
        
    
        
        
            
                "title": "Ada Lovelace",
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                "currency": "OTHER",
            
        
    
        
        
            
                "agreed_price": 6.24,
            
        
    
        
        
            
                "payment_terms_days": 8,
            
        
    
        
        
            
                "planned_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "planned_end_at": new Date(Date.now()),
            
        
    
    },
    
];



const LoadsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "CANCELLED",
            
        
    
        
        
            
                "load_no": "Grace Hopper",
            
        
    
        
        
            
                "reference": "Marie Curie",
            
        
    
        
        
            
                "equipment": "OTHER",
            
        
    
        
        
            
                "cargo_description": "Alan Turing",
            
        
    
        
        
            
                "weight_kg": 6,
            
        
    
        
        
            
                "volume_m3": 2.49,
            
        
    
        
        
            
                "pallets": 8,
            
        
    
        
        
            
                "pieces": 1,
            
        
    
        
        
            
                "temperature_min_c": 1.57,
            
        
    
        
        
            
                "temperature_max_c": 1.06,
            
        
    
        
        
            
                "adr_required": false,
            
        
    
        
        
            
                "cmr_number": "Alan Turing",
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "ASSIGNED",
            
        
    
        
        
            
                "load_no": "Grace Hopper",
            
        
    
        
        
            
                "reference": "Ada Lovelace",
            
        
    
        
        
            
                "equipment": "LIFTGATE",
            
        
    
        
        
            
                "cargo_description": "Alan Turing",
            
        
    
        
        
            
                "weight_kg": 3,
            
        
    
        
        
            
                "volume_m3": 7.84,
            
        
    
        
        
            
                "pallets": 6,
            
        
    
        
        
            
                "pieces": 9,
            
        
    
        
        
            
                "temperature_min_c": 0.76,
            
        
    
        
        
            
                "temperature_max_c": 8.63,
            
        
    
        
        
            
                "adr_required": false,
            
        
    
        
        
            
                "cmr_number": "Ada Lovelace",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "PLANNED",
            
        
    
        
        
            
                "load_no": "Marie Curie",
            
        
    
        
        
            
                "reference": "Ada Lovelace",
            
        
    
        
        
            
                "equipment": "FRIGO",
            
        
    
        
        
            
                "cargo_description": "Ada Lovelace",
            
        
    
        
        
            
                "weight_kg": 3,
            
        
    
        
        
            
                "volume_m3": 9.78,
            
        
    
        
        
            
                "pallets": 5,
            
        
    
        
        
            
                "pieces": 7,
            
        
    
        
        
            
                "temperature_min_c": 2.28,
            
        
    
        
        
            
                "temperature_max_c": 5.51,
            
        
    
        
        
            
                "adr_required": true,
            
        
    
        
        
            
                "cmr_number": "Ada Lovelace",
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "PLANNED",
            
        
    
        
        
            
                "load_no": "Marie Curie",
            
        
    
        
        
            
                "reference": "Marie Curie",
            
        
    
        
        
            
                "equipment": "FRIGO",
            
        
    
        
        
            
                "cargo_description": "Ada Lovelace",
            
        
    
        
        
            
                "weight_kg": 1,
            
        
    
        
        
            
                "volume_m3": 1.94,
            
        
    
        
        
            
                "pallets": 5,
            
        
    
        
        
            
                "pieces": 5,
            
        
    
        
        
            
                "temperature_min_c": 3.08,
            
        
    
        
        
            
                "temperature_max_c": 9.98,
            
        
    
        
        
            
                "adr_required": false,
            
        
    
        
        
            
                "cmr_number": "Grace Hopper",
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "DELIVERED",
            
        
    
        
        
            
                "load_no": "Grace Hopper",
            
        
    
        
        
            
                "reference": "Marie Curie",
            
        
    
        
        
            
                "equipment": "LIFTGATE",
            
        
    
        
        
            
                "cargo_description": "Marie Curie",
            
        
    
        
        
            
                "weight_kg": 7,
            
        
    
        
        
            
                "volume_m3": 3.44,
            
        
    
        
        
            
                "pallets": 8,
            
        
    
        
        
            
                "pieces": 5,
            
        
    
        
        
            
                "temperature_min_c": 0.87,
            
        
    
        
        
            
                "temperature_max_c": 5.64,
            
        
    
        
        
            
                "adr_required": true,
            
        
    
        
        
            
                "cmr_number": "Ada Lovelace",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
    },
    
];



const LoadStopsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "BORDER",
            
        
    
        
        
            
                "status": "DEPARTED",
            
        
    
        
        
            
                "sequence": 6,
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "address_line1": "Alan Turing",
            
        
    
        
        
            
                "address_line2": "Grace Hopper",
            
        
    
        
        
            
                "postal_code": "Grace Hopper",
            
        
    
        
        
            
                "city": "Grace Hopper",
            
        
    
        
        
            
                "state": "Grace Hopper",
            
        
    
        
        
            
                "country_code": "Ada Lovelace",
            
        
    
        
        
            
                "window_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "window_end_at": new Date(Date.now()),
            
        
    
        
        
            
                "planned_at": new Date(Date.now()),
            
        
    
        
        
            
                "arrived_at": new Date(Date.now()),
            
        
    
        
        
            
                "departed_at": new Date(Date.now()),
            
        
    
        
        
            
                "contact_name": "Alan Turing",
            
        
    
        
        
            
                "contact_phone": "Grace Hopper",
            
        
    
        
        
            
                "contact_email": "Marie Curie",
            
        
    
        
        
            
                "instructions": "Marie Curie",
            
        
    
        
        
            
                "reference_no": "Ada Lovelace",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "DEPOT",
            
        
    
        
        
            
                "status": "PLANNED",
            
        
    
        
        
            
                "sequence": 6,
            
        
    
        
        
            
                "name": "Alan Turing",
            
        
    
        
        
            
                "address_line1": "Ada Lovelace",
            
        
    
        
        
            
                "address_line2": "Ada Lovelace",
            
        
    
        
        
            
                "postal_code": "Ada Lovelace",
            
        
    
        
        
            
                "city": "Alan Turing",
            
        
    
        
        
            
                "state": "Alan Turing",
            
        
    
        
        
            
                "country_code": "Ada Lovelace",
            
        
    
        
        
            
                "window_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "window_end_at": new Date(Date.now()),
            
        
    
        
        
            
                "planned_at": new Date(Date.now()),
            
        
    
        
        
            
                "arrived_at": new Date(Date.now()),
            
        
    
        
        
            
                "departed_at": new Date(Date.now()),
            
        
    
        
        
            
                "contact_name": "Grace Hopper",
            
        
    
        
        
            
                "contact_phone": "Marie Curie",
            
        
    
        
        
            
                "contact_email": "Grace Hopper",
            
        
    
        
        
            
                "instructions": "Grace Hopper",
            
        
    
        
        
            
                "reference_no": "Alan Turing",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "WAYPOINT",
            
        
    
        
        
            
                "status": "DELIVERED",
            
        
    
        
        
            
                "sequence": 4,
            
        
    
        
        
            
                "name": "Ada Lovelace",
            
        
    
        
        
            
                "address_line1": "Alan Turing",
            
        
    
        
        
            
                "address_line2": "Grace Hopper",
            
        
    
        
        
            
                "postal_code": "Alan Turing",
            
        
    
        
        
            
                "city": "Ada Lovelace",
            
        
    
        
        
            
                "state": "Alan Turing",
            
        
    
        
        
            
                "country_code": "Marie Curie",
            
        
    
        
        
            
                "window_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "window_end_at": new Date(Date.now()),
            
        
    
        
        
            
                "planned_at": new Date(Date.now()),
            
        
    
        
        
            
                "arrived_at": new Date(Date.now()),
            
        
    
        
        
            
                "departed_at": new Date(Date.now()),
            
        
    
        
        
            
                "contact_name": "Marie Curie",
            
        
    
        
        
            
                "contact_phone": "Alan Turing",
            
        
    
        
        
            
                "contact_email": "Ada Lovelace",
            
        
    
        
        
            
                "instructions": "Grace Hopper",
            
        
    
        
        
            
                "reference_no": "Alan Turing",
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "OTHER",
            
        
    
        
        
            
                "status": "LOADED",
            
        
    
        
        
            
                "sequence": 9,
            
        
    
        
        
            
                "name": "Marie Curie",
            
        
    
        
        
            
                "address_line1": "Ada Lovelace",
            
        
    
        
        
            
                "address_line2": "Marie Curie",
            
        
    
        
        
            
                "postal_code": "Alan Turing",
            
        
    
        
        
            
                "city": "Ada Lovelace",
            
        
    
        
        
            
                "state": "Marie Curie",
            
        
    
        
        
            
                "country_code": "Grace Hopper",
            
        
    
        
        
            
                "window_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "window_end_at": new Date(Date.now()),
            
        
    
        
        
            
                "planned_at": new Date(Date.now()),
            
        
    
        
        
            
                "arrived_at": new Date(Date.now()),
            
        
    
        
        
            
                "departed_at": new Date(Date.now()),
            
        
    
        
        
            
                "contact_name": "Ada Lovelace",
            
        
    
        
        
            
                "contact_phone": "Alan Turing",
            
        
    
        
        
            
                "contact_email": "Ada Lovelace",
            
        
    
        
        
            
                "instructions": "Marie Curie",
            
        
    
        
        
            
                "reference_no": "Ada Lovelace",
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "PICKUP",
            
        
    
        
        
            
                "status": "PLANNED",
            
        
    
        
        
            
                "sequence": 8,
            
        
    
        
        
            
                "name": "Grace Hopper",
            
        
    
        
        
            
                "address_line1": "Ada Lovelace",
            
        
    
        
        
            
                "address_line2": "Grace Hopper",
            
        
    
        
        
            
                "postal_code": "Ada Lovelace",
            
        
    
        
        
            
                "city": "Grace Hopper",
            
        
    
        
        
            
                "state": "Alan Turing",
            
        
    
        
        
            
                "country_code": "Alan Turing",
            
        
    
        
        
            
                "window_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "window_end_at": new Date(Date.now()),
            
        
    
        
        
            
                "planned_at": new Date(Date.now()),
            
        
    
        
        
            
                "arrived_at": new Date(Date.now()),
            
        
    
        
        
            
                "departed_at": new Date(Date.now()),
            
        
    
        
        
            
                "contact_name": "Grace Hopper",
            
        
    
        
        
            
                "contact_phone": "Marie Curie",
            
        
    
        
        
            
                "contact_email": "Alan Turing",
            
        
    
        
        
            
                "instructions": "Grace Hopper",
            
        
    
        
        
            
                "reference_no": "Marie Curie",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
    },
    
];



const TripsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "trip_no": "Grace Hopper",
            
        
    
        
        
            
                "status": "PLANNED",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "planned_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "planned_end_at": new Date(Date.now()),
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "finished_at": new Date(Date.now()),
            
        
    
        
        
            
                "start_odometer_km": 4,
            
        
    
        
        
            
                "end_odometer_km": 4,
            
        
    
        
        
            
                "distance_km": 1,
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "trip_no": "Grace Hopper",
            
        
    
        
        
            
                "status": "PLANNED",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "planned_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "planned_end_at": new Date(Date.now()),
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "finished_at": new Date(Date.now()),
            
        
    
        
        
            
                "start_odometer_km": 7,
            
        
    
        
        
            
                "end_odometer_km": 7,
            
        
    
        
        
            
                "distance_km": 8,
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "trip_no": "Ada Lovelace",
            
        
    
        
        
            
                "status": "COMPLETED",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "planned_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "planned_end_at": new Date(Date.now()),
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "finished_at": new Date(Date.now()),
            
        
    
        
        
            
                "start_odometer_km": 3,
            
        
    
        
        
            
                "end_odometer_km": 9,
            
        
    
        
        
            
                "distance_km": 2,
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "trip_no": "Ada Lovelace",
            
        
    
        
        
            
                "status": "CANCELLED",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "planned_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "planned_end_at": new Date(Date.now()),
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "finished_at": new Date(Date.now()),
            
        
    
        
        
            
                "start_odometer_km": 5,
            
        
    
        
        
            
                "end_odometer_km": 9,
            
        
    
        
        
            
                "distance_km": 5,
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "trip_no": "Alan Turing",
            
        
    
        
        
            
                "status": "DISPATCHED",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "planned_start_at": new Date(Date.now()),
            
        
    
        
        
            
                "planned_end_at": new Date(Date.now()),
            
        
    
        
        
            
                "started_at": new Date(Date.now()),
            
        
    
        
        
            
                "finished_at": new Date(Date.now()),
            
        
    
        
        
            
                "start_odometer_km": 5,
            
        
    
        
        
            
                "end_odometer_km": 1,
            
        
    
        
        
            
                "distance_km": 7,
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
    },
    
];



const TripLoadsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sequence": 1,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sequence": 8,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sequence": 6,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sequence": 2,
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "sequence": 7,
            
        
    
    },
    
];



const PodFilesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "DAMAGE_REPORT",
            
        
    
        
        
            
                "provider": "GCS",
            
        
    
        
        
            
                "file_key": "Alan Turing",
            
        
    
        
        
            
                "file_name": "Marie Curie",
            
        
    
        
        
            
                "mime_type": "Ada Lovelace",
            
        
    
        
        
            
                "size_bytes": 7,
            
        
    
        
        
            
                "file_url": "Marie Curie",
            
        
    
        
        
            
                "checksum_sha256": "Marie Curie",
            
        
    
        
        
            
                "uploaded_at": new Date(Date.now()),
            
        
    
        
        
            
                "uploaded_by": "Alan Turing",
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "DELIVERY_NOTE",
            
        
    
        
        
            
                "provider": "AZURE_BLOB",
            
        
    
        
        
            
                "file_key": "Marie Curie",
            
        
    
        
        
            
                "file_name": "Marie Curie",
            
        
    
        
        
            
                "mime_type": "Ada Lovelace",
            
        
    
        
        
            
                "size_bytes": 1,
            
        
    
        
        
            
                "file_url": "Grace Hopper",
            
        
    
        
        
            
                "checksum_sha256": "Grace Hopper",
            
        
    
        
        
            
                "uploaded_at": new Date(Date.now()),
            
        
    
        
        
            
                "uploaded_by": "Ada Lovelace",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "DELIVERY_NOTE",
            
        
    
        
        
            
                "provider": "S3",
            
        
    
        
        
            
                "file_key": "Alan Turing",
            
        
    
        
        
            
                "file_name": "Ada Lovelace",
            
        
    
        
        
            
                "mime_type": "Ada Lovelace",
            
        
    
        
        
            
                "size_bytes": 5,
            
        
    
        
        
            
                "file_url": "Ada Lovelace",
            
        
    
        
        
            
                "checksum_sha256": "Alan Turing",
            
        
    
        
        
            
                "uploaded_at": new Date(Date.now()),
            
        
    
        
        
            
                "uploaded_by": "Grace Hopper",
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "DAMAGE_REPORT",
            
        
    
        
        
            
                "provider": "AZURE_BLOB",
            
        
    
        
        
            
                "file_key": "Alan Turing",
            
        
    
        
        
            
                "file_name": "Alan Turing",
            
        
    
        
        
            
                "mime_type": "Ada Lovelace",
            
        
    
        
        
            
                "size_bytes": 2,
            
        
    
        
        
            
                "file_url": "Ada Lovelace",
            
        
    
        
        
            
                "checksum_sha256": "Ada Lovelace",
            
        
    
        
        
            
                "uploaded_at": new Date(Date.now()),
            
        
    
        
        
            
                "uploaded_by": "Ada Lovelace",
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "POD_SIGNED",
            
        
    
        
        
            
                "provider": "AZURE_BLOB",
            
        
    
        
        
            
                "file_key": "Marie Curie",
            
        
    
        
        
            
                "file_name": "Grace Hopper",
            
        
    
        
        
            
                "mime_type": "Ada Lovelace",
            
        
    
        
        
            
                "size_bytes": 5,
            
        
    
        
        
            
                "file_url": "Alan Turing",
            
        
    
        
        
            
                "checksum_sha256": "Marie Curie",
            
        
    
        
        
            
                "uploaded_at": new Date(Date.now()),
            
        
    
        
        
            
                "uploaded_by": "Ada Lovelace",
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
    },
    
];



const InvoicesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "CANCELLED",
            
        
    
        
        
            
                "invoice_no": "Grace Hopper",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "due_at": new Date(Date.now()),
            
        
    
        
        
            
                "currency": "OTHER",
            
        
    
        
        
            
                "subtotal": 7.29,
            
        
    
        
        
            
                "vat_rate": 8.33,
            
        
    
        
        
            
                "vat_amount": 7.67,
            
        
    
        
        
            
                "total": 2.06,
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "PAID",
            
        
    
        
        
            
                "invoice_no": "Marie Curie",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "due_at": new Date(Date.now()),
            
        
    
        
        
            
                "currency": "RON",
            
        
    
        
        
            
                "subtotal": 0.25,
            
        
    
        
        
            
                "vat_rate": 8.17,
            
        
    
        
        
            
                "vat_amount": 3.25,
            
        
    
        
        
            
                "total": 7.29,
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "ISSUED",
            
        
    
        
        
            
                "invoice_no": "Marie Curie",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "due_at": new Date(Date.now()),
            
        
    
        
        
            
                "currency": "EUR",
            
        
    
        
        
            
                "subtotal": 1.11,
            
        
    
        
        
            
                "vat_rate": 4.6,
            
        
    
        
        
            
                "vat_amount": 0.26,
            
        
    
        
        
            
                "total": 4.55,
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "OVERDUE",
            
        
    
        
        
            
                "invoice_no": "Marie Curie",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "due_at": new Date(Date.now()),
            
        
    
        
        
            
                "currency": "GBP",
            
        
    
        
        
            
                "subtotal": 2.39,
            
        
    
        
        
            
                "vat_rate": 2.57,
            
        
    
        
        
            
                "vat_amount": 7.07,
            
        
    
        
        
            
                "total": 4.68,
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "status": "CANCELLED",
            
        
    
        
        
            
                "invoice_no": "Grace Hopper",
            
        
    
        
        
            
                "issued_at": new Date(Date.now()),
            
        
    
        
        
            
                "due_at": new Date(Date.now()),
            
        
    
        
        
            
                "currency": "CZK",
            
        
    
        
        
            
                "subtotal": 5.2,
            
        
    
        
        
            
                "vat_rate": 0.69,
            
        
    
        
        
            
                "vat_amount": 4.96,
            
        
    
        
        
            
                "total": 7.7,
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
    },
    
];



const InvoiceLinesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "FUEL_SURCHARGE",
            
        
    
        
        
            
                "description": "Ada Lovelace",
            
        
    
        
        
            
                "quantity": 5.73,
            
        
    
        
        
            
                "unit_price": 5.72,
            
        
    
        
        
            
                "amount": 3.48,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "OTHER",
            
        
    
        
        
            
                "description": "Alan Turing",
            
        
    
        
        
            
                "quantity": 4.71,
            
        
    
        
        
            
                "unit_price": 7.79,
            
        
    
        
        
            
                "amount": 0.58,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "EXTRA_STOP",
            
        
    
        
        
            
                "description": "Marie Curie",
            
        
    
        
        
            
                "quantity": 5.78,
            
        
    
        
        
            
                "unit_price": 9.41,
            
        
    
        
        
            
                "amount": 5.26,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "EXTRA_STOP",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "quantity": 9.17,
            
        
    
        
        
            
                "unit_price": 8.63,
            
        
    
        
        
            
                "amount": 5.12,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "type": "FREIGHT",
            
        
    
        
        
            
                "description": "Grace Hopper",
            
        
    
        
        
            
                "quantity": 9.41,
            
        
    
        
        
            
                "unit_price": 8.73,
            
        
    
        
        
            
                "amount": 7.33,
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const PaymentsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "amount": 4.6,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "method": "CARD",
            
        
    
        
        
            
                "paid_at": new Date(Date.now()),
            
        
    
        
        
            
                "reference": "Ada Lovelace",
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "amount": 1.03,
            
        
    
        
        
            
                "currency": "PLN",
            
        
    
        
        
            
                "method": "CARD",
            
        
    
        
        
            
                "paid_at": new Date(Date.now()),
            
        
    
        
        
            
                "reference": "Marie Curie",
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "amount": 5.68,
            
        
    
        
        
            
                "currency": "EUR",
            
        
    
        
        
            
                "method": "CASH",
            
        
    
        
        
            
                "paid_at": new Date(Date.now()),
            
        
    
        
        
            
                "reference": "Alan Turing",
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "amount": 5.34,
            
        
    
        
        
            
                "currency": "GBP",
            
        
    
        
        
            
                "method": "OTHER",
            
        
    
        
        
            
                "paid_at": new Date(Date.now()),
            
        
    
        
        
            
                "reference": "Grace Hopper",
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "amount": 6.8,
            
        
    
        
        
            
                "currency": "USD",
            
        
    
        
        
            
                "method": "BANK_TRANSFER",
            
        
    
        
        
            
                "paid_at": new Date(Date.now()),
            
        
    
        
        
            
                "reference": "Ada Lovelace",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
    },
    
];



const CostItemsData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "category": "PARKING",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                "amount": 5.37,
            
        
    
        
        
            
                "currency": "RON",
            
        
    
        
        
            
                "vendor": "Ada Lovelace",
            
        
    
        
        
            
                "reference": "Marie Curie",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "category": "FUEL",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                "amount": 8.49,
            
        
    
        
        
            
                "currency": "PLN",
            
        
    
        
        
            
                "vendor": "Marie Curie",
            
        
    
        
        
            
                "reference": "Ada Lovelace",
            
        
    
        
        
            
                "notes": "Grace Hopper",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "category": "WASH",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                "amount": 6.08,
            
        
    
        
        
            
                "currency": "CZK",
            
        
    
        
        
            
                "vendor": "Grace Hopper",
            
        
    
        
        
            
                "reference": "Ada Lovelace",
            
        
    
        
        
            
                "notes": "Ada Lovelace",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "category": "TOLL",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                "amount": 6.64,
            
        
    
        
        
            
                "currency": "CZK",
            
        
    
        
        
            
                "vendor": "Ada Lovelace",
            
        
    
        
        
            
                "reference": "Ada Lovelace",
            
        
    
        
        
            
                "notes": "Marie Curie",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "category": "FINES",
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "occurred_at": new Date(Date.now()),
            
        
    
        
        
            
                "amount": 0.9,
            
        
    
        
        
            
                "currency": "RON",
            
        
    
        
        
            
                "vendor": "Ada Lovelace",
            
        
    
        
        
            
                "reference": "Alan Turing",
            
        
    
        
        
            
                "notes": "Alan Turing",
            
        
    
        
        
            
                // type code here for "files" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                // type code here for "relation_one" field
            
        
    
    },
    
];



const CostFilesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "provider": "S3",
            
        
    
        
        
            
                "file_key": "Marie Curie",
            
        
    
        
        
            
                "file_name": "Ada Lovelace",
            
        
    
        
        
            
                "mime_type": "Alan Turing",
            
        
    
        
        
            
                "size_bytes": 9,
            
        
    
        
        
            
                "file_url": "Ada Lovelace",
            
        
    
        
        
            
                "checksum_sha256": "Grace Hopper",
            
        
    
        
        
            
                "uploaded_at": new Date(Date.now()),
            
        
    
        
        
            
                "uploaded_by": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "provider": "AZURE_BLOB",
            
        
    
        
        
            
                "file_key": "Ada Lovelace",
            
        
    
        
        
            
                "file_name": "Marie Curie",
            
        
    
        
        
            
                "mime_type": "Grace Hopper",
            
        
    
        
        
            
                "size_bytes": 8,
            
        
    
        
        
            
                "file_url": "Ada Lovelace",
            
        
    
        
        
            
                "checksum_sha256": "Ada Lovelace",
            
        
    
        
        
            
                "uploaded_at": new Date(Date.now()),
            
        
    
        
        
            
                "uploaded_by": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "provider": "AZURE_BLOB",
            
        
    
        
        
            
                "file_key": "Marie Curie",
            
        
    
        
        
            
                "file_name": "Marie Curie",
            
        
    
        
        
            
                "mime_type": "Grace Hopper",
            
        
    
        
        
            
                "size_bytes": 8,
            
        
    
        
        
            
                "file_url": "Grace Hopper",
            
        
    
        
        
            
                "checksum_sha256": "Marie Curie",
            
        
    
        
        
            
                "uploaded_at": new Date(Date.now()),
            
        
    
        
        
            
                "uploaded_by": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "provider": "S3",
            
        
    
        
        
            
                "file_key": "Grace Hopper",
            
        
    
        
        
            
                "file_name": "Grace Hopper",
            
        
    
        
        
            
                "mime_type": "Grace Hopper",
            
        
    
        
        
            
                "size_bytes": 5,
            
        
    
        
        
            
                "file_url": "Grace Hopper",
            
        
    
        
        
            
                "checksum_sha256": "Grace Hopper",
            
        
    
        
        
            
                "uploaded_at": new Date(Date.now()),
            
        
    
        
        
            
                "uploaded_by": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "provider": "S3",
            
        
    
        
        
            
                "file_key": "Ada Lovelace",
            
        
    
        
        
            
                "file_name": "Alan Turing",
            
        
    
        
        
            
                "mime_type": "Ada Lovelace",
            
        
    
        
        
            
                "size_bytes": 6,
            
        
    
        
        
            
                "file_url": "Marie Curie",
            
        
    
        
        
            
                "checksum_sha256": "Alan Turing",
            
        
    
        
        
            
                "uploaded_at": new Date(Date.now()),
            
        
    
        
        
            
                "uploaded_by": "Alan Turing",
            
        
    
    },
    
];



const FuelEntriesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "liters": 9.63,
            
        
    
        
        
            
                "unit": "KWH",
            
        
    
        
        
            
                "price_per_unit": 0.54,
            
        
    
        
        
            
                "odometer_km": 8,
            
        
    
        
        
            
                "station_name": "Ada Lovelace",
            
        
    
        
        
            
                "station_country_code": "Ada Lovelace",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "liters": 1.01,
            
        
    
        
        
            
                "unit": "KWH",
            
        
    
        
        
            
                "price_per_unit": 9.95,
            
        
    
        
        
            
                "odometer_km": 9,
            
        
    
        
        
            
                "station_name": "Marie Curie",
            
        
    
        
        
            
                "station_country_code": "Grace Hopper",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "liters": 1.34,
            
        
    
        
        
            
                "unit": "GALLON",
            
        
    
        
        
            
                "price_per_unit": 0.97,
            
        
    
        
        
            
                "odometer_km": 6,
            
        
    
        
        
            
                "station_name": "Ada Lovelace",
            
        
    
        
        
            
                "station_country_code": "Marie Curie",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "liters": 8.46,
            
        
    
        
        
            
                "unit": "GALLON",
            
        
    
        
        
            
                "price_per_unit": 5.22,
            
        
    
        
        
            
                "odometer_km": 7,
            
        
    
        
        
            
                "station_name": "Ada Lovelace",
            
        
    
        
        
            
                "station_country_code": "Alan Turing",
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "liters": 8.63,
            
        
    
        
        
            
                "unit": "GALLON",
            
        
    
        
        
            
                "price_per_unit": 6.27,
            
        
    
        
        
            
                "odometer_km": 4,
            
        
    
        
        
            
                "station_name": "Grace Hopper",
            
        
    
        
        
            
                "station_country_code": "Alan Turing",
            
        
    
    },
    
];



const TollEntriesData = [
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "country": "BE",
            
        
    
        
        
            
                "provider": "TOLL_COLLECT",
            
        
    
        
        
            
                "toll_ref": "Grace Hopper",
            
        
    
        
        
            
                "route_hint": "Grace Hopper",
            
        
    
        
        
            
                "entry_at": new Date(Date.now()),
            
        
    
        
        
            
                "exit_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "country": "PL",
            
        
    
        
        
            
                "provider": "TOLL_COLLECT",
            
        
    
        
        
            
                "toll_ref": "Grace Hopper",
            
        
    
        
        
            
                "route_hint": "Grace Hopper",
            
        
    
        
        
            
                "entry_at": new Date(Date.now()),
            
        
    
        
        
            
                "exit_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "country": "NO",
            
        
    
        
        
            
                "provider": "TOLL_COLLECT",
            
        
    
        
        
            
                "toll_ref": "Grace Hopper",
            
        
    
        
        
            
                "route_hint": "Ada Lovelace",
            
        
    
        
        
            
                "entry_at": new Date(Date.now()),
            
        
    
        
        
            
                "exit_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "country": "NL",
            
        
    
        
        
            
                "provider": "OTHER",
            
        
    
        
        
            
                "toll_ref": "Grace Hopper",
            
        
    
        
        
            
                "route_hint": "Marie Curie",
            
        
    
        
        
            
                "entry_at": new Date(Date.now()),
            
        
    
        
        
            
                "exit_at": new Date(Date.now()),
            
        
    
    },
    
    {
    
        
        
            
                // type code here for "relation_one" field
            
        
    
        
        
            
                "country": "OTHER",
            
        
    
        
        
            
                "provider": "OTHER",
            
        
    
        
        
            
                "toll_ref": "Grace Hopper",
            
        
    
        
        
            
                "route_hint": "Alan Turing",
            
        
    
        
        
            
                "entry_at": new Date(Date.now()),
            
        
    
        
        
            
                "exit_at": new Date(Date.now()),
            
        
    
    },
    
];




    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            // Similar logic for "relation_many"
        
    

    
    
    
    
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateCompanyLocationWithCompany() {
            
                const relatedCompany0 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const CompanyLocation0 = await CompanyLocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CompanyLocation0?.setCompany)
                {
                    await
                    CompanyLocation0.
                    setCompany(relatedCompany0);
                }
            
                const relatedCompany1 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const CompanyLocation1 = await CompanyLocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CompanyLocation1?.setCompany)
                {
                    await
                    CompanyLocation1.
                    setCompany(relatedCompany1);
                }
            
                const relatedCompany2 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const CompanyLocation2 = await CompanyLocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CompanyLocation2?.setCompany)
                {
                    await
                    CompanyLocation2.
                    setCompany(relatedCompany2);
                }
            
                const relatedCompany3 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const CompanyLocation3 = await CompanyLocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CompanyLocation3?.setCompany)
                {
                    await
                    CompanyLocation3.
                    setCompany(relatedCompany3);
                }
            
                const relatedCompany4 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const CompanyLocation4 = await CompanyLocations.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CompanyLocation4?.setCompany)
                {
                    await
                    CompanyLocation4.
                    setCompany(relatedCompany4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateCompanyContactWithCompany() {
            
                const relatedCompany0 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const CompanyContact0 = await CompanyContacts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CompanyContact0?.setCompany)
                {
                    await
                    CompanyContact0.
                    setCompany(relatedCompany0);
                }
            
                const relatedCompany1 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const CompanyContact1 = await CompanyContacts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CompanyContact1?.setCompany)
                {
                    await
                    CompanyContact1.
                    setCompany(relatedCompany1);
                }
            
                const relatedCompany2 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const CompanyContact2 = await CompanyContacts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CompanyContact2?.setCompany)
                {
                    await
                    CompanyContact2.
                    setCompany(relatedCompany2);
                }
            
                const relatedCompany3 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const CompanyContact3 = await CompanyContacts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CompanyContact3?.setCompany)
                {
                    await
                    CompanyContact3.
                    setCompany(relatedCompany3);
                }
            
                const relatedCompany4 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const CompanyContact4 = await CompanyContacts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CompanyContact4?.setCompany)
                {
                    await
                    CompanyContact4.
                    setCompany(relatedCompany4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateCompanyBankAccountWithCompany() {
            
                const relatedCompany0 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const CompanyBankAccount0 = await CompanyBankAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CompanyBankAccount0?.setCompany)
                {
                    await
                    CompanyBankAccount0.
                    setCompany(relatedCompany0);
                }
            
                const relatedCompany1 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const CompanyBankAccount1 = await CompanyBankAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CompanyBankAccount1?.setCompany)
                {
                    await
                    CompanyBankAccount1.
                    setCompany(relatedCompany1);
                }
            
                const relatedCompany2 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const CompanyBankAccount2 = await CompanyBankAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CompanyBankAccount2?.setCompany)
                {
                    await
                    CompanyBankAccount2.
                    setCompany(relatedCompany2);
                }
            
                const relatedCompany3 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const CompanyBankAccount3 = await CompanyBankAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CompanyBankAccount3?.setCompany)
                {
                    await
                    CompanyBankAccount3.
                    setCompany(relatedCompany3);
                }
            
                const relatedCompany4 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const CompanyBankAccount4 = await CompanyBankAccounts.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CompanyBankAccount4?.setCompany)
                {
                    await
                    CompanyBankAccount4.
                    setCompany(relatedCompany4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateCompanyPermitWithCompany() {
            
                const relatedCompany0 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const CompanyPermit0 = await CompanyPermits.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CompanyPermit0?.setCompany)
                {
                    await
                    CompanyPermit0.
                    setCompany(relatedCompany0);
                }
            
                const relatedCompany1 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const CompanyPermit1 = await CompanyPermits.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CompanyPermit1?.setCompany)
                {
                    await
                    CompanyPermit1.
                    setCompany(relatedCompany1);
                }
            
                const relatedCompany2 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const CompanyPermit2 = await CompanyPermits.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CompanyPermit2?.setCompany)
                {
                    await
                    CompanyPermit2.
                    setCompany(relatedCompany2);
                }
            
                const relatedCompany3 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const CompanyPermit3 = await CompanyPermits.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CompanyPermit3?.setCompany)
                {
                    await
                    CompanyPermit3.
                    setCompany(relatedCompany3);
                }
            
                const relatedCompany4 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const CompanyPermit4 = await CompanyPermits.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CompanyPermit4?.setCompany)
                {
                    await
                    CompanyPermit4.
                    setCompany(relatedCompany4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateCompanyInsuranceWithCompany() {
            
                const relatedCompany0 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const CompanyInsurance0 = await CompanyInsurances.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CompanyInsurance0?.setCompany)
                {
                    await
                    CompanyInsurance0.
                    setCompany(relatedCompany0);
                }
            
                const relatedCompany1 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const CompanyInsurance1 = await CompanyInsurances.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CompanyInsurance1?.setCompany)
                {
                    await
                    CompanyInsurance1.
                    setCompany(relatedCompany1);
                }
            
                const relatedCompany2 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const CompanyInsurance2 = await CompanyInsurances.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CompanyInsurance2?.setCompany)
                {
                    await
                    CompanyInsurance2.
                    setCompany(relatedCompany2);
                }
            
                const relatedCompany3 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const CompanyInsurance3 = await CompanyInsurances.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CompanyInsurance3?.setCompany)
                {
                    await
                    CompanyInsurance3.
                    setCompany(relatedCompany3);
                }
            
                const relatedCompany4 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const CompanyInsurance4 = await CompanyInsurances.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CompanyInsurance4?.setCompany)
                {
                    await
                    CompanyInsurance4.
                    setCompany(relatedCompany4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateCompanyDocumentWithCompany() {
            
                const relatedCompany0 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const CompanyDocument0 = await CompanyDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CompanyDocument0?.setCompany)
                {
                    await
                    CompanyDocument0.
                    setCompany(relatedCompany0);
                }
            
                const relatedCompany1 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const CompanyDocument1 = await CompanyDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CompanyDocument1?.setCompany)
                {
                    await
                    CompanyDocument1.
                    setCompany(relatedCompany1);
                }
            
                const relatedCompany2 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const CompanyDocument2 = await CompanyDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CompanyDocument2?.setCompany)
                {
                    await
                    CompanyDocument2.
                    setCompany(relatedCompany2);
                }
            
                const relatedCompany3 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const CompanyDocument3 = await CompanyDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CompanyDocument3?.setCompany)
                {
                    await
                    CompanyDocument3.
                    setCompany(relatedCompany3);
                }
            
                const relatedCompany4 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const CompanyDocument4 = await CompanyDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CompanyDocument4?.setCompany)
                {
                    await
                    CompanyDocument4.
                    setCompany(relatedCompany4);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateCompanyDocumentWithCurrent_version() {
            
                const relatedCurrent_version0 = await CompanyDocumentVersions.findOne({
                    offset: Math.floor(Math.random() * (await CompanyDocumentVersions.count())),
                });
                const CompanyDocument0 = await CompanyDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CompanyDocument0?.setCurrent_version)
                {
                    await
                    CompanyDocument0.
                    setCurrent_version(relatedCurrent_version0);
                }
            
                const relatedCurrent_version1 = await CompanyDocumentVersions.findOne({
                    offset: Math.floor(Math.random() * (await CompanyDocumentVersions.count())),
                });
                const CompanyDocument1 = await CompanyDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CompanyDocument1?.setCurrent_version)
                {
                    await
                    CompanyDocument1.
                    setCurrent_version(relatedCurrent_version1);
                }
            
                const relatedCurrent_version2 = await CompanyDocumentVersions.findOne({
                    offset: Math.floor(Math.random() * (await CompanyDocumentVersions.count())),
                });
                const CompanyDocument2 = await CompanyDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CompanyDocument2?.setCurrent_version)
                {
                    await
                    CompanyDocument2.
                    setCurrent_version(relatedCurrent_version2);
                }
            
                const relatedCurrent_version3 = await CompanyDocumentVersions.findOne({
                    offset: Math.floor(Math.random() * (await CompanyDocumentVersions.count())),
                });
                const CompanyDocument3 = await CompanyDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CompanyDocument3?.setCurrent_version)
                {
                    await
                    CompanyDocument3.
                    setCurrent_version(relatedCurrent_version3);
                }
            
                const relatedCurrent_version4 = await CompanyDocumentVersions.findOne({
                    offset: Math.floor(Math.random() * (await CompanyDocumentVersions.count())),
                });
                const CompanyDocument4 = await CompanyDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CompanyDocument4?.setCurrent_version)
                {
                    await
                    CompanyDocument4.
                    setCurrent_version(relatedCurrent_version4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateCompanyDocumentVersionWithDocument() {
            
                const relatedDocument0 = await CompanyDocuments.findOne({
                    offset: Math.floor(Math.random() * (await CompanyDocuments.count())),
                });
                const CompanyDocumentVersion0 = await CompanyDocumentVersions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CompanyDocumentVersion0?.setDocument)
                {
                    await
                    CompanyDocumentVersion0.
                    setDocument(relatedDocument0);
                }
            
                const relatedDocument1 = await CompanyDocuments.findOne({
                    offset: Math.floor(Math.random() * (await CompanyDocuments.count())),
                });
                const CompanyDocumentVersion1 = await CompanyDocumentVersions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CompanyDocumentVersion1?.setDocument)
                {
                    await
                    CompanyDocumentVersion1.
                    setDocument(relatedDocument1);
                }
            
                const relatedDocument2 = await CompanyDocuments.findOne({
                    offset: Math.floor(Math.random() * (await CompanyDocuments.count())),
                });
                const CompanyDocumentVersion2 = await CompanyDocumentVersions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CompanyDocumentVersion2?.setDocument)
                {
                    await
                    CompanyDocumentVersion2.
                    setDocument(relatedDocument2);
                }
            
                const relatedDocument3 = await CompanyDocuments.findOne({
                    offset: Math.floor(Math.random() * (await CompanyDocuments.count())),
                });
                const CompanyDocumentVersion3 = await CompanyDocumentVersions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CompanyDocumentVersion3?.setDocument)
                {
                    await
                    CompanyDocumentVersion3.
                    setDocument(relatedDocument3);
                }
            
                const relatedDocument4 = await CompanyDocuments.findOne({
                    offset: Math.floor(Math.random() * (await CompanyDocuments.count())),
                });
                const CompanyDocumentVersion4 = await CompanyDocumentVersions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CompanyDocumentVersion4?.setDocument)
                {
                    await
                    CompanyDocumentVersion4.
                    setDocument(relatedDocument4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateEmployeeWithCompany() {
            
                const relatedCompany0 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Employee0 = await Employees.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Employee0?.setCompany)
                {
                    await
                    Employee0.
                    setCompany(relatedCompany0);
                }
            
                const relatedCompany1 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Employee1 = await Employees.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Employee1?.setCompany)
                {
                    await
                    Employee1.
                    setCompany(relatedCompany1);
                }
            
                const relatedCompany2 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Employee2 = await Employees.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Employee2?.setCompany)
                {
                    await
                    Employee2.
                    setCompany(relatedCompany2);
                }
            
                const relatedCompany3 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Employee3 = await Employees.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Employee3?.setCompany)
                {
                    await
                    Employee3.
                    setCompany(relatedCompany3);
                }
            
                const relatedCompany4 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Employee4 = await Employees.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Employee4?.setCompany)
                {
                    await
                    Employee4.
                    setCompany(relatedCompany4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateEmployeeAssignmentWithEmployee() {
            
                const relatedEmployee0 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const EmployeeAssignment0 = await EmployeeAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (EmployeeAssignment0?.setEmployee)
                {
                    await
                    EmployeeAssignment0.
                    setEmployee(relatedEmployee0);
                }
            
                const relatedEmployee1 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const EmployeeAssignment1 = await EmployeeAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (EmployeeAssignment1?.setEmployee)
                {
                    await
                    EmployeeAssignment1.
                    setEmployee(relatedEmployee1);
                }
            
                const relatedEmployee2 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const EmployeeAssignment2 = await EmployeeAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (EmployeeAssignment2?.setEmployee)
                {
                    await
                    EmployeeAssignment2.
                    setEmployee(relatedEmployee2);
                }
            
                const relatedEmployee3 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const EmployeeAssignment3 = await EmployeeAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (EmployeeAssignment3?.setEmployee)
                {
                    await
                    EmployeeAssignment3.
                    setEmployee(relatedEmployee3);
                }
            
                const relatedEmployee4 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const EmployeeAssignment4 = await EmployeeAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (EmployeeAssignment4?.setEmployee)
                {
                    await
                    EmployeeAssignment4.
                    setEmployee(relatedEmployee4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateEmployeeHrRecordWithEmployee() {
            
                const relatedEmployee0 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const EmployeeHrRecord0 = await EmployeeHrRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (EmployeeHrRecord0?.setEmployee)
                {
                    await
                    EmployeeHrRecord0.
                    setEmployee(relatedEmployee0);
                }
            
                const relatedEmployee1 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const EmployeeHrRecord1 = await EmployeeHrRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (EmployeeHrRecord1?.setEmployee)
                {
                    await
                    EmployeeHrRecord1.
                    setEmployee(relatedEmployee1);
                }
            
                const relatedEmployee2 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const EmployeeHrRecord2 = await EmployeeHrRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (EmployeeHrRecord2?.setEmployee)
                {
                    await
                    EmployeeHrRecord2.
                    setEmployee(relatedEmployee2);
                }
            
                const relatedEmployee3 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const EmployeeHrRecord3 = await EmployeeHrRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (EmployeeHrRecord3?.setEmployee)
                {
                    await
                    EmployeeHrRecord3.
                    setEmployee(relatedEmployee3);
                }
            
                const relatedEmployee4 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const EmployeeHrRecord4 = await EmployeeHrRecords.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (EmployeeHrRecord4?.setEmployee)
                {
                    await
                    EmployeeHrRecord4.
                    setEmployee(relatedEmployee4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateDriverProfileWithEmployee() {
            
                const relatedEmployee0 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const DriverProfile0 = await DriverProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DriverProfile0?.setEmployee)
                {
                    await
                    DriverProfile0.
                    setEmployee(relatedEmployee0);
                }
            
                const relatedEmployee1 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const DriverProfile1 = await DriverProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DriverProfile1?.setEmployee)
                {
                    await
                    DriverProfile1.
                    setEmployee(relatedEmployee1);
                }
            
                const relatedEmployee2 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const DriverProfile2 = await DriverProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DriverProfile2?.setEmployee)
                {
                    await
                    DriverProfile2.
                    setEmployee(relatedEmployee2);
                }
            
                const relatedEmployee3 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const DriverProfile3 = await DriverProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DriverProfile3?.setEmployee)
                {
                    await
                    DriverProfile3.
                    setEmployee(relatedEmployee3);
                }
            
                const relatedEmployee4 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const DriverProfile4 = await DriverProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (DriverProfile4?.setEmployee)
                {
                    await
                    DriverProfile4.
                    setEmployee(relatedEmployee4);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateDriverProfileWithCompliance() {
            
                const relatedCompliance0 = await DriverCompliances.findOne({
                    offset: Math.floor(Math.random() * (await DriverCompliances.count())),
                });
                const DriverProfile0 = await DriverProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DriverProfile0?.setCompliance)
                {
                    await
                    DriverProfile0.
                    setCompliance(relatedCompliance0);
                }
            
                const relatedCompliance1 = await DriverCompliances.findOne({
                    offset: Math.floor(Math.random() * (await DriverCompliances.count())),
                });
                const DriverProfile1 = await DriverProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DriverProfile1?.setCompliance)
                {
                    await
                    DriverProfile1.
                    setCompliance(relatedCompliance1);
                }
            
                const relatedCompliance2 = await DriverCompliances.findOne({
                    offset: Math.floor(Math.random() * (await DriverCompliances.count())),
                });
                const DriverProfile2 = await DriverProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DriverProfile2?.setCompliance)
                {
                    await
                    DriverProfile2.
                    setCompliance(relatedCompliance2);
                }
            
                const relatedCompliance3 = await DriverCompliances.findOne({
                    offset: Math.floor(Math.random() * (await DriverCompliances.count())),
                });
                const DriverProfile3 = await DriverProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DriverProfile3?.setCompliance)
                {
                    await
                    DriverProfile3.
                    setCompliance(relatedCompliance3);
                }
            
                const relatedCompliance4 = await DriverCompliances.findOne({
                    offset: Math.floor(Math.random() * (await DriverCompliances.count())),
                });
                const DriverProfile4 = await DriverProfiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (DriverProfile4?.setCompliance)
                {
                    await
                    DriverProfile4.
                    setCompliance(relatedCompliance4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateDriverComplianceWithDriver_profile() {
            
                const relatedDriver_profile0 = await DriverProfiles.findOne({
                    offset: Math.floor(Math.random() * (await DriverProfiles.count())),
                });
                const DriverCompliance0 = await DriverCompliances.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DriverCompliance0?.setDriver_profile)
                {
                    await
                    DriverCompliance0.
                    setDriver_profile(relatedDriver_profile0);
                }
            
                const relatedDriver_profile1 = await DriverProfiles.findOne({
                    offset: Math.floor(Math.random() * (await DriverProfiles.count())),
                });
                const DriverCompliance1 = await DriverCompliances.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DriverCompliance1?.setDriver_profile)
                {
                    await
                    DriverCompliance1.
                    setDriver_profile(relatedDriver_profile1);
                }
            
                const relatedDriver_profile2 = await DriverProfiles.findOne({
                    offset: Math.floor(Math.random() * (await DriverProfiles.count())),
                });
                const DriverCompliance2 = await DriverCompliances.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DriverCompliance2?.setDriver_profile)
                {
                    await
                    DriverCompliance2.
                    setDriver_profile(relatedDriver_profile2);
                }
            
                const relatedDriver_profile3 = await DriverProfiles.findOne({
                    offset: Math.floor(Math.random() * (await DriverProfiles.count())),
                });
                const DriverCompliance3 = await DriverCompliances.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DriverCompliance3?.setDriver_profile)
                {
                    await
                    DriverCompliance3.
                    setDriver_profile(relatedDriver_profile3);
                }
            
                const relatedDriver_profile4 = await DriverProfiles.findOne({
                    offset: Math.floor(Math.random() * (await DriverProfiles.count())),
                });
                const DriverCompliance4 = await DriverCompliances.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (DriverCompliance4?.setDriver_profile)
                {
                    await
                    DriverCompliance4.
                    setDriver_profile(relatedDriver_profile4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateIncidentWithCompany() {
            
                const relatedCompany0 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Incident0 = await Incidents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Incident0?.setCompany)
                {
                    await
                    Incident0.
                    setCompany(relatedCompany0);
                }
            
                const relatedCompany1 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Incident1 = await Incidents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Incident1?.setCompany)
                {
                    await
                    Incident1.
                    setCompany(relatedCompany1);
                }
            
                const relatedCompany2 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Incident2 = await Incidents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Incident2?.setCompany)
                {
                    await
                    Incident2.
                    setCompany(relatedCompany2);
                }
            
                const relatedCompany3 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Incident3 = await Incidents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Incident3?.setCompany)
                {
                    await
                    Incident3.
                    setCompany(relatedCompany3);
                }
            
                const relatedCompany4 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Incident4 = await Incidents.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Incident4?.setCompany)
                {
                    await
                    Incident4.
                    setCompany(relatedCompany4);
                }
            
        }
        
    
        
            
            async function associateIncidentWithEmployee() {
            
                const relatedEmployee0 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const Incident0 = await Incidents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Incident0?.setEmployee)
                {
                    await
                    Incident0.
                    setEmployee(relatedEmployee0);
                }
            
                const relatedEmployee1 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const Incident1 = await Incidents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Incident1?.setEmployee)
                {
                    await
                    Incident1.
                    setEmployee(relatedEmployee1);
                }
            
                const relatedEmployee2 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const Incident2 = await Incidents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Incident2?.setEmployee)
                {
                    await
                    Incident2.
                    setEmployee(relatedEmployee2);
                }
            
                const relatedEmployee3 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const Incident3 = await Incidents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Incident3?.setEmployee)
                {
                    await
                    Incident3.
                    setEmployee(relatedEmployee3);
                }
            
                const relatedEmployee4 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const Incident4 = await Incidents.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Incident4?.setEmployee)
                {
                    await
                    Incident4.
                    setEmployee(relatedEmployee4);
                }
            
        }
        
    
        
            
            async function associateIncidentWithDriver_profile() {
            
                const relatedDriver_profile0 = await DriverProfiles.findOne({
                    offset: Math.floor(Math.random() * (await DriverProfiles.count())),
                });
                const Incident0 = await Incidents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Incident0?.setDriver_profile)
                {
                    await
                    Incident0.
                    setDriver_profile(relatedDriver_profile0);
                }
            
                const relatedDriver_profile1 = await DriverProfiles.findOne({
                    offset: Math.floor(Math.random() * (await DriverProfiles.count())),
                });
                const Incident1 = await Incidents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Incident1?.setDriver_profile)
                {
                    await
                    Incident1.
                    setDriver_profile(relatedDriver_profile1);
                }
            
                const relatedDriver_profile2 = await DriverProfiles.findOne({
                    offset: Math.floor(Math.random() * (await DriverProfiles.count())),
                });
                const Incident2 = await Incidents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Incident2?.setDriver_profile)
                {
                    await
                    Incident2.
                    setDriver_profile(relatedDriver_profile2);
                }
            
                const relatedDriver_profile3 = await DriverProfiles.findOne({
                    offset: Math.floor(Math.random() * (await DriverProfiles.count())),
                });
                const Incident3 = await Incidents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Incident3?.setDriver_profile)
                {
                    await
                    Incident3.
                    setDriver_profile(relatedDriver_profile3);
                }
            
                const relatedDriver_profile4 = await DriverProfiles.findOne({
                    offset: Math.floor(Math.random() * (await DriverProfiles.count())),
                });
                const Incident4 = await Incidents.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Incident4?.setDriver_profile)
                {
                    await
                    Incident4.
                    setDriver_profile(relatedDriver_profile4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateDocumentWithCompany() {
            
                const relatedCompany0 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Document0 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Document0?.setCompany)
                {
                    await
                    Document0.
                    setCompany(relatedCompany0);
                }
            
                const relatedCompany1 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Document1 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Document1?.setCompany)
                {
                    await
                    Document1.
                    setCompany(relatedCompany1);
                }
            
                const relatedCompany2 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Document2 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Document2?.setCompany)
                {
                    await
                    Document2.
                    setCompany(relatedCompany2);
                }
            
                const relatedCompany3 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Document3 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Document3?.setCompany)
                {
                    await
                    Document3.
                    setCompany(relatedCompany3);
                }
            
                const relatedCompany4 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Document4 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Document4?.setCompany)
                {
                    await
                    Document4.
                    setCompany(relatedCompany4);
                }
            
        }
        
    
        
            
            async function associateDocumentWithEmployee() {
            
                const relatedEmployee0 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const Document0 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Document0?.setEmployee)
                {
                    await
                    Document0.
                    setEmployee(relatedEmployee0);
                }
            
                const relatedEmployee1 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const Document1 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Document1?.setEmployee)
                {
                    await
                    Document1.
                    setEmployee(relatedEmployee1);
                }
            
                const relatedEmployee2 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const Document2 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Document2?.setEmployee)
                {
                    await
                    Document2.
                    setEmployee(relatedEmployee2);
                }
            
                const relatedEmployee3 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const Document3 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Document3?.setEmployee)
                {
                    await
                    Document3.
                    setEmployee(relatedEmployee3);
                }
            
                const relatedEmployee4 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const Document4 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Document4?.setEmployee)
                {
                    await
                    Document4.
                    setEmployee(relatedEmployee4);
                }
            
        }
        
    
        
            
            async function associateDocumentWithDriver_profile() {
            
                const relatedDriver_profile0 = await DriverProfiles.findOne({
                    offset: Math.floor(Math.random() * (await DriverProfiles.count())),
                });
                const Document0 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Document0?.setDriver_profile)
                {
                    await
                    Document0.
                    setDriver_profile(relatedDriver_profile0);
                }
            
                const relatedDriver_profile1 = await DriverProfiles.findOne({
                    offset: Math.floor(Math.random() * (await DriverProfiles.count())),
                });
                const Document1 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Document1?.setDriver_profile)
                {
                    await
                    Document1.
                    setDriver_profile(relatedDriver_profile1);
                }
            
                const relatedDriver_profile2 = await DriverProfiles.findOne({
                    offset: Math.floor(Math.random() * (await DriverProfiles.count())),
                });
                const Document2 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Document2?.setDriver_profile)
                {
                    await
                    Document2.
                    setDriver_profile(relatedDriver_profile2);
                }
            
                const relatedDriver_profile3 = await DriverProfiles.findOne({
                    offset: Math.floor(Math.random() * (await DriverProfiles.count())),
                });
                const Document3 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Document3?.setDriver_profile)
                {
                    await
                    Document3.
                    setDriver_profile(relatedDriver_profile3);
                }
            
                const relatedDriver_profile4 = await DriverProfiles.findOne({
                    offset: Math.floor(Math.random() * (await DriverProfiles.count())),
                });
                const Document4 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Document4?.setDriver_profile)
                {
                    await
                    Document4.
                    setDriver_profile(relatedDriver_profile4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateDocumentWithCurrent_version() {
            
                const relatedCurrent_version0 = await DocumentVersions.findOne({
                    offset: Math.floor(Math.random() * (await DocumentVersions.count())),
                });
                const Document0 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Document0?.setCurrent_version)
                {
                    await
                    Document0.
                    setCurrent_version(relatedCurrent_version0);
                }
            
                const relatedCurrent_version1 = await DocumentVersions.findOne({
                    offset: Math.floor(Math.random() * (await DocumentVersions.count())),
                });
                const Document1 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Document1?.setCurrent_version)
                {
                    await
                    Document1.
                    setCurrent_version(relatedCurrent_version1);
                }
            
                const relatedCurrent_version2 = await DocumentVersions.findOne({
                    offset: Math.floor(Math.random() * (await DocumentVersions.count())),
                });
                const Document2 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Document2?.setCurrent_version)
                {
                    await
                    Document2.
                    setCurrent_version(relatedCurrent_version2);
                }
            
                const relatedCurrent_version3 = await DocumentVersions.findOne({
                    offset: Math.floor(Math.random() * (await DocumentVersions.count())),
                });
                const Document3 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Document3?.setCurrent_version)
                {
                    await
                    Document3.
                    setCurrent_version(relatedCurrent_version3);
                }
            
                const relatedCurrent_version4 = await DocumentVersions.findOne({
                    offset: Math.floor(Math.random() * (await DocumentVersions.count())),
                });
                const Document4 = await Documents.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Document4?.setCurrent_version)
                {
                    await
                    Document4.
                    setCurrent_version(relatedCurrent_version4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateDocumentVersionWithDocument() {
            
                const relatedDocument0 = await Documents.findOne({
                    offset: Math.floor(Math.random() * (await Documents.count())),
                });
                const DocumentVersion0 = await DocumentVersions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DocumentVersion0?.setDocument)
                {
                    await
                    DocumentVersion0.
                    setDocument(relatedDocument0);
                }
            
                const relatedDocument1 = await Documents.findOne({
                    offset: Math.floor(Math.random() * (await Documents.count())),
                });
                const DocumentVersion1 = await DocumentVersions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DocumentVersion1?.setDocument)
                {
                    await
                    DocumentVersion1.
                    setDocument(relatedDocument1);
                }
            
                const relatedDocument2 = await Documents.findOne({
                    offset: Math.floor(Math.random() * (await Documents.count())),
                });
                const DocumentVersion2 = await DocumentVersions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DocumentVersion2?.setDocument)
                {
                    await
                    DocumentVersion2.
                    setDocument(relatedDocument2);
                }
            
                const relatedDocument3 = await Documents.findOne({
                    offset: Math.floor(Math.random() * (await Documents.count())),
                });
                const DocumentVersion3 = await DocumentVersions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DocumentVersion3?.setDocument)
                {
                    await
                    DocumentVersion3.
                    setDocument(relatedDocument3);
                }
            
                const relatedDocument4 = await Documents.findOne({
                    offset: Math.floor(Math.random() * (await Documents.count())),
                });
                const DocumentVersion4 = await DocumentVersions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (DocumentVersion4?.setDocument)
                {
                    await
                    DocumentVersion4.
                    setDocument(relatedDocument4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateDocumentRetentionPolicyWithCompany() {
            
                const relatedCompany0 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const DocumentRetentionPolicy0 = await DocumentRetentionPolicies.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DocumentRetentionPolicy0?.setCompany)
                {
                    await
                    DocumentRetentionPolicy0.
                    setCompany(relatedCompany0);
                }
            
                const relatedCompany1 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const DocumentRetentionPolicy1 = await DocumentRetentionPolicies.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DocumentRetentionPolicy1?.setCompany)
                {
                    await
                    DocumentRetentionPolicy1.
                    setCompany(relatedCompany1);
                }
            
                const relatedCompany2 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const DocumentRetentionPolicy2 = await DocumentRetentionPolicies.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DocumentRetentionPolicy2?.setCompany)
                {
                    await
                    DocumentRetentionPolicy2.
                    setCompany(relatedCompany2);
                }
            
                const relatedCompany3 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const DocumentRetentionPolicy3 = await DocumentRetentionPolicies.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DocumentRetentionPolicy3?.setCompany)
                {
                    await
                    DocumentRetentionPolicy3.
                    setCompany(relatedCompany3);
                }
            
                const relatedCompany4 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const DocumentRetentionPolicy4 = await DocumentRetentionPolicies.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (DocumentRetentionPolicy4?.setCompany)
                {
                    await
                    DocumentRetentionPolicy4.
                    setCompany(relatedCompany4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateCustomerWithCompany() {
            
                const relatedCompany0 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Customer0 = await Customers.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Customer0?.setCompany)
                {
                    await
                    Customer0.
                    setCompany(relatedCompany0);
                }
            
                const relatedCompany1 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Customer1 = await Customers.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Customer1?.setCompany)
                {
                    await
                    Customer1.
                    setCompany(relatedCompany1);
                }
            
                const relatedCompany2 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Customer2 = await Customers.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Customer2?.setCompany)
                {
                    await
                    Customer2.
                    setCompany(relatedCompany2);
                }
            
                const relatedCompany3 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Customer3 = await Customers.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Customer3?.setCompany)
                {
                    await
                    Customer3.
                    setCompany(relatedCompany3);
                }
            
                const relatedCompany4 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Customer4 = await Customers.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Customer4?.setCompany)
                {
                    await
                    Customer4.
                    setCompany(relatedCompany4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateVendorWithCompany() {
            
                const relatedCompany0 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Vendor0 = await Vendors.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Vendor0?.setCompany)
                {
                    await
                    Vendor0.
                    setCompany(relatedCompany0);
                }
            
                const relatedCompany1 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Vendor1 = await Vendors.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Vendor1?.setCompany)
                {
                    await
                    Vendor1.
                    setCompany(relatedCompany1);
                }
            
                const relatedCompany2 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Vendor2 = await Vendors.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Vendor2?.setCompany)
                {
                    await
                    Vendor2.
                    setCompany(relatedCompany2);
                }
            
                const relatedCompany3 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Vendor3 = await Vendors.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Vendor3?.setCompany)
                {
                    await
                    Vendor3.
                    setCompany(relatedCompany3);
                }
            
                const relatedCompany4 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Vendor4 = await Vendors.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Vendor4?.setCompany)
                {
                    await
                    Vendor4.
                    setCompany(relatedCompany4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateVehicleWithCompany() {
            
                const relatedCompany0 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Vehicle0 = await Vehicles.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Vehicle0?.setCompany)
                {
                    await
                    Vehicle0.
                    setCompany(relatedCompany0);
                }
            
                const relatedCompany1 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Vehicle1 = await Vehicles.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Vehicle1?.setCompany)
                {
                    await
                    Vehicle1.
                    setCompany(relatedCompany1);
                }
            
                const relatedCompany2 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Vehicle2 = await Vehicles.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Vehicle2?.setCompany)
                {
                    await
                    Vehicle2.
                    setCompany(relatedCompany2);
                }
            
                const relatedCompany3 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Vehicle3 = await Vehicles.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Vehicle3?.setCompany)
                {
                    await
                    Vehicle3.
                    setCompany(relatedCompany3);
                }
            
                const relatedCompany4 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Vehicle4 = await Vehicles.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Vehicle4?.setCompany)
                {
                    await
                    Vehicle4.
                    setCompany(relatedCompany4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateTrailerWithCompany() {
            
                const relatedCompany0 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Trailer0 = await Trailers.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Trailer0?.setCompany)
                {
                    await
                    Trailer0.
                    setCompany(relatedCompany0);
                }
            
                const relatedCompany1 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Trailer1 = await Trailers.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Trailer1?.setCompany)
                {
                    await
                    Trailer1.
                    setCompany(relatedCompany1);
                }
            
                const relatedCompany2 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Trailer2 = await Trailers.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Trailer2?.setCompany)
                {
                    await
                    Trailer2.
                    setCompany(relatedCompany2);
                }
            
                const relatedCompany3 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Trailer3 = await Trailers.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Trailer3?.setCompany)
                {
                    await
                    Trailer3.
                    setCompany(relatedCompany3);
                }
            
                const relatedCompany4 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Trailer4 = await Trailers.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Trailer4?.setCompany)
                {
                    await
                    Trailer4.
                    setCompany(relatedCompany4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateVehicleTrailerLinkWithCompany() {
            
                const relatedCompany0 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const VehicleTrailerLink0 = await VehicleTrailerLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (VehicleTrailerLink0?.setCompany)
                {
                    await
                    VehicleTrailerLink0.
                    setCompany(relatedCompany0);
                }
            
                const relatedCompany1 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const VehicleTrailerLink1 = await VehicleTrailerLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (VehicleTrailerLink1?.setCompany)
                {
                    await
                    VehicleTrailerLink1.
                    setCompany(relatedCompany1);
                }
            
                const relatedCompany2 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const VehicleTrailerLink2 = await VehicleTrailerLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (VehicleTrailerLink2?.setCompany)
                {
                    await
                    VehicleTrailerLink2.
                    setCompany(relatedCompany2);
                }
            
                const relatedCompany3 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const VehicleTrailerLink3 = await VehicleTrailerLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (VehicleTrailerLink3?.setCompany)
                {
                    await
                    VehicleTrailerLink3.
                    setCompany(relatedCompany3);
                }
            
                const relatedCompany4 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const VehicleTrailerLink4 = await VehicleTrailerLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (VehicleTrailerLink4?.setCompany)
                {
                    await
                    VehicleTrailerLink4.
                    setCompany(relatedCompany4);
                }
            
        }
        
    
        
            
            async function associateVehicleTrailerLinkWithVehicle() {
            
                const relatedVehicle0 = await Vehicles.findOne({
                    offset: Math.floor(Math.random() * (await Vehicles.count())),
                });
                const VehicleTrailerLink0 = await VehicleTrailerLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (VehicleTrailerLink0?.setVehicle)
                {
                    await
                    VehicleTrailerLink0.
                    setVehicle(relatedVehicle0);
                }
            
                const relatedVehicle1 = await Vehicles.findOne({
                    offset: Math.floor(Math.random() * (await Vehicles.count())),
                });
                const VehicleTrailerLink1 = await VehicleTrailerLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (VehicleTrailerLink1?.setVehicle)
                {
                    await
                    VehicleTrailerLink1.
                    setVehicle(relatedVehicle1);
                }
            
                const relatedVehicle2 = await Vehicles.findOne({
                    offset: Math.floor(Math.random() * (await Vehicles.count())),
                });
                const VehicleTrailerLink2 = await VehicleTrailerLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (VehicleTrailerLink2?.setVehicle)
                {
                    await
                    VehicleTrailerLink2.
                    setVehicle(relatedVehicle2);
                }
            
                const relatedVehicle3 = await Vehicles.findOne({
                    offset: Math.floor(Math.random() * (await Vehicles.count())),
                });
                const VehicleTrailerLink3 = await VehicleTrailerLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (VehicleTrailerLink3?.setVehicle)
                {
                    await
                    VehicleTrailerLink3.
                    setVehicle(relatedVehicle3);
                }
            
                const relatedVehicle4 = await Vehicles.findOne({
                    offset: Math.floor(Math.random() * (await Vehicles.count())),
                });
                const VehicleTrailerLink4 = await VehicleTrailerLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (VehicleTrailerLink4?.setVehicle)
                {
                    await
                    VehicleTrailerLink4.
                    setVehicle(relatedVehicle4);
                }
            
        }
        
    
        
            
            async function associateVehicleTrailerLinkWithTrailer() {
            
                const relatedTrailer0 = await Trailers.findOne({
                    offset: Math.floor(Math.random() * (await Trailers.count())),
                });
                const VehicleTrailerLink0 = await VehicleTrailerLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (VehicleTrailerLink0?.setTrailer)
                {
                    await
                    VehicleTrailerLink0.
                    setTrailer(relatedTrailer0);
                }
            
                const relatedTrailer1 = await Trailers.findOne({
                    offset: Math.floor(Math.random() * (await Trailers.count())),
                });
                const VehicleTrailerLink1 = await VehicleTrailerLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (VehicleTrailerLink1?.setTrailer)
                {
                    await
                    VehicleTrailerLink1.
                    setTrailer(relatedTrailer1);
                }
            
                const relatedTrailer2 = await Trailers.findOne({
                    offset: Math.floor(Math.random() * (await Trailers.count())),
                });
                const VehicleTrailerLink2 = await VehicleTrailerLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (VehicleTrailerLink2?.setTrailer)
                {
                    await
                    VehicleTrailerLink2.
                    setTrailer(relatedTrailer2);
                }
            
                const relatedTrailer3 = await Trailers.findOne({
                    offset: Math.floor(Math.random() * (await Trailers.count())),
                });
                const VehicleTrailerLink3 = await VehicleTrailerLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (VehicleTrailerLink3?.setTrailer)
                {
                    await
                    VehicleTrailerLink3.
                    setTrailer(relatedTrailer3);
                }
            
                const relatedTrailer4 = await Trailers.findOne({
                    offset: Math.floor(Math.random() * (await Trailers.count())),
                });
                const VehicleTrailerLink4 = await VehicleTrailerLinks.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (VehicleTrailerLink4?.setTrailer)
                {
                    await
                    VehicleTrailerLink4.
                    setTrailer(relatedTrailer4);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateVehicleInspectionWithCompany() {
            
                const relatedCompany0 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const VehicleInspection0 = await VehicleInspections.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (VehicleInspection0?.setCompany)
                {
                    await
                    VehicleInspection0.
                    setCompany(relatedCompany0);
                }
            
                const relatedCompany1 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const VehicleInspection1 = await VehicleInspections.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (VehicleInspection1?.setCompany)
                {
                    await
                    VehicleInspection1.
                    setCompany(relatedCompany1);
                }
            
                const relatedCompany2 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const VehicleInspection2 = await VehicleInspections.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (VehicleInspection2?.setCompany)
                {
                    await
                    VehicleInspection2.
                    setCompany(relatedCompany2);
                }
            
                const relatedCompany3 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const VehicleInspection3 = await VehicleInspections.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (VehicleInspection3?.setCompany)
                {
                    await
                    VehicleInspection3.
                    setCompany(relatedCompany3);
                }
            
                const relatedCompany4 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const VehicleInspection4 = await VehicleInspections.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (VehicleInspection4?.setCompany)
                {
                    await
                    VehicleInspection4.
                    setCompany(relatedCompany4);
                }
            
        }
        
    
        
            
            async function associateVehicleInspectionWithVehicle() {
            
                const relatedVehicle0 = await Vehicles.findOne({
                    offset: Math.floor(Math.random() * (await Vehicles.count())),
                });
                const VehicleInspection0 = await VehicleInspections.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (VehicleInspection0?.setVehicle)
                {
                    await
                    VehicleInspection0.
                    setVehicle(relatedVehicle0);
                }
            
                const relatedVehicle1 = await Vehicles.findOne({
                    offset: Math.floor(Math.random() * (await Vehicles.count())),
                });
                const VehicleInspection1 = await VehicleInspections.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (VehicleInspection1?.setVehicle)
                {
                    await
                    VehicleInspection1.
                    setVehicle(relatedVehicle1);
                }
            
                const relatedVehicle2 = await Vehicles.findOne({
                    offset: Math.floor(Math.random() * (await Vehicles.count())),
                });
                const VehicleInspection2 = await VehicleInspections.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (VehicleInspection2?.setVehicle)
                {
                    await
                    VehicleInspection2.
                    setVehicle(relatedVehicle2);
                }
            
                const relatedVehicle3 = await Vehicles.findOne({
                    offset: Math.floor(Math.random() * (await Vehicles.count())),
                });
                const VehicleInspection3 = await VehicleInspections.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (VehicleInspection3?.setVehicle)
                {
                    await
                    VehicleInspection3.
                    setVehicle(relatedVehicle3);
                }
            
                const relatedVehicle4 = await Vehicles.findOne({
                    offset: Math.floor(Math.random() * (await Vehicles.count())),
                });
                const VehicleInspection4 = await VehicleInspections.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (VehicleInspection4?.setVehicle)
                {
                    await
                    VehicleInspection4.
                    setVehicle(relatedVehicle4);
                }
            
        }
        
    
        
            
            async function associateVehicleInspectionWithTrailer() {
            
                const relatedTrailer0 = await Trailers.findOne({
                    offset: Math.floor(Math.random() * (await Trailers.count())),
                });
                const VehicleInspection0 = await VehicleInspections.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (VehicleInspection0?.setTrailer)
                {
                    await
                    VehicleInspection0.
                    setTrailer(relatedTrailer0);
                }
            
                const relatedTrailer1 = await Trailers.findOne({
                    offset: Math.floor(Math.random() * (await Trailers.count())),
                });
                const VehicleInspection1 = await VehicleInspections.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (VehicleInspection1?.setTrailer)
                {
                    await
                    VehicleInspection1.
                    setTrailer(relatedTrailer1);
                }
            
                const relatedTrailer2 = await Trailers.findOne({
                    offset: Math.floor(Math.random() * (await Trailers.count())),
                });
                const VehicleInspection2 = await VehicleInspections.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (VehicleInspection2?.setTrailer)
                {
                    await
                    VehicleInspection2.
                    setTrailer(relatedTrailer2);
                }
            
                const relatedTrailer3 = await Trailers.findOne({
                    offset: Math.floor(Math.random() * (await Trailers.count())),
                });
                const VehicleInspection3 = await VehicleInspections.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (VehicleInspection3?.setTrailer)
                {
                    await
                    VehicleInspection3.
                    setTrailer(relatedTrailer3);
                }
            
                const relatedTrailer4 = await Trailers.findOne({
                    offset: Math.floor(Math.random() * (await Trailers.count())),
                });
                const VehicleInspection4 = await VehicleInspections.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (VehicleInspection4?.setTrailer)
                {
                    await
                    VehicleInspection4.
                    setTrailer(relatedTrailer4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateVehicleMaintenanceWithCompany() {
            
                const relatedCompany0 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const VehicleMaintenance0 = await VehicleMaintenances.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (VehicleMaintenance0?.setCompany)
                {
                    await
                    VehicleMaintenance0.
                    setCompany(relatedCompany0);
                }
            
                const relatedCompany1 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const VehicleMaintenance1 = await VehicleMaintenances.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (VehicleMaintenance1?.setCompany)
                {
                    await
                    VehicleMaintenance1.
                    setCompany(relatedCompany1);
                }
            
                const relatedCompany2 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const VehicleMaintenance2 = await VehicleMaintenances.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (VehicleMaintenance2?.setCompany)
                {
                    await
                    VehicleMaintenance2.
                    setCompany(relatedCompany2);
                }
            
                const relatedCompany3 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const VehicleMaintenance3 = await VehicleMaintenances.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (VehicleMaintenance3?.setCompany)
                {
                    await
                    VehicleMaintenance3.
                    setCompany(relatedCompany3);
                }
            
                const relatedCompany4 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const VehicleMaintenance4 = await VehicleMaintenances.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (VehicleMaintenance4?.setCompany)
                {
                    await
                    VehicleMaintenance4.
                    setCompany(relatedCompany4);
                }
            
        }
        
    
        
            
            async function associateVehicleMaintenanceWithVehicle() {
            
                const relatedVehicle0 = await Vehicles.findOne({
                    offset: Math.floor(Math.random() * (await Vehicles.count())),
                });
                const VehicleMaintenance0 = await VehicleMaintenances.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (VehicleMaintenance0?.setVehicle)
                {
                    await
                    VehicleMaintenance0.
                    setVehicle(relatedVehicle0);
                }
            
                const relatedVehicle1 = await Vehicles.findOne({
                    offset: Math.floor(Math.random() * (await Vehicles.count())),
                });
                const VehicleMaintenance1 = await VehicleMaintenances.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (VehicleMaintenance1?.setVehicle)
                {
                    await
                    VehicleMaintenance1.
                    setVehicle(relatedVehicle1);
                }
            
                const relatedVehicle2 = await Vehicles.findOne({
                    offset: Math.floor(Math.random() * (await Vehicles.count())),
                });
                const VehicleMaintenance2 = await VehicleMaintenances.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (VehicleMaintenance2?.setVehicle)
                {
                    await
                    VehicleMaintenance2.
                    setVehicle(relatedVehicle2);
                }
            
                const relatedVehicle3 = await Vehicles.findOne({
                    offset: Math.floor(Math.random() * (await Vehicles.count())),
                });
                const VehicleMaintenance3 = await VehicleMaintenances.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (VehicleMaintenance3?.setVehicle)
                {
                    await
                    VehicleMaintenance3.
                    setVehicle(relatedVehicle3);
                }
            
                const relatedVehicle4 = await Vehicles.findOne({
                    offset: Math.floor(Math.random() * (await Vehicles.count())),
                });
                const VehicleMaintenance4 = await VehicleMaintenances.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (VehicleMaintenance4?.setVehicle)
                {
                    await
                    VehicleMaintenance4.
                    setVehicle(relatedVehicle4);
                }
            
        }
        
    
        
            
            async function associateVehicleMaintenanceWithTrailer() {
            
                const relatedTrailer0 = await Trailers.findOne({
                    offset: Math.floor(Math.random() * (await Trailers.count())),
                });
                const VehicleMaintenance0 = await VehicleMaintenances.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (VehicleMaintenance0?.setTrailer)
                {
                    await
                    VehicleMaintenance0.
                    setTrailer(relatedTrailer0);
                }
            
                const relatedTrailer1 = await Trailers.findOne({
                    offset: Math.floor(Math.random() * (await Trailers.count())),
                });
                const VehicleMaintenance1 = await VehicleMaintenances.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (VehicleMaintenance1?.setTrailer)
                {
                    await
                    VehicleMaintenance1.
                    setTrailer(relatedTrailer1);
                }
            
                const relatedTrailer2 = await Trailers.findOne({
                    offset: Math.floor(Math.random() * (await Trailers.count())),
                });
                const VehicleMaintenance2 = await VehicleMaintenances.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (VehicleMaintenance2?.setTrailer)
                {
                    await
                    VehicleMaintenance2.
                    setTrailer(relatedTrailer2);
                }
            
                const relatedTrailer3 = await Trailers.findOne({
                    offset: Math.floor(Math.random() * (await Trailers.count())),
                });
                const VehicleMaintenance3 = await VehicleMaintenances.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (VehicleMaintenance3?.setTrailer)
                {
                    await
                    VehicleMaintenance3.
                    setTrailer(relatedTrailer3);
                }
            
                const relatedTrailer4 = await Trailers.findOne({
                    offset: Math.floor(Math.random() * (await Trailers.count())),
                });
                const VehicleMaintenance4 = await VehicleMaintenances.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (VehicleMaintenance4?.setTrailer)
                {
                    await
                    VehicleMaintenance4.
                    setTrailer(relatedTrailer4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateVehicleInsuranceWithCompany() {
            
                const relatedCompany0 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const VehicleInsurance0 = await VehicleInsurances.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (VehicleInsurance0?.setCompany)
                {
                    await
                    VehicleInsurance0.
                    setCompany(relatedCompany0);
                }
            
                const relatedCompany1 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const VehicleInsurance1 = await VehicleInsurances.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (VehicleInsurance1?.setCompany)
                {
                    await
                    VehicleInsurance1.
                    setCompany(relatedCompany1);
                }
            
                const relatedCompany2 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const VehicleInsurance2 = await VehicleInsurances.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (VehicleInsurance2?.setCompany)
                {
                    await
                    VehicleInsurance2.
                    setCompany(relatedCompany2);
                }
            
                const relatedCompany3 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const VehicleInsurance3 = await VehicleInsurances.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (VehicleInsurance3?.setCompany)
                {
                    await
                    VehicleInsurance3.
                    setCompany(relatedCompany3);
                }
            
                const relatedCompany4 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const VehicleInsurance4 = await VehicleInsurances.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (VehicleInsurance4?.setCompany)
                {
                    await
                    VehicleInsurance4.
                    setCompany(relatedCompany4);
                }
            
        }
        
    
        
            
            async function associateVehicleInsuranceWithVehicle() {
            
                const relatedVehicle0 = await Vehicles.findOne({
                    offset: Math.floor(Math.random() * (await Vehicles.count())),
                });
                const VehicleInsurance0 = await VehicleInsurances.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (VehicleInsurance0?.setVehicle)
                {
                    await
                    VehicleInsurance0.
                    setVehicle(relatedVehicle0);
                }
            
                const relatedVehicle1 = await Vehicles.findOne({
                    offset: Math.floor(Math.random() * (await Vehicles.count())),
                });
                const VehicleInsurance1 = await VehicleInsurances.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (VehicleInsurance1?.setVehicle)
                {
                    await
                    VehicleInsurance1.
                    setVehicle(relatedVehicle1);
                }
            
                const relatedVehicle2 = await Vehicles.findOne({
                    offset: Math.floor(Math.random() * (await Vehicles.count())),
                });
                const VehicleInsurance2 = await VehicleInsurances.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (VehicleInsurance2?.setVehicle)
                {
                    await
                    VehicleInsurance2.
                    setVehicle(relatedVehicle2);
                }
            
                const relatedVehicle3 = await Vehicles.findOne({
                    offset: Math.floor(Math.random() * (await Vehicles.count())),
                });
                const VehicleInsurance3 = await VehicleInsurances.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (VehicleInsurance3?.setVehicle)
                {
                    await
                    VehicleInsurance3.
                    setVehicle(relatedVehicle3);
                }
            
                const relatedVehicle4 = await Vehicles.findOne({
                    offset: Math.floor(Math.random() * (await Vehicles.count())),
                });
                const VehicleInsurance4 = await VehicleInsurances.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (VehicleInsurance4?.setVehicle)
                {
                    await
                    VehicleInsurance4.
                    setVehicle(relatedVehicle4);
                }
            
        }
        
    
        
            
            async function associateVehicleInsuranceWithTrailer() {
            
                const relatedTrailer0 = await Trailers.findOne({
                    offset: Math.floor(Math.random() * (await Trailers.count())),
                });
                const VehicleInsurance0 = await VehicleInsurances.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (VehicleInsurance0?.setTrailer)
                {
                    await
                    VehicleInsurance0.
                    setTrailer(relatedTrailer0);
                }
            
                const relatedTrailer1 = await Trailers.findOne({
                    offset: Math.floor(Math.random() * (await Trailers.count())),
                });
                const VehicleInsurance1 = await VehicleInsurances.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (VehicleInsurance1?.setTrailer)
                {
                    await
                    VehicleInsurance1.
                    setTrailer(relatedTrailer1);
                }
            
                const relatedTrailer2 = await Trailers.findOne({
                    offset: Math.floor(Math.random() * (await Trailers.count())),
                });
                const VehicleInsurance2 = await VehicleInsurances.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (VehicleInsurance2?.setTrailer)
                {
                    await
                    VehicleInsurance2.
                    setTrailer(relatedTrailer2);
                }
            
                const relatedTrailer3 = await Trailers.findOne({
                    offset: Math.floor(Math.random() * (await Trailers.count())),
                });
                const VehicleInsurance3 = await VehicleInsurances.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (VehicleInsurance3?.setTrailer)
                {
                    await
                    VehicleInsurance3.
                    setTrailer(relatedTrailer3);
                }
            
                const relatedTrailer4 = await Trailers.findOne({
                    offset: Math.floor(Math.random() * (await Trailers.count())),
                });
                const VehicleInsurance4 = await VehicleInsurances.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (VehicleInsurance4?.setTrailer)
                {
                    await
                    VehicleInsurance4.
                    setTrailer(relatedTrailer4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateVehicleDocumentWithCompany() {
            
                const relatedCompany0 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const VehicleDocument0 = await VehicleDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (VehicleDocument0?.setCompany)
                {
                    await
                    VehicleDocument0.
                    setCompany(relatedCompany0);
                }
            
                const relatedCompany1 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const VehicleDocument1 = await VehicleDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (VehicleDocument1?.setCompany)
                {
                    await
                    VehicleDocument1.
                    setCompany(relatedCompany1);
                }
            
                const relatedCompany2 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const VehicleDocument2 = await VehicleDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (VehicleDocument2?.setCompany)
                {
                    await
                    VehicleDocument2.
                    setCompany(relatedCompany2);
                }
            
                const relatedCompany3 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const VehicleDocument3 = await VehicleDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (VehicleDocument3?.setCompany)
                {
                    await
                    VehicleDocument3.
                    setCompany(relatedCompany3);
                }
            
                const relatedCompany4 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const VehicleDocument4 = await VehicleDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (VehicleDocument4?.setCompany)
                {
                    await
                    VehicleDocument4.
                    setCompany(relatedCompany4);
                }
            
        }
        
    
        
            
            async function associateVehicleDocumentWithVehicle() {
            
                const relatedVehicle0 = await Vehicles.findOne({
                    offset: Math.floor(Math.random() * (await Vehicles.count())),
                });
                const VehicleDocument0 = await VehicleDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (VehicleDocument0?.setVehicle)
                {
                    await
                    VehicleDocument0.
                    setVehicle(relatedVehicle0);
                }
            
                const relatedVehicle1 = await Vehicles.findOne({
                    offset: Math.floor(Math.random() * (await Vehicles.count())),
                });
                const VehicleDocument1 = await VehicleDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (VehicleDocument1?.setVehicle)
                {
                    await
                    VehicleDocument1.
                    setVehicle(relatedVehicle1);
                }
            
                const relatedVehicle2 = await Vehicles.findOne({
                    offset: Math.floor(Math.random() * (await Vehicles.count())),
                });
                const VehicleDocument2 = await VehicleDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (VehicleDocument2?.setVehicle)
                {
                    await
                    VehicleDocument2.
                    setVehicle(relatedVehicle2);
                }
            
                const relatedVehicle3 = await Vehicles.findOne({
                    offset: Math.floor(Math.random() * (await Vehicles.count())),
                });
                const VehicleDocument3 = await VehicleDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (VehicleDocument3?.setVehicle)
                {
                    await
                    VehicleDocument3.
                    setVehicle(relatedVehicle3);
                }
            
                const relatedVehicle4 = await Vehicles.findOne({
                    offset: Math.floor(Math.random() * (await Vehicles.count())),
                });
                const VehicleDocument4 = await VehicleDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (VehicleDocument4?.setVehicle)
                {
                    await
                    VehicleDocument4.
                    setVehicle(relatedVehicle4);
                }
            
        }
        
    
        
            
            async function associateVehicleDocumentWithTrailer() {
            
                const relatedTrailer0 = await Trailers.findOne({
                    offset: Math.floor(Math.random() * (await Trailers.count())),
                });
                const VehicleDocument0 = await VehicleDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (VehicleDocument0?.setTrailer)
                {
                    await
                    VehicleDocument0.
                    setTrailer(relatedTrailer0);
                }
            
                const relatedTrailer1 = await Trailers.findOne({
                    offset: Math.floor(Math.random() * (await Trailers.count())),
                });
                const VehicleDocument1 = await VehicleDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (VehicleDocument1?.setTrailer)
                {
                    await
                    VehicleDocument1.
                    setTrailer(relatedTrailer1);
                }
            
                const relatedTrailer2 = await Trailers.findOne({
                    offset: Math.floor(Math.random() * (await Trailers.count())),
                });
                const VehicleDocument2 = await VehicleDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (VehicleDocument2?.setTrailer)
                {
                    await
                    VehicleDocument2.
                    setTrailer(relatedTrailer2);
                }
            
                const relatedTrailer3 = await Trailers.findOne({
                    offset: Math.floor(Math.random() * (await Trailers.count())),
                });
                const VehicleDocument3 = await VehicleDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (VehicleDocument3?.setTrailer)
                {
                    await
                    VehicleDocument3.
                    setTrailer(relatedTrailer3);
                }
            
                const relatedTrailer4 = await Trailers.findOne({
                    offset: Math.floor(Math.random() * (await Trailers.count())),
                });
                const VehicleDocument4 = await VehicleDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (VehicleDocument4?.setTrailer)
                {
                    await
                    VehicleDocument4.
                    setTrailer(relatedTrailer4);
                }
            
        }
        
    
        
    
        
    
        
    
        
            
            async function associateVehicleDocumentWithCurrent_version() {
            
                const relatedCurrent_version0 = await VehicleDocumentVersions.findOne({
                    offset: Math.floor(Math.random() * (await VehicleDocumentVersions.count())),
                });
                const VehicleDocument0 = await VehicleDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (VehicleDocument0?.setCurrent_version)
                {
                    await
                    VehicleDocument0.
                    setCurrent_version(relatedCurrent_version0);
                }
            
                const relatedCurrent_version1 = await VehicleDocumentVersions.findOne({
                    offset: Math.floor(Math.random() * (await VehicleDocumentVersions.count())),
                });
                const VehicleDocument1 = await VehicleDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (VehicleDocument1?.setCurrent_version)
                {
                    await
                    VehicleDocument1.
                    setCurrent_version(relatedCurrent_version1);
                }
            
                const relatedCurrent_version2 = await VehicleDocumentVersions.findOne({
                    offset: Math.floor(Math.random() * (await VehicleDocumentVersions.count())),
                });
                const VehicleDocument2 = await VehicleDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (VehicleDocument2?.setCurrent_version)
                {
                    await
                    VehicleDocument2.
                    setCurrent_version(relatedCurrent_version2);
                }
            
                const relatedCurrent_version3 = await VehicleDocumentVersions.findOne({
                    offset: Math.floor(Math.random() * (await VehicleDocumentVersions.count())),
                });
                const VehicleDocument3 = await VehicleDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (VehicleDocument3?.setCurrent_version)
                {
                    await
                    VehicleDocument3.
                    setCurrent_version(relatedCurrent_version3);
                }
            
                const relatedCurrent_version4 = await VehicleDocumentVersions.findOne({
                    offset: Math.floor(Math.random() * (await VehicleDocumentVersions.count())),
                });
                const VehicleDocument4 = await VehicleDocuments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (VehicleDocument4?.setCurrent_version)
                {
                    await
                    VehicleDocument4.
                    setCurrent_version(relatedCurrent_version4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateVehicleDocumentVersionWithDocument() {
            
                const relatedDocument0 = await VehicleDocuments.findOne({
                    offset: Math.floor(Math.random() * (await VehicleDocuments.count())),
                });
                const VehicleDocumentVersion0 = await VehicleDocumentVersions.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (VehicleDocumentVersion0?.setDocument)
                {
                    await
                    VehicleDocumentVersion0.
                    setDocument(relatedDocument0);
                }
            
                const relatedDocument1 = await VehicleDocuments.findOne({
                    offset: Math.floor(Math.random() * (await VehicleDocuments.count())),
                });
                const VehicleDocumentVersion1 = await VehicleDocumentVersions.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (VehicleDocumentVersion1?.setDocument)
                {
                    await
                    VehicleDocumentVersion1.
                    setDocument(relatedDocument1);
                }
            
                const relatedDocument2 = await VehicleDocuments.findOne({
                    offset: Math.floor(Math.random() * (await VehicleDocuments.count())),
                });
                const VehicleDocumentVersion2 = await VehicleDocumentVersions.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (VehicleDocumentVersion2?.setDocument)
                {
                    await
                    VehicleDocumentVersion2.
                    setDocument(relatedDocument2);
                }
            
                const relatedDocument3 = await VehicleDocuments.findOne({
                    offset: Math.floor(Math.random() * (await VehicleDocuments.count())),
                });
                const VehicleDocumentVersion3 = await VehicleDocumentVersions.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (VehicleDocumentVersion3?.setDocument)
                {
                    await
                    VehicleDocumentVersion3.
                    setDocument(relatedDocument3);
                }
            
                const relatedDocument4 = await VehicleDocuments.findOne({
                    offset: Math.floor(Math.random() * (await VehicleDocuments.count())),
                });
                const VehicleDocumentVersion4 = await VehicleDocumentVersions.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (VehicleDocumentVersion4?.setDocument)
                {
                    await
                    VehicleDocumentVersion4.
                    setDocument(relatedDocument4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateDriverVehicleAssignmentWithCompany() {
            
                const relatedCompany0 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const DriverVehicleAssignment0 = await DriverVehicleAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DriverVehicleAssignment0?.setCompany)
                {
                    await
                    DriverVehicleAssignment0.
                    setCompany(relatedCompany0);
                }
            
                const relatedCompany1 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const DriverVehicleAssignment1 = await DriverVehicleAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DriverVehicleAssignment1?.setCompany)
                {
                    await
                    DriverVehicleAssignment1.
                    setCompany(relatedCompany1);
                }
            
                const relatedCompany2 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const DriverVehicleAssignment2 = await DriverVehicleAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DriverVehicleAssignment2?.setCompany)
                {
                    await
                    DriverVehicleAssignment2.
                    setCompany(relatedCompany2);
                }
            
                const relatedCompany3 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const DriverVehicleAssignment3 = await DriverVehicleAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DriverVehicleAssignment3?.setCompany)
                {
                    await
                    DriverVehicleAssignment3.
                    setCompany(relatedCompany3);
                }
            
                const relatedCompany4 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const DriverVehicleAssignment4 = await DriverVehicleAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (DriverVehicleAssignment4?.setCompany)
                {
                    await
                    DriverVehicleAssignment4.
                    setCompany(relatedCompany4);
                }
            
        }
        
    
        
            
            async function associateDriverVehicleAssignmentWithEmployee() {
            
                const relatedEmployee0 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const DriverVehicleAssignment0 = await DriverVehicleAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DriverVehicleAssignment0?.setEmployee)
                {
                    await
                    DriverVehicleAssignment0.
                    setEmployee(relatedEmployee0);
                }
            
                const relatedEmployee1 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const DriverVehicleAssignment1 = await DriverVehicleAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DriverVehicleAssignment1?.setEmployee)
                {
                    await
                    DriverVehicleAssignment1.
                    setEmployee(relatedEmployee1);
                }
            
                const relatedEmployee2 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const DriverVehicleAssignment2 = await DriverVehicleAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DriverVehicleAssignment2?.setEmployee)
                {
                    await
                    DriverVehicleAssignment2.
                    setEmployee(relatedEmployee2);
                }
            
                const relatedEmployee3 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const DriverVehicleAssignment3 = await DriverVehicleAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DriverVehicleAssignment3?.setEmployee)
                {
                    await
                    DriverVehicleAssignment3.
                    setEmployee(relatedEmployee3);
                }
            
                const relatedEmployee4 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const DriverVehicleAssignment4 = await DriverVehicleAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (DriverVehicleAssignment4?.setEmployee)
                {
                    await
                    DriverVehicleAssignment4.
                    setEmployee(relatedEmployee4);
                }
            
        }
        
    
        
            
            async function associateDriverVehicleAssignmentWithVehicle() {
            
                const relatedVehicle0 = await Vehicles.findOne({
                    offset: Math.floor(Math.random() * (await Vehicles.count())),
                });
                const DriverVehicleAssignment0 = await DriverVehicleAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (DriverVehicleAssignment0?.setVehicle)
                {
                    await
                    DriverVehicleAssignment0.
                    setVehicle(relatedVehicle0);
                }
            
                const relatedVehicle1 = await Vehicles.findOne({
                    offset: Math.floor(Math.random() * (await Vehicles.count())),
                });
                const DriverVehicleAssignment1 = await DriverVehicleAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (DriverVehicleAssignment1?.setVehicle)
                {
                    await
                    DriverVehicleAssignment1.
                    setVehicle(relatedVehicle1);
                }
            
                const relatedVehicle2 = await Vehicles.findOne({
                    offset: Math.floor(Math.random() * (await Vehicles.count())),
                });
                const DriverVehicleAssignment2 = await DriverVehicleAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (DriverVehicleAssignment2?.setVehicle)
                {
                    await
                    DriverVehicleAssignment2.
                    setVehicle(relatedVehicle2);
                }
            
                const relatedVehicle3 = await Vehicles.findOne({
                    offset: Math.floor(Math.random() * (await Vehicles.count())),
                });
                const DriverVehicleAssignment3 = await DriverVehicleAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (DriverVehicleAssignment3?.setVehicle)
                {
                    await
                    DriverVehicleAssignment3.
                    setVehicle(relatedVehicle3);
                }
            
                const relatedVehicle4 = await Vehicles.findOne({
                    offset: Math.floor(Math.random() * (await Vehicles.count())),
                });
                const DriverVehicleAssignment4 = await DriverVehicleAssignments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (DriverVehicleAssignment4?.setVehicle)
                {
                    await
                    DriverVehicleAssignment4.
                    setVehicle(relatedVehicle4);
                }
            
        }
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateOrderWithCompany() {
            
                const relatedCompany0 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Order0 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Order0?.setCompany)
                {
                    await
                    Order0.
                    setCompany(relatedCompany0);
                }
            
                const relatedCompany1 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Order1 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Order1?.setCompany)
                {
                    await
                    Order1.
                    setCompany(relatedCompany1);
                }
            
                const relatedCompany2 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Order2 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Order2?.setCompany)
                {
                    await
                    Order2.
                    setCompany(relatedCompany2);
                }
            
                const relatedCompany3 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Order3 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Order3?.setCompany)
                {
                    await
                    Order3.
                    setCompany(relatedCompany3);
                }
            
                const relatedCompany4 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Order4 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Order4?.setCompany)
                {
                    await
                    Order4.
                    setCompany(relatedCompany4);
                }
            
        }
        
    
        
            
            async function associateOrderWithCustomer() {
            
                const relatedCustomer0 = await Customers.findOne({
                    offset: Math.floor(Math.random() * (await Customers.count())),
                });
                const Order0 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Order0?.setCustomer)
                {
                    await
                    Order0.
                    setCustomer(relatedCustomer0);
                }
            
                const relatedCustomer1 = await Customers.findOne({
                    offset: Math.floor(Math.random() * (await Customers.count())),
                });
                const Order1 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Order1?.setCustomer)
                {
                    await
                    Order1.
                    setCustomer(relatedCustomer1);
                }
            
                const relatedCustomer2 = await Customers.findOne({
                    offset: Math.floor(Math.random() * (await Customers.count())),
                });
                const Order2 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Order2?.setCustomer)
                {
                    await
                    Order2.
                    setCustomer(relatedCustomer2);
                }
            
                const relatedCustomer3 = await Customers.findOne({
                    offset: Math.floor(Math.random() * (await Customers.count())),
                });
                const Order3 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Order3?.setCustomer)
                {
                    await
                    Order3.
                    setCustomer(relatedCustomer3);
                }
            
                const relatedCustomer4 = await Customers.findOne({
                    offset: Math.floor(Math.random() * (await Customers.count())),
                });
                const Order4 = await Orders.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Order4?.setCustomer)
                {
                    await
                    Order4.
                    setCustomer(relatedCustomer4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateLoadWithCompany() {
            
                const relatedCompany0 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Load0 = await Loads.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Load0?.setCompany)
                {
                    await
                    Load0.
                    setCompany(relatedCompany0);
                }
            
                const relatedCompany1 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Load1 = await Loads.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Load1?.setCompany)
                {
                    await
                    Load1.
                    setCompany(relatedCompany1);
                }
            
                const relatedCompany2 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Load2 = await Loads.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Load2?.setCompany)
                {
                    await
                    Load2.
                    setCompany(relatedCompany2);
                }
            
                const relatedCompany3 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Load3 = await Loads.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Load3?.setCompany)
                {
                    await
                    Load3.
                    setCompany(relatedCompany3);
                }
            
                const relatedCompany4 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Load4 = await Loads.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Load4?.setCompany)
                {
                    await
                    Load4.
                    setCompany(relatedCompany4);
                }
            
        }
        
    
        
            
            async function associateLoadWithOrder() {
            
                const relatedOrder0 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const Load0 = await Loads.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Load0?.setOrder)
                {
                    await
                    Load0.
                    setOrder(relatedOrder0);
                }
            
                const relatedOrder1 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const Load1 = await Loads.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Load1?.setOrder)
                {
                    await
                    Load1.
                    setOrder(relatedOrder1);
                }
            
                const relatedOrder2 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const Load2 = await Loads.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Load2?.setOrder)
                {
                    await
                    Load2.
                    setOrder(relatedOrder2);
                }
            
                const relatedOrder3 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const Load3 = await Loads.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Load3?.setOrder)
                {
                    await
                    Load3.
                    setOrder(relatedOrder3);
                }
            
                const relatedOrder4 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const Load4 = await Loads.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Load4?.setOrder)
                {
                    await
                    Load4.
                    setOrder(relatedOrder4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateLoadStopWithCompany() {
            
                const relatedCompany0 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const LoadStop0 = await LoadStops.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LoadStop0?.setCompany)
                {
                    await
                    LoadStop0.
                    setCompany(relatedCompany0);
                }
            
                const relatedCompany1 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const LoadStop1 = await LoadStops.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LoadStop1?.setCompany)
                {
                    await
                    LoadStop1.
                    setCompany(relatedCompany1);
                }
            
                const relatedCompany2 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const LoadStop2 = await LoadStops.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LoadStop2?.setCompany)
                {
                    await
                    LoadStop2.
                    setCompany(relatedCompany2);
                }
            
                const relatedCompany3 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const LoadStop3 = await LoadStops.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LoadStop3?.setCompany)
                {
                    await
                    LoadStop3.
                    setCompany(relatedCompany3);
                }
            
                const relatedCompany4 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const LoadStop4 = await LoadStops.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (LoadStop4?.setCompany)
                {
                    await
                    LoadStop4.
                    setCompany(relatedCompany4);
                }
            
        }
        
    
        
            
            async function associateLoadStopWithLoad() {
            
                const relatedLoad0 = await Loads.findOne({
                    offset: Math.floor(Math.random() * (await Loads.count())),
                });
                const LoadStop0 = await LoadStops.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (LoadStop0?.setLoad)
                {
                    await
                    LoadStop0.
                    setLoad(relatedLoad0);
                }
            
                const relatedLoad1 = await Loads.findOne({
                    offset: Math.floor(Math.random() * (await Loads.count())),
                });
                const LoadStop1 = await LoadStops.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (LoadStop1?.setLoad)
                {
                    await
                    LoadStop1.
                    setLoad(relatedLoad1);
                }
            
                const relatedLoad2 = await Loads.findOne({
                    offset: Math.floor(Math.random() * (await Loads.count())),
                });
                const LoadStop2 = await LoadStops.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (LoadStop2?.setLoad)
                {
                    await
                    LoadStop2.
                    setLoad(relatedLoad2);
                }
            
                const relatedLoad3 = await Loads.findOne({
                    offset: Math.floor(Math.random() * (await Loads.count())),
                });
                const LoadStop3 = await LoadStops.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (LoadStop3?.setLoad)
                {
                    await
                    LoadStop3.
                    setLoad(relatedLoad3);
                }
            
                const relatedLoad4 = await Loads.findOne({
                    offset: Math.floor(Math.random() * (await Loads.count())),
                });
                const LoadStop4 = await LoadStops.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (LoadStop4?.setLoad)
                {
                    await
                    LoadStop4.
                    setLoad(relatedLoad4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateTripWithCompany() {
            
                const relatedCompany0 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Trip0 = await Trips.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Trip0?.setCompany)
                {
                    await
                    Trip0.
                    setCompany(relatedCompany0);
                }
            
                const relatedCompany1 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Trip1 = await Trips.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Trip1?.setCompany)
                {
                    await
                    Trip1.
                    setCompany(relatedCompany1);
                }
            
                const relatedCompany2 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Trip2 = await Trips.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Trip2?.setCompany)
                {
                    await
                    Trip2.
                    setCompany(relatedCompany2);
                }
            
                const relatedCompany3 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Trip3 = await Trips.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Trip3?.setCompany)
                {
                    await
                    Trip3.
                    setCompany(relatedCompany3);
                }
            
                const relatedCompany4 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Trip4 = await Trips.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Trip4?.setCompany)
                {
                    await
                    Trip4.
                    setCompany(relatedCompany4);
                }
            
        }
        
    
        
    
        
    
        
            
            async function associateTripWithDispatcher_user() {
            
                const relatedDispatcher_user0 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Trip0 = await Trips.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Trip0?.setDispatcher_user)
                {
                    await
                    Trip0.
                    setDispatcher_user(relatedDispatcher_user0);
                }
            
                const relatedDispatcher_user1 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Trip1 = await Trips.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Trip1?.setDispatcher_user)
                {
                    await
                    Trip1.
                    setDispatcher_user(relatedDispatcher_user1);
                }
            
                const relatedDispatcher_user2 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Trip2 = await Trips.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Trip2?.setDispatcher_user)
                {
                    await
                    Trip2.
                    setDispatcher_user(relatedDispatcher_user2);
                }
            
                const relatedDispatcher_user3 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Trip3 = await Trips.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Trip3?.setDispatcher_user)
                {
                    await
                    Trip3.
                    setDispatcher_user(relatedDispatcher_user3);
                }
            
                const relatedDispatcher_user4 = await Users.findOne({
                    offset: Math.floor(Math.random() * (await Users.count())),
                });
                const Trip4 = await Trips.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Trip4?.setDispatcher_user)
                {
                    await
                    Trip4.
                    setDispatcher_user(relatedDispatcher_user4);
                }
            
        }
        
    
        
            
            async function associateTripWithDriver() {
            
                const relatedDriver0 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const Trip0 = await Trips.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Trip0?.setDriver)
                {
                    await
                    Trip0.
                    setDriver(relatedDriver0);
                }
            
                const relatedDriver1 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const Trip1 = await Trips.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Trip1?.setDriver)
                {
                    await
                    Trip1.
                    setDriver(relatedDriver1);
                }
            
                const relatedDriver2 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const Trip2 = await Trips.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Trip2?.setDriver)
                {
                    await
                    Trip2.
                    setDriver(relatedDriver2);
                }
            
                const relatedDriver3 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const Trip3 = await Trips.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Trip3?.setDriver)
                {
                    await
                    Trip3.
                    setDriver(relatedDriver3);
                }
            
                const relatedDriver4 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const Trip4 = await Trips.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Trip4?.setDriver)
                {
                    await
                    Trip4.
                    setDriver(relatedDriver4);
                }
            
        }
        
    
        
            
            async function associateTripWithVehicle() {
            
                const relatedVehicle0 = await Vehicles.findOne({
                    offset: Math.floor(Math.random() * (await Vehicles.count())),
                });
                const Trip0 = await Trips.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Trip0?.setVehicle)
                {
                    await
                    Trip0.
                    setVehicle(relatedVehicle0);
                }
            
                const relatedVehicle1 = await Vehicles.findOne({
                    offset: Math.floor(Math.random() * (await Vehicles.count())),
                });
                const Trip1 = await Trips.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Trip1?.setVehicle)
                {
                    await
                    Trip1.
                    setVehicle(relatedVehicle1);
                }
            
                const relatedVehicle2 = await Vehicles.findOne({
                    offset: Math.floor(Math.random() * (await Vehicles.count())),
                });
                const Trip2 = await Trips.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Trip2?.setVehicle)
                {
                    await
                    Trip2.
                    setVehicle(relatedVehicle2);
                }
            
                const relatedVehicle3 = await Vehicles.findOne({
                    offset: Math.floor(Math.random() * (await Vehicles.count())),
                });
                const Trip3 = await Trips.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Trip3?.setVehicle)
                {
                    await
                    Trip3.
                    setVehicle(relatedVehicle3);
                }
            
                const relatedVehicle4 = await Vehicles.findOne({
                    offset: Math.floor(Math.random() * (await Vehicles.count())),
                });
                const Trip4 = await Trips.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Trip4?.setVehicle)
                {
                    await
                    Trip4.
                    setVehicle(relatedVehicle4);
                }
            
        }
        
    
        
            
            async function associateTripWithTrailer() {
            
                const relatedTrailer0 = await Trailers.findOne({
                    offset: Math.floor(Math.random() * (await Trailers.count())),
                });
                const Trip0 = await Trips.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Trip0?.setTrailer)
                {
                    await
                    Trip0.
                    setTrailer(relatedTrailer0);
                }
            
                const relatedTrailer1 = await Trailers.findOne({
                    offset: Math.floor(Math.random() * (await Trailers.count())),
                });
                const Trip1 = await Trips.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Trip1?.setTrailer)
                {
                    await
                    Trip1.
                    setTrailer(relatedTrailer1);
                }
            
                const relatedTrailer2 = await Trailers.findOne({
                    offset: Math.floor(Math.random() * (await Trailers.count())),
                });
                const Trip2 = await Trips.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Trip2?.setTrailer)
                {
                    await
                    Trip2.
                    setTrailer(relatedTrailer2);
                }
            
                const relatedTrailer3 = await Trailers.findOne({
                    offset: Math.floor(Math.random() * (await Trailers.count())),
                });
                const Trip3 = await Trips.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Trip3?.setTrailer)
                {
                    await
                    Trip3.
                    setTrailer(relatedTrailer3);
                }
            
                const relatedTrailer4 = await Trailers.findOne({
                    offset: Math.floor(Math.random() * (await Trailers.count())),
                });
                const Trip4 = await Trips.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Trip4?.setTrailer)
                {
                    await
                    Trip4.
                    setTrailer(relatedTrailer4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateTripLoadWithTrip() {
            
                const relatedTrip0 = await Trips.findOne({
                    offset: Math.floor(Math.random() * (await Trips.count())),
                });
                const TripLoad0 = await TripLoads.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (TripLoad0?.setTrip)
                {
                    await
                    TripLoad0.
                    setTrip(relatedTrip0);
                }
            
                const relatedTrip1 = await Trips.findOne({
                    offset: Math.floor(Math.random() * (await Trips.count())),
                });
                const TripLoad1 = await TripLoads.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (TripLoad1?.setTrip)
                {
                    await
                    TripLoad1.
                    setTrip(relatedTrip1);
                }
            
                const relatedTrip2 = await Trips.findOne({
                    offset: Math.floor(Math.random() * (await Trips.count())),
                });
                const TripLoad2 = await TripLoads.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (TripLoad2?.setTrip)
                {
                    await
                    TripLoad2.
                    setTrip(relatedTrip2);
                }
            
                const relatedTrip3 = await Trips.findOne({
                    offset: Math.floor(Math.random() * (await Trips.count())),
                });
                const TripLoad3 = await TripLoads.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (TripLoad3?.setTrip)
                {
                    await
                    TripLoad3.
                    setTrip(relatedTrip3);
                }
            
                const relatedTrip4 = await Trips.findOne({
                    offset: Math.floor(Math.random() * (await Trips.count())),
                });
                const TripLoad4 = await TripLoads.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (TripLoad4?.setTrip)
                {
                    await
                    TripLoad4.
                    setTrip(relatedTrip4);
                }
            
        }
        
    
        
            
            async function associateTripLoadWithLoad() {
            
                const relatedLoad0 = await Loads.findOne({
                    offset: Math.floor(Math.random() * (await Loads.count())),
                });
                const TripLoad0 = await TripLoads.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (TripLoad0?.setLoad)
                {
                    await
                    TripLoad0.
                    setLoad(relatedLoad0);
                }
            
                const relatedLoad1 = await Loads.findOne({
                    offset: Math.floor(Math.random() * (await Loads.count())),
                });
                const TripLoad1 = await TripLoads.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (TripLoad1?.setLoad)
                {
                    await
                    TripLoad1.
                    setLoad(relatedLoad1);
                }
            
                const relatedLoad2 = await Loads.findOne({
                    offset: Math.floor(Math.random() * (await Loads.count())),
                });
                const TripLoad2 = await TripLoads.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (TripLoad2?.setLoad)
                {
                    await
                    TripLoad2.
                    setLoad(relatedLoad2);
                }
            
                const relatedLoad3 = await Loads.findOne({
                    offset: Math.floor(Math.random() * (await Loads.count())),
                });
                const TripLoad3 = await TripLoads.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (TripLoad3?.setLoad)
                {
                    await
                    TripLoad3.
                    setLoad(relatedLoad3);
                }
            
                const relatedLoad4 = await Loads.findOne({
                    offset: Math.floor(Math.random() * (await Loads.count())),
                });
                const TripLoad4 = await TripLoads.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (TripLoad4?.setLoad)
                {
                    await
                    TripLoad4.
                    setLoad(relatedLoad4);
                }
            
        }
        
    
        
    

    
    
    
        
            
            async function associatePodFileWithCompany() {
            
                const relatedCompany0 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const PodFile0 = await PodFiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PodFile0?.setCompany)
                {
                    await
                    PodFile0.
                    setCompany(relatedCompany0);
                }
            
                const relatedCompany1 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const PodFile1 = await PodFiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PodFile1?.setCompany)
                {
                    await
                    PodFile1.
                    setCompany(relatedCompany1);
                }
            
                const relatedCompany2 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const PodFile2 = await PodFiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PodFile2?.setCompany)
                {
                    await
                    PodFile2.
                    setCompany(relatedCompany2);
                }
            
                const relatedCompany3 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const PodFile3 = await PodFiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PodFile3?.setCompany)
                {
                    await
                    PodFile3.
                    setCompany(relatedCompany3);
                }
            
                const relatedCompany4 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const PodFile4 = await PodFiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PodFile4?.setCompany)
                {
                    await
                    PodFile4.
                    setCompany(relatedCompany4);
                }
            
        }
        
    
        
            
            async function associatePodFileWithStop() {
            
                const relatedStop0 = await LoadStops.findOne({
                    offset: Math.floor(Math.random() * (await LoadStops.count())),
                });
                const PodFile0 = await PodFiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (PodFile0?.setStop)
                {
                    await
                    PodFile0.
                    setStop(relatedStop0);
                }
            
                const relatedStop1 = await LoadStops.findOne({
                    offset: Math.floor(Math.random() * (await LoadStops.count())),
                });
                const PodFile1 = await PodFiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (PodFile1?.setStop)
                {
                    await
                    PodFile1.
                    setStop(relatedStop1);
                }
            
                const relatedStop2 = await LoadStops.findOne({
                    offset: Math.floor(Math.random() * (await LoadStops.count())),
                });
                const PodFile2 = await PodFiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (PodFile2?.setStop)
                {
                    await
                    PodFile2.
                    setStop(relatedStop2);
                }
            
                const relatedStop3 = await LoadStops.findOne({
                    offset: Math.floor(Math.random() * (await LoadStops.count())),
                });
                const PodFile3 = await PodFiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (PodFile3?.setStop)
                {
                    await
                    PodFile3.
                    setStop(relatedStop3);
                }
            
                const relatedStop4 = await LoadStops.findOne({
                    offset: Math.floor(Math.random() * (await LoadStops.count())),
                });
                const PodFile4 = await PodFiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (PodFile4?.setStop)
                {
                    await
                    PodFile4.
                    setStop(relatedStop4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateInvoiceWithCompany() {
            
                const relatedCompany0 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Invoice0 = await Invoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Invoice0?.setCompany)
                {
                    await
                    Invoice0.
                    setCompany(relatedCompany0);
                }
            
                const relatedCompany1 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Invoice1 = await Invoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Invoice1?.setCompany)
                {
                    await
                    Invoice1.
                    setCompany(relatedCompany1);
                }
            
                const relatedCompany2 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Invoice2 = await Invoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Invoice2?.setCompany)
                {
                    await
                    Invoice2.
                    setCompany(relatedCompany2);
                }
            
                const relatedCompany3 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Invoice3 = await Invoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Invoice3?.setCompany)
                {
                    await
                    Invoice3.
                    setCompany(relatedCompany3);
                }
            
                const relatedCompany4 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Invoice4 = await Invoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Invoice4?.setCompany)
                {
                    await
                    Invoice4.
                    setCompany(relatedCompany4);
                }
            
        }
        
    
        
            
            async function associateInvoiceWithCustomer() {
            
                const relatedCustomer0 = await Customers.findOne({
                    offset: Math.floor(Math.random() * (await Customers.count())),
                });
                const Invoice0 = await Invoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Invoice0?.setCustomer)
                {
                    await
                    Invoice0.
                    setCustomer(relatedCustomer0);
                }
            
                const relatedCustomer1 = await Customers.findOne({
                    offset: Math.floor(Math.random() * (await Customers.count())),
                });
                const Invoice1 = await Invoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Invoice1?.setCustomer)
                {
                    await
                    Invoice1.
                    setCustomer(relatedCustomer1);
                }
            
                const relatedCustomer2 = await Customers.findOne({
                    offset: Math.floor(Math.random() * (await Customers.count())),
                });
                const Invoice2 = await Invoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Invoice2?.setCustomer)
                {
                    await
                    Invoice2.
                    setCustomer(relatedCustomer2);
                }
            
                const relatedCustomer3 = await Customers.findOne({
                    offset: Math.floor(Math.random() * (await Customers.count())),
                });
                const Invoice3 = await Invoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Invoice3?.setCustomer)
                {
                    await
                    Invoice3.
                    setCustomer(relatedCustomer3);
                }
            
                const relatedCustomer4 = await Customers.findOne({
                    offset: Math.floor(Math.random() * (await Customers.count())),
                });
                const Invoice4 = await Invoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Invoice4?.setCustomer)
                {
                    await
                    Invoice4.
                    setCustomer(relatedCustomer4);
                }
            
        }
        
    
        
            
            async function associateInvoiceWithOrder() {
            
                const relatedOrder0 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const Invoice0 = await Invoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Invoice0?.setOrder)
                {
                    await
                    Invoice0.
                    setOrder(relatedOrder0);
                }
            
                const relatedOrder1 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const Invoice1 = await Invoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Invoice1?.setOrder)
                {
                    await
                    Invoice1.
                    setOrder(relatedOrder1);
                }
            
                const relatedOrder2 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const Invoice2 = await Invoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Invoice2?.setOrder)
                {
                    await
                    Invoice2.
                    setOrder(relatedOrder2);
                }
            
                const relatedOrder3 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const Invoice3 = await Invoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Invoice3?.setOrder)
                {
                    await
                    Invoice3.
                    setOrder(relatedOrder3);
                }
            
                const relatedOrder4 = await Orders.findOne({
                    offset: Math.floor(Math.random() * (await Orders.count())),
                });
                const Invoice4 = await Invoices.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Invoice4?.setOrder)
                {
                    await
                    Invoice4.
                    setOrder(relatedOrder4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateInvoiceLineWithInvoice() {
            
                const relatedInvoice0 = await Invoices.findOne({
                    offset: Math.floor(Math.random() * (await Invoices.count())),
                });
                const InvoiceLine0 = await InvoiceLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (InvoiceLine0?.setInvoice)
                {
                    await
                    InvoiceLine0.
                    setInvoice(relatedInvoice0);
                }
            
                const relatedInvoice1 = await Invoices.findOne({
                    offset: Math.floor(Math.random() * (await Invoices.count())),
                });
                const InvoiceLine1 = await InvoiceLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (InvoiceLine1?.setInvoice)
                {
                    await
                    InvoiceLine1.
                    setInvoice(relatedInvoice1);
                }
            
                const relatedInvoice2 = await Invoices.findOne({
                    offset: Math.floor(Math.random() * (await Invoices.count())),
                });
                const InvoiceLine2 = await InvoiceLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (InvoiceLine2?.setInvoice)
                {
                    await
                    InvoiceLine2.
                    setInvoice(relatedInvoice2);
                }
            
                const relatedInvoice3 = await Invoices.findOne({
                    offset: Math.floor(Math.random() * (await Invoices.count())),
                });
                const InvoiceLine3 = await InvoiceLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (InvoiceLine3?.setInvoice)
                {
                    await
                    InvoiceLine3.
                    setInvoice(relatedInvoice3);
                }
            
                const relatedInvoice4 = await Invoices.findOne({
                    offset: Math.floor(Math.random() * (await Invoices.count())),
                });
                const InvoiceLine4 = await InvoiceLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (InvoiceLine4?.setInvoice)
                {
                    await
                    InvoiceLine4.
                    setInvoice(relatedInvoice4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateInvoiceLineWithTrip() {
            
                const relatedTrip0 = await Trips.findOne({
                    offset: Math.floor(Math.random() * (await Trips.count())),
                });
                const InvoiceLine0 = await InvoiceLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (InvoiceLine0?.setTrip)
                {
                    await
                    InvoiceLine0.
                    setTrip(relatedTrip0);
                }
            
                const relatedTrip1 = await Trips.findOne({
                    offset: Math.floor(Math.random() * (await Trips.count())),
                });
                const InvoiceLine1 = await InvoiceLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (InvoiceLine1?.setTrip)
                {
                    await
                    InvoiceLine1.
                    setTrip(relatedTrip1);
                }
            
                const relatedTrip2 = await Trips.findOne({
                    offset: Math.floor(Math.random() * (await Trips.count())),
                });
                const InvoiceLine2 = await InvoiceLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (InvoiceLine2?.setTrip)
                {
                    await
                    InvoiceLine2.
                    setTrip(relatedTrip2);
                }
            
                const relatedTrip3 = await Trips.findOne({
                    offset: Math.floor(Math.random() * (await Trips.count())),
                });
                const InvoiceLine3 = await InvoiceLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (InvoiceLine3?.setTrip)
                {
                    await
                    InvoiceLine3.
                    setTrip(relatedTrip3);
                }
            
                const relatedTrip4 = await Trips.findOne({
                    offset: Math.floor(Math.random() * (await Trips.count())),
                });
                const InvoiceLine4 = await InvoiceLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (InvoiceLine4?.setTrip)
                {
                    await
                    InvoiceLine4.
                    setTrip(relatedTrip4);
                }
            
        }
        
    
        
            
            async function associateInvoiceLineWithLoad() {
            
                const relatedLoad0 = await Loads.findOne({
                    offset: Math.floor(Math.random() * (await Loads.count())),
                });
                const InvoiceLine0 = await InvoiceLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (InvoiceLine0?.setLoad)
                {
                    await
                    InvoiceLine0.
                    setLoad(relatedLoad0);
                }
            
                const relatedLoad1 = await Loads.findOne({
                    offset: Math.floor(Math.random() * (await Loads.count())),
                });
                const InvoiceLine1 = await InvoiceLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (InvoiceLine1?.setLoad)
                {
                    await
                    InvoiceLine1.
                    setLoad(relatedLoad1);
                }
            
                const relatedLoad2 = await Loads.findOne({
                    offset: Math.floor(Math.random() * (await Loads.count())),
                });
                const InvoiceLine2 = await InvoiceLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (InvoiceLine2?.setLoad)
                {
                    await
                    InvoiceLine2.
                    setLoad(relatedLoad2);
                }
            
                const relatedLoad3 = await Loads.findOne({
                    offset: Math.floor(Math.random() * (await Loads.count())),
                });
                const InvoiceLine3 = await InvoiceLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (InvoiceLine3?.setLoad)
                {
                    await
                    InvoiceLine3.
                    setLoad(relatedLoad3);
                }
            
                const relatedLoad4 = await Loads.findOne({
                    offset: Math.floor(Math.random() * (await Loads.count())),
                });
                const InvoiceLine4 = await InvoiceLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (InvoiceLine4?.setLoad)
                {
                    await
                    InvoiceLine4.
                    setLoad(relatedLoad4);
                }
            
        }
        
    
        
            
            async function associateInvoiceLineWithCost_item() {
            
                const relatedCost_item0 = await CostItems.findOne({
                    offset: Math.floor(Math.random() * (await CostItems.count())),
                });
                const InvoiceLine0 = await InvoiceLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (InvoiceLine0?.setCost_item)
                {
                    await
                    InvoiceLine0.
                    setCost_item(relatedCost_item0);
                }
            
                const relatedCost_item1 = await CostItems.findOne({
                    offset: Math.floor(Math.random() * (await CostItems.count())),
                });
                const InvoiceLine1 = await InvoiceLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (InvoiceLine1?.setCost_item)
                {
                    await
                    InvoiceLine1.
                    setCost_item(relatedCost_item1);
                }
            
                const relatedCost_item2 = await CostItems.findOne({
                    offset: Math.floor(Math.random() * (await CostItems.count())),
                });
                const InvoiceLine2 = await InvoiceLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (InvoiceLine2?.setCost_item)
                {
                    await
                    InvoiceLine2.
                    setCost_item(relatedCost_item2);
                }
            
                const relatedCost_item3 = await CostItems.findOne({
                    offset: Math.floor(Math.random() * (await CostItems.count())),
                });
                const InvoiceLine3 = await InvoiceLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (InvoiceLine3?.setCost_item)
                {
                    await
                    InvoiceLine3.
                    setCost_item(relatedCost_item3);
                }
            
                const relatedCost_item4 = await CostItems.findOne({
                    offset: Math.floor(Math.random() * (await CostItems.count())),
                });
                const InvoiceLine4 = await InvoiceLines.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (InvoiceLine4?.setCost_item)
                {
                    await
                    InvoiceLine4.
                    setCost_item(relatedCost_item4);
                }
            
        }
        
    

    
    
    
        
            
            async function associatePaymentWithCompany() {
            
                const relatedCompany0 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Payment0 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Payment0?.setCompany)
                {
                    await
                    Payment0.
                    setCompany(relatedCompany0);
                }
            
                const relatedCompany1 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Payment1 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Payment1?.setCompany)
                {
                    await
                    Payment1.
                    setCompany(relatedCompany1);
                }
            
                const relatedCompany2 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Payment2 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Payment2?.setCompany)
                {
                    await
                    Payment2.
                    setCompany(relatedCompany2);
                }
            
                const relatedCompany3 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Payment3 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Payment3?.setCompany)
                {
                    await
                    Payment3.
                    setCompany(relatedCompany3);
                }
            
                const relatedCompany4 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const Payment4 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Payment4?.setCompany)
                {
                    await
                    Payment4.
                    setCompany(relatedCompany4);
                }
            
        }
        
    
        
            
            async function associatePaymentWithInvoice() {
            
                const relatedInvoice0 = await Invoices.findOne({
                    offset: Math.floor(Math.random() * (await Invoices.count())),
                });
                const Payment0 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (Payment0?.setInvoice)
                {
                    await
                    Payment0.
                    setInvoice(relatedInvoice0);
                }
            
                const relatedInvoice1 = await Invoices.findOne({
                    offset: Math.floor(Math.random() * (await Invoices.count())),
                });
                const Payment1 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (Payment1?.setInvoice)
                {
                    await
                    Payment1.
                    setInvoice(relatedInvoice1);
                }
            
                const relatedInvoice2 = await Invoices.findOne({
                    offset: Math.floor(Math.random() * (await Invoices.count())),
                });
                const Payment2 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (Payment2?.setInvoice)
                {
                    await
                    Payment2.
                    setInvoice(relatedInvoice2);
                }
            
                const relatedInvoice3 = await Invoices.findOne({
                    offset: Math.floor(Math.random() * (await Invoices.count())),
                });
                const Payment3 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (Payment3?.setInvoice)
                {
                    await
                    Payment3.
                    setInvoice(relatedInvoice3);
                }
            
                const relatedInvoice4 = await Invoices.findOne({
                    offset: Math.floor(Math.random() * (await Invoices.count())),
                });
                const Payment4 = await Payments.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (Payment4?.setInvoice)
                {
                    await
                    Payment4.
                    setInvoice(relatedInvoice4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateCostItemWithCompany() {
            
                const relatedCompany0 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const CostItem0 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CostItem0?.setCompany)
                {
                    await
                    CostItem0.
                    setCompany(relatedCompany0);
                }
            
                const relatedCompany1 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const CostItem1 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CostItem1?.setCompany)
                {
                    await
                    CostItem1.
                    setCompany(relatedCompany1);
                }
            
                const relatedCompany2 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const CostItem2 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CostItem2?.setCompany)
                {
                    await
                    CostItem2.
                    setCompany(relatedCompany2);
                }
            
                const relatedCompany3 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const CostItem3 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CostItem3?.setCompany)
                {
                    await
                    CostItem3.
                    setCompany(relatedCompany3);
                }
            
                const relatedCompany4 = await Companies.findOne({
                    offset: Math.floor(Math.random() * (await Companies.count())),
                });
                const CostItem4 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CostItem4?.setCompany)
                {
                    await
                    CostItem4.
                    setCompany(relatedCompany4);
                }
            
        }
        
    
        
    
        
            
            async function associateCostItemWithTrip() {
            
                const relatedTrip0 = await Trips.findOne({
                    offset: Math.floor(Math.random() * (await Trips.count())),
                });
                const CostItem0 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CostItem0?.setTrip)
                {
                    await
                    CostItem0.
                    setTrip(relatedTrip0);
                }
            
                const relatedTrip1 = await Trips.findOne({
                    offset: Math.floor(Math.random() * (await Trips.count())),
                });
                const CostItem1 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CostItem1?.setTrip)
                {
                    await
                    CostItem1.
                    setTrip(relatedTrip1);
                }
            
                const relatedTrip2 = await Trips.findOne({
                    offset: Math.floor(Math.random() * (await Trips.count())),
                });
                const CostItem2 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CostItem2?.setTrip)
                {
                    await
                    CostItem2.
                    setTrip(relatedTrip2);
                }
            
                const relatedTrip3 = await Trips.findOne({
                    offset: Math.floor(Math.random() * (await Trips.count())),
                });
                const CostItem3 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CostItem3?.setTrip)
                {
                    await
                    CostItem3.
                    setTrip(relatedTrip3);
                }
            
                const relatedTrip4 = await Trips.findOne({
                    offset: Math.floor(Math.random() * (await Trips.count())),
                });
                const CostItem4 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CostItem4?.setTrip)
                {
                    await
                    CostItem4.
                    setTrip(relatedTrip4);
                }
            
        }
        
    
        
            
            async function associateCostItemWithVehicle() {
            
                const relatedVehicle0 = await Vehicles.findOne({
                    offset: Math.floor(Math.random() * (await Vehicles.count())),
                });
                const CostItem0 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CostItem0?.setVehicle)
                {
                    await
                    CostItem0.
                    setVehicle(relatedVehicle0);
                }
            
                const relatedVehicle1 = await Vehicles.findOne({
                    offset: Math.floor(Math.random() * (await Vehicles.count())),
                });
                const CostItem1 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CostItem1?.setVehicle)
                {
                    await
                    CostItem1.
                    setVehicle(relatedVehicle1);
                }
            
                const relatedVehicle2 = await Vehicles.findOne({
                    offset: Math.floor(Math.random() * (await Vehicles.count())),
                });
                const CostItem2 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CostItem2?.setVehicle)
                {
                    await
                    CostItem2.
                    setVehicle(relatedVehicle2);
                }
            
                const relatedVehicle3 = await Vehicles.findOne({
                    offset: Math.floor(Math.random() * (await Vehicles.count())),
                });
                const CostItem3 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CostItem3?.setVehicle)
                {
                    await
                    CostItem3.
                    setVehicle(relatedVehicle3);
                }
            
                const relatedVehicle4 = await Vehicles.findOne({
                    offset: Math.floor(Math.random() * (await Vehicles.count())),
                });
                const CostItem4 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CostItem4?.setVehicle)
                {
                    await
                    CostItem4.
                    setVehicle(relatedVehicle4);
                }
            
        }
        
    
        
            
            async function associateCostItemWithTrailer() {
            
                const relatedTrailer0 = await Trailers.findOne({
                    offset: Math.floor(Math.random() * (await Trailers.count())),
                });
                const CostItem0 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CostItem0?.setTrailer)
                {
                    await
                    CostItem0.
                    setTrailer(relatedTrailer0);
                }
            
                const relatedTrailer1 = await Trailers.findOne({
                    offset: Math.floor(Math.random() * (await Trailers.count())),
                });
                const CostItem1 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CostItem1?.setTrailer)
                {
                    await
                    CostItem1.
                    setTrailer(relatedTrailer1);
                }
            
                const relatedTrailer2 = await Trailers.findOne({
                    offset: Math.floor(Math.random() * (await Trailers.count())),
                });
                const CostItem2 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CostItem2?.setTrailer)
                {
                    await
                    CostItem2.
                    setTrailer(relatedTrailer2);
                }
            
                const relatedTrailer3 = await Trailers.findOne({
                    offset: Math.floor(Math.random() * (await Trailers.count())),
                });
                const CostItem3 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CostItem3?.setTrailer)
                {
                    await
                    CostItem3.
                    setTrailer(relatedTrailer3);
                }
            
                const relatedTrailer4 = await Trailers.findOne({
                    offset: Math.floor(Math.random() * (await Trailers.count())),
                });
                const CostItem4 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CostItem4?.setTrailer)
                {
                    await
                    CostItem4.
                    setTrailer(relatedTrailer4);
                }
            
        }
        
    
        
            
            async function associateCostItemWithEmployee() {
            
                const relatedEmployee0 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const CostItem0 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CostItem0?.setEmployee)
                {
                    await
                    CostItem0.
                    setEmployee(relatedEmployee0);
                }
            
                const relatedEmployee1 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const CostItem1 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CostItem1?.setEmployee)
                {
                    await
                    CostItem1.
                    setEmployee(relatedEmployee1);
                }
            
                const relatedEmployee2 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const CostItem2 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CostItem2?.setEmployee)
                {
                    await
                    CostItem2.
                    setEmployee(relatedEmployee2);
                }
            
                const relatedEmployee3 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const CostItem3 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CostItem3?.setEmployee)
                {
                    await
                    CostItem3.
                    setEmployee(relatedEmployee3);
                }
            
                const relatedEmployee4 = await Employees.findOne({
                    offset: Math.floor(Math.random() * (await Employees.count())),
                });
                const CostItem4 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CostItem4?.setEmployee)
                {
                    await
                    CostItem4.
                    setEmployee(relatedEmployee4);
                }
            
        }
        
    
        
            
            async function associateCostItemWithLoad() {
            
                const relatedLoad0 = await Loads.findOne({
                    offset: Math.floor(Math.random() * (await Loads.count())),
                });
                const CostItem0 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CostItem0?.setLoad)
                {
                    await
                    CostItem0.
                    setLoad(relatedLoad0);
                }
            
                const relatedLoad1 = await Loads.findOne({
                    offset: Math.floor(Math.random() * (await Loads.count())),
                });
                const CostItem1 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CostItem1?.setLoad)
                {
                    await
                    CostItem1.
                    setLoad(relatedLoad1);
                }
            
                const relatedLoad2 = await Loads.findOne({
                    offset: Math.floor(Math.random() * (await Loads.count())),
                });
                const CostItem2 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CostItem2?.setLoad)
                {
                    await
                    CostItem2.
                    setLoad(relatedLoad2);
                }
            
                const relatedLoad3 = await Loads.findOne({
                    offset: Math.floor(Math.random() * (await Loads.count())),
                });
                const CostItem3 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CostItem3?.setLoad)
                {
                    await
                    CostItem3.
                    setLoad(relatedLoad3);
                }
            
                const relatedLoad4 = await Loads.findOne({
                    offset: Math.floor(Math.random() * (await Loads.count())),
                });
                const CostItem4 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CostItem4?.setLoad)
                {
                    await
                    CostItem4.
                    setLoad(relatedLoad4);
                }
            
        }
        
    
        
            
            async function associateCostItemWithVendor_rel() {
            
                const relatedVendor_rel0 = await Vendors.findOne({
                    offset: Math.floor(Math.random() * (await Vendors.count())),
                });
                const CostItem0 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CostItem0?.setVendor_rel)
                {
                    await
                    CostItem0.
                    setVendor_rel(relatedVendor_rel0);
                }
            
                const relatedVendor_rel1 = await Vendors.findOne({
                    offset: Math.floor(Math.random() * (await Vendors.count())),
                });
                const CostItem1 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CostItem1?.setVendor_rel)
                {
                    await
                    CostItem1.
                    setVendor_rel(relatedVendor_rel1);
                }
            
                const relatedVendor_rel2 = await Vendors.findOne({
                    offset: Math.floor(Math.random() * (await Vendors.count())),
                });
                const CostItem2 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CostItem2?.setVendor_rel)
                {
                    await
                    CostItem2.
                    setVendor_rel(relatedVendor_rel2);
                }
            
                const relatedVendor_rel3 = await Vendors.findOne({
                    offset: Math.floor(Math.random() * (await Vendors.count())),
                });
                const CostItem3 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CostItem3?.setVendor_rel)
                {
                    await
                    CostItem3.
                    setVendor_rel(relatedVendor_rel3);
                }
            
                const relatedVendor_rel4 = await Vendors.findOne({
                    offset: Math.floor(Math.random() * (await Vendors.count())),
                });
                const CostItem4 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CostItem4?.setVendor_rel)
                {
                    await
                    CostItem4.
                    setVendor_rel(relatedVendor_rel4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
            async function associateCostItemWithFuel_entry() {
            
                const relatedFuel_entry0 = await FuelEntries.findOne({
                    offset: Math.floor(Math.random() * (await FuelEntries.count())),
                });
                const CostItem0 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CostItem0?.setFuel_entry)
                {
                    await
                    CostItem0.
                    setFuel_entry(relatedFuel_entry0);
                }
            
                const relatedFuel_entry1 = await FuelEntries.findOne({
                    offset: Math.floor(Math.random() * (await FuelEntries.count())),
                });
                const CostItem1 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CostItem1?.setFuel_entry)
                {
                    await
                    CostItem1.
                    setFuel_entry(relatedFuel_entry1);
                }
            
                const relatedFuel_entry2 = await FuelEntries.findOne({
                    offset: Math.floor(Math.random() * (await FuelEntries.count())),
                });
                const CostItem2 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CostItem2?.setFuel_entry)
                {
                    await
                    CostItem2.
                    setFuel_entry(relatedFuel_entry2);
                }
            
                const relatedFuel_entry3 = await FuelEntries.findOne({
                    offset: Math.floor(Math.random() * (await FuelEntries.count())),
                });
                const CostItem3 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CostItem3?.setFuel_entry)
                {
                    await
                    CostItem3.
                    setFuel_entry(relatedFuel_entry3);
                }
            
                const relatedFuel_entry4 = await FuelEntries.findOne({
                    offset: Math.floor(Math.random() * (await FuelEntries.count())),
                });
                const CostItem4 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CostItem4?.setFuel_entry)
                {
                    await
                    CostItem4.
                    setFuel_entry(relatedFuel_entry4);
                }
            
        }
        
    
        
            
            async function associateCostItemWithToll_entry() {
            
                const relatedToll_entry0 = await TollEntries.findOne({
                    offset: Math.floor(Math.random() * (await TollEntries.count())),
                });
                const CostItem0 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CostItem0?.setToll_entry)
                {
                    await
                    CostItem0.
                    setToll_entry(relatedToll_entry0);
                }
            
                const relatedToll_entry1 = await TollEntries.findOne({
                    offset: Math.floor(Math.random() * (await TollEntries.count())),
                });
                const CostItem1 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CostItem1?.setToll_entry)
                {
                    await
                    CostItem1.
                    setToll_entry(relatedToll_entry1);
                }
            
                const relatedToll_entry2 = await TollEntries.findOne({
                    offset: Math.floor(Math.random() * (await TollEntries.count())),
                });
                const CostItem2 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CostItem2?.setToll_entry)
                {
                    await
                    CostItem2.
                    setToll_entry(relatedToll_entry2);
                }
            
                const relatedToll_entry3 = await TollEntries.findOne({
                    offset: Math.floor(Math.random() * (await TollEntries.count())),
                });
                const CostItem3 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CostItem3?.setToll_entry)
                {
                    await
                    CostItem3.
                    setToll_entry(relatedToll_entry3);
                }
            
                const relatedToll_entry4 = await TollEntries.findOne({
                    offset: Math.floor(Math.random() * (await TollEntries.count())),
                });
                const CostItem4 = await CostItems.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CostItem4?.setToll_entry)
                {
                    await
                    CostItem4.
                    setToll_entry(relatedToll_entry4);
                }
            
        }
        
    

    
    
    
        
            
            async function associateCostFileWithCost_item() {
            
                const relatedCost_item0 = await CostItems.findOne({
                    offset: Math.floor(Math.random() * (await CostItems.count())),
                });
                const CostFile0 = await CostFiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (CostFile0?.setCost_item)
                {
                    await
                    CostFile0.
                    setCost_item(relatedCost_item0);
                }
            
                const relatedCost_item1 = await CostItems.findOne({
                    offset: Math.floor(Math.random() * (await CostItems.count())),
                });
                const CostFile1 = await CostFiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (CostFile1?.setCost_item)
                {
                    await
                    CostFile1.
                    setCost_item(relatedCost_item1);
                }
            
                const relatedCost_item2 = await CostItems.findOne({
                    offset: Math.floor(Math.random() * (await CostItems.count())),
                });
                const CostFile2 = await CostFiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (CostFile2?.setCost_item)
                {
                    await
                    CostFile2.
                    setCost_item(relatedCost_item2);
                }
            
                const relatedCost_item3 = await CostItems.findOne({
                    offset: Math.floor(Math.random() * (await CostItems.count())),
                });
                const CostFile3 = await CostFiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (CostFile3?.setCost_item)
                {
                    await
                    CostFile3.
                    setCost_item(relatedCost_item3);
                }
            
                const relatedCost_item4 = await CostItems.findOne({
                    offset: Math.floor(Math.random() * (await CostItems.count())),
                });
                const CostFile4 = await CostFiles.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (CostFile4?.setCost_item)
                {
                    await
                    CostFile4.
                    setCost_item(relatedCost_item4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateFuelEntryWithCost_item() {
            
                const relatedCost_item0 = await CostItems.findOne({
                    offset: Math.floor(Math.random() * (await CostItems.count())),
                });
                const FuelEntry0 = await FuelEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (FuelEntry0?.setCost_item)
                {
                    await
                    FuelEntry0.
                    setCost_item(relatedCost_item0);
                }
            
                const relatedCost_item1 = await CostItems.findOne({
                    offset: Math.floor(Math.random() * (await CostItems.count())),
                });
                const FuelEntry1 = await FuelEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (FuelEntry1?.setCost_item)
                {
                    await
                    FuelEntry1.
                    setCost_item(relatedCost_item1);
                }
            
                const relatedCost_item2 = await CostItems.findOne({
                    offset: Math.floor(Math.random() * (await CostItems.count())),
                });
                const FuelEntry2 = await FuelEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (FuelEntry2?.setCost_item)
                {
                    await
                    FuelEntry2.
                    setCost_item(relatedCost_item2);
                }
            
                const relatedCost_item3 = await CostItems.findOne({
                    offset: Math.floor(Math.random() * (await CostItems.count())),
                });
                const FuelEntry3 = await FuelEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (FuelEntry3?.setCost_item)
                {
                    await
                    FuelEntry3.
                    setCost_item(relatedCost_item3);
                }
            
                const relatedCost_item4 = await CostItems.findOne({
                    offset: Math.floor(Math.random() * (await CostItems.count())),
                });
                const FuelEntry4 = await FuelEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (FuelEntry4?.setCost_item)
                {
                    await
                    FuelEntry4.
                    setCost_item(relatedCost_item4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    

    
    
    
        
            
            async function associateTollEntryWithCost_item() {
            
                const relatedCost_item0 = await CostItems.findOne({
                    offset: Math.floor(Math.random() * (await CostItems.count())),
                });
                const TollEntry0 = await TollEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 0
                });
                if (TollEntry0?.setCost_item)
                {
                    await
                    TollEntry0.
                    setCost_item(relatedCost_item0);
                }
            
                const relatedCost_item1 = await CostItems.findOne({
                    offset: Math.floor(Math.random() * (await CostItems.count())),
                });
                const TollEntry1 = await TollEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 1
                });
                if (TollEntry1?.setCost_item)
                {
                    await
                    TollEntry1.
                    setCost_item(relatedCost_item1);
                }
            
                const relatedCost_item2 = await CostItems.findOne({
                    offset: Math.floor(Math.random() * (await CostItems.count())),
                });
                const TollEntry2 = await TollEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 2
                });
                if (TollEntry2?.setCost_item)
                {
                    await
                    TollEntry2.
                    setCost_item(relatedCost_item2);
                }
            
                const relatedCost_item3 = await CostItems.findOne({
                    offset: Math.floor(Math.random() * (await CostItems.count())),
                });
                const TollEntry3 = await TollEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 3
                });
                if (TollEntry3?.setCost_item)
                {
                    await
                    TollEntry3.
                    setCost_item(relatedCost_item3);
                }
            
                const relatedCost_item4 = await CostItems.findOne({
                    offset: Math.floor(Math.random() * (await CostItems.count())),
                });
                const TollEntry4 = await TollEntries.findOne({
                    order: [['id', 'ASC']],
                    offset: 4
                });
                if (TollEntry4?.setCost_item)
                {
                    await
                    TollEntry4.
                    setCost_item(relatedCost_item4);
                }
            
        }
        
    
        
    
        
    
        
    
        
    
        
    
        
    


module.exports = {
    up: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
                
                await Companies.bulkCreate(CompaniesData);
                
            
            
                
                await CompanyLocations.bulkCreate(CompanyLocationsData);
                
            
            
                
                await CompanyContacts.bulkCreate(CompanyContactsData);
                
            
            
                
                await CompanyBankAccounts.bulkCreate(CompanyBankAccountsData);
                
            
            
                
                await CompanyPermits.bulkCreate(CompanyPermitsData);
                
            
            
                
                await CompanyInsurances.bulkCreate(CompanyInsurancesData);
                
            
            
                
                await CompanyDocuments.bulkCreate(CompanyDocumentsData);
                
            
            
                
                await CompanyDocumentVersions.bulkCreate(CompanyDocumentVersionsData);
                
            
            
                
                await Employees.bulkCreate(EmployeesData);
                
            
            
                
                await EmployeeAssignments.bulkCreate(EmployeeAssignmentsData);
                
            
            
                
                await EmployeeHrRecords.bulkCreate(EmployeeHrRecordsData);
                
            
            
                
                await DriverProfiles.bulkCreate(DriverProfilesData);
                
            
            
                
                await DriverCompliances.bulkCreate(DriverCompliancesData);
                
            
            
                
                await Incidents.bulkCreate(IncidentsData);
                
            
            
                
                await Documents.bulkCreate(DocumentsData);
                
            
            
                
                await DocumentVersions.bulkCreate(DocumentVersionsData);
                
            
            
                
                await DocumentRetentionPolicies.bulkCreate(DocumentRetentionPoliciesData);
                
            
            
                
                await Customers.bulkCreate(CustomersData);
                
            
            
                
                await Vendors.bulkCreate(VendorsData);
                
            
            
                
                await Vehicles.bulkCreate(VehiclesData);
                
            
            
                
                await Trailers.bulkCreate(TrailersData);
                
            
            
                
                await VehicleTrailerLinks.bulkCreate(VehicleTrailerLinksData);
                
            
            
                
                await VehicleInspections.bulkCreate(VehicleInspectionsData);
                
            
            
                
                await VehicleMaintenances.bulkCreate(VehicleMaintenancesData);
                
            
            
                
                await VehicleInsurances.bulkCreate(VehicleInsurancesData);
                
            
            
                
                await VehicleDocuments.bulkCreate(VehicleDocumentsData);
                
            
            
                
                await VehicleDocumentVersions.bulkCreate(VehicleDocumentVersionsData);
                
            
            
                
                await DriverVehicleAssignments.bulkCreate(DriverVehicleAssignmentsData);
                
            
            
                
                await Orders.bulkCreate(OrdersData);
                
            
            
                
                await Loads.bulkCreate(LoadsData);
                
            
            
                
                await LoadStops.bulkCreate(LoadStopsData);
                
            
            
                
                await Trips.bulkCreate(TripsData);
                
            
            
                
                await TripLoads.bulkCreate(TripLoadsData);
                
            
            
                
                await PodFiles.bulkCreate(PodFilesData);
                
            
            
                
                await Invoices.bulkCreate(InvoicesData);
                
            
            
                
                await InvoiceLines.bulkCreate(InvoiceLinesData);
                
            
            
                
                await Payments.bulkCreate(PaymentsData);
                
            
            
                
                await CostItems.bulkCreate(CostItemsData);
                
            
            
                
                await CostFiles.bulkCreate(CostFilesData);
                
            
            
                
                await FuelEntries.bulkCreate(FuelEntriesData);
                
            
            
                
                await TollEntries.bulkCreate(TollEntriesData);
                
            
            await Promise.all([
            
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        // Similar logic for "relation_many"
                    
                
            
                
                
                
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateCompanyLocationWithCompany(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateCompanyContactWithCompany(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateCompanyBankAccountWithCompany(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateCompanyPermitWithCompany(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateCompanyInsuranceWithCompany(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateCompanyDocumentWithCompany(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateCompanyDocumentWithCurrent_version(),
                    
                
            
                
                
                    
                        
                        await associateCompanyDocumentVersionWithDocument(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateEmployeeWithCompany(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateEmployeeAssignmentWithEmployee(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateEmployeeHrRecordWithEmployee(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateDriverProfileWithEmployee(),
                    
                
                    
                
                    
                
                    
                        
                        await associateDriverProfileWithCompliance(),
                    
                
            
                
                
                    
                        
                        await associateDriverComplianceWithDriver_profile(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateIncidentWithCompany(),
                    
                
                    
                        
                        await associateIncidentWithEmployee(),
                    
                
                    
                        
                        await associateIncidentWithDriver_profile(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateDocumentWithCompany(),
                    
                
                    
                        
                        await associateDocumentWithEmployee(),
                    
                
                    
                        
                        await associateDocumentWithDriver_profile(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateDocumentWithCurrent_version(),
                    
                
            
                
                
                    
                        
                        await associateDocumentVersionWithDocument(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateDocumentRetentionPolicyWithCompany(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateCustomerWithCompany(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateVendorWithCompany(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateVehicleWithCompany(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateTrailerWithCompany(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateVehicleTrailerLinkWithCompany(),
                    
                
                    
                        
                        await associateVehicleTrailerLinkWithVehicle(),
                    
                
                    
                        
                        await associateVehicleTrailerLinkWithTrailer(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateVehicleInspectionWithCompany(),
                    
                
                    
                        
                        await associateVehicleInspectionWithVehicle(),
                    
                
                    
                        
                        await associateVehicleInspectionWithTrailer(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateVehicleMaintenanceWithCompany(),
                    
                
                    
                        
                        await associateVehicleMaintenanceWithVehicle(),
                    
                
                    
                        
                        await associateVehicleMaintenanceWithTrailer(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateVehicleInsuranceWithCompany(),
                    
                
                    
                        
                        await associateVehicleInsuranceWithVehicle(),
                    
                
                    
                        
                        await associateVehicleInsuranceWithTrailer(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateVehicleDocumentWithCompany(),
                    
                
                    
                        
                        await associateVehicleDocumentWithVehicle(),
                    
                
                    
                        
                        await associateVehicleDocumentWithTrailer(),
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateVehicleDocumentWithCurrent_version(),
                    
                
            
                
                
                    
                        
                        await associateVehicleDocumentVersionWithDocument(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateDriverVehicleAssignmentWithCompany(),
                    
                
                    
                        
                        await associateDriverVehicleAssignmentWithEmployee(),
                    
                
                    
                        
                        await associateDriverVehicleAssignmentWithVehicle(),
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateOrderWithCompany(),
                    
                
                    
                        
                        await associateOrderWithCustomer(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateLoadWithCompany(),
                    
                
                    
                        
                        await associateLoadWithOrder(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateLoadStopWithCompany(),
                    
                
                    
                        
                        await associateLoadStopWithLoad(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateTripWithCompany(),
                    
                
                    
                
                    
                
                    
                        
                        await associateTripWithDispatcher_user(),
                    
                
                    
                        
                        await associateTripWithDriver(),
                    
                
                    
                        
                        await associateTripWithVehicle(),
                    
                
                    
                        
                        await associateTripWithTrailer(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateTripLoadWithTrip(),
                    
                
                    
                        
                        await associateTripLoadWithLoad(),
                    
                
                    
                
            
                
                
                    
                        
                        await associatePodFileWithCompany(),
                    
                
                    
                        
                        await associatePodFileWithStop(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateInvoiceWithCompany(),
                    
                
                    
                        
                        await associateInvoiceWithCustomer(),
                    
                
                    
                        
                        await associateInvoiceWithOrder(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateInvoiceLineWithInvoice(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateInvoiceLineWithTrip(),
                    
                
                    
                        
                        await associateInvoiceLineWithLoad(),
                    
                
                    
                        
                        await associateInvoiceLineWithCost_item(),
                    
                
            
                
                
                    
                        
                        await associatePaymentWithCompany(),
                    
                
                    
                        
                        await associatePaymentWithInvoice(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateCostItemWithCompany(),
                    
                
                    
                
                    
                        
                        await associateCostItemWithTrip(),
                    
                
                    
                        
                        await associateCostItemWithVehicle(),
                    
                
                    
                        
                        await associateCostItemWithTrailer(),
                    
                
                    
                        
                        await associateCostItemWithEmployee(),
                    
                
                    
                        
                        await associateCostItemWithLoad(),
                    
                
                    
                        
                        await associateCostItemWithVendor_rel(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                        
                        await associateCostItemWithFuel_entry(),
                    
                
                    
                        
                        await associateCostItemWithToll_entry(),
                    
                
            
                
                
                    
                        
                        await associateCostFileWithCost_item(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateFuelEntryWithCost_item(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
                
                
                    
                        
                        await associateTollEntryWithCost_item(),
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            
            ]);
        
    },

    down: async (queryInterface, Sequelize) => {
        
            
            
            
            
            
            await queryInterface.bulkDelete('companies', null, {});
            
            
            await queryInterface.bulkDelete('company_locations', null, {});
            
            
            await queryInterface.bulkDelete('company_contacts', null, {});
            
            
            await queryInterface.bulkDelete('company_bank_accounts', null, {});
            
            
            await queryInterface.bulkDelete('company_permits', null, {});
            
            
            await queryInterface.bulkDelete('company_insurances', null, {});
            
            
            await queryInterface.bulkDelete('company_documents', null, {});
            
            
            await queryInterface.bulkDelete('company_document_versions', null, {});
            
            
            await queryInterface.bulkDelete('employees', null, {});
            
            
            await queryInterface.bulkDelete('employee_assignments', null, {});
            
            
            await queryInterface.bulkDelete('employee_hr_records', null, {});
            
            
            await queryInterface.bulkDelete('driver_profiles', null, {});
            
            
            await queryInterface.bulkDelete('driver_compliances', null, {});
            
            
            await queryInterface.bulkDelete('incidents', null, {});
            
            
            await queryInterface.bulkDelete('documents', null, {});
            
            
            await queryInterface.bulkDelete('document_versions', null, {});
            
            
            await queryInterface.bulkDelete('document_retention_policies', null, {});
            
            
            await queryInterface.bulkDelete('customers', null, {});
            
            
            await queryInterface.bulkDelete('vendors', null, {});
            
            
            await queryInterface.bulkDelete('vehicles', null, {});
            
            
            await queryInterface.bulkDelete('trailers', null, {});
            
            
            await queryInterface.bulkDelete('vehicle_trailer_links', null, {});
            
            
            await queryInterface.bulkDelete('vehicle_inspections', null, {});
            
            
            await queryInterface.bulkDelete('vehicle_maintenances', null, {});
            
            
            await queryInterface.bulkDelete('vehicle_insurances', null, {});
            
            
            await queryInterface.bulkDelete('vehicle_documents', null, {});
            
            
            await queryInterface.bulkDelete('vehicle_document_versions', null, {});
            
            
            await queryInterface.bulkDelete('driver_vehicle_assignments', null, {});
            
            
            await queryInterface.bulkDelete('orders', null, {});
            
            
            await queryInterface.bulkDelete('loads', null, {});
            
            
            await queryInterface.bulkDelete('load_stops', null, {});
            
            
            await queryInterface.bulkDelete('trips', null, {});
            
            
            await queryInterface.bulkDelete('trip_loads', null, {});
            
            
            await queryInterface.bulkDelete('pod_files', null, {});
            
            
            await queryInterface.bulkDelete('invoices', null, {});
            
            
            await queryInterface.bulkDelete('invoice_lines', null, {});
            
            
            await queryInterface.bulkDelete('payments', null, {});
            
            
            await queryInterface.bulkDelete('cost_items', null, {});
            
            
            await queryInterface.bulkDelete('cost_files', null, {});
            
            
            await queryInterface.bulkDelete('fuel_entries', null, {});
            
            
            await queryInterface.bulkDelete('toll_entries', null, {});
            
        
    },
};