{
  "format": "dataset-manifest/1",
  "slug": "fleet-management-sample-database",
  "version": 1,
  "seed": "flagship:fleet-management-sample-database:1k",
  "engine": 2,
  "engineVersion": "1.0.0",
  "spec": {
    "format": "dataset/1",
    "engine": 2,
    "slug": "fleet-management-sample-database",
    "name": "Fleet management sample database",
    "tagline": "Depots, drivers and vehicles: trips stop by stop, odometers, fuel, inspections, work orders, accidents and claims.",
    "description": "A delivery fleet run from eight US depots through 2024 and 2025: drivers and their shifts, three hundred vans and trucks with telemetry devices, routes and the trips driven on them stop by stop, fuel purchases, inspections, maintenance work orders, accidents and insurance claims. A trip is driven by one of its depot’s drivers in one of its depot’s vehicles; its stops are numbered in the order they were reached and fall inside the trip; the odometer at the end is the start plus the route’s miles, and no vehicle’s odometer ever runs backwards. A fill-up never exceeds the tank and costs $3.10 to $4.60 a gallon; a work order costs its labour at $125 an hour plus its parts; an inspection passes only if every item did; a claim is made on the policy of a vehicle in the accident and pays at most what was claimed.",
    "domain": "logistics",
    "shape": "transactional",
    "useCases": [
      "sql-practice",
      "analytics-demo",
      "test-fixtures"
    ],
    "keywords": [
      "fleet management",
      "trips",
      "vehicles",
      "fuel",
      "sample database"
    ],
    "locale": "en_US",
    "license": "CC0-1.0",
    "version": 1,
    "seed": "flagship:fleet-management-sample-database",
    "tables": {
      "accident_vehicles": {
        "description": "Rows for the accident_vehicles table.",
        "rows": 10,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "accident_id": {
            "kind": "fk",
            "ref": "accidents.id",
            "skew": "flat"
          },
          "damage_description": {
            "kind": "enum",
            "values": [
              "Bumper damage",
              "Mirror broken",
              "Door dented",
              "Windshield cracked",
              "Tail light broken"
            ]
          },
          "driver_id": {
            "kind": "fk",
            "ref": "drivers.id"
          },
          "estimated_repair_cost": {
            "kind": "decimal",
            "min": 250,
            "max": 18000,
            "scale": 2,
            "distribution": "long-tail"
          },
          "vehicle_id": {
            "kind": "fk",
            "ref": "vehicles.id"
          }
        }
      },
      "accidents": {
        "description": "Rows for the accidents table.",
        "rows": 10,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "accident_at": {
            "kind": "datetime",
            "from": "2024-01-01",
            "to": "2025-12-31",
            "dayProfile": "business"
          },
          "description": {
            "kind": "enum",
            "values": [
              "Rear-ended at a light",
              "Backed into a loading dock",
              "Side-swiped changing lanes",
              "Hit a parked car",
              "Windshield struck by debris"
            ]
          },
          "location": {
            "kind": "place.city"
          },
          "police_reported": {
            "kind": "bool",
            "trueRate": 0.45
          }
        }
      },
      "branches": {
        "description": "Rows for the branches table.",
        "rows": 8,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "city": {
            "kind": "enum",
            "values": [
              "Chicago",
              "Dallas",
              "Atlanta",
              "Denver",
              "Phoenix",
              "Columbus",
              "Sacramento",
              "Charlotte"
            ]
          },
          "country": {
            "kind": "enum",
            "values": [
              "United States"
            ]
          },
          "name": {
            "kind": "enum",
            "values": [
              "Chicago Depot",
              "Dallas Depot",
              "Atlanta Depot",
              "Denver Depot",
              "Phoenix Depot",
              "Columbus Depot",
              "Sacramento Depot",
              "Charlotte Depot"
            ],
            "unique": true
          },
          "organization_id": {
            "kind": "fk",
            "ref": "organizations.id"
          },
          "state": {
            "kind": "enum",
            "values": [
              "AZ",
              "CA",
              "CO",
              "GA",
              "IL",
              "NC",
              "OH",
              "TX"
            ]
          }
        }
      },
      "departments": {
        "description": "Rows for the departments table.",
        "rows": 24,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "branch_id": {
            "kind": "fk",
            "ref": "branches.id",
            "skew": "flat"
          },
          "budget": {
            "kind": "decimal",
            "min": 150000,
            "max": 2500000,
            "scale": 2,
            "distribution": "long-tail"
          },
          "name": {
            "kind": "enum",
            "values": [
              "Operations",
              "Maintenance",
              "Dispatch"
            ]
          }
        }
      },
      "device_assignments": {
        "description": "Rows for the device_assignments table.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "assigned_at": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "dayProfile": "business"
          },
          "device_id": {
            "kind": "fk",
            "ref": "telemetry_devices.id",
            "unique": true
          },
          "unassigned_at": {
            "kind": "datetime",
            "from": "2024-01-01",
            "to": "2025-12-31",
            "nullable": true,
            "nullRate": 0.92
          },
          "vehicle_id": {
            "kind": "fk",
            "ref": "vehicles.id",
            "unique": true
          }
        }
      },
      "driver_shifts": {
        "description": "Rows for the driver_shifts table.",
        "rows": 50,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "break_duration_minutes": {
            "kind": "enum",
            "values": [
              "30",
              "45",
              "60"
            ],
            "weights": [
              50,
              30,
              20
            ]
          },
          "driver_id": {
            "kind": "fk",
            "ref": "drivers.id",
            "skew": "flat"
          },
          "end_at": {
            "kind": "datetime",
            "from": "2024-01-01",
            "to": "2026-01-01"
          },
          "start_at": {
            "kind": "datetime",
            "from": "2024-01-01",
            "to": "2025-12-31",
            "dayProfile": "business"
          }
        }
      },
      "drivers": {
        "description": "Rows for the drivers table.",
        "rows": 250,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "employee_id": {
            "kind": "fk",
            "ref": "employees.id",
            "unique": true
          },
          "license_class": {
            "kind": "enum",
            "values": [
              "CDL-A",
              "CDL-B",
              "Class C"
            ],
            "weights": [
              30,
              35,
              35
            ]
          },
          "license_expiry": {
            "kind": "date",
            "from": "2026-01-01",
            "to": "2030-12-31"
          },
          "license_number": {
            "kind": "pattern",
            "pattern": "[DL-]A#######",
            "unique": true,
            "description": "A made-up driving licence number in the DL-A####### format."
          },
          "medical_cert_expiry": {
            "kind": "date",
            "from": "2026-01-01",
            "to": "2027-12-31"
          }
        }
      },
      "employees": {
        "description": "Rows for the employees table.",
        "rows": 400,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "department_id": {
            "kind": "fk",
            "ref": "departments.id",
            "skew": "flat"
          },
          "email": {
            "kind": "internet.email",
            "from": {
              "firstName": "first_name",
              "lastName": "last_name"
            },
            "unique": true
          },
          "first_name": {
            "kind": "person.firstName"
          },
          "hired_at": {
            "kind": "date",
            "from": "2012-01-01",
            "to": "2023-12-31"
          },
          "last_name": {
            "kind": "person.lastName"
          },
          "phone": {
            "kind": "phone.number"
          },
          "role_id": {
            "kind": "fk",
            "ref": "roles.id",
            "weights": [
              76,
              6,
              8,
              3,
              3,
              4
            ]
          }
        }
      },
      "fuel_cards": {
        "description": "Rows for the fuel_cards table.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "card_number": {
            "kind": "pattern",
            "pattern": "[**** **** **** ]####",
            "description": "Masked; only the last four digits are kept."
          },
          "credit_limit": {
            "kind": "enum",
            "values": [
              "2500",
              "5000",
              "10000"
            ]
          },
          "expiry_date": {
            "kind": "date",
            "from": "2026-01-01",
            "to": "2028-12-31"
          },
          "provider": {
            "kind": "enum",
            "values": [
              "WEX",
              "FleetCor",
              "Comdata"
            ]
          }
        }
      },
      "fuel_transactions": {
        "description": "Rows for the fuel_transactions table.",
        "rows": 30,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "amount": {
            "kind": "decimal",
            "min": 0,
            "max": 483,
            "scale": 2
          },
          "driver_id": {
            "kind": "fk",
            "ref": "drivers.id"
          },
          "fuel_card_id": {
            "kind": "fk",
            "ref": "fuel_cards.id"
          },
          "odometer": {
            "kind": "int",
            "min": 0,
            "max": 198615
          },
          "transaction_at": {
            "kind": "datetime",
            "from": "2024-01-01",
            "to": "2025-12-31",
            "dayProfile": "business"
          },
          "vehicle_id": {
            "kind": "fk",
            "ref": "vehicles.id"
          },
          "volume": {
            "kind": "decimal",
            "min": 0,
            "max": 147,
            "scale": 2
          }
        }
      },
      "gps_logs": {
        "description": "Rows for the gps_logs table.",
        "rows": 500,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "device_id": {
            "kind": "fk",
            "ref": "telemetry_devices.id",
            "skew": "flat"
          },
          "heading": {
            "kind": "int",
            "min": 0,
            "max": 359
          },
          "latitude": {
            "kind": "place.latitude"
          },
          "logged_at": {
            "kind": "datetime",
            "from": "2024-01-01",
            "to": "2025-12-31",
            "dayProfile": "business"
          },
          "longitude": {
            "kind": "place.longitude"
          },
          "speed": {
            "kind": "decimal",
            "min": 0,
            "max": 75,
            "scale": 1,
            "distribution": "normal"
          }
        }
      },
      "inspection_items": {
        "description": "Rows for the inspection_items table.",
        "rows": 12,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "category": {
            "kind": "enum",
            "values": [
              "Brakes",
              "Cargo securement",
              "Fire extinguisher",
              "Fluid levels",
              "Headlights and signals",
              "Horn",
              "Mirrors",
              "Seat belts",
              "Steering play",
              "Tread depth and pressure",
              "Visible leaks",
              "Wipers"
            ]
          },
          "name": {
            "kind": "enum",
            "values": [
              "Brakes",
              "Tires",
              "Lights",
              "Mirrors",
              "Horn",
              "Wipers",
              "Fluids",
              "Seat belts",
              "Fire extinguisher",
              "Cargo straps",
              "Steering",
              "Leaks"
            ],
            "unique": true
          }
        }
      },
      "inspection_results": {
        "description": "Rows for the inspection_results table.",
        "rows": 40,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "inspection_id": {
            "kind": "fk",
            "ref": "inspections.id",
            "skew": "flat"
          },
          "item_id": {
            "kind": "fk",
            "ref": "inspection_items.id",
            "skew": "flat"
          },
          "notes": {
            "kind": "enum",
            "values": [
              "OK",
              "Worn, monitor",
              "Replaced on the spot",
              "Needs workshop"
            ],
            "weights": [
              80,
              10,
              5,
              5
            ]
          },
          "passed": {
            "kind": "bool",
            "trueRate": 0.96
          }
        }
      },
      "inspections": {
        "description": "Rows for the inspections table.",
        "rows": 10,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "driver_id": {
            "kind": "fk",
            "ref": "drivers.id"
          },
          "inspected_at": {
            "kind": "datetime",
            "from": "2024-01-01",
            "to": "2025-12-31",
            "dayProfile": "business"
          },
          "passed": {
            "kind": "bool",
            "trueRate": 0.9
          },
          "vehicle_id": {
            "kind": "fk",
            "ref": "vehicles.id"
          }
        }
      },
      "insurance_claims": {
        "description": "Rows for the insurance_claims table.",
        "rows": 10,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "accident_id": {
            "kind": "fk",
            "ref": "accidents.id",
            "unique": true
          },
          "amount_claimed": {
            "kind": "decimal",
            "min": 0,
            "max": 15474,
            "scale": 2
          },
          "amount_paid": {
            "kind": "decimal",
            "min": 0,
            "max": 14391,
            "scale": 2
          },
          "claim_number": {
            "kind": "pattern",
            "pattern": "[CLM-]########",
            "unique": true
          },
          "policy_id": {
            "kind": "fk",
            "ref": "insurance_policies.id"
          },
          "status": {
            "kind": "enum",
            "values": [
              "settled",
              "open",
              "denied"
            ],
            "weights": [
              75,
              15,
              10
            ]
          }
        }
      },
      "insurance_policies": {
        "description": "Rows for the insurance_policies table.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "end_date": {
            "kind": "date",
            "from": "2025-12-31",
            "to": "2025-12-31"
          },
          "policy_number": {
            "kind": "pattern",
            "pattern": "[FLT-]########",
            "unique": true
          },
          "premium": {
            "kind": "decimal",
            "min": 1200,
            "max": 9000,
            "scale": 2
          },
          "provider": {
            "kind": "enum",
            "values": [
              "Harborline Mutual",
              "Crestview Assurance",
              "Bluepeak Underwriters"
            ]
          },
          "start_date": {
            "kind": "date",
            "from": "2024-01-01",
            "to": "2024-01-01"
          },
          "vehicle_id": {
            "kind": "fk",
            "ref": "vehicles.id",
            "unique": true
          }
        }
      },
      "maintenance_schedules": {
        "description": "Rows for the maintenance_schedules table.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "last_service_date": {
            "kind": "date",
            "from": "2025-06-01",
            "to": "2025-12-31"
          },
          "last_service_miles": {
            "kind": "int",
            "min": 20000,
            "max": 200000
          },
          "service_interval_miles": {
            "kind": "enum",
            "values": [
              "5000",
              "7500",
              "10000"
            ]
          },
          "service_interval_months": {
            "kind": "enum",
            "values": [
              "3",
              "6"
            ]
          },
          "vehicle_id": {
            "kind": "fk",
            "ref": "vehicles.id",
            "unique": true
          }
        }
      },
      "maintenance_shops": {
        "description": "Rows for the maintenance_shops table.",
        "rows": 15,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "city": {
            "kind": "place.city"
          },
          "name": {
            "kind": "enum",
            "values": [
              "Main Street Garage",
              "Interstate Truck Service",
              "QuickLube",
              "Fleet Care Center",
              "Diesel Pros"
            ]
          },
          "state": {
            "kind": "place.regionCode"
          },
          "vendor_id": {
            "kind": "fk",
            "ref": "vendors.id"
          }
        }
      },
      "maintenance_tasks": {
        "description": "Rows for the maintenance_tasks table.",
        "rows": 15,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "description": {
            "kind": "enum",
            "values": [
              "Replace oil and filter",
              "Replace front brake pads",
              "Rotate and balance tires",
              "Replace 12V battery",
              "Change transmission fluid",
              "Flush and refill coolant",
              "Replace engine air filter",
              "Replace wipers",
              "Four-wheel alignment",
              "Annual federal inspection",
              "Replace bulb or assembly",
              "Replace shocks",
              "Repair exhaust leak",
              "Recharge air conditioning",
              "Replace windshield"
            ],
            "unique": true
          },
          "estimated_hours": {
            "kind": "decimal",
            "min": 0.25,
            "max": 3,
            "scale": 2
          },
          "name": {
            "kind": "enum",
            "values": [
              "Oil change",
              "Brake pads",
              "Tire rotation",
              "Battery replacement",
              "Transmission service",
              "Coolant flush",
              "Air filter",
              "Wiper blades",
              "Alignment",
              "DOT inspection",
              "Headlight repair",
              "Suspension repair",
              "Exhaust repair",
              "AC service",
              "Windshield replacement"
            ],
            "unique": true
          }
        }
      },
      "manufacturers": {
        "description": "Rows for the manufacturers table.",
        "rows": 8,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "country": {
            "kind": "enum",
            "values": [
              "Germany",
              "Japan",
              "Sweden",
              "United States"
            ]
          },
          "name": {
            "kind": "enum",
            "values": [
              "Ford",
              "Ram",
              "Chevrolet",
              "Mercedes-Benz",
              "Isuzu",
              "Freightliner",
              "Volvo",
              "Toyota"
            ],
            "unique": true
          },
          "support_phone": {
            "kind": "phone.number"
          }
        }
      },
      "models": {
        "description": "Rows for the models table.",
        "rows": 20,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "fuel_type": {
            "kind": "enum",
            "values": [
              "gasoline",
              "diesel"
            ]
          },
          "manufacturer_id": {
            "kind": "fk",
            "ref": "manufacturers.id"
          },
          "name": {
            "kind": "enum",
            "values": [
              "Transit 250",
              "Transit 350",
              "F-150",
              "Transit Connect",
              "ProMaster 2500",
              "ProMaster 3500",
              "Express 2500",
              "Silverado 2500",
              "Sprinter 2500",
              "Sprinter 3500",
              "Metris",
              "NPR-HD",
              "NQR",
              "M2 106",
              "Cascadia",
              "VNL 760",
              "VNR 300",
              "Tacoma",
              "Tundra",
              "Colorado"
            ],
            "unique": true
          },
          "tank_capacity_gallons": {
            "kind": "decimal",
            "min": 10,
            "max": 150,
            "scale": 1
          },
          "year": {
            "kind": "int",
            "min": 2019,
            "max": 2024
          }
        }
      },
      "organizations": {
        "description": "Rows for the organizations table.",
        "rows": 1,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "address": {
            "kind": "location.streetAddress"
          },
          "name": {
            "kind": "enum",
            "values": [
              "Northbridge Logistics"
            ]
          },
          "phone": {
            "kind": "phone.number"
          },
          "tax_identifier": {
            "kind": "pattern",
            "pattern": "##-#######",
            "description": "A made-up employer identification number in the ##-####### format."
          }
        }
      },
      "parts": {
        "description": "Rows for the parts table.",
        "rows": 150,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "description": {
            "kind": "enum",
            "values": [
              "OEM",
              "Aftermarket",
              "Heavy duty"
            ]
          },
          "name": {
            "kind": "enum",
            "values": [
              "Oil filter",
              "Air filter",
              "Brake pad set",
              "Wiper blade",
              "Headlight bulb",
              "Battery",
              "Shock absorber",
              "Serpentine belt",
              "Spark plug",
              "Tire"
            ]
          },
          "part_number": {
            "kind": "pattern",
            "pattern": "[P-]AA####",
            "unique": true
          },
          "unit_price": {
            "kind": "decimal",
            "min": 6,
            "max": 420,
            "scale": 2,
            "distribution": "long-tail"
          }
        }
      },
      "parts_inventory": {
        "description": "Rows for the parts_inventory table.",
        "rows": 450,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "bin_location": {
            "kind": "pattern",
            "pattern": "[BIN-]A##"
          },
          "part_id": {
            "kind": "fk",
            "ref": "parts.id",
            "skew": "flat"
          },
          "quantity": {
            "kind": "int",
            "min": 0,
            "max": 60,
            "distribution": "long-tail"
          },
          "shop_id": {
            "kind": "fk",
            "ref": "maintenance_shops.id",
            "skew": "flat"
          }
        }
      },
      "roles": {
        "description": "Rows for the roles table.",
        "rows": 6,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "description": {
            "kind": "enum",
            "values": [
              "Drives routes",
              "Long-haul routes and training",
              "Plans trips",
              "Services vehicles",
              "Runs a depot",
              "Inspections and incidents"
            ],
            "unique": true
          },
          "hourly_rate": {
            "kind": "decimal",
            "min": 20,
            "max": 60,
            "scale": 2
          },
          "title": {
            "kind": "enum",
            "values": [
              "Driver",
              "Senior driver",
              "Dispatcher",
              "Mechanic",
              "Fleet manager",
              "Safety officer"
            ],
            "unique": true
          }
        }
      },
      "routes": {
        "description": "Rows for the routes table.",
        "rows": 120,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "distance_miles": {
            "kind": "int",
            "min": 20,
            "max": 420,
            "distribution": "long-tail"
          },
          "end_location": {
            "kind": "enum",
            "values": [
              "Depot"
            ]
          },
          "estimated_hours": {
            "kind": "decimal",
            "min": 1,
            "max": 9,
            "scale": 1
          },
          "start_location": {
            "kind": "enum",
            "values": [
              "Depot"
            ]
          }
        }
      },
      "telemetry_devices": {
        "description": "Rows for the telemetry_devices table.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "firmware_version": {
            "kind": "enum",
            "values": [
              "4.2.1",
              "4.3.0",
              "5.0.2"
            ]
          },
          "model_number": {
            "kind": "enum",
            "values": [
              "GT-400",
              "GT-500",
              "FleetLink 2"
            ]
          },
          "purchased_at": {
            "kind": "date",
            "from": "2021-01-01",
            "to": "2023-12-31"
          },
          "serial_number": {
            "kind": "pattern",
            "pattern": "[TD]##########",
            "unique": true
          }
        }
      },
      "trip_stops": {
        "description": "Rows for the trip_stops table.",
        "rows": 1000,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "arrival_at": {
            "kind": "datetime",
            "from": "2024-01-01",
            "to": "2026-01-01"
          },
          "departure_at": {
            "kind": "datetime",
            "from": "2024-01-01",
            "to": "2026-01-01"
          },
          "location_name": {
            "kind": "enum",
            "values": [
              "Customer site",
              "Distribution center",
              "Retail store",
              "Construction site",
              "Warehouse",
              "Hospital",
              "School",
              "Office park"
            ],
            "weights": [
              40,
              10,
              15,
              8,
              12,
              5,
              4,
              6
            ]
          },
          "sequence_number": {
            "kind": "int",
            "min": 1,
            "max": 99
          },
          "trip_id": {
            "kind": "fk",
            "ref": "trips.id",
            "skew": "flat"
          }
        }
      },
      "trips": {
        "description": "Rows for the trips table.",
        "rows": 250,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "driver_id": {
            "kind": "fk",
            "ref": "drivers.id",
            "skew": "flat"
          },
          "end_odometer": {
            "kind": "int",
            "min": 0,
            "max": 201202
          },
          "ended_at": {
            "kind": "datetime",
            "from": "2024-01-01",
            "to": "2026-01-01"
          },
          "route_id": {
            "kind": "fk",
            "ref": "routes.id"
          },
          "start_odometer": {
            "kind": "int",
            "min": 0,
            "max": 200818
          },
          "started_at": {
            "kind": "datetime",
            "from": "2024-01-01",
            "to": "2025-12-31",
            "dayProfile": "business"
          },
          "vehicle_id": {
            "kind": "fk",
            "ref": "vehicles.id"
          }
        }
      },
      "vehicle_types": {
        "description": "Rows for the vehicle_types table.",
        "rows": 6,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "cargo_capacity_lbs": {
            "kind": "int",
            "min": 1000,
            "max": 50000
          },
          "description": {
            "kind": "enum",
            "values": [
              "Parcel and courier routes",
              "Service calls",
              "Furniture and appliances",
              "Long-haul trailers",
              "Multi-stop delivery",
              "Field maintenance"
            ],
            "unique": true
          },
          "name": {
            "kind": "enum",
            "values": [
              "Cargo van",
              "Pickup",
              "Box truck",
              "Tractor",
              "Step van",
              "Service truck"
            ],
            "unique": true
          }
        }
      },
      "vehicles": {
        "description": "Rows for the vehicles table.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "branch_id": {
            "kind": "fk",
            "ref": "branches.id",
            "skew": "flat"
          },
          "color": {
            "kind": "enum",
            "values": [
              "White",
              "Silver",
              "Black",
              "Blue",
              "Red"
            ],
            "weights": [
              70,
              12,
              8,
              6,
              4
            ]
          },
          "license_plate": {
            "kind": "pattern",
            "pattern": "AAA-####",
            "unique": true
          },
          "model_id": {
            "kind": "fk",
            "ref": "models.id"
          },
          "odometer": {
            "kind": "int",
            "min": 2000,
            "max": 90000
          },
          "status": {
            "kind": "enum",
            "values": [
              "active",
              "in maintenance",
              "retired"
            ],
            "weights": [
              90,
              7,
              3
            ]
          },
          "type_id": {
            "kind": "fk",
            "ref": "vehicle_types.id"
          },
          "vin": {
            "kind": "vehicle.vin",
            "unique": true
          }
        }
      },
      "vendors": {
        "description": "Rows for the vendors table.",
        "rows": 30,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "address": {
            "kind": "location.streetAddress"
          },
          "category": {
            "kind": "enum",
            "values": [
              "Parts",
              "Tires",
              "Repairs",
              "Towing"
            ]
          },
          "email": {
            "kind": "internet.email"
          },
          "name": {
            "kind": "company.name",
            "unique": true
          },
          "phone": {
            "kind": "phone.number"
          }
        }
      },
      "work_order_parts": {
        "description": "Rows for the work_order_parts table.",
        "rows": 10,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "part_id": {
            "kind": "fk",
            "ref": "parts.id"
          },
          "quantity": {
            "kind": "int",
            "min": 1,
            "max": 4,
            "distribution": "long-tail"
          },
          "unit_cost": {
            "kind": "decimal",
            "min": 0,
            "max": 311,
            "scale": 2
          },
          "work_order_id": {
            "kind": "fk",
            "ref": "work_orders.id",
            "skew": "flat"
          }
        }
      },
      "work_order_tasks": {
        "description": "Rows for the work_order_tasks table.",
        "rows": 10,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "cost": {
            "kind": "decimal",
            "min": 0,
            "max": 375,
            "scale": 2
          },
          "notes": {
            "kind": "enum",
            "values": [
              "Done",
              "Done, follow up next service",
              "Customer approved extra work"
            ],
            "weights": [
              85,
              10,
              5
            ]
          },
          "task_id": {
            "kind": "fk",
            "ref": "maintenance_tasks.id"
          },
          "work_order_id": {
            "kind": "fk",
            "ref": "work_orders.id",
            "skew": "flat"
          }
        }
      },
      "work_orders": {
        "description": "Rows for the work_orders table.",
        "rows": 10,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "completed_at": {
            "kind": "datetime",
            "from": "2024-01-01",
            "to": "2026-01-31"
          },
          "created_at": {
            "kind": "datetime",
            "from": "2024-01-01",
            "to": "2025-12-31",
            "dayProfile": "business"
          },
          "shop_id": {
            "kind": "fk",
            "ref": "maintenance_shops.id"
          },
          "status": {
            "kind": "enum",
            "values": [
              "completed"
            ]
          },
          "total_cost": {
            "kind": "decimal",
            "min": 0,
            "max": 943,
            "scale": 2
          },
          "vehicle_id": {
            "kind": "fk",
            "ref": "vehicles.id"
          }
        }
      }
    }
  },
  "counts": {
    "accidents": 10,
    "fuel_cards": 300,
    "inspection_items": 12,
    "maintenance_tasks": 15,
    "manufacturers": 8,
    "models": 20,
    "organizations": 1,
    "branches": 8,
    "departments": 24,
    "parts": 150,
    "roles": 6,
    "employees": 400,
    "drivers": 250,
    "driver_shifts": 50,
    "routes": 120,
    "telemetry_devices": 300,
    "gps_logs": 500,
    "vehicle_types": 6,
    "vehicles": 300,
    "accident_vehicles": 10,
    "device_assignments": 300,
    "fuel_transactions": 30,
    "inspections": 10,
    "inspection_results": 40,
    "insurance_policies": 300,
    "insurance_claims": 10,
    "maintenance_schedules": 300,
    "trips": 250,
    "trip_stops": 1000,
    "vendors": 30,
    "maintenance_shops": 15,
    "parts_inventory": 450,
    "work_orders": 10,
    "work_order_parts": 10,
    "work_order_tasks": 10
  },
  "artifacts": [
    {
      "file": "csv/accidents.csv",
      "format": "csv",
      "table": "accidents",
      "key": "datasets/fleet-management-sample-database/v1/csv/accidents.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/csv/accidents.csv",
      "bytes": 674,
      "sha256": "05333d6b04983798f2dcc4c9bf9f55e325713cd4cf239e1c5b2aa1652693c13c",
      "rows": 10,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/fuel_cards.csv",
      "format": "csv",
      "table": "fuel_cards",
      "key": "datasets/fleet-management-sample-database/v1/csv/fuel_cards.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/csv/fuel_cards.csv",
      "bytes": 14464,
      "sha256": "c8be8861088060b0f7c5439d54ab62b273ff18b28572cf740c68629e669cf9bf",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/inspection_items.csv",
      "format": "csv",
      "table": "inspection_items",
      "key": "datasets/fleet-management-sample-database/v1/csv/inspection_items.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/csv/inspection_items.csv",
      "bytes": 323,
      "sha256": "ae0a80be3f0dff8e649908f2b300a7b1493f772a055d17c4b50963c99c9fd63d",
      "rows": 12,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/maintenance_tasks.csv",
      "format": "csv",
      "table": "maintenance_tasks",
      "key": "datasets/fleet-management-sample-database/v1/csv/maintenance_tasks.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/csv/maintenance_tasks.csv",
      "bytes": 695,
      "sha256": "e490aaeaf895fe91f6d332f3e63519f4be1bce7ffb3e970092f6a2f88bc1015e",
      "rows": 15,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/manufacturers.csv",
      "format": "csv",
      "table": "manufacturers",
      "key": "datasets/fleet-management-sample-database/v1/csv/manufacturers.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/csv/manufacturers.csv",
      "bytes": 323,
      "sha256": "bae67237ac4481bb852682d391017af6de94f44d4d9924ba65219338a787dbdc",
      "rows": 8,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/models.csv",
      "format": "csv",
      "table": "models",
      "key": "datasets/fleet-management-sample-database/v1/csv/models.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/csv/models.csv",
      "bytes": 703,
      "sha256": "ed61ac13312f7d7cfe4ea157432da407c5d037570ac4b9f51874441ebffbcd87",
      "rows": 20,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/organizations.csv",
      "format": "csv",
      "table": "organizations",
      "key": "datasets/fleet-management-sample-database/v1/csv/organizations.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/csv/organizations.csv",
      "bytes": 107,
      "sha256": "751d97275494415f16880606b32920c3649c0dde85b33b64c49226aeae01e35a",
      "rows": 1,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/branches.csv",
      "format": "csv",
      "table": "branches",
      "key": "datasets/fleet-management-sample-database/v1/csv/branches.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/csv/branches.csv",
      "bytes": 404,
      "sha256": "7db541044910c43aa98566dc52600046719e8b16fdcce977b7f74f3bb6ec742c",
      "rows": 8,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/departments.csv",
      "format": "csv",
      "table": "departments",
      "key": "datasets/fleet-management-sample-database/v1/csv/departments.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/csv/departments.csv",
      "bytes": 665,
      "sha256": "1471105d3d6cae4af24e46930c673f31c864147d94d967c506f6153c128fdfda",
      "rows": 24,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/parts.csv",
      "format": "csv",
      "table": "parts",
      "key": "datasets/fleet-management-sample-database/v1/csv/parts.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/csv/parts.csv",
      "bytes": 6218,
      "sha256": "99ceea473ab4852690882c8216ad224f1000a2e7237928cc0b4bdc574a8cd329",
      "rows": 150,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/roles.csv",
      "format": "csv",
      "table": "roles",
      "key": "datasets/fleet-management-sample-database/v1/csv/roles.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/csv/roles.csv",
      "bytes": 253,
      "sha256": "4943d4af7c8ede3e8e5baae0d5220e80aba9258ef601c479083958d7c25bd6e6",
      "rows": 6,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/employees.csv",
      "format": "csv",
      "table": "employees",
      "key": "datasets/fleet-management-sample-database/v1/csv/employees.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/csv/employees.csv",
      "bytes": 30767,
      "sha256": "c5f07404ff8fe221737a038fb1c199598a3c5b3dd15f63041e2975e316fa7e20",
      "rows": 400,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/drivers.csv",
      "format": "csv",
      "table": "drivers",
      "key": "datasets/fleet-management-sample-database/v1/csv/drivers.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/csv/drivers.csv",
      "bytes": 12341,
      "sha256": "b0140fa4b7a1c4ff9e8abca53737a0cdc2e81a226e07e9318602d4ebb91c13a5",
      "rows": 250,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/driver_shifts.csv",
      "format": "csv",
      "table": "driver_shifts",
      "key": "datasets/fleet-management-sample-database/v1/csv/driver_shifts.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/csv/driver_shifts.csv",
      "bytes": 2569,
      "sha256": "2d5d767912f19f6de6b211f190d34059b714128abcd5045b9101d40aa6be03f0",
      "rows": 50,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/routes.csv",
      "format": "csv",
      "table": "routes",
      "key": "datasets/fleet-management-sample-database/v1/csv/routes.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/csv/routes.csv",
      "bytes": 2902,
      "sha256": "0fcec371db7095b2aadfb48a4e27ee030e37ee0d0b048b26557df40d89df0228",
      "rows": 120,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/telemetry_devices.csv",
      "format": "csv",
      "table": "telemetry_devices",
      "key": "datasets/fleet-management-sample-database/v1/csv/telemetry_devices.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/csv/telemetry_devices.csv",
      "bytes": 13083,
      "sha256": "5b3bef2e01681d53b15823fe6fe39a9dcdf7b44b8f828a783a361b7b4cbdf14e",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/gps_logs.csv",
      "format": "csv",
      "table": "gps_logs",
      "key": "datasets/fleet-management-sample-database/v1/csv/gps_logs.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/csv/gps_logs.csv",
      "bytes": 29229,
      "sha256": "25838bbeb69af105a068c940cfd4e03c0d99d1e74b9a43d2a4508fd65773d40b",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/vehicle_types.csv",
      "format": "csv",
      "table": "vehicle_types",
      "key": "datasets/fleet-management-sample-database/v1/csv/vehicle_types.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/csv/vehicle_types.csv",
      "bytes": 270,
      "sha256": "56d19433e1cf923e2d8c88307e23f8b41b949f08a60db0e3a1fddd98e2f75f20",
      "rows": 6,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/vehicles.csv",
      "format": "csv",
      "table": "vehicles",
      "key": "datasets/fleet-management-sample-database/v1/csv/vehicles.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/csv/vehicles.csv",
      "bytes": 17384,
      "sha256": "cd851dbaadbd130b731ef1a96e18755e68fae27642695be71cdf73e680c1397f",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/accident_vehicles.csv",
      "format": "csv",
      "table": "accident_vehicles",
      "key": "datasets/fleet-management-sample-database/v1/csv/accident_vehicles.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/csv/accident_vehicles.csv",
      "bytes": 433,
      "sha256": "ddfa08e364b64617039f2a7bbef8c3130e531861df8f351d3313d8471d67be58",
      "rows": 10,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/device_assignments.csv",
      "format": "csv",
      "table": "device_assignments",
      "key": "datasets/fleet-management-sample-database/v1/csv/device_assignments.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/csv/device_assignments.csv",
      "bytes": 10288,
      "sha256": "288eb893fc2b05ef1f0bb676e8bea9c3e6fa1cb8f535d7f1a0f52d4d815303e0",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/fuel_transactions.csv",
      "format": "csv",
      "table": "fuel_transactions",
      "key": "datasets/fleet-management-sample-database/v1/csv/fuel_transactions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/csv/fuel_transactions.csv",
      "bytes": 1645,
      "sha256": "4d3c551a468739c4f0bd09ed094367a1c7f950173fb080b8be276386a87c98d0",
      "rows": 30,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/inspections.csv",
      "format": "csv",
      "table": "inspections",
      "key": "datasets/fleet-management-sample-database/v1/csv/inspections.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/csv/inspections.csv",
      "bytes": 394,
      "sha256": "5ae2685535ec3accbd988def3ba04ede2c0057502d4defc1df335e9af3bd5698",
      "rows": 10,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/inspection_results.csv",
      "format": "csv",
      "table": "inspection_results",
      "key": "datasets/fleet-management-sample-database/v1/csv/inspection_results.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/csv/inspection_results.csv",
      "bytes": 795,
      "sha256": "fdc5dd59b61ff33293b53fdeeb5678dd8ffc7b93b5bbfe5adb18db0f369c9738",
      "rows": 40,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/insurance_policies.csv",
      "format": "csv",
      "table": "insurance_policies",
      "key": "datasets/fleet-management-sample-database/v1/csv/insurance_policies.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/csv/insurance_policies.csv",
      "bytes": 21402,
      "sha256": "672d35d475b3b4e7cab0b8af82c173281275f5b2fa3ff03479731e7e0e38035b",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/insurance_claims.csv",
      "format": "csv",
      "table": "insurance_claims",
      "key": "datasets/fleet-management-sample-database/v1/csv/insurance_claims.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/csv/insurance_claims.csv",
      "bytes": 499,
      "sha256": "408b7f350e320e302080d7835f5df49e607a78035c1305940c9c919e29b89202",
      "rows": 10,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/maintenance_schedules.csv",
      "format": "csv",
      "table": "maintenance_schedules",
      "key": "datasets/fleet-management-sample-database/v1/csv/maintenance_schedules.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/csv/maintenance_schedules.csv",
      "bytes": 10058,
      "sha256": "ea30e9ed538962b00daa6a89c23d7b4e73cbab640a57e718f8ea6040a21c1633",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/trips.csv",
      "format": "csv",
      "table": "trips",
      "key": "datasets/fleet-management-sample-database/v1/csv/trips.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/csv/trips.csv",
      "bytes": 17184,
      "sha256": "3e9fbefa52439effaac49b46ce6619f30893658dfff07364189c69d7dc804aa1",
      "rows": 250,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/trip_stops.csv",
      "format": "csv",
      "table": "trip_stops",
      "key": "datasets/fleet-management-sample-database/v1/csv/trip_stops.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/csv/trip_stops.csv",
      "bytes": 64145,
      "sha256": "5b90fef107c36804a331c5eedf6fad96d2981b8ea0d9a83d5c9e9d16a8c3d3d0",
      "rows": 1000,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/vendors.csv",
      "format": "csv",
      "table": "vendors",
      "key": "datasets/fleet-management-sample-database/v1/csv/vendors.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/csv/vendors.csv",
      "bytes": 2780,
      "sha256": "997002e179a6b954f30f64cf4d35e2de866c1d5e303300f94a3856c31bf0f3a5",
      "rows": 30,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/maintenance_shops.csv",
      "format": "csv",
      "table": "maintenance_shops",
      "key": "datasets/fleet-management-sample-database/v1/csv/maintenance_shops.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/csv/maintenance_shops.csv",
      "bytes": 526,
      "sha256": "c23d2797f5e366a1c9a44d1009fa264fa7dc7c948ed37889ad23e6b0ec029700",
      "rows": 15,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/parts_inventory.csv",
      "format": "csv",
      "table": "parts_inventory",
      "key": "datasets/fleet-management-sample-database/v1/csv/parts_inventory.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/csv/parts_inventory.csv",
      "bytes": 9487,
      "sha256": "835f9e9e43468cfff9e5cd27f7d57036eb023c61bd810c72aa5a224f09b3a4d7",
      "rows": 450,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/work_orders.csv",
      "format": "csv",
      "table": "work_orders",
      "key": "datasets/fleet-management-sample-database/v1/csv/work_orders.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/csv/work_orders.csv",
      "bytes": 717,
      "sha256": "659ff7fc477ee1e0819037dde3570c3adefc19bdb2a0bd48bbb129dfa8b9107c",
      "rows": 10,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/work_order_parts.csv",
      "format": "csv",
      "table": "work_order_parts",
      "key": "datasets/fleet-management-sample-database/v1/csv/work_order_parts.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/csv/work_order_parts.csv",
      "bytes": 217,
      "sha256": "36948e26477a7053d746151deb462ba7830629eabc1a89c7f66c0ea9b3326ec6",
      "rows": 10,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/work_order_tasks.csv",
      "format": "csv",
      "table": "work_order_tasks",
      "key": "datasets/fleet-management-sample-database/v1/csv/work_order_tasks.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/csv/work_order_tasks.csv",
      "bytes": 209,
      "sha256": "183d5b98e0bfe64dfeeb0eb70f40d959c555ec34f0707e65dde9a64f412c3c43",
      "rows": 10,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "fleet-management-sample-database.json",
      "format": "json",
      "table": null,
      "key": "datasets/fleet-management-sample-database/v1/fleet-management-sample-database.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/fleet-management-sample-database.json",
      "bytes": 1013538,
      "sha256": "a2e79113aa6e580c1035de64fa6b531a3955fa7f0ae99b92cad33d06487abb9a",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/fleet-management-sample-database/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/sql/postgres.sql",
      "bytes": 386548,
      "sha256": "eb4a4d86e617ee8e0ff03a6e4ec451db07b4f3a495031228e57fc70cafa8e53e",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/fleet-management-sample-database/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/sql/mysql.sql",
      "bytes": 382916,
      "sha256": "e71cc9c92357d1a6cb5bc034e7efef5a52fafff9dd087878ecf371be2b787848",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/fleet-management-sample-database/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/sql/mssql.sql",
      "bytes": 399489,
      "sha256": "2c4ccfe19b381733636092c0cd3b357a793773ed16c41ddba3c445525515e22c",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/fleet-management-sample-database/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/sql/sqlite.sql",
      "bytes": 379987,
      "sha256": "f562d4b89e710804712592ae3fd3802dcf10c6dc921810d0de87ac512938ddc5",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/fleet-management-sample-database/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/prisma/seed.ts",
      "bytes": 818609,
      "sha256": "ccd7a44b08fb9e2aa0ee51566875d721ee5b2eb4693d67e00d7f9b7c8e2ca2e0",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/fleet-management-sample-database/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/django/fixtures.json",
      "bytes": 1247054,
      "sha256": "e11d0d84bc35f593d34a5b3794fdae1f1903f9ecdaddc2770569cba45b2ea692",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "flagship": {
    "sizes": {
      "1k": {
        "rows": 5255,
        "counts": {
          "accidents": 10,
          "fuel_cards": 300,
          "inspection_items": 12,
          "maintenance_tasks": 15,
          "manufacturers": 8,
          "models": 20,
          "organizations": 1,
          "branches": 8,
          "departments": 24,
          "parts": 150,
          "roles": 6,
          "employees": 400,
          "drivers": 250,
          "driver_shifts": 50,
          "routes": 120,
          "telemetry_devices": 300,
          "gps_logs": 500,
          "vehicle_types": 6,
          "vehicles": 300,
          "accident_vehicles": 10,
          "device_assignments": 300,
          "fuel_transactions": 30,
          "inspections": 10,
          "inspection_results": 40,
          "insurance_policies": 300,
          "insurance_claims": 10,
          "maintenance_schedules": 300,
          "trips": 250,
          "trip_stops": 1000,
          "vendors": 30,
          "maintenance_shops": 15,
          "parts_inventory": 450,
          "work_orders": 10,
          "work_order_parts": 10,
          "work_order_tasks": 10
        },
        "notes": [],
        "downloads": [
          {
            "format": "sql-postgres",
            "label": "PostgreSQL",
            "file": "flagship/1k/postgres.sql.gz",
            "key": "datasets/fleet-management-sample-database/v1/flagship/1k/postgres.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/flagship/1k/postgres.sql.gz",
            "bytes": 108966,
            "sha256": "57b38c5a976e65cfedeb749182a8525127788c178cf0d1468de37926904156a0",
            "raw": {
              "bytes": 394312,
              "sha256": "bb76664ce7f07d2d4bae7dca8dc22f2e9662ce05e26096cb32695bedd58f051e"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "sql-mysql",
            "label": "MySQL",
            "file": "flagship/1k/mysql.sql.gz",
            "key": "datasets/fleet-management-sample-database/v1/flagship/1k/mysql.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/flagship/1k/mysql.sql.gz",
            "bytes": 108279,
            "sha256": "df7c9adede2a87aa184e0b2f2c4d27154082f9bd97cc502c549de462412303b3",
            "raw": {
              "bytes": 390680,
              "sha256": "3728591d4cdc2c9e87ee9ff1810e66a0aeb43fb125b79a8f9e0e5a3666643334"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "sql-sqlite",
            "label": "SQLite",
            "file": "flagship/1k/sqlite.sql.gz",
            "key": "datasets/fleet-management-sample-database/v1/flagship/1k/sqlite.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/flagship/1k/sqlite.sql.gz",
            "bytes": 107682,
            "sha256": "41a155865af5932e07b6072219ed6bd7a5322eaf2c3eb227c0b45282b21f476e",
            "raw": {
              "bytes": 387751,
              "sha256": "52fdb0884928d7526a15440b9213eb65f8feacc432101d409782f21fcbc72e56"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "csv",
            "label": "CSV",
            "file": "flagship/1k/csv.zip",
            "key": "datasets/fleet-management-sample-database/v1/flagship/1k/csv.zip",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/flagship/1k/csv.zip",
            "bytes": 107077,
            "sha256": "234a50cbd9b18c51085d7c229d98092da3df82c4c18b1fed8467854ca0e1ea43",
            "tables": {
              "accident_vehicles": {
                "bytes": 433,
                "sha256": "ddfa08e364b64617039f2a7bbef8c3130e531861df8f351d3313d8471d67be58"
              },
              "accidents": {
                "bytes": 674,
                "sha256": "05333d6b04983798f2dcc4c9bf9f55e325713cd4cf239e1c5b2aa1652693c13c"
              },
              "branches": {
                "bytes": 404,
                "sha256": "7db541044910c43aa98566dc52600046719e8b16fdcce977b7f74f3bb6ec742c"
              },
              "departments": {
                "bytes": 665,
                "sha256": "1471105d3d6cae4af24e46930c673f31c864147d94d967c506f6153c128fdfda"
              },
              "device_assignments": {
                "bytes": 10288,
                "sha256": "288eb893fc2b05ef1f0bb676e8bea9c3e6fa1cb8f535d7f1a0f52d4d815303e0"
              },
              "driver_shifts": {
                "bytes": 2569,
                "sha256": "2d5d767912f19f6de6b211f190d34059b714128abcd5045b9101d40aa6be03f0"
              },
              "drivers": {
                "bytes": 12341,
                "sha256": "b0140fa4b7a1c4ff9e8abca53737a0cdc2e81a226e07e9318602d4ebb91c13a5"
              },
              "employees": {
                "bytes": 30767,
                "sha256": "c5f07404ff8fe221737a038fb1c199598a3c5b3dd15f63041e2975e316fa7e20"
              },
              "fuel_cards": {
                "bytes": 14464,
                "sha256": "c8be8861088060b0f7c5439d54ab62b273ff18b28572cf740c68629e669cf9bf"
              },
              "fuel_transactions": {
                "bytes": 1645,
                "sha256": "4d3c551a468739c4f0bd09ed094367a1c7f950173fb080b8be276386a87c98d0"
              },
              "gps_logs": {
                "bytes": 29229,
                "sha256": "25838bbeb69af105a068c940cfd4e03c0d99d1e74b9a43d2a4508fd65773d40b"
              },
              "inspection_items": {
                "bytes": 323,
                "sha256": "ae0a80be3f0dff8e649908f2b300a7b1493f772a055d17c4b50963c99c9fd63d"
              },
              "inspection_results": {
                "bytes": 795,
                "sha256": "fdc5dd59b61ff33293b53fdeeb5678dd8ffc7b93b5bbfe5adb18db0f369c9738"
              },
              "inspections": {
                "bytes": 394,
                "sha256": "5ae2685535ec3accbd988def3ba04ede2c0057502d4defc1df335e9af3bd5698"
              },
              "insurance_claims": {
                "bytes": 499,
                "sha256": "408b7f350e320e302080d7835f5df49e607a78035c1305940c9c919e29b89202"
              },
              "insurance_policies": {
                "bytes": 21402,
                "sha256": "672d35d475b3b4e7cab0b8af82c173281275f5b2fa3ff03479731e7e0e38035b"
              },
              "maintenance_schedules": {
                "bytes": 10058,
                "sha256": "ea30e9ed538962b00daa6a89c23d7b4e73cbab640a57e718f8ea6040a21c1633"
              },
              "maintenance_shops": {
                "bytes": 526,
                "sha256": "c23d2797f5e366a1c9a44d1009fa264fa7dc7c948ed37889ad23e6b0ec029700"
              },
              "maintenance_tasks": {
                "bytes": 695,
                "sha256": "e490aaeaf895fe91f6d332f3e63519f4be1bce7ffb3e970092f6a2f88bc1015e"
              },
              "manufacturers": {
                "bytes": 323,
                "sha256": "bae67237ac4481bb852682d391017af6de94f44d4d9924ba65219338a787dbdc"
              },
              "models": {
                "bytes": 703,
                "sha256": "ed61ac13312f7d7cfe4ea157432da407c5d037570ac4b9f51874441ebffbcd87"
              },
              "organizations": {
                "bytes": 107,
                "sha256": "751d97275494415f16880606b32920c3649c0dde85b33b64c49226aeae01e35a"
              },
              "parts": {
                "bytes": 6218,
                "sha256": "99ceea473ab4852690882c8216ad224f1000a2e7237928cc0b4bdc574a8cd329"
              },
              "parts_inventory": {
                "bytes": 9487,
                "sha256": "835f9e9e43468cfff9e5cd27f7d57036eb023c61bd810c72aa5a224f09b3a4d7"
              },
              "roles": {
                "bytes": 253,
                "sha256": "4943d4af7c8ede3e8e5baae0d5220e80aba9258ef601c479083958d7c25bd6e6"
              },
              "routes": {
                "bytes": 2902,
                "sha256": "0fcec371db7095b2aadfb48a4e27ee030e37ee0d0b048b26557df40d89df0228"
              },
              "telemetry_devices": {
                "bytes": 13083,
                "sha256": "5b3bef2e01681d53b15823fe6fe39a9dcdf7b44b8f828a783a361b7b4cbdf14e"
              },
              "trip_stops": {
                "bytes": 64145,
                "sha256": "5b90fef107c36804a331c5eedf6fad96d2981b8ea0d9a83d5c9e9d16a8c3d3d0"
              },
              "trips": {
                "bytes": 17184,
                "sha256": "3e9fbefa52439effaac49b46ce6619f30893658dfff07364189c69d7dc804aa1"
              },
              "vehicle_types": {
                "bytes": 270,
                "sha256": "56d19433e1cf923e2d8c88307e23f8b41b949f08a60db0e3a1fddd98e2f75f20"
              },
              "vehicles": {
                "bytes": 17384,
                "sha256": "cd851dbaadbd130b731ef1a96e18755e68fae27642695be71cdf73e680c1397f"
              },
              "vendors": {
                "bytes": 2780,
                "sha256": "997002e179a6b954f30f64cf4d35e2de866c1d5e303300f94a3856c31bf0f3a5"
              },
              "work_order_parts": {
                "bytes": 217,
                "sha256": "36948e26477a7053d746151deb462ba7830629eabc1a89c7f66c0ea9b3326ec6"
              },
              "work_order_tasks": {
                "bytes": 209,
                "sha256": "183d5b98e0bfe64dfeeb0eb70f40d959c555ec34f0707e65dde9a64f412c3c43"
              },
              "work_orders": {
                "bytes": 717,
                "sha256": "659ff7fc477ee1e0819037dde3570c3adefc19bdb2a0bd48bbb129dfa8b9107c"
              }
            },
            "contentType": "application/zip"
          }
        ],
        "checks": {
          "postgres": {
            "version": "18.3",
            "ok": true
          },
          "sqlite": {
            "version": "3.53.1",
            "ok": true
          },
          "notRun": [
            {
              "engine": "MySQL",
              "note": "Written from the same rows; not loaded here, no MySQL server runs in the build."
            }
          ]
        },
        "rules": [
          {
            "name": "A trip is driven by one of its depot's drivers in one of its depot's vehicles, and every driver is an employee in the Driver role",
            "violations": 0
          },
          {
            "name": "A trip's stops are numbered in the order they were reached and fall inside the trip, each left after it was reached",
            "violations": 0
          },
          {
            "name": "A trip adds its route's miles to the odometer, and no vehicle's odometer ever runs backwards",
            "violations": 0
          },
          {
            "name": "A fill-up is a vehicle of the driver's depot, never more than its tank, at $3.10 to $4.60 a gallon",
            "violations": 0
          },
          {
            "name": "A work order costs its labour at $125 an hour plus its parts at their list price, and is completed after it was opened",
            "violations": 0
          },
          {
            "name": "An inspection passes only if every item it checked did, and checks an item once",
            "violations": 0
          },
          {
            "name": "An accident's drivers come from the depot of the vehicle they drove, and a claim is on the policy of a vehicle in it, paying at most what was claimed",
            "violations": 0
          }
        ],
        "dirty": {
          "report": {
            "rates": {
              "missing": 0.03,
              "typos": 0.03,
              "outliers": 0.005,
              "duplicates": 0.01
            },
            "tables": {
              "accidents": {
                "duplicates": 0,
                "columns": {
                  "description": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "police_reported": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "fuel_cards": {
                "duplicates": 2,
                "columns": {
                  "card_number": {
                    "missing": 6,
                    "typos": 1,
                    "outliers": 0
                  },
                  "credit_limit": {
                    "missing": 11,
                    "typos": 5,
                    "outliers": 0
                  },
                  "expiry_date": {
                    "missing": 13,
                    "typos": 0,
                    "outliers": 0
                  },
                  "provider": {
                    "missing": 12,
                    "typos": 9,
                    "outliers": 0
                  }
                }
              },
              "models": {
                "duplicates": 0,
                "columns": {
                  "name": {
                    "missing": 2,
                    "typos": 1,
                    "outliers": 0
                  }
                }
              },
              "organizations": {
                "duplicates": 0,
                "columns": {
                  "tax_identifier": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "branches": {
                "duplicates": 0,
                "columns": {
                  "country": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "name": {
                    "missing": 1,
                    "typos": 1,
                    "outliers": 0
                  },
                  "state": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "departments": {
                "duplicates": 0,
                "columns": {
                  "name": {
                    "missing": 1,
                    "typos": 1,
                    "outliers": 0
                  }
                }
              },
              "parts": {
                "duplicates": 1,
                "columns": {
                  "description": {
                    "missing": 7,
                    "typos": 2,
                    "outliers": 0
                  },
                  "name": {
                    "missing": 5,
                    "typos": 1,
                    "outliers": 0
                  },
                  "part_number": {
                    "missing": 2,
                    "typos": 3,
                    "outliers": 0
                  },
                  "unit_price": {
                    "missing": 8,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "roles": {
                "duplicates": 0,
                "columns": {
                  "hourly_rate": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "employees": {
                "duplicates": 1,
                "columns": {
                  "email": {
                    "missing": 11,
                    "typos": 13,
                    "outliers": 0
                  },
                  "first_name": {
                    "missing": 6,
                    "typos": 12,
                    "outliers": 0
                  },
                  "hired_at": {
                    "missing": 12,
                    "typos": 0,
                    "outliers": 0
                  },
                  "last_name": {
                    "missing": 2,
                    "typos": 17,
                    "outliers": 0
                  },
                  "phone": {
                    "missing": 13,
                    "typos": 5,
                    "outliers": 0
                  }
                }
              },
              "drivers": {
                "duplicates": 2,
                "columns": {
                  "license_class": {
                    "missing": 8,
                    "typos": 11,
                    "outliers": 0
                  },
                  "license_expiry": {
                    "missing": 5,
                    "typos": 0,
                    "outliers": 0
                  },
                  "license_number": {
                    "missing": 5,
                    "typos": 4,
                    "outliers": 0
                  },
                  "medical_cert_expiry": {
                    "missing": 9,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "driver_shifts": {
                "duplicates": 2,
                "columns": {
                  "break_duration_minutes": {
                    "missing": 4,
                    "typos": 1,
                    "outliers": 0
                  },
                  "start_at": {
                    "missing": 2,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "routes": {
                "duplicates": 1,
                "columns": {
                  "distance_miles": {
                    "missing": 3,
                    "typos": 0,
                    "outliers": 0
                  },
                  "end_location": {
                    "missing": 5,
                    "typos": 1,
                    "outliers": 0
                  },
                  "estimated_hours": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "start_location": {
                    "missing": 4,
                    "typos": 5,
                    "outliers": 0
                  }
                }
              },
              "telemetry_devices": {
                "duplicates": 5,
                "columns": {
                  "firmware_version": {
                    "missing": 12,
                    "typos": 3,
                    "outliers": 0
                  },
                  "model_number": {
                    "missing": 6,
                    "typos": 10,
                    "outliers": 0
                  },
                  "purchased_at": {
                    "missing": 6,
                    "typos": 0,
                    "outliers": 0
                  },
                  "serial_number": {
                    "missing": 10,
                    "typos": 9,
                    "outliers": 0
                  }
                }
              },
              "gps_logs": {
                "duplicates": 3,
                "columns": {
                  "heading": {
                    "missing": 12,
                    "typos": 0,
                    "outliers": 0
                  },
                  "latitude": {
                    "missing": 14,
                    "typos": 0,
                    "outliers": 5
                  },
                  "logged_at": {
                    "missing": 18,
                    "typos": 0,
                    "outliers": 0
                  },
                  "longitude": {
                    "missing": 17,
                    "typos": 0,
                    "outliers": 0
                  },
                  "speed": {
                    "missing": 14,
                    "typos": 0,
                    "outliers": 2
                  }
                }
              },
              "vehicle_types": {
                "duplicates": 0,
                "columns": {
                  "name": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "vehicles": {
                "duplicates": 4,
                "columns": {
                  "color": {
                    "missing": 8,
                    "typos": 12,
                    "outliers": 0
                  },
                  "license_plate": {
                    "missing": 6,
                    "typos": 9,
                    "outliers": 0
                  },
                  "odometer": {
                    "missing": 6,
                    "typos": 0,
                    "outliers": 1
                  },
                  "status": {
                    "missing": 10,
                    "typos": 5,
                    "outliers": 0
                  },
                  "vin": {
                    "missing": 5,
                    "typos": 12,
                    "outliers": 0
                  }
                }
              },
              "accident_vehicles": {
                "duplicates": 0,
                "columns": {
                  "damage_description": {
                    "missing": 1,
                    "typos": 1,
                    "outliers": 0
                  }
                }
              },
              "device_assignments": {
                "duplicates": 2,
                "columns": {
                  "assigned_at": {
                    "missing": 9,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "fuel_transactions": {
                "duplicates": 1,
                "columns": {
                  "amount": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "odometer": {
                    "missing": 2,
                    "typos": 0,
                    "outliers": 1
                  },
                  "transaction_at": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "volume": {
                    "missing": 3,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "inspections": {
                "duplicates": 0,
                "columns": {
                  "inspected_at": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "inspection_results": {
                "duplicates": 0,
                "columns": {
                  "notes": {
                    "missing": 0,
                    "typos": 3,
                    "outliers": 0
                  },
                  "passed": {
                    "missing": 2,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "insurance_policies": {
                "duplicates": 2,
                "columns": {
                  "end_date": {
                    "missing": 14,
                    "typos": 0,
                    "outliers": 0
                  },
                  "policy_number": {
                    "missing": 8,
                    "typos": 8,
                    "outliers": 0
                  },
                  "premium": {
                    "missing": 6,
                    "typos": 0,
                    "outliers": 2
                  },
                  "provider": {
                    "missing": 13,
                    "typos": 13,
                    "outliers": 0
                  },
                  "start_date": {
                    "missing": 15,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "insurance_claims": {
                "duplicates": 0,
                "columns": {
                  "amount_paid": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "claim_number": {
                    "missing": 0,
                    "typos": 1,
                    "outliers": 0
                  }
                }
              },
              "maintenance_schedules": {
                "duplicates": 5,
                "columns": {
                  "last_service_date": {
                    "missing": 10,
                    "typos": 0,
                    "outliers": 0
                  },
                  "last_service_miles": {
                    "missing": 6,
                    "typos": 0,
                    "outliers": 2
                  },
                  "service_interval_miles": {
                    "missing": 6,
                    "typos": 5,
                    "outliers": 0
                  },
                  "service_interval_months": {
                    "missing": 8,
                    "typos": 10,
                    "outliers": 0
                  }
                }
              },
              "trips": {
                "duplicates": 0,
                "columns": {
                  "end_odometer": {
                    "missing": 4,
                    "typos": 0,
                    "outliers": 0
                  },
                  "ended_at": {
                    "missing": 7,
                    "typos": 0,
                    "outliers": 0
                  },
                  "start_odometer": {
                    "missing": 10,
                    "typos": 0,
                    "outliers": 2
                  },
                  "started_at": {
                    "missing": 9,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "trip_stops": {
                "duplicates": 13,
                "columns": {
                  "arrival_at": {
                    "missing": 38,
                    "typos": 0,
                    "outliers": 0
                  },
                  "departure_at": {
                    "missing": 31,
                    "typos": 0,
                    "outliers": 0
                  },
                  "location_name": {
                    "missing": 34,
                    "typos": 35,
                    "outliers": 0
                  },
                  "sequence_number": {
                    "missing": 36,
                    "typos": 0,
                    "outliers": 4
                  }
                }
              },
              "vendors": {
                "duplicates": 0,
                "columns": {
                  "address": {
                    "missing": 0,
                    "typos": 1,
                    "outliers": 0
                  },
                  "category": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "email": {
                    "missing": 2,
                    "typos": 0,
                    "outliers": 0
                  },
                  "name": {
                    "missing": 2,
                    "typos": 1,
                    "outliers": 0
                  },
                  "phone": {
                    "missing": 1,
                    "typos": 1,
                    "outliers": 0
                  }
                }
              },
              "maintenance_shops": {
                "duplicates": 0,
                "columns": {
                  "name": {
                    "missing": 0,
                    "typos": 1,
                    "outliers": 0
                  }
                }
              },
              "parts_inventory": {
                "duplicates": 6,
                "columns": {
                  "bin_location": {
                    "missing": 10,
                    "typos": 16,
                    "outliers": 0
                  },
                  "quantity": {
                    "missing": 10,
                    "typos": 0,
                    "outliers": 3
                  }
                }
              },
              "work_orders": {
                "duplicates": 0,
                "columns": {
                  "completed_at": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "work_order_parts": {
                "duplicates": 0,
                "columns": {
                  "quantity": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "work_order_tasks": {
                "duplicates": 0,
                "columns": {
                  "cost": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              }
            },
            "totals": {
              "missing": 614,
              "typos": 249,
              "outliers": 22,
              "duplicates": 50
            }
          },
          "downloads": [
            {
              "format": "dirty-sql-postgres",
              "label": "PostgreSQL, with faults",
              "file": "flagship/1k/dirty-postgres.sql.gz",
              "key": "datasets/fleet-management-sample-database/v1/flagship/1k/dirty-postgres.sql.gz",
              "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/flagship/1k/dirty-postgres.sql.gz",
              "bytes": 106628,
              "sha256": "91120c2c04a7fc0591e85b4a71d2e46a839f7c3b2ce2f29e706af9f2c3fe009a",
              "raw": {
                "bytes": 383673,
                "sha256": "8a326aa01468b499e0df008cadf5fc37da15e0e25a28939a33214e4c9d6c42bb"
              },
              "contentType": "application/gzip"
            },
            {
              "format": "dirty-csv",
              "label": "CSV, with faults",
              "file": "flagship/1k/dirty-csv.zip",
              "key": "datasets/fleet-management-sample-database/v1/flagship/1k/dirty-csv.zip",
              "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/flagship/1k/dirty-csv.zip",
              "bytes": 107327,
              "sha256": "ae6031201e26f6a4818914cf5605ff28019dd4c2c5be767f74f3e6f7b37bdd90",
              "tables": {
                "accident_vehicles": {
                  "bytes": 422,
                  "sha256": "cb49375ec13d8ad5d73c74cb92690a7113f05cd8610da9a6cf6f7f6b2640f4c0"
                },
                "accidents": {
                  "bytes": 644,
                  "sha256": "54204df1fae02c9a694d1d5349f938a129f69599dcfedd894dd4a6f33cbb26e4"
                },
                "branches": {
                  "bytes": 374,
                  "sha256": "ef4f40873caef45fa7285910a7c17358db4123d4b130585c40e3b75305408740"
                },
                "departments": {
                  "bytes": 655,
                  "sha256": "f21cc5e0ab88e9c8ae28c18f4e172a4cb3f02727d0b3e00d2235c4a9413bd6f8"
                },
                "device_assignments": {
                  "bytes": 10163,
                  "sha256": "388fb168632884bffa191720fb11a854c2d1e60cee7eae9239d434b55eea1181"
                },
                "driver_shifts": {
                  "bytes": 2608,
                  "sha256": "f4e9aef7b0fe3526c12983f62425f1585869f62ca36ab162e0bba178aa46f2b5"
                },
                "drivers": {
                  "bytes": 12224,
                  "sha256": "cd4a84e1a686d98175a875a431c935aaa1e630c2d2999b0dc605ed7ca9a449bb"
                },
                "employees": {
                  "bytes": 30283,
                  "sha256": "ee5a42e05eb1433f770363062880e0e38c2fc997fbe670dda7ae05f8b19c611d"
                },
                "fuel_cards": {
                  "bytes": 14215,
                  "sha256": "2cac451342b93487ed8cf8e45b60fc158318791ff909156a494c0df6ecfc552b"
                },
                "fuel_transactions": {
                  "bytes": 1651,
                  "sha256": "57c092ca4aa8eeb5a1fa20a8cee9b998de6c6dacb4a2ae1ca7085f0733ca70ea"
                },
                "gps_logs": {
                  "bytes": 28678,
                  "sha256": "ced2056024ee4ab2d6f16ce56dce21561ffcc733dbe400de6a14eb7975c25d76"
                },
                "inspection_items": {
                  "bytes": 323,
                  "sha256": "ae0a80be3f0dff8e649908f2b300a7b1493f772a055d17c4b50963c99c9fd63d"
                },
                "inspection_results": {
                  "bytes": 796,
                  "sha256": "18f48b551f4704074affdcd652095c777aae615ae101ca0f10f820a2631ef79f"
                },
                "inspections": {
                  "bytes": 375,
                  "sha256": "a843ea404fbc10bf6c9bc2bfadd0fe7838e542be96cdc7af05186c27eac52823"
                },
                "insurance_claims": {
                  "bytes": 492,
                  "sha256": "e81953c644b2ce2190ff57923d71c14b3a46498b6770bb38086ba43f4fda1efa"
                },
                "insurance_policies": {
                  "bytes": 20911,
                  "sha256": "87079929d46568a9ae8e779f44753745f0bc6560245d175eab109d8474315021"
                },
                "maintenance_schedules": {
                  "bytes": 10104,
                  "sha256": "87a587f51f65288c594cab54cce5d1da4ea7a4f7e76598875df241cf8ee824ad"
                },
                "maintenance_shops": {
                  "bytes": 526,
                  "sha256": "7e3a7975a22b1ec5e8bd604bfa006a463e5d528cdf145c4407357709c57289e1"
                },
                "maintenance_tasks": {
                  "bytes": 695,
                  "sha256": "e490aaeaf895fe91f6d332f3e63519f4be1bce7ffb3e970092f6a2f88bc1015e"
                },
                "manufacturers": {
                  "bytes": 323,
                  "sha256": "bae67237ac4481bb852682d391017af6de94f44d4d9924ba65219338a787dbdc"
                },
                "models": {
                  "bytes": 677,
                  "sha256": "79849b97048675065a702bdac74e382069690b9398415106111a8de71cdca247"
                },
                "organizations": {
                  "bytes": 97,
                  "sha256": "5a5446cf7120a4199bdaba98862b3bb5259211c4bef668580559a98dec706966"
                },
                "parts": {
                  "bytes": 6083,
                  "sha256": "eef2d0d4edb62b18f95bfdb9db71878a4d7600e4b27e347c0d28cc36dbd5b3cd"
                },
                "parts_inventory": {
                  "bytes": 9554,
                  "sha256": "85fd10b7f3c04c8e2f2acff9817b7b4965cd85ac722cdd8b2bb2b349d56b8f0c"
                },
                "roles": {
                  "bytes": 251,
                  "sha256": "678ff5a0d5af1e65e59793186fc7fafd900d39c43a4678ea06e8f7716ac55495"
                },
                "routes": {
                  "bytes": 2873,
                  "sha256": "618557e05c0b8a7f07135631abe1266339e246bddce4809d53adb984d1a21746"
                },
                "telemetry_devices": {
                  "bytes": 13025,
                  "sha256": "f8be6b417f04059eea11a20cf9b87970689fc042c21180b3a333668a6c47d205"
                },
                "trip_stops": {
                  "bytes": 63273,
                  "sha256": "1a4d1e59bab19e70ed7ce3338eec585fff51aea4be5ff1f44642d303ba2644b8"
                },
                "trips": {
                  "bytes": 16801,
                  "sha256": "ee21533f312b37b0f4dc2ea83d1e142db7176206f6c18532e358b75c2a8eebb4"
                },
                "vehicle_types": {
                  "bytes": 261,
                  "sha256": "c0277973346e25be4506f195889bdb5d65da99af88af30d87cc74ff1342f99de"
                },
                "vehicles": {
                  "bytes": 17401,
                  "sha256": "8e2f9112204bb3c2208fe4da3aafe1c144d08eacd2ebdf9a431299cfb43713ae"
                },
                "vendors": {
                  "bytes": 2690,
                  "sha256": "782dbe9b63f2bfa1c1ffd968690f279f09a167f987fdbf9ab1ebb6fb7b3a3193"
                },
                "work_order_parts": {
                  "bytes": 216,
                  "sha256": "a599f2cc4a7be5cbdd2f4669377768f7b74bb78f531c4c9e77837a07c8221f60"
                },
                "work_order_tasks": {
                  "bytes": 206,
                  "sha256": "d3cdbfb0493066ea7b9c66db100d48bd601036f6f9ad3344549fe5fcdbd3638c"
                },
                "work_orders": {
                  "bytes": 698,
                  "sha256": "186e6025904eccfdcb9c4cbfbadd06da2fdde02ee2260c45fc24613fe2e4d468"
                }
              },
              "contentType": "application/zip"
            }
          ]
        }
      },
      "100k": {
        "rows": 192735,
        "counts": {
          "accidents": 40,
          "fuel_cards": 300,
          "inspection_items": 12,
          "maintenance_tasks": 15,
          "manufacturers": 8,
          "models": 20,
          "organizations": 1,
          "branches": 8,
          "departments": 24,
          "parts": 150,
          "roles": 6,
          "employees": 400,
          "drivers": 250,
          "driver_shifts": 5000,
          "routes": 120,
          "telemetry_devices": 300,
          "gps_logs": 50000,
          "vehicle_types": 6,
          "vehicles": 300,
          "accident_vehicles": 50,
          "device_assignments": 300,
          "fuel_transactions": 3000,
          "inspections": 500,
          "inspection_results": 4000,
          "insurance_policies": 300,
          "insurance_claims": 30,
          "maintenance_schedules": 300,
          "trips": 25000,
          "trip_stops": 100000,
          "vendors": 30,
          "maintenance_shops": 15,
          "parts_inventory": 450,
          "work_orders": 300,
          "work_order_parts": 900,
          "work_order_tasks": 600
        },
        "notes": [],
        "downloads": [
          {
            "format": "sql-postgres",
            "label": "PostgreSQL",
            "file": "flagship/100k/postgres.sql.gz",
            "key": "datasets/fleet-management-sample-database/v1/flagship/100k/postgres.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/flagship/100k/postgres.sql.gz",
            "bytes": 4066884,
            "sha256": "cdedb2c35a51fa8b967aed2b7bd349f738ef6ec1c9ae6b9a0587973dcb0993cf",
            "raw": {
              "bytes": 15560106,
              "sha256": "c6190e479fc5abb67530fb94a558a93821ad3c16e2e249f1c0d51ef969f87dd5"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "sql-mysql",
            "label": "MySQL",
            "file": "flagship/100k/mysql.sql.gz",
            "key": "datasets/fleet-management-sample-database/v1/flagship/100k/mysql.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/flagship/100k/mysql.sql.gz",
            "bytes": 4066013,
            "sha256": "423e248ac50cce543c257e5246c742530a6c0d94d4bfcbc0b7e25779555269c3",
            "raw": {
              "bytes": 15542692,
              "sha256": "b1bf304782799d17ce732a535e8eb48394b05ea68cf67ab82266709e2e96a500"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "sql-sqlite",
            "label": "SQLite",
            "file": "flagship/100k/sqlite.sql.gz",
            "key": "datasets/fleet-management-sample-database/v1/flagship/100k/sqlite.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/flagship/100k/sqlite.sql.gz",
            "bytes": 4065320,
            "sha256": "410f0e072a578b6f1d3da887719b457500588435bb50a38b13a868c93552aba9",
            "raw": {
              "bytes": 15539763,
              "sha256": "4bea51de5a0eeae58595e9e9a018514177c3b6022b140b0a5ceb206bbe8aa136"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "csv",
            "label": "CSV",
            "file": "flagship/100k/csv.zip",
            "key": "datasets/fleet-management-sample-database/v1/flagship/100k/csv.zip",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/flagship/100k/csv.zip",
            "bytes": 4123343,
            "sha256": "29c57db4148d3f39b19a15ac51e6b99e73785d71782021b24b36a1e9937b14d6",
            "tables": {
              "accident_vehicles": {
                "bytes": 1935,
                "sha256": "c7f8e1654a4a18091925316fd973999ac5470a061e587ffc6131a99bc33c2161"
              },
              "accidents": {
                "bytes": 2607,
                "sha256": "ff3c7a53aa2400da8dac668c9516632fabfb7918c5b464d4fbf1afeb0b56dc19"
              },
              "branches": {
                "bytes": 404,
                "sha256": "7db541044910c43aa98566dc52600046719e8b16fdcce977b7f74f3bb6ec742c"
              },
              "departments": {
                "bytes": 676,
                "sha256": "8b5f55669b36cfe9dc6f4e4a12c355c1eb416a307fc506ec313c00b533c58956"
              },
              "device_assignments": {
                "bytes": 10231,
                "sha256": "80f358e5009fc90d91e4859e9b3daa05c746702697fe9f8b32f236fc841a1b8c"
              },
              "driver_shifts": {
                "bytes": 261783,
                "sha256": "76d0ab0ee48f7f0b6d5ea3ef22708ec2e77cf864b5ad0532604071bafc1b0b98"
              },
              "drivers": {
                "bytes": 12345,
                "sha256": "ecb7bf12537bbec05b79b812f315efa8227a0781dd89dd7c5eb1f6aa25ff59bd"
              },
              "employees": {
                "bytes": 30827,
                "sha256": "321d46b5f03397afc835db65ddc484235f5505455c9271f0f3448edcd3661d85"
              },
              "fuel_cards": {
                "bytes": 14403,
                "sha256": "d0dde0f80951243c159a5d9cc7a1a50a5a08d2d9d6f889d1053d3ced5f06a714"
              },
              "fuel_transactions": {
                "bytes": 163234,
                "sha256": "80f3e8bfad10d155ccf856b9745f9dec71359f49ffb3098d9ac7c6b168137fa8"
              },
              "gps_logs": {
                "bytes": 3020715,
                "sha256": "8b109ed010d42414ba1b204179465f45fbb67ee8d0888ef061138e7278b415e8"
              },
              "inspection_items": {
                "bytes": 323,
                "sha256": "ae0a80be3f0dff8e649908f2b300a7b1493f772a055d17c4b50963c99c9fd63d"
              },
              "inspection_results": {
                "bytes": 90007,
                "sha256": "be2df40cd57551e5e18792415475d58627cc42037db05623ef66fadaf8b9bc33"
              },
              "inspections": {
                "bytes": 18657,
                "sha256": "1a9082ca75c2210fad641a0668c64529679e940b758185773db8d865e9f09db2"
              },
              "insurance_claims": {
                "bytes": 1436,
                "sha256": "ca38ed7cbef31d5ea1f9e5f34dfdcd1387b7d9540c1643f56953d459d48835cd"
              },
              "insurance_policies": {
                "bytes": 21494,
                "sha256": "67685d676eb4962f079bf56a6544014c10c8e6c51acc6f9decb7eb06954fb362"
              },
              "maintenance_schedules": {
                "bytes": 10048,
                "sha256": "c344cc95371497dfc4ce679da462876d80e4cbc21317c4c778a5e5e3fff77039"
              },
              "maintenance_shops": {
                "bytes": 561,
                "sha256": "f7ae26bbc5ad9e883bc1e45a2b716172feaa31c3a8c71f56daab2915077e1c2f"
              },
              "maintenance_tasks": {
                "bytes": 695,
                "sha256": "e490aaeaf895fe91f6d332f3e63519f4be1bce7ffb3e970092f6a2f88bc1015e"
              },
              "manufacturers": {
                "bytes": 323,
                "sha256": "41d3c58f577c50d56ba6e9b0b66cfc1cbdd626cb46ee3147d6493a05ec2eca33"
              },
              "models": {
                "bytes": 703,
                "sha256": "ed61ac13312f7d7cfe4ea157432da407c5d037570ac4b9f51874441ebffbcd87"
              },
              "organizations": {
                "bytes": 106,
                "sha256": "b8ae69fb5ef19f6d8313b3f0b8224b8d3191c5a39385fc05979bc78910302013"
              },
              "parts": {
                "bytes": 6165,
                "sha256": "65c0cebe5538e68b43d889e70cfd76f414221d8e3e167896ff8ebfa5aecab21e"
              },
              "parts_inventory": {
                "bytes": 9524,
                "sha256": "07ceb522bb6e03099c402afa72335da5f343254c167de69bcabc19489b2cb431"
              },
              "roles": {
                "bytes": 253,
                "sha256": "4943d4af7c8ede3e8e5baae0d5220e80aba9258ef601c479083958d7c25bd6e6"
              },
              "routes": {
                "bytes": 2907,
                "sha256": "f0763a9176a0a077e8918cac052967b6ebcb28241c0a6a17e511d25142542a8d"
              },
              "telemetry_devices": {
                "bytes": 13078,
                "sha256": "42f543c3b4165a58396101049d0240c677c0b625d1ecd1d9dd66ac9ddd615174"
              },
              "trip_stops": {
                "bytes": 6808732,
                "sha256": "b5b8ce1a9188353f577799a76eba4bb1ee234a7b021a2595c3ef01d92b9002f9"
              },
              "trips": {
                "bytes": 1758722,
                "sha256": "937f406c556373ed4f24b853a1f09401333c9da05616c42a051b00dc3c165aa6"
              },
              "vehicle_types": {
                "bytes": 270,
                "sha256": "56d19433e1cf923e2d8c88307e23f8b41b949f08a60db0e3a1fddd98e2f75f20"
              },
              "vehicles": {
                "bytes": 17426,
                "sha256": "af71c3f2e111e9d0a823b047c6c8246c8454171f24dca1241a5cc33a710b5bf9"
              },
              "vendors": {
                "bytes": 2762,
                "sha256": "048332c7cc4c634fe1a85906c1aff7737d63133724ddfc6100fa37c890bfc68d"
              },
              "work_order_parts": {
                "bytes": 18188,
                "sha256": "64648b2489613583f1239bf346ae30736c2984609762754fbe124f235a465bbd"
              },
              "work_order_tasks": {
                "bytes": 14883,
                "sha256": "851266a3eca3327aefc2c6d8e14ab91971f39e61c130ff7251ec42c32e7cd36a"
              },
              "work_orders": {
                "bytes": 20442,
                "sha256": "dbc97d93f8cd8eb4678c9e4e174547366a909c71da5576d19afbdaea930dac00"
              }
            },
            "contentType": "application/zip"
          }
        ],
        "checks": {
          "postgres": {
            "version": "18.3",
            "ok": true
          },
          "sqlite": {
            "version": "3.53.1",
            "ok": true
          },
          "notRun": [
            {
              "engine": "MySQL",
              "note": "Written from the same rows; not loaded here, no MySQL server runs in the build."
            }
          ]
        },
        "rules": [
          {
            "name": "A trip is driven by one of its depot's drivers in one of its depot's vehicles, and every driver is an employee in the Driver role",
            "violations": 0
          },
          {
            "name": "A trip's stops are numbered in the order they were reached and fall inside the trip, each left after it was reached",
            "violations": 0
          },
          {
            "name": "A trip adds its route's miles to the odometer, and no vehicle's odometer ever runs backwards",
            "violations": 0
          },
          {
            "name": "A fill-up is a vehicle of the driver's depot, never more than its tank, at $3.10 to $4.60 a gallon",
            "violations": 0
          },
          {
            "name": "A work order costs its labour at $125 an hour plus its parts at their list price, and is completed after it was opened",
            "violations": 0
          },
          {
            "name": "An inspection passes only if every item it checked did, and checks an item once",
            "violations": 0
          },
          {
            "name": "An accident's drivers come from the depot of the vehicle they drove, and a claim is on the policy of a vehicle in it, paying at most what was claimed",
            "violations": 0
          }
        ],
        "dirty": {
          "report": {
            "rates": {
              "missing": 0.03,
              "typos": 0.03,
              "outliers": 0.005,
              "duplicates": 0.01
            },
            "tables": {
              "accidents": {
                "duplicates": 1,
                "columns": {
                  "description": {
                    "missing": 0,
                    "typos": 1,
                    "outliers": 0
                  },
                  "location": {
                    "missing": 4,
                    "typos": 0,
                    "outliers": 0
                  },
                  "police_reported": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "fuel_cards": {
                "duplicates": 5,
                "columns": {
                  "card_number": {
                    "missing": 4,
                    "typos": 2,
                    "outliers": 0
                  },
                  "credit_limit": {
                    "missing": 10,
                    "typos": 4,
                    "outliers": 0
                  },
                  "expiry_date": {
                    "missing": 8,
                    "typos": 0,
                    "outliers": 0
                  },
                  "provider": {
                    "missing": 11,
                    "typos": 9,
                    "outliers": 0
                  }
                }
              },
              "inspection_items": {
                "duplicates": 0,
                "columns": {
                  "category": {
                    "missing": 0,
                    "typos": 1,
                    "outliers": 0
                  },
                  "name": {
                    "missing": 1,
                    "typos": 1,
                    "outliers": 0
                  }
                }
              },
              "manufacturers": {
                "duplicates": 0,
                "columns": {
                  "name": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "support_phone": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "models": {
                "duplicates": 0,
                "columns": {
                  "fuel_type": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "name": {
                    "missing": 0,
                    "typos": 1,
                    "outliers": 0
                  },
                  "tank_capacity_gallons": {
                    "missing": 2,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "branches": {
                "duplicates": 0,
                "columns": {
                  "state": {
                    "missing": 0,
                    "typos": 1,
                    "outliers": 0
                  }
                }
              },
              "departments": {
                "duplicates": 0,
                "columns": {
                  "budget": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "name": {
                    "missing": 1,
                    "typos": 1,
                    "outliers": 0
                  }
                }
              },
              "parts": {
                "duplicates": 2,
                "columns": {
                  "description": {
                    "missing": 7,
                    "typos": 5,
                    "outliers": 0
                  },
                  "name": {
                    "missing": 10,
                    "typos": 6,
                    "outliers": 0
                  },
                  "part_number": {
                    "missing": 4,
                    "typos": 8,
                    "outliers": 0
                  },
                  "unit_price": {
                    "missing": 6,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "roles": {
                "duplicates": 0,
                "columns": {
                  "title": {
                    "missing": 0,
                    "typos": 1,
                    "outliers": 0
                  }
                }
              },
              "employees": {
                "duplicates": 1,
                "columns": {
                  "email": {
                    "missing": 15,
                    "typos": 14,
                    "outliers": 0
                  },
                  "first_name": {
                    "missing": 12,
                    "typos": 20,
                    "outliers": 0
                  },
                  "hired_at": {
                    "missing": 11,
                    "typos": 0,
                    "outliers": 0
                  },
                  "last_name": {
                    "missing": 11,
                    "typos": 9,
                    "outliers": 0
                  },
                  "phone": {
                    "missing": 11,
                    "typos": 5,
                    "outliers": 0
                  }
                }
              },
              "drivers": {
                "duplicates": 4,
                "columns": {
                  "license_class": {
                    "missing": 6,
                    "typos": 4,
                    "outliers": 0
                  },
                  "license_expiry": {
                    "missing": 9,
                    "typos": 0,
                    "outliers": 0
                  },
                  "license_number": {
                    "missing": 9,
                    "typos": 3,
                    "outliers": 0
                  },
                  "medical_cert_expiry": {
                    "missing": 11,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "driver_shifts": {
                "duplicates": 47,
                "columns": {
                  "break_duration_minutes": {
                    "missing": 145,
                    "typos": 74,
                    "outliers": 0
                  },
                  "end_at": {
                    "missing": 154,
                    "typos": 0,
                    "outliers": 0
                  },
                  "start_at": {
                    "missing": 149,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "routes": {
                "duplicates": 2,
                "columns": {
                  "distance_miles": {
                    "missing": 2,
                    "typos": 0,
                    "outliers": 1
                  },
                  "end_location": {
                    "missing": 3,
                    "typos": 5,
                    "outliers": 0
                  },
                  "estimated_hours": {
                    "missing": 4,
                    "typos": 0,
                    "outliers": 0
                  },
                  "start_location": {
                    "missing": 3,
                    "typos": 2,
                    "outliers": 0
                  }
                }
              },
              "telemetry_devices": {
                "duplicates": 2,
                "columns": {
                  "firmware_version": {
                    "missing": 7,
                    "typos": 4,
                    "outliers": 0
                  },
                  "model_number": {
                    "missing": 15,
                    "typos": 11,
                    "outliers": 0
                  },
                  "purchased_at": {
                    "missing": 12,
                    "typos": 0,
                    "outliers": 0
                  },
                  "serial_number": {
                    "missing": 11,
                    "typos": 9,
                    "outliers": 0
                  }
                }
              },
              "gps_logs": {
                "duplicates": 483,
                "columns": {
                  "heading": {
                    "missing": 1482,
                    "typos": 0,
                    "outliers": 248
                  },
                  "latitude": {
                    "missing": 1478,
                    "typos": 0,
                    "outliers": 224
                  },
                  "logged_at": {
                    "missing": 1532,
                    "typos": 0,
                    "outliers": 0
                  },
                  "longitude": {
                    "missing": 1491,
                    "typos": 0,
                    "outliers": 150
                  },
                  "speed": {
                    "missing": 1489,
                    "typos": 0,
                    "outliers": 270
                  }
                }
              },
              "vehicle_types": {
                "duplicates": 0,
                "columns": {
                  "name": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "vehicles": {
                "duplicates": 4,
                "columns": {
                  "color": {
                    "missing": 10,
                    "typos": 13,
                    "outliers": 0
                  },
                  "license_plate": {
                    "missing": 13,
                    "typos": 9,
                    "outliers": 0
                  },
                  "odometer": {
                    "missing": 7,
                    "typos": 0,
                    "outliers": 3
                  },
                  "status": {
                    "missing": 8,
                    "typos": 10,
                    "outliers": 0
                  },
                  "vin": {
                    "missing": 14,
                    "typos": 7,
                    "outliers": 0
                  }
                }
              },
              "accident_vehicles": {
                "duplicates": 0,
                "columns": {
                  "estimated_repair_cost": {
                    "missing": 3,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "device_assignments": {
                "duplicates": 6,
                "columns": {
                  "assigned_at": {
                    "missing": 10,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "fuel_transactions": {
                "duplicates": 30,
                "columns": {
                  "amount": {
                    "missing": 101,
                    "typos": 0,
                    "outliers": 6
                  },
                  "odometer": {
                    "missing": 89,
                    "typos": 0,
                    "outliers": 15
                  },
                  "transaction_at": {
                    "missing": 87,
                    "typos": 0,
                    "outliers": 0
                  },
                  "volume": {
                    "missing": 70,
                    "typos": 0,
                    "outliers": 17
                  }
                }
              },
              "inspections": {
                "duplicates": 8,
                "columns": {
                  "inspected_at": {
                    "missing": 14,
                    "typos": 0,
                    "outliers": 0
                  },
                  "passed": {
                    "missing": 10,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "inspection_results": {
                "duplicates": 23,
                "columns": {
                  "notes": {
                    "missing": 122,
                    "typos": 117,
                    "outliers": 0
                  },
                  "passed": {
                    "missing": 118,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "insurance_policies": {
                "duplicates": 3,
                "columns": {
                  "end_date": {
                    "missing": 6,
                    "typos": 0,
                    "outliers": 0
                  },
                  "policy_number": {
                    "missing": 9,
                    "typos": 10,
                    "outliers": 0
                  },
                  "premium": {
                    "missing": 9,
                    "typos": 0,
                    "outliers": 0
                  },
                  "provider": {
                    "missing": 6,
                    "typos": 9,
                    "outliers": 0
                  },
                  "start_date": {
                    "missing": 10,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "insurance_claims": {
                "duplicates": 0,
                "columns": {
                  "amount_claimed": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 1
                  },
                  "amount_paid": {
                    "missing": 2,
                    "typos": 0,
                    "outliers": 0
                  },
                  "claim_number": {
                    "missing": 1,
                    "typos": 1,
                    "outliers": 0
                  },
                  "status": {
                    "missing": 1,
                    "typos": 3,
                    "outliers": 0
                  }
                }
              },
              "maintenance_schedules": {
                "duplicates": 1,
                "columns": {
                  "last_service_date": {
                    "missing": 17,
                    "typos": 0,
                    "outliers": 0
                  },
                  "last_service_miles": {
                    "missing": 5,
                    "typos": 0,
                    "outliers": 2
                  },
                  "service_interval_miles": {
                    "missing": 7,
                    "typos": 5,
                    "outliers": 0
                  },
                  "service_interval_months": {
                    "missing": 10,
                    "typos": 4,
                    "outliers": 0
                  }
                }
              },
              "trips": {
                "duplicates": 231,
                "columns": {
                  "end_odometer": {
                    "missing": 770,
                    "typos": 0,
                    "outliers": 124
                  },
                  "ended_at": {
                    "missing": 757,
                    "typos": 0,
                    "outliers": 0
                  },
                  "start_odometer": {
                    "missing": 791,
                    "typos": 0,
                    "outliers": 126
                  },
                  "started_at": {
                    "missing": 772,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "trip_stops": {
                "duplicates": 975,
                "columns": {
                  "arrival_at": {
                    "missing": 3055,
                    "typos": 0,
                    "outliers": 0
                  },
                  "departure_at": {
                    "missing": 2968,
                    "typos": 0,
                    "outliers": 0
                  },
                  "location_name": {
                    "missing": 2948,
                    "typos": 2953,
                    "outliers": 0
                  },
                  "sequence_number": {
                    "missing": 2984,
                    "typos": 0,
                    "outliers": 525
                  }
                }
              },
              "vendors": {
                "duplicates": 0,
                "columns": {
                  "address": {
                    "missing": 1,
                    "typos": 1,
                    "outliers": 0
                  },
                  "category": {
                    "missing": 1,
                    "typos": 2,
                    "outliers": 0
                  },
                  "email": {
                    "missing": 2,
                    "typos": 1,
                    "outliers": 0
                  },
                  "name": {
                    "missing": 1,
                    "typos": 2,
                    "outliers": 0
                  }
                }
              },
              "maintenance_shops": {
                "duplicates": 0,
                "columns": {
                  "city": {
                    "missing": 0,
                    "typos": 1,
                    "outliers": 0
                  },
                  "name": {
                    "missing": 0,
                    "typos": 1,
                    "outliers": 0
                  }
                }
              },
              "parts_inventory": {
                "duplicates": 1,
                "columns": {
                  "bin_location": {
                    "missing": 9,
                    "typos": 12,
                    "outliers": 0
                  },
                  "quantity": {
                    "missing": 17,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "work_orders": {
                "duplicates": 5,
                "columns": {
                  "completed_at": {
                    "missing": 10,
                    "typos": 0,
                    "outliers": 0
                  },
                  "created_at": {
                    "missing": 9,
                    "typos": 0,
                    "outliers": 0
                  },
                  "status": {
                    "missing": 17,
                    "typos": 8,
                    "outliers": 0
                  },
                  "total_cost": {
                    "missing": 9,
                    "typos": 0,
                    "outliers": 1
                  }
                }
              },
              "work_order_parts": {
                "duplicates": 5,
                "columns": {
                  "quantity": {
                    "missing": 24,
                    "typos": 0,
                    "outliers": 6
                  },
                  "unit_cost": {
                    "missing": 22,
                    "typos": 0,
                    "outliers": 4
                  }
                }
              },
              "work_order_tasks": {
                "duplicates": 5,
                "columns": {
                  "cost": {
                    "missing": 21,
                    "typos": 0,
                    "outliers": 2
                  },
                  "notes": {
                    "missing": 16,
                    "typos": 11,
                    "outliers": 0
                  }
                }
              }
            },
            "totals": {
              "missing": 24110,
              "typos": 3381,
              "outliers": 1725,
              "duplicates": 1844
            }
          },
          "downloads": [
            {
              "format": "dirty-sql-postgres",
              "label": "PostgreSQL, with faults",
              "file": "flagship/100k/dirty-postgres.sql.gz",
              "key": "datasets/fleet-management-sample-database/v1/flagship/100k/dirty-postgres.sql.gz",
              "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/flagship/100k/dirty-postgres.sql.gz",
              "bytes": 4083534,
              "sha256": "d970a01fabaf0ddcac11ebfb1aca2e7544b5a6c0f94e6b5314fdd6037b99c001",
              "raw": {
                "bytes": 15498068,
                "sha256": "460ad14ab7fc49033a16031823814dbcb170ce00b8e258b4d419d629864dffca"
              },
              "contentType": "application/gzip"
            },
            {
              "format": "dirty-csv",
              "label": "CSV, with faults",
              "file": "flagship/100k/dirty-csv.zip",
              "key": "datasets/fleet-management-sample-database/v1/flagship/100k/dirty-csv.zip",
              "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/flagship/100k/dirty-csv.zip",
              "bytes": 4124130,
              "sha256": "c9ce5baebc44c63913d227ad9dae3c8d6b90af37b5ff7960092df120e93edb8a",
              "tables": {
                "accident_vehicles": {
                  "bytes": 1915,
                  "sha256": "107875f6a71eaba99c020a77404940797e887be362c40714d7a2f985549a610a"
                },
                "accidents": {
                  "bytes": 2642,
                  "sha256": "588982affe9a57a914e6c4bf2c65cb549803061e2fba86853ea5f4a784fca7b4"
                },
                "branches": {
                  "bytes": 404,
                  "sha256": "494e25430a0df0f079c4f494cd755e91373e9d34be505de35b5686ff8a4c392a"
                },
                "departments": {
                  "bytes": 659,
                  "sha256": "6bfa46fb534916f5b1e4db3cdf184708aab63a9829d0d84b21a825616dd67162"
                },
                "device_assignments": {
                  "bytes": 10257,
                  "sha256": "555a49d5ec6f47ffc3279367fe91703f6ed0dd801d99353a604b82cc2c341c18"
                },
                "driver_shifts": {
                  "bytes": 258334,
                  "sha256": "d1d645faaec9a8fd3010e4a6bf2700b1366787dd268400e826177430abc96982"
                },
                "drivers": {
                  "bytes": 12220,
                  "sha256": "fabdfac8dfc349f10e3bd8e65d7d0a4147dd2c2c62b2a12cb282a3fbff918c43"
                },
                "employees": {
                  "bytes": 30149,
                  "sha256": "3e9303e855f525749545fd171b6430445beb1ca49ffddf18427456ac5ac225d0"
                },
                "fuel_cards": {
                  "bytes": 14413,
                  "sha256": "d94aec3bb3d02a6fd5db3c3c95b7063488255ce996538287f1b18a4b24812202"
                },
                "fuel_transactions": {
                  "bytes": 161909,
                  "sha256": "91b83686367fe295f6d192ee9045a100e45a1753a506daeac3dcf9a222e87a9d"
                },
                "gps_logs": {
                  "bytes": 2982433,
                  "sha256": "0fb4df3b3f89e5fdd32bd2ab54bcb7a88993c9f47f870e29b552f4bd366c1a4c"
                },
                "inspection_items": {
                  "bytes": 322,
                  "sha256": "1434a2dd0b217fbc72e06b5565c147cc78dc7e5b887e0eb397f45f817ae0c76f"
                },
                "inspection_results": {
                  "bytes": 89721,
                  "sha256": "35228aa4755be045ad7832e6e822779f20bea35bb87a2dedf7c4ba12ff3faa5d"
                },
                "inspections": {
                  "bytes": 18645,
                  "sha256": "ed77d4fb19011fa9d1fb8853f808a38eee550177acbd45ddc0529854fad410ad"
                },
                "insurance_claims": {
                  "bytes": 1410,
                  "sha256": "6c34d4ec5164f715d445ffa9e5ddc42b863214a74ee5192d49a084a3bd62aa9b"
                },
                "insurance_policies": {
                  "bytes": 21284,
                  "sha256": "721113178c883f49e60dfe19cb1b4be6d2a911f4b96268772497db56e1e93549"
                },
                "maintenance_schedules": {
                  "bytes": 9874,
                  "sha256": "fb074ee60d60e8d6ac6bbde261ea0570b53fe93fd9517c841f3ba4bb2e41dac9"
                },
                "maintenance_shops": {
                  "bytes": 564,
                  "sha256": "722e564778917fb72d07c377f565042ceec97e01ab28cd666eface0599c1f5fd"
                },
                "maintenance_tasks": {
                  "bytes": 695,
                  "sha256": "e490aaeaf895fe91f6d332f3e63519f4be1bce7ffb3e970092f6a2f88bc1015e"
                },
                "manufacturers": {
                  "bytes": 305,
                  "sha256": "da2c713f12229c01d538650402c589c8fe463a25643d99619e48dd035940542e"
                },
                "models": {
                  "bytes": 693,
                  "sha256": "d0fe5bb39886b4cf8a0c62e35013495f8b863c5c83094d4b671333112bde8206"
                },
                "organizations": {
                  "bytes": 106,
                  "sha256": "b8ae69fb5ef19f6d8313b3f0b8224b8d3191c5a39385fc05979bc78910302013"
                },
                "parts": {
                  "bytes": 6028,
                  "sha256": "11e3a38703f1a9f90df68b0e197cba7da1bb44bc12849bd979f9783f9c15adad"
                },
                "parts_inventory": {
                  "bytes": 9469,
                  "sha256": "4124d64ccbf2ea12f09a53fdf727b57a28f051f2ff8419a8dd32dacdc73c0490"
                },
                "roles": {
                  "bytes": 253,
                  "sha256": "0ac54b93cc84520b0d70a0c65e8cfe29c80fb072dd41a9e7b7f2c7fccf276aea"
                },
                "routes": {
                  "bytes": 2918,
                  "sha256": "cd2a0d7fb309ed0e13de341680c9aaf5f1998dbc6607ee5ca41d9b89d83916ca"
                },
                "telemetry_devices": {
                  "bytes": 12791,
                  "sha256": "9b2b7af38d25efce69ee87269bad8f51c60117d69c1a924357db8f2b5b0b38af"
                },
                "trip_stops": {
                  "bytes": 6724702,
                  "sha256": "38886a31a8738e1ae3887726ddf8c979ebcb8e4aac7302ccd92f8045f22244d4"
                },
                "trips": {
                  "bytes": 1736978,
                  "sha256": "80c9441fbeee20cd63254829f8fde12ff3c34b92b07ea52190c21bfede4670bd"
                },
                "vehicle_types": {
                  "bytes": 261,
                  "sha256": "9827b0bc60930385041e31910a9fbc5cd7b9f62976347215dcf884d0b41c575e"
                },
                "vehicles": {
                  "bytes": 17177,
                  "sha256": "8fee457e8df8cc08ff01cb336e45daf54e7d89f9484b95e912b1791589482c01"
                },
                "vendors": {
                  "bytes": 2681,
                  "sha256": "da947e9f630fc713c1ce50015da1df97420939e83034240674089a5a47310e98"
                },
                "work_order_parts": {
                  "bytes": 18153,
                  "sha256": "9f5d3192cd9bbde65f2b0488854f1a90fde655bfaf827e88fe4d65a27dedf391"
                },
                "work_order_tasks": {
                  "bytes": 14795,
                  "sha256": "3de5a94f7291a681270b8a58214e8a1f219ffaf3c825aa9d10b3357f983a6c20"
                },
                "work_orders": {
                  "bytes": 20239,
                  "sha256": "82c5ff887d644401baf4e2c2e61f475034c0e6ffba6eab67ede004e2c514a648"
                }
              },
              "contentType": "application/zip"
            }
          ]
        }
      },
      "1m": {
        "rows": 1897515,
        "counts": {
          "accidents": 400,
          "fuel_cards": 300,
          "inspection_items": 12,
          "maintenance_tasks": 15,
          "manufacturers": 8,
          "models": 20,
          "organizations": 1,
          "branches": 8,
          "departments": 24,
          "parts": 150,
          "roles": 6,
          "employees": 400,
          "drivers": 250,
          "driver_shifts": 50000,
          "routes": 120,
          "telemetry_devices": 300,
          "gps_logs": 500000,
          "vehicle_types": 6,
          "vehicles": 300,
          "accident_vehicles": 500,
          "device_assignments": 300,
          "fuel_transactions": 30000,
          "inspections": 5000,
          "inspection_results": 40000,
          "insurance_policies": 300,
          "insurance_claims": 300,
          "maintenance_schedules": 300,
          "trips": 250000,
          "trip_stops": 1000000,
          "vendors": 30,
          "maintenance_shops": 15,
          "parts_inventory": 450,
          "work_orders": 3000,
          "work_order_parts": 9000,
          "work_order_tasks": 6000
        },
        "notes": [],
        "downloads": [
          {
            "format": "sql-postgres",
            "label": "PostgreSQL",
            "file": "flagship/1m/postgres.sql.gz",
            "key": "datasets/fleet-management-sample-database/v1/flagship/1m/postgres.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/flagship/1m/postgres.sql.gz",
            "bytes": 40678060,
            "sha256": "caa470f4a1652db1faf8472b8d2cbc2b88e3afd0cc90fe441afc9aa393926a33",
            "raw": {
              "bytes": 156393663,
              "sha256": "8aac8154578c3865a41435a5d933f8b2d44e6a0daae95c4e0e35b987c689f6a5"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "sql-mysql",
            "label": "MySQL",
            "file": "flagship/1m/mysql.sql.gz",
            "key": "datasets/fleet-management-sample-database/v1/flagship/1m/mysql.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/flagship/1m/mysql.sql.gz",
            "bytes": 40674801,
            "sha256": "7fa8a7444c7ffbb6ba5800b986d82cc1a7d9721b8fc2e9987cf3b962384cc929",
            "raw": {
              "bytes": 156250795,
              "sha256": "0c544981d829fb5f755eaac6cfa9c3f0a1d967c2ef5a01543e19e7fe5381bf45"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "sql-sqlite",
            "label": "SQLite",
            "file": "flagship/1m/sqlite.sql.gz",
            "key": "datasets/fleet-management-sample-database/v1/flagship/1m/sqlite.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/flagship/1m/sqlite.sql.gz",
            "bytes": 40673940,
            "sha256": "b3675d24dbd28cfbc20edd4b6557fbffd494d4899dd1bba420ec6cfd5d046b70",
            "raw": {
              "bytes": 156247866,
              "sha256": "9470c4d5fb078f548703d79d1869da53797cf4b36cc264c9bd375763b8c13e01"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "csv",
            "label": "CSV",
            "file": "flagship/1m/csv.zip",
            "key": "datasets/fleet-management-sample-database/v1/flagship/1m/csv.zip",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-sample-database/v1/flagship/1m/csv.zip",
            "bytes": 41550600,
            "sha256": "99b76f18f0f49c8b19935018b90e00be95ff912946fbad6a6b053d6e9dcc2334",
            "tables": {
              "accident_vehicles": {
                "bytes": 19640,
                "sha256": "b00f763d294b5538fc2336eaa245e56d18a643e4e68a830de61e6d050f9a1ba1"
              },
              "accidents": {
                "bytes": 25521,
                "sha256": "59edf57c1175373eba78b04132839da2b31f1b8d335354341694c3654bf4aba9"
              },
              "branches": {
                "bytes": 404,
                "sha256": "7db541044910c43aa98566dc52600046719e8b16fdcce977b7f74f3bb6ec742c"
              },
              "departments": {
                "bytes": 664,
                "sha256": "833069820be14f86b69944c2d01cde157eeeadddce5b10c85e9b6f40f86abce1"
              },
              "device_assignments": {
                "bytes": 10345,
                "sha256": "fac645a696aa6eab259c7d4bbaaaf7db4f9c770737b7dad53aaa88681892197a"
              },
              "driver_shifts": {
                "bytes": 2667637,
                "sha256": "8a33d8a599bc25233ca75ea5b880be2844fd4172c33090924d7e22af213a295e"
              },
              "drivers": {
                "bytes": 12327,
                "sha256": "a40602c7021cfa41d69b79ba3bdcb209ed366ce86aaef2671a9ef21347f24d92"
              },
              "employees": {
                "bytes": 30704,
                "sha256": "d5c9f1f3a8efd84510089e37dc553b87a0534305ce7aad57da1457e2bd7ff097"
              },
              "fuel_cards": {
                "bytes": 14364,
                "sha256": "92f109b17345c06095fa753adde395212d09c58d01e55b9eec559e0d99f99841"
              },
              "fuel_transactions": {
                "bytes": 1663481,
                "sha256": "6f34595c5d264898c631dafe798fb2cacb204d3a496f80d23f8786100671ba99"
              },
              "gps_logs": {
                "bytes": 30707498,
                "sha256": "540f56042cf70ed8d1ab8f724ef975556f1ec19cf75cec01256c5340f3dffc7c"
              },
              "inspection_items": {
                "bytes": 323,
                "sha256": "ae0a80be3f0dff8e649908f2b300a7b1493f772a055d17c4b50963c99c9fd63d"
              },
              "inspection_results": {
                "bytes": 985231,
                "sha256": "48be750949b4cf06b74d45c0cd0e7eabc9fb0e7426a3cc20bd4efc9a7c77b3bd"
              },
              "inspections": {
                "bytes": 191476,
                "sha256": "4a3b2071b3fd4b7ef9c02c646997d1c1add580dab26bc0d85342b4ea348715ca"
              },
              "insurance_claims": {
                "bytes": 14183,
                "sha256": "1184886643143e34003c11528d9988d4731edf7f75391bf9bd3e5c69af54029b"
              },
              "insurance_policies": {
                "bytes": 21490,
                "sha256": "b8e0dc35cdebebee468b2aefb223c122fd1c5e2551bc2d049e11d1c5e3a2300f"
              },
              "maintenance_schedules": {
                "bytes": 10046,
                "sha256": "318c6e55cfdd3e74a2aa37e95c172621c24a968340108c22d47559f576c35873"
              },
              "maintenance_shops": {
                "bytes": 561,
                "sha256": "278b820ba00056cd13fd12e2a751ec55b1b882f2287dbc3c5002da463fcd930b"
              },
              "maintenance_tasks": {
                "bytes": 695,
                "sha256": "e490aaeaf895fe91f6d332f3e63519f4be1bce7ffb3e970092f6a2f88bc1015e"
              },
              "manufacturers": {
                "bytes": 323,
                "sha256": "e0f9b5b530bca46022a5c513d353948756130f85ad440dce8e7c5ddb6a665d06"
              },
              "models": {
                "bytes": 703,
                "sha256": "ed61ac13312f7d7cfe4ea157432da407c5d037570ac4b9f51874441ebffbcd87"
              },
              "organizations": {
                "bytes": 107,
                "sha256": "48af63fba0640c9bfad3475e05e4cae7736627575e7535c6281ee3305149335f"
              },
              "parts": {
                "bytes": 6108,
                "sha256": "913a9ceee4cf0628ab33d387b0e63dca6fa796b2e0dbd871f1594d5c41e5717b"
              },
              "parts_inventory": {
                "bytes": 9533,
                "sha256": "9311ee098b64800bb56f1974d4eb71a1926d2831a510dec715e8f69a7fa5ef69"
              },
              "roles": {
                "bytes": 253,
                "sha256": "4943d4af7c8ede3e8e5baae0d5220e80aba9258ef601c479083958d7c25bd6e6"
              },
              "routes": {
                "bytes": 2911,
                "sha256": "d3601fa99af0afe767e1aafffafb6344035334c57d275e353a51cef6c8059b3e"
              },
              "telemetry_devices": {
                "bytes": 13083,
                "sha256": "a7a30f3608d48a05aeec6756f5ecaf8af53ade333803e0ea32fa6a8424987dbd"
              },
              "trip_stops": {
                "bytes": 70091526,
                "sha256": "992068c0612877a6094c62528f121c3c43cab221b2a351fe700626a3dd9ef906"
              },
              "trips": {
                "bytes": 17862528,
                "sha256": "cd191064ff556156653d6185a55cc25a2e4fd834ac6d21a2ef08332929a70928"
              },
              "vehicle_types": {
                "bytes": 270,
                "sha256": "56d19433e1cf923e2d8c88307e23f8b41b949f08a60db0e3a1fddd98e2f75f20"
              },
              "vehicles": {
                "bytes": 17389,
                "sha256": "e6d13cab0eae707b3196552f9ff4ed48e5ae2e7be055cb016d65cc557510c6b1"
              },
              "vendors": {
                "bytes": 2749,
                "sha256": "1b70ed18fd975c8bbaabd18b79cda5bba389b48bb65d6a7bf02255f5d34ee57f"
              },
              "work_order_parts": {
                "bytes": 198881,
                "sha256": "a47f120bd969a9685b2bfcba88fce541600f63d014b9cead764aae0720b818bd"
              },
              "work_order_tasks": {
                "bytes": 158419,
                "sha256": "43c21f8faf789197a454174c086ca1b1470e77724b1b0ccea5eb13b5fc50df55"
              },
              "work_orders": {
                "bytes": 207051,
                "sha256": "1542ac608ab057aed10e58e1c3bc14972d478230a9473f1cf96169389a9535ba"
              }
            },
            "contentType": "application/zip"
          }
        ],
        "checks": {
          "postgres": {
            "version": "18.3",
            "ok": true
          },
          "sqlite": {
            "version": "3.53.1",
            "ok": true
          },
          "notRun": [
            {
              "engine": "MySQL",
              "note": "Written from the same rows; not loaded here, no MySQL server runs in the build."
            }
          ]
        },
        "rules": [
          {
            "name": "A trip is driven by one of its depot's drivers in one of its depot's vehicles, and every driver is an employee in the Driver role",
            "violations": 0
          },
          {
            "name": "A trip's stops are numbered in the order they were reached and fall inside the trip, each left after it was reached",
            "violations": 0
          },
          {
            "name": "A trip adds its route's miles to the odometer, and no vehicle's odometer ever runs backwards",
            "violations": 0
          },
          {
            "name": "A fill-up is a vehicle of the driver's depot, never more than its tank, at $3.10 to $4.60 a gallon",
            "violations": 0
          },
          {
            "name": "A work order costs its labour at $125 an hour plus its parts at their list price, and is completed after it was opened",
            "violations": 0
          },
          {
            "name": "An inspection passes only if every item it checked did, and checks an item once",
            "violations": 0
          },
          {
            "name": "An accident's drivers come from the depot of the vehicle they drove, and a claim is on the policy of a vehicle in it, paying at most what was claimed",
            "violations": 0
          }
        ]
      }
    },
    "rules": [
      {
        "name": "A trip is driven by one of its depot's drivers in one of its depot's vehicles, and every driver is an employee in the Driver role",
        "sql": "SELECT (SELECT count(*) FROM trips t JOIN drivers d ON d.id = t.driver_id JOIN employees e ON e.id = d.employee_id JOIN departments dp ON dp.id = e.department_id JOIN vehicles v ON v.id = t.vehicle_id WHERE v.branch_id <> dp.branch_id) + (SELECT count(*) FROM drivers d JOIN employees e ON e.id = d.employee_id JOIN roles r ON r.id = e.role_id WHERE r.title <> 'Driver') AS violations"
      },
      {
        "name": "A trip's stops are numbered in the order they were reached and fall inside the trip, each left after it was reached",
        "sql": "SELECT (SELECT count(*) FROM trip_stops s JOIN trips t ON t.id = s.trip_id WHERE s.arrival_at < t.started_at OR s.departure_at > t.ended_at OR s.departure_at <= s.arrival_at) + (SELECT count(*) FROM (SELECT sequence_number, row_number() OVER (PARTITION BY trip_id ORDER BY arrival_at, id) AS reached FROM trip_stops) x WHERE x.sequence_number <> x.reached) + (SELECT count(*) FROM trips t LEFT JOIN (SELECT DISTINCT trip_id FROM trip_stops) s ON s.trip_id = t.id WHERE s.trip_id IS NULL) AS violations"
      },
      {
        "name": "A trip adds its route's miles to the odometer, and no vehicle's odometer ever runs backwards",
        "sql": "SELECT (SELECT count(*) FROM trips t JOIN routes r ON r.id = t.route_id JOIN vehicles v ON v.id = t.vehicle_id WHERE t.end_odometer - t.start_odometer <> r.distance_miles OR t.start_odometer < v.odometer) + (SELECT count(*) FROM (SELECT start_odometer, lag(start_odometer) OVER (PARTITION BY vehicle_id ORDER BY started_at, id) AS before FROM trips) x WHERE x.start_odometer < x.before) AS violations"
      },
      {
        "name": "A fill-up is a vehicle of the driver's depot, never more than its tank, at $3.10 to $4.60 a gallon",
        "sql": "SELECT count(*) AS violations FROM fuel_transactions f JOIN vehicles v ON v.id = f.vehicle_id JOIN models m ON m.id = v.model_id JOIN drivers d ON d.id = f.driver_id JOIN employees e ON e.id = d.employee_id JOIN departments dp ON dp.id = e.department_id WHERE v.branch_id <> dp.branch_id OR f.volume > m.tank_capacity_gallons OR f.amount < round(f.volume * 3.10, 2) OR f.amount > round(f.volume * 4.60, 2)"
      },
      {
        "name": "A work order costs its labour at $125 an hour plus its parts at their list price, and is completed after it was opened",
        "sql": "SELECT (SELECT count(*) FROM work_orders w LEFT JOIN (SELECT work_order_id, sum(cost) AS labour FROM work_order_tasks GROUP BY work_order_id) l ON l.work_order_id = w.id LEFT JOIN (SELECT work_order_id, sum(quantity * unit_cost) AS parts FROM work_order_parts GROUP BY work_order_id) p ON p.work_order_id = w.id WHERE w.total_cost <> coalesce(l.labour, 0) + coalesce(p.parts, 0) OR w.completed_at <= w.created_at) + (SELECT count(*) FROM work_order_tasks wt JOIN maintenance_tasks mt ON mt.id = wt.task_id WHERE wt.cost <> round(mt.estimated_hours * 125, 2)) + (SELECT count(*) FROM work_order_parts wp JOIN parts p ON p.id = wp.part_id WHERE wp.unit_cost <> p.unit_price) AS violations"
      },
      {
        "name": "An inspection passes only if every item it checked did, and checks an item once",
        "sql": "SELECT (SELECT count(*) FROM inspections i JOIN (SELECT inspection_id, bool_and(passed) AS all_passed FROM inspection_results GROUP BY inspection_id) r ON r.inspection_id = i.id WHERE i.passed <> r.all_passed) + (SELECT count(*) - count(DISTINCT (inspection_id, item_id)) FROM inspection_results) AS violations"
      },
      {
        "name": "An accident's drivers come from the depot of the vehicle they drove, and a claim is on the policy of a vehicle in it, paying at most what was claimed",
        "sql": "SELECT (SELECT count(*) FROM accident_vehicles av JOIN vehicles v ON v.id = av.vehicle_id JOIN drivers d ON d.id = av.driver_id JOIN employees e ON e.id = d.employee_id JOIN departments dp ON dp.id = e.department_id WHERE v.branch_id <> dp.branch_id) + (SELECT count(*) FROM insurance_claims c JOIN insurance_policies p ON p.id = c.policy_id WHERE NOT EXISTS (SELECT 1 FROM accident_vehicles av WHERE av.accident_id = c.accident_id AND av.vehicle_id = p.vehicle_id) OR c.amount_paid > c.amount_claimed OR (c.status <> 'settled' AND c.amount_paid <> 0)) AS violations"
      }
    ]
  },
  "publishedAt": 1791388492585,
  "updatedAt": 1791388492585
}
