{
  "format": "dataset-manifest/1",
  "slug": "fleet-management-system",
  "version": 1,
  "seed": "fleet-management-system:1",
  "spec": {
    "format": "dataset/1",
    "slug": "fleet-management-system",
    "name": "Fleet Operations Dataset",
    "tagline": "Vehicles, drivers, trip details, maintenance logs, inspections, and parts inventory for fleet management operations.",
    "description": "Fleet management is crucial for coordinating vehicles, drivers, and maintenance to ensure efficient logistics operations. This synthetic dataset models various aspects of fleet management, including vehicle performance, trip details, maintenance schedules, inspection outcomes, and parts inventory. Each row in the tables captures critical information that helps organizations analyze their logistical efficiency and vehicle reliability. The dataset is designed to showcase patterns in vehicle usage, particularly around peak delivery times, while also highlighting the rarity of unscheduled maintenance events, providing valuable insights for operational improvements. This data can be used for analytics demonstrations or building BI dashboards, allowing users to explore and visualize fleet performance over time. The relationships between the tables enable comprehensive analysis of factors affecting fleet operations, making it ideal for practice in SQL and analytics contexts.",
    "domain": "logistics",
    "shape": "time-series",
    "useCases": [
      "analytics-demo",
      "bi-dashboards"
    ],
    "keywords": [
      "fleet management",
      "logistics",
      "vehicle performance",
      "trip details",
      "maintenance schedules"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "vehicles": {
        "description": "This table records details about each vehicle in the fleet, including its characteristics and performance metrics. Each row links to the trips taken by the vehicle.",
        "rows": 100,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each vehicle."
          },
          "license_plate": {
            "kind": "words",
            "description": "The license plate number of the vehicle."
          },
          "make": {
            "kind": "words",
            "description": "The manufacturer of the vehicle."
          },
          "model": {
            "kind": "words",
            "description": "The model of the vehicle."
          },
          "year": {
            "kind": "int",
            "min": 2000,
            "max": 2023,
            "description": "The manufacturing year of the vehicle."
          },
          "fuel_type": {
            "kind": "enum",
            "values": [
              "petrol",
              "diesel",
              "electric"
            ],
            "description": "The type of fuel used by the vehicle."
          }
        }
      },
      "drivers": {
        "description": "This table contains information about the drivers operating the vehicles, including their qualifications and performance metrics. Each row links to the trips completed by the driver.",
        "rows": 100,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each driver."
          },
          "full_name": {
            "kind": "fullName",
            "description": "The full name of the driver."
          },
          "license_number": {
            "kind": "words",
            "description": "The driver's license number."
          },
          "hire_date": {
            "kind": "date",
            "from": "2010-01-01",
            "to": "2023-01-01",
            "description": "The date the driver was hired.",
            "trend": "growing"
          },
          "rating": {
            "kind": "decimal",
            "min": 0,
            "max": 5,
            "scale": 1,
            "description": "The performance rating of the driver, on a scale from 0 to 5."
          }
        }
      },
      "trips": {
        "description": "This table logs each trip taken by the vehicles, detailing the driver, distance, duration, and timestamps. Each row links to the vehicles and drivers involved.",
        "rows": 600,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each trip."
          },
          "vehicle_id": {
            "kind": "fk",
            "ref": "vehicles.id",
            "description": "Reference to the vehicle used for the trip."
          },
          "driver_id": {
            "kind": "fk",
            "ref": "drivers.id",
            "description": "Reference to the driver who completed the trip."
          },
          "start_time": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "The start time of the trip.",
            "dayProfile": "waking"
          },
          "end_time": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "The end time of the trip.",
            "dayProfile": "waking"
          },
          "distance_km": {
            "kind": "decimal",
            "min": 1,
            "max": 1000,
            "scale": 2,
            "description": "The distance covered during the trip in kilometers."
          },
          "duration_minutes": {
            "kind": "int",
            "min": 1,
            "max": 120,
            "description": "The duration of the trip in minutes."
          }
        }
      },
      "maintenance": {
        "description": "This table tracks maintenance events for each vehicle, including scheduled and unscheduled repairs, linking to the vehicles.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each maintenance event."
          },
          "vehicle_id": {
            "kind": "fk",
            "ref": "vehicles.id",
            "description": "Reference to the vehicle undergoing maintenance."
          },
          "maintenance_date": {
            "kind": "date",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "The date of the maintenance event.",
            "trend": "seasonal"
          },
          "description": {
            "kind": "sentence",
            "description": "A brief description of the maintenance performed."
          },
          "cost": {
            "kind": "decimal",
            "min": 0,
            "max": 5000,
            "scale": 2,
            "description": "The cost of the maintenance performed."
          }
        }
      },
      "inspections": {
        "description": "This table records vehicle inspections, detailing the outcomes and linking to the vehicles.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each inspection."
          },
          "vehicle_id": {
            "kind": "fk",
            "ref": "vehicles.id",
            "description": "Reference to the vehicle being inspected."
          },
          "inspection_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "The date of the vehicle inspection.",
            "trend": "seasonal"
          },
          "outcome": {
            "kind": "enum",
            "values": [
              "pass",
              "fail"
            ],
            "description": "The outcome of the inspection."
          },
          "notes": {
            "kind": "sentence",
            "description": "Any additional notes regarding the inspection."
          }
        }
      },
      "parts_inventory": {
        "description": "This table maintains a record of parts available for vehicle maintenance, detailing quantities and linking to vehicles.",
        "rows": 150,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each part."
          },
          "part_name": {
            "kind": "words",
            "description": "The name of the part."
          },
          "quantity": {
            "kind": "int",
            "min": 0,
            "max": 100,
            "description": "The quantity of the part available in inventory."
          },
          "vehicle_id": {
            "kind": "fk",
            "ref": "vehicles.id",
            "nullable": true,
            "description": "Reference to the vehicle that uses this part."
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "timestamped",
      "categorical",
      "nullable",
      "high-cardinality"
    ],
    "analysisQuestions": [
      "What are the peak delivery times based on trip data?",
      "How often do vehicles require unscheduled maintenance?",
      "What is the average rating of drivers, and how does it correlate with trip duration?",
      "Which vehicles have the highest maintenance costs?",
      "What percentage of inspections result in a pass or fail?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Trips and Vehicles",
        "sql": "SELECT trips.id, vehicles.license_plate FROM trips JOIN vehicles ON trips.vehicle_id = vehicles.id;",
        "dialect": "postgres"
      },
      {
        "title": "Average Distance by Vehicle",
        "sql": "SELECT vehicle_id, AVG(distance_km) FROM trips GROUP BY vehicle_id;",
        "dialect": "postgres"
      },
      {
        "title": "Maintenance Cost by Vehicle",
        "sql": "SELECT vehicle_id, SUM(cost) AS total_maintenance_cost FROM maintenance GROUP BY vehicle_id;",
        "dialect": "postgres"
      },
      {
        "title": "Inspection Outcomes Over Time",
        "sql": "SELECT inspection_date, COUNT(*) AS total_inspections, SUM(CASE WHEN outcome = 'fail' THEN 1 ELSE 0 END) AS failed_inspections FROM inspections GROUP BY inspection_date ORDER BY inspection_date;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Fleet Manager Analysis",
        "body": "Fleet managers can utilize this dataset to analyze vehicle performance over time, identify peak delivery periods, and assess driver effectiveness. They can generate reports to enhance operational efficiencies, reduce downtime, and improve logistics planning."
      },
      {
        "title": "Maintenance Scheduling",
        "body": "Maintenance teams can leverage the maintenance records to schedule timely vehicle inspections and repairs. By analyzing the maintenance and trip data, they can proactively address unscheduled repairs, ensuring vehicle reliability and safety."
      },
      {
        "title": "Driver Performance Evaluation",
        "body": "HR departments can use the driver ratings and trip data to evaluate individual driver performance. This dataset allows them to identify high-performing drivers and provide additional training to those who may need improvement."
      },
      {
        "title": "Parts Inventory Management",
        "body": "Inventory managers can analyze the parts inventory data to ensure that necessary parts are available for maintenance. By tracking usage and quantities, they can optimize stock levels and reduce maintenance delays."
      }
    ]
  },
  "counts": {
    "drivers": 100,
    "vehicles": 100,
    "inspections": 200,
    "maintenance": 300,
    "parts_inventory": 150,
    "trips": 600
  },
  "stats": {
    "vehicles": {
      "rows": 100,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "license_plate": {
          "nulls": 0,
          "distinct": 100
        },
        "make": {
          "nulls": 0,
          "distinct": 100
        },
        "model": {
          "nulls": 0,
          "distinct": 100
        },
        "year": {
          "nulls": 0,
          "distinct": 24,
          "min": 2000,
          "max": 2023
        },
        "fuel_type": {
          "nulls": 0,
          "distinct": 3,
          "min": "diesel",
          "max": "petrol"
        }
      }
    },
    "drivers": {
      "rows": 100,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "full_name": {
          "nulls": 0,
          "distinct": 99,
          "min": "Alice Meyer",
          "max": "Zoe Becker"
        },
        "license_number": {
          "nulls": 0,
          "distinct": 100
        },
        "hire_date": {
          "nulls": 0,
          "distinct": 98,
          "min": "2010-03-25",
          "max": "2022-12-25"
        },
        "rating": {
          "nulls": 0,
          "distinct": 44,
          "min": 0.1,
          "max": 5
        }
      }
    },
    "trips": {
      "rows": 600,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 600,
          "min": 1,
          "max": 600
        },
        "vehicle_id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "driver_id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "start_time": {
          "nulls": 0,
          "distinct": 600,
          "min": "2023-01-03 17:12:02",
          "max": "2023-12-30 15:42:59"
        },
        "end_time": {
          "nulls": 0,
          "distinct": 600,
          "min": "2023-01-01 12:18:30",
          "max": "2023-12-30 18:02:20"
        },
        "distance_km": {
          "nulls": 0,
          "distinct": 600,
          "min": 2.07,
          "max": 999.95
        },
        "duration_minutes": {
          "nulls": 0,
          "distinct": 118,
          "min": 2,
          "max": 120
        }
      }
    },
    "maintenance": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "vehicle_id": {
          "nulls": 0,
          "distinct": 95,
          "min": 1,
          "max": 100
        },
        "maintenance_date": {
          "nulls": 0,
          "distinct": 232,
          "min": "2022-01-01",
          "max": "2023-12-31"
        },
        "description": {
          "nulls": 0,
          "distinct": 300
        },
        "cost": {
          "nulls": 0,
          "distinct": 300,
          "min": 30.94,
          "max": 4996.21
        }
      }
    },
    "inspections": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "vehicle_id": {
          "nulls": 0,
          "distinct": 82,
          "min": 2,
          "max": 100
        },
        "inspection_date": {
          "nulls": 0,
          "distinct": 151,
          "min": "2023-01-01",
          "max": "2023-12-28"
        },
        "outcome": {
          "nulls": 0,
          "distinct": 2,
          "min": "fail",
          "max": "pass"
        },
        "notes": {
          "nulls": 0,
          "distinct": 200
        }
      }
    },
    "parts_inventory": {
      "rows": 150,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 150,
          "min": 1,
          "max": 150
        },
        "part_name": {
          "nulls": 0,
          "distinct": 150
        },
        "quantity": {
          "nulls": 0,
          "distinct": 80,
          "min": 1,
          "max": 99
        },
        "vehicle_id": {
          "nulls": 13,
          "distinct": 81,
          "min": 1,
          "max": 100
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/drivers.csv",
      "format": "csv",
      "table": "drivers",
      "key": "datasets/fleet-management-system/v1/csv/drivers.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-system/v1/csv/drivers.csv",
      "bytes": 5884,
      "sha256": "965859009a67733bf7bdbbc4de1e4bbea0b8f5d8c037ee6bdb2dcf009806c499",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/vehicles.csv",
      "format": "csv",
      "table": "vehicles",
      "key": "datasets/fleet-management-system/v1/csv/vehicles.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-system/v1/csv/vehicles.csv",
      "bytes": 9715,
      "sha256": "8bc649f68fcf10fbd72faee6a80d72d751fc0fa74481a939020c24af719d32bd",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/inspections.csv",
      "format": "csv",
      "table": "inspections",
      "key": "datasets/fleet-management-system/v1/csv/inspections.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-system/v1/csv/inspections.csv",
      "bytes": 15858,
      "sha256": "b92b38ea219ca9ff265fa3ef639d74d9dc729acc195d0d378b773db08c5ed9f2",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/maintenance.csv",
      "format": "csv",
      "table": "maintenance",
      "key": "datasets/fleet-management-system/v1/csv/maintenance.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-system/v1/csv/maintenance.csv",
      "bytes": 24856,
      "sha256": "39b8336b5cd47d4d389566a0fb18b68290af2a358100ff1361a5e7073b18c1d8",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/parts_inventory.csv",
      "format": "csv",
      "table": "parts_inventory",
      "key": "datasets/fleet-management-system/v1/csv/parts_inventory.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-system/v1/csv/parts_inventory.csv",
      "bytes": 5602,
      "sha256": "79bcca7015e4cd00fb20615a6615c5f64f2b3e470353266d9f04b16961b3d0ca",
      "rows": 150,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/trips.csv",
      "format": "csv",
      "table": "trips",
      "key": "datasets/fleet-management-system/v1/csv/trips.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-system/v1/csv/trips.csv",
      "bytes": 36481,
      "sha256": "3ff3419f2915136002e76ffff74dc91ba4d78604cf81287f58fb0c6bf4620866",
      "rows": 600,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "fleet-management-system.json",
      "format": "json",
      "table": null,
      "key": "datasets/fleet-management-system/v1/fleet-management-system.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-system/v1/fleet-management-system.json",
      "bytes": 285146,
      "sha256": "23d5e1f265936fa450119f4fa799dcd745088c5e4609476affe183d66be75ef4",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/fleet-management-system/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-system/v1/sql/postgres.sql",
      "bytes": 123987,
      "sha256": "f616b3b60546e4e6106d6edc5102fe802a2561c88dd2bb57877b65d525fca419",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/fleet-management-system/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-system/v1/sql/mysql.sql",
      "bytes": 123296,
      "sha256": "bb0ae0aac2b4b4c22a1427aeecffbd200027f3b47cf9c73ef858944ea6ff0ae2",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/fleet-management-system/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-system/v1/sql/mssql.sql",
      "bytes": 126958,
      "sha256": "1e4299d1e82fc136ec4f94af2f9af47317e29bc5c8dabfcb0832ec72a9c36ee7",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/fleet-management-system/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-system/v1/sql/sqlite.sql",
      "bytes": 123059,
      "sha256": "745c9edd7041080aa6818bb72a6537f706047f0805269e7def11530f1ecc3f92",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/fleet-management-system/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-system/v1/prisma/seed.ts",
      "bytes": 240126,
      "sha256": "b180484f02637530a40b57d3611eeb540ac48b3c9b3b54f57cf2ca6ca3cdf90b",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/fleet-management-system/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fleet-management-system/v1/django/fixtures.json",
      "bytes": 347541,
      "sha256": "02b8cac9c96293da79ac1651f9d5e5b95fd067c35683f4bd353cf1a5655bbbbe",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788734399727,
  "updatedAt": 1788734399727
}
