{
  "format": "dataset-manifest/1",
  "slug": "car-rental-sample-database",
  "version": 1,
  "seed": "flagship:car-rental-sample-database:1k",
  "engine": 2,
  "engineVersion": "1.0.0",
  "spec": {
    "format": "dataset/1",
    "engine": 2,
    "slug": "car-rental-sample-database",
    "name": "Car rental sample database",
    "tagline": "Twelve branches, a fleet by model and category, bookings, pickups and returns, payments, damage and maintenance.",
    "description": "A car rental company with twelve branches over five years, 2021 to 2025. Customers book a car for one to fourteen days; the car is one standing at the pickup branch, and the booking is made before the pickup. About a third of bookings are prepaid online, in full: the days times the daily rate of the car’s category, less the member discount of the customer’s tier. Two in three bookings are picked up -- within two hours of the booked time -- and every pickup is returned after it left, with more miles on the clock than it started with. Fines and roadside assistance belong to rentals, damage to inspections, and maintenance ends after it starts. Every customer has one licence, and no two vehicles share a VIN or a plate.",
    "domain": "travel",
    "shape": "transactional",
    "useCases": [
      "sql-practice",
      "bi-dashboards",
      "test-fixtures"
    ],
    "keywords": [
      "car rental",
      "bookings",
      "fleet",
      "rentals",
      "sample database"
    ],
    "locale": "en_US",
    "license": "CC0-1.0",
    "version": 1,
    "seed": "flagship:car-rental-sample-database",
    "tables": {
      "bookings": {
        "description": "Rows for the bookings table.",
        "rows": 1000,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "booking_date": {
            "kind": "datetime",
            "from": "2021-01-01",
            "to": "2025-12-31"
          },
          "customer_id": {
            "kind": "fk",
            "ref": "customers.id",
            "skew": "long-tail"
          },
          "discount_id": {
            "kind": "fk",
            "ref": "discounts.id",
            "weights": [
              88,
              5,
              4,
              3
            ]
          },
          "dropoff_date": {
            "kind": "datetime",
            "from": "2021-01-01",
            "to": "2025-12-31"
          },
          "dropoff_location_id": {
            "kind": "fk",
            "ref": "locations.id",
            "skew": "long-tail"
          },
          "pickup_date": {
            "kind": "datetime",
            "from": "2021-01-01",
            "to": "2025-12-31",
            "dayProfile": "business",
            "trend": "seasonal"
          },
          "pickup_location_id": {
            "kind": "fk",
            "ref": "locations.id",
            "skew": "long-tail"
          },
          "vehicle_id": {
            "kind": "fk",
            "ref": "vehicles.id",
            "skew": "flat"
          }
        }
      },
      "categories": {
        "description": "Rows for the categories table.",
        "rows": 6,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "description": {
            "kind": "enum",
            "values": [
              "Small and frugal",
              "Room for four",
              "A comfortable sedan",
              "Space and height",
              "Seven seats",
              "Premium comfort"
            ]
          },
          "name": {
            "kind": "enum",
            "values": [
              "Economy",
              "Compact",
              "Midsize",
              "SUV",
              "Minivan",
              "Luxury"
            ],
            "unique": true
          }
        }
      },
      "customers": {
        "description": "Rows for the customers table.",
        "rows": 40,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "birth_date": {
            "kind": "date",
            "from": "1950-01-01",
            "to": "2003-12-31"
          },
          "email": {
            "kind": "internet.email",
            "from": {
              "firstName": "first_name",
              "lastName": "last_name"
            },
            "unique": true
          },
          "first_name": {
            "kind": "person.firstName"
          },
          "last_name": {
            "kind": "person.lastName"
          },
          "membership_id": {
            "kind": "fk",
            "ref": "memberships.id",
            "weights": [
              70,
              18,
              9,
              3
            ]
          },
          "phone": {
            "kind": "phone.number"
          }
        }
      },
      "damages": {
        "description": "Rows for the damages table.",
        "rows": 10,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "description": {
            "kind": "enum",
            "values": [
              "Scratch",
              "Dent",
              "Cracked windshield",
              "Broken mirror",
              "Torn seat"
            ]
          },
          "estimated_repair_cost": {
            "kind": "decimal",
            "min": 80,
            "max": 4000,
            "scale": 2,
            "distribution": "long-tail"
          },
          "inspection_id": {
            "kind": "fk",
            "ref": "inspections.id",
            "skew": "flat"
          }
        }
      },
      "departments": {
        "description": "Rows for the departments table.",
        "rows": 4,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "description": {
            "kind": "enum",
            "values": [
              "Front of house",
              "Keeps the cars moving",
              "Workshop",
              "Runs the branches"
            ]
          },
          "name": {
            "kind": "enum",
            "values": [
              "Rental Desk",
              "Fleet",
              "Maintenance",
              "Management"
            ],
            "unique": true
          }
        }
      },
      "discounts": {
        "description": "Rows for the discounts table.",
        "rows": 4,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "code": {
            "kind": "enum",
            "values": [
              "NONE",
              "SPRING10",
              "WEEKLY15",
              "LOYAL20"
            ],
            "unique": true
          },
          "end_date": {
            "kind": "constant",
            "value": "2025-12-31",
            "type": "date"
          },
          "percent": {
            "kind": "int",
            "min": 0,
            "max": 20
          },
          "start_date": {
            "kind": "constant",
            "value": "2021-01-01",
            "type": "date"
          }
        }
      },
      "employees": {
        "description": "Rows for the employees table.",
        "rows": 240,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "department_id": {
            "kind": "fk",
            "ref": "departments.id",
            "weights": [
              55,
              20,
              15,
              10
            ]
          },
          "email": {
            "kind": "internet.email",
            "from": {
              "firstName": "first_name",
              "lastName": "last_name"
            },
            "unique": true
          },
          "first_name": {
            "kind": "person.firstName"
          },
          "hire_date": {
            "kind": "date",
            "from": "2010-01-01",
            "to": "2024-12-31",
            "distribution": "high"
          },
          "last_name": {
            "kind": "person.lastName"
          },
          "location_id": {
            "kind": "fk",
            "ref": "locations.id",
            "skew": "flat"
          },
          "phone": {
            "kind": "phone.number"
          },
          "role_id": {
            "kind": "fk",
            "ref": "roles.id",
            "weights": [
              50,
              20,
              15,
              5,
              10
            ]
          }
        }
      },
      "features": {
        "description": "Rows for the features table.",
        "rows": 12,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "description": {
            "kind": "enum",
            "values": [
              "Comfort",
              "Safety",
              "Technology",
              "Convenience"
            ]
          },
          "name": {
            "kind": "enum",
            "values": [
              "GPS navigation",
              "Bluetooth",
              "Backup camera",
              "Heated seats",
              "Sunroof",
              "Apple CarPlay",
              "Android Auto",
              "Cruise control",
              "Child seat anchors",
              "Lane assist",
              "Blind spot monitor",
              "Roof rack"
            ],
            "unique": true
          }
        }
      },
      "fines": {
        "description": "Rows for the fines table.",
        "rows": 10,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "amount": {
            "kind": "enum",
            "values": [
              "35",
              "50",
              "75",
              "150"
            ],
            "weights": [
              40,
              30,
              20,
              10
            ],
            "type": "numeric(8,2)"
          },
          "issued_date": {
            "kind": "date",
            "from": "2021-01-01",
            "to": "2025-12-31"
          },
          "paid": {
            "kind": "bool",
            "trueRate": 0.9
          },
          "reason": {
            "kind": "enum",
            "values": [
              "Parking ticket",
              "Speeding camera",
              "Toll not paid",
              "Late return",
              "Smoking in the car"
            ]
          },
          "rental_id": {
            "kind": "fk",
            "ref": "rentals.id",
            "skew": "flat"
          }
        }
      },
      "fuels": {
        "description": "Rows for the fuels table.",
        "rows": 4,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "type": {
            "kind": "enum",
            "values": [
              "gasoline",
              "diesel",
              "hybrid",
              "electric"
            ],
            "unique": true
          }
        }
      },
      "inspections": {
        "description": "Rows for the inspections table.",
        "rows": 10,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "employee_id": {
            "kind": "fk",
            "ref": "employees.id",
            "skew": "flat"
          },
          "inspection_date": {
            "kind": "datetime",
            "from": "2021-01-01",
            "to": "2025-12-31",
            "dayProfile": "business"
          },
          "notes": {
            "kind": "enum",
            "values": [
              "No issues",
              "Scratch on rear bumper",
              "Chipped windshield",
              "Worn tires",
              "Dent on driver door"
            ]
          },
          "passed": {
            "kind": "bool",
            "trueRate": 0.85
          },
          "vehicle_id": {
            "kind": "fk",
            "ref": "vehicles.id",
            "skew": "flat"
          }
        }
      },
      "insurance_types": {
        "description": "Rows for the insurance_types table.",
        "rows": 4,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "daily_cost": {
            "kind": "decimal",
            "min": 0,
            "max": 60,
            "scale": 2
          },
          "description": {
            "kind": "enum",
            "values": [
              "Third party only",
              "Covers damage to the car",
              "Covers theft of the car",
              "Damage, theft and glass"
            ]
          },
          "name": {
            "kind": "enum",
            "values": [
              "Basic",
              "Collision Damage Waiver",
              "Theft Protection",
              "Full Cover"
            ],
            "unique": true
          }
        }
      },
      "insurances": {
        "description": "Rows for the insurances table.",
        "rows": 80,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "booking_id": {
            "kind": "fk",
            "ref": "bookings.id",
            "unique": true
          },
          "coverage_limit": {
            "kind": "enum",
            "values": [
              "25000",
              "50000",
              "100000"
            ],
            "weights": [
              40,
              40,
              20
            ],
            "type": "numeric(12,2)"
          },
          "insurance_type_id": {
            "kind": "fk",
            "ref": "insurance_types.id",
            "weights": [
              40,
              30,
              10,
              20
            ]
          }
        }
      },
      "licenses": {
        "description": "Rows for the licenses table.",
        "rows": 40,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "customer_id": {
            "kind": "fk",
            "ref": "customers.id",
            "unique": true
          },
          "expiry_date": {
            "kind": "date",
            "from": "2026-01-01",
            "to": "2033-12-31"
          },
          "license_number": {
            "kind": "pattern",
            "pattern": "[DL-]A#######",
            "unique": true,
            "description": "A made-up licence reference."
          },
          "state_issued": {
            "kind": "place.regionCode"
          }
        }
      },
      "locations": {
        "description": "Rows for the locations table.",
        "rows": 12,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "address": {
            "kind": "location.streetAddress"
          },
          "city": {
            "kind": "place.city"
          },
          "email": {
            "kind": "enum",
            "values": [
              "downtown@rentals.example.com",
              "airport@rentals.example.com",
              "unionstation@rentals.example.com",
              "harbor@rentals.example.com",
              "university@rentals.example.com",
              "uptown@rentals.example.com",
              "westside@rentals.example.com",
              "eastside@rentals.example.com",
              "northgate@rentals.example.com",
              "southpoint@rentals.example.com",
              "conventioncenter@rentals.example.com",
              "lakeside@rentals.example.com"
            ],
            "unique": true
          },
          "name": {
            "kind": "enum",
            "values": [
              "Downtown Branch",
              "Airport Branch",
              "Union Station Branch",
              "Harbor Branch",
              "University Branch",
              "Uptown Branch",
              "Westside Branch",
              "Eastside Branch",
              "Northgate Branch",
              "Southpoint Branch",
              "Convention Center Branch",
              "Lakeside Branch"
            ],
            "unique": true
          },
          "phone": {
            "kind": "phone.number"
          },
          "state": {
            "kind": "place.regionCode"
          },
          "zip_code": {
            "kind": "place.postcode"
          }
        }
      },
      "maintenance_types": {
        "description": "Rows for the maintenance_types table.",
        "rows": 6,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "description": {
            "kind": "enum",
            "values": [
              "Routine",
              "Safety",
              "Repair"
            ]
          },
          "name": {
            "kind": "enum",
            "values": [
              "Oil change",
              "Tire rotation",
              "Brake service",
              "Inspection",
              "Bodywork",
              "Battery replacement"
            ],
            "unique": true
          }
        }
      },
      "maintenances": {
        "description": "Rows for the maintenances table.",
        "rows": 10,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "cost": {
            "kind": "decimal",
            "min": 30,
            "max": 3000,
            "scale": 2,
            "distribution": "long-tail"
          },
          "end_date": {
            "kind": "date",
            "from": "2021-01-01",
            "to": "2025-12-31"
          },
          "maintenance_type_id": {
            "kind": "fk",
            "ref": "maintenance_types.id",
            "weights": [
              35,
              20,
              15,
              15,
              8,
              7
            ]
          },
          "start_date": {
            "kind": "date",
            "from": "2021-01-01",
            "to": "2025-12-31"
          },
          "vehicle_id": {
            "kind": "fk",
            "ref": "vehicles.id",
            "skew": "flat"
          },
          "vendor_id": {
            "kind": "fk",
            "ref": "vendors.id",
            "skew": "flat"
          }
        }
      },
      "manufacturers": {
        "description": "Rows for the manufacturers table.",
        "rows": 10,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "country": {
            "kind": "enum",
            "values": [
              "Germany",
              "Japan",
              "South Korea",
              "United States"
            ]
          },
          "name": {
            "kind": "enum",
            "values": [
              "Toyota",
              "Honda",
              "Ford",
              "Chevrolet",
              "Hyundai",
              "Kia",
              "Nissan",
              "Volkswagen",
              "BMW",
              "Tesla"
            ],
            "unique": true
          }
        }
      },
      "memberships": {
        "description": "Rows for the memberships table.",
        "rows": 4,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "discount_percent": {
            "kind": "int",
            "min": 0,
            "max": 15
          },
          "points_multiplier": {
            "kind": "decimal",
            "min": 1,
            "max": 3,
            "scale": 2
          },
          "tier": {
            "kind": "enum",
            "values": [
              "standard",
              "silver",
              "gold",
              "platinum"
            ],
            "unique": true
          }
        }
      },
      "models": {
        "description": "Rows for the models table.",
        "rows": 40,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "category_id": {
            "kind": "fk",
            "ref": "categories.id"
          },
          "manufacturer_id": {
            "kind": "fk",
            "ref": "manufacturers.id"
          },
          "name": {
            "kind": "enum",
            "values": [
              "Yaris",
              "Corolla",
              "Camry",
              "RAV4",
              "Sienna",
              "Fit",
              "Civic",
              "Accord",
              "CR-V",
              "Odyssey",
              "Focus",
              "Fusion",
              "Escape",
              "Explorer",
              "Spark",
              "Malibu",
              "Equinox",
              "Tahoe",
              "Accent",
              "Elantra",
              "Sonata",
              "Tucson",
              "Rio",
              "Forte",
              "K5",
              "Sportage",
              "Carnival",
              "Versa",
              "Sentra",
              "Altima",
              "Rogue",
              "Jetta",
              "Passat",
              "Tiguan",
              "3 Series",
              "5 Series",
              "X5",
              "Model 3",
              "Model Y",
              "Pacifica"
            ],
            "unique": true
          }
        }
      },
      "payment_methods": {
        "description": "Rows for the payment_methods table.",
        "rows": 4,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "name": {
            "kind": "enum",
            "values": [
              "Credit card",
              "Debit card",
              "Corporate account",
              "Voucher"
            ],
            "unique": true
          }
        }
      },
      "payments": {
        "description": "Rows for the payments table.",
        "rows": 350,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "amount": {
            "kind": "decimal",
            "min": 0,
            "max": 1105,
            "scale": 2
          },
          "booking_id": {
            "kind": "fk",
            "ref": "bookings.id",
            "unique": true
          },
          "payment_date": {
            "kind": "datetime",
            "from": "2021-01-01",
            "to": "2025-12-31"
          },
          "payment_method_id": {
            "kind": "fk",
            "ref": "payment_methods.id",
            "weights": [
              68,
              20,
              10,
              2
            ]
          }
        }
      },
      "rates": {
        "description": "Rows for the rates table.",
        "rows": 6,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "category_id": {
            "kind": "fk",
            "ref": "categories.id",
            "unique": true
          },
          "daily_rate": {
            "kind": "decimal",
            "min": 1,
            "max": 1000,
            "scale": 2
          },
          "hourly_rate": {
            "kind": "decimal",
            "min": 0,
            "max": 1000,
            "scale": 2
          },
          "weekly_rate": {
            "kind": "decimal",
            "min": 1,
            "max": 5000,
            "scale": 2
          }
        }
      },
      "rentals": {
        "description": "Rows for the rentals table.",
        "rows": 650,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "actual_pickup_time": {
            "kind": "datetime",
            "from": "2021-01-01",
            "to": "2025-12-31"
          },
          "booking_id": {
            "kind": "fk",
            "ref": "bookings.id",
            "unique": true
          },
          "employee_id": {
            "kind": "fk",
            "ref": "employees.id",
            "skew": "flat"
          },
          "fuel_level_percent": {
            "kind": "enum",
            "values": [
              "100",
              "75",
              "50"
            ],
            "weights": [
              85,
              10,
              5
            ],
            "type": "integer"
          },
          "starting_mileage": {
            "kind": "int",
            "min": 0,
            "max": 123612,
            "distribution": "long-tail"
          }
        }
      },
      "returns": {
        "description": "Rows for the returns table.",
        "rows": 650,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "actual_dropoff_time": {
            "kind": "datetime",
            "from": "2021-01-01",
            "to": "2025-12-31"
          },
          "employee_id": {
            "kind": "fk",
            "ref": "employees.id",
            "skew": "flat"
          },
          "ending_mileage": {
            "kind": "int",
            "min": 0,
            "max": 125463,
            "distribution": "long-tail"
          },
          "fuel_level_percent": {
            "kind": "enum",
            "values": [
              "100",
              "75",
              "50",
              "25"
            ],
            "weights": [
              55,
              25,
              15,
              5
            ],
            "type": "integer"
          },
          "rental_id": {
            "kind": "fk",
            "ref": "rentals.id",
            "unique": true
          }
        }
      },
      "reviews": {
        "description": "Rows for the reviews table.",
        "rows": 20,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "comments": {
            "kind": "enum",
            "values": [
              "Clean and quick",
              "Car smelled of smoke",
              "Great value",
              "Long wait at the desk",
              "Would rent again",
              "Low tire pressure"
            ],
            "nullable": true,
            "nullRate": 0.3
          },
          "customer_id": {
            "kind": "fk",
            "ref": "customers.id",
            "skew": "long-tail"
          },
          "rating": {
            "kind": "int",
            "min": 1,
            "max": 5,
            "distribution": "high"
          },
          "review_date": {
            "kind": "datetime",
            "from": "2021-01-01",
            "to": "2025-12-31"
          },
          "vehicle_id": {
            "kind": "fk",
            "ref": "vehicles.id",
            "skew": "flat"
          }
        }
      },
      "roadside_assists": {
        "description": "Rows for the roadside_assists table.",
        "rows": 10,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "cost": {
            "kind": "decimal",
            "min": 40,
            "max": 400,
            "scale": 2,
            "distribution": "long-tail"
          },
          "issue_description": {
            "kind": "enum",
            "values": [
              "Flat tire",
              "Dead battery",
              "Locked out",
              "Ran out of fuel",
              "Engine warning light"
            ]
          },
          "rental_id": {
            "kind": "fk",
            "ref": "rentals.id",
            "skew": "flat"
          },
          "request_time": {
            "kind": "datetime",
            "from": "2021-01-01",
            "to": "2025-12-31"
          },
          "resolved_time": {
            "kind": "datetime",
            "from": "2021-01-01",
            "to": "2025-12-31"
          }
        }
      },
      "roles": {
        "description": "Rows for the roles table.",
        "rows": 5,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "base_salary": {
            "kind": "decimal",
            "min": 30000,
            "max": 90000,
            "scale": 2
          },
          "title": {
            "kind": "enum",
            "values": [
              "Rental Agent",
              "Lot Attendant",
              "Mechanic",
              "Branch Manager",
              "Fleet Coordinator"
            ],
            "unique": true
          }
        }
      },
      "shift_schedules": {
        "description": "Rows for the shift_schedules table.",
        "rows": 10,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "employee_id": {
            "kind": "fk",
            "ref": "employees.id",
            "skew": "flat"
          },
          "end_time": {
            "kind": "datetime",
            "from": "2021-01-01",
            "to": "2025-12-31"
          },
          "start_time": {
            "kind": "datetime",
            "from": "2021-01-01",
            "to": "2025-12-31",
            "dayProfile": "business"
          }
        }
      },
      "statuses": {
        "description": "Rows for the statuses table.",
        "rows": 4,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "description": {
            "kind": "enum",
            "values": [
              "Ready to rent",
              "Out with a customer",
              "In the workshop",
              "Sold or scrapped"
            ]
          },
          "name": {
            "kind": "enum",
            "values": [
              "available",
              "rented",
              "maintenance",
              "retired"
            ],
            "unique": true
          }
        }
      },
      "tax_rates": {
        "description": "Rows for the tax_rates table.",
        "rows": 12,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "percentage": {
            "kind": "decimal",
            "min": 0,
            "max": 10,
            "scale": 2
          },
          "state_code": {
            "kind": "enum",
            "values": [
              "CA",
              "NY",
              "TX",
              "FL",
              "IL",
              "WA",
              "MA",
              "CO",
              "GA",
              "AZ",
              "NV",
              "OR"
            ],
            "unique": true
          }
        }
      },
      "transmissions": {
        "description": "Rows for the transmissions table.",
        "rows": 2,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "type": {
            "kind": "enum",
            "values": [
              "automatic",
              "manual"
            ],
            "unique": true
          }
        }
      },
      "vehicle_features": {
        "description": "Rows for the vehicle_features table.",
        "rows": 30,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "feature_id": {
            "kind": "fk",
            "ref": "features.id",
            "skew": "flat"
          },
          "vehicle_id": {
            "kind": "fk",
            "ref": "vehicles.id",
            "skew": "flat"
          }
        }
      },
      "vehicles": {
        "description": "Rows for the vehicles table.",
        "rows": 12,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "color": {
            "kind": "enum",
            "values": [
              "white",
              "black",
              "silver",
              "gray",
              "blue",
              "red"
            ],
            "weights": [
              26,
              22,
              18,
              16,
              10,
              8
            ]
          },
          "fuel_id": {
            "kind": "fk",
            "ref": "fuels.id",
            "weights": [
              70,
              8,
              15,
              7
            ]
          },
          "license_plate": {
            "kind": "pattern",
            "pattern": "###-AAA",
            "unique": true
          },
          "location_id": {
            "kind": "fk",
            "ref": "locations.id",
            "skew": "flat"
          },
          "mileage": {
            "kind": "int",
            "min": 500,
            "max": 60000,
            "distribution": "long-tail",
            "description": "Odometer on 1 January 2021."
          },
          "model_id": {
            "kind": "fk",
            "ref": "models.id",
            "skew": "long-tail"
          },
          "status_id": {
            "kind": "fk",
            "ref": "statuses.id",
            "weights": [
              72,
              18,
              6,
              4
            ]
          },
          "transmission_id": {
            "kind": "fk",
            "ref": "transmissions.id",
            "weights": [
              93,
              7
            ]
          },
          "vin": {
            "kind": "pattern",
            "pattern": "[1]AAAA##AA#A######",
            "unique": true
          },
          "year": {
            "kind": "int",
            "min": 2017,
            "max": 2025,
            "distribution": "high"
          }
        }
      },
      "vendors": {
        "description": "Rows for the vendors table.",
        "rows": 20,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "address": {
            "kind": "location.streetAddress"
          },
          "name": {
            "kind": "company.name",
            "unique": true
          },
          "phone": {
            "kind": "phone.number"
          }
        }
      }
    }
  },
  "counts": {
    "categories": 6,
    "departments": 4,
    "discounts": 4,
    "features": 12,
    "fuels": 4,
    "insurance_types": 4,
    "locations": 12,
    "maintenance_types": 6,
    "manufacturers": 10,
    "memberships": 4,
    "customers": 40,
    "licenses": 40,
    "models": 40,
    "payment_methods": 4,
    "rates": 6,
    "roles": 5,
    "employees": 240,
    "shift_schedules": 10,
    "statuses": 4,
    "tax_rates": 12,
    "transmissions": 2,
    "vehicles": 12,
    "bookings": 1000,
    "inspections": 10,
    "damages": 10,
    "insurances": 80,
    "payments": 350,
    "rentals": 650,
    "fines": 10,
    "returns": 650,
    "reviews": 20,
    "roadside_assists": 10,
    "vehicle_features": 30,
    "vendors": 20,
    "maintenances": 10
  },
  "artifacts": [
    {
      "file": "csv/categories.csv",
      "format": "csv",
      "table": "categories",
      "key": "datasets/car-rental-sample-database/v1/csv/categories.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/csv/categories.csv",
      "bytes": 178,
      "sha256": "fe5d1c5a0fe7e226434d249ad75e03c82ac081eb4689691fbf50deb1ea1cbef0",
      "rows": 6,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/departments.csv",
      "format": "csv",
      "table": "departments",
      "key": "datasets/car-rental-sample-database/v1/csv/departments.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/csv/departments.csv",
      "bytes": 136,
      "sha256": "540b123918c89d9a4acb64bf5db5193785c7eb0e5d97487bf4fbe35454ad786f",
      "rows": 4,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/discounts.csv",
      "format": "csv",
      "table": "discounts",
      "key": "datasets/car-rental-sample-database/v1/csv/discounts.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/csv/discounts.csv",
      "bytes": 179,
      "sha256": "a56c61aa0b2752af1227cc133cdcea653db174777f08e636c51bfcaa6e807b4a",
      "rows": 4,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/features.csv",
      "format": "csv",
      "table": "features",
      "key": "datasets/car-rental-sample-database/v1/csv/features.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/csv/features.csv",
      "bytes": 333,
      "sha256": "63e0c14e1d0809f19400d0eca84f39824bf114a4b84c9a8d75ff5f3831b0840c",
      "rows": 12,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/fuels.csv",
      "format": "csv",
      "table": "fuels",
      "key": "datasets/car-rental-sample-database/v1/csv/fuels.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/csv/fuels.csv",
      "bytes": 53,
      "sha256": "62c83af33221e1575e89f91811257e13bd8e5e79e8d99360eab358b3c3d4e3e9",
      "rows": 4,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/insurance_types.csv",
      "format": "csv",
      "table": "insurance_types",
      "key": "datasets/car-rental-sample-database/v1/csv/insurance_types.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/csv/insurance_types.csv",
      "bytes": 213,
      "sha256": "28d093d2f7ff83ebc05b9daab6ed2665fb33c47a42ac076db2db25e62826187c",
      "rows": 4,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/locations.csv",
      "format": "csv",
      "table": "locations",
      "key": "datasets/car-rental-sample-database/v1/csv/locations.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/csv/locations.csv",
      "bytes": 1297,
      "sha256": "b06623e69050fc3e0632e218506112f61b6f30bcfffb8c49aac4730a150e4d1a",
      "rows": 12,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/maintenance_types.csv",
      "format": "csv",
      "table": "maintenance_types",
      "key": "datasets/car-rental-sample-database/v1/csv/maintenance_types.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/csv/maintenance_types.csv",
      "bytes": 164,
      "sha256": "565b70eb7672d8f048868397b7d5805273351da3c5778372751981443bfb94eb",
      "rows": 6,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/manufacturers.csv",
      "format": "csv",
      "table": "manufacturers",
      "key": "datasets/car-rental-sample-database/v1/csv/manufacturers.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/csv/manufacturers.csv",
      "bytes": 216,
      "sha256": "94a38136883a98e7de0a4265267c71bfcae1f2db940afada8a5e3e8805e0c8dc",
      "rows": 10,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/memberships.csv",
      "format": "csv",
      "table": "memberships",
      "key": "datasets/car-rental-sample-database/v1/csv/memberships.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/csv/memberships.csv",
      "bytes": 109,
      "sha256": "91721066527c2b49af247c390e84db9269cf14c3c19268c046ddf086ce66a998",
      "rows": 4,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/customers.csv",
      "format": "csv",
      "table": "customers",
      "key": "datasets/car-rental-sample-database/v1/csv/customers.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/csv/customers.csv",
      "bytes": 2942,
      "sha256": "b5845164ce7c6d131e03711455b01647fc7627d8678cf9cc767fd68a701615d5",
      "rows": 40,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/licenses.csv",
      "format": "csv",
      "table": "licenses",
      "key": "datasets/car-rental-sample-database/v1/csv/licenses.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/csv/licenses.csv",
      "bytes": 1358,
      "sha256": "ed6f8af523f2da91b328a02195ed8e48c3d63d3d5163315acf374ec8a115673f",
      "rows": 40,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/models.csv",
      "format": "csv",
      "table": "models",
      "key": "datasets/car-rental-sample-database/v1/csv/models.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/csv/models.csv",
      "bytes": 620,
      "sha256": "1486776eae735e2d6de79f75116112b9ac8b2559381d9661120106dd5f44d440",
      "rows": 40,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/payment_methods.csv",
      "format": "csv",
      "table": "payment_methods",
      "key": "datasets/car-rental-sample-database/v1/csv/payment_methods.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/csv/payment_methods.csv",
      "bytes": 70,
      "sha256": "28320dc137a85ea2a3da4fdcc17eac55c0b2cbcc57d5ba00094eb05616685d96",
      "rows": 4,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/rates.csv",
      "format": "csv",
      "table": "rates",
      "key": "datasets/car-rental-sample-database/v1/csv/rates.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/csv/rates.csv",
      "bytes": 141,
      "sha256": "b2dc426b81b25d2ff4d32737277689decee23b5857e57b7f6ffd9bf9798565b4",
      "rows": 6,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/roles.csv",
      "format": "csv",
      "table": "roles",
      "key": "datasets/car-rental-sample-database/v1/csv/roles.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/csv/roles.csv",
      "bytes": 136,
      "sha256": "ab1ed202abd2c9d8b40b7f8d076a0704cbd16c486b879d3e4a218faab611a43b",
      "rows": 5,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/employees.csv",
      "format": "csv",
      "table": "employees",
      "key": "datasets/car-rental-sample-database/v1/csv/employees.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/csv/employees.csv",
      "bytes": 18815,
      "sha256": "b24280d81be4d752bd7054b983f8b1124865598d207bd33ab0018b6d8df2d3ab",
      "rows": 240,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/shift_schedules.csv",
      "format": "csv",
      "table": "shift_schedules",
      "key": "datasets/car-rental-sample-database/v1/csv/shift_schedules.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/csv/shift_schedules.csv",
      "bytes": 503,
      "sha256": "c6007b0dede17af36e16816cde6d060d5d68696e4a5d88759767b38ce20e74b9",
      "rows": 10,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/statuses.csv",
      "format": "csv",
      "table": "statuses",
      "key": "datasets/car-rental-sample-database/v1/csv/statuses.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/csv/statuses.csv",
      "bytes": 134,
      "sha256": "0a91302304c76b899e29e09aee32e4e46b5ead5df50177ee60998abcffc6e07e",
      "rows": 4,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/tax_rates.csv",
      "format": "csv",
      "table": "tax_rates",
      "key": "datasets/car-rental-sample-database/v1/csv/tax_rates.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/csv/tax_rates.csv",
      "bytes": 149,
      "sha256": "702efd8372c69456b6648ee9c6b10078739027fe5a7146166920c78fb8e413e8",
      "rows": 12,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/transmissions.csv",
      "format": "csv",
      "table": "transmissions",
      "key": "datasets/car-rental-sample-database/v1/csv/transmissions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/csv/transmissions.csv",
      "bytes": 32,
      "sha256": "81fbf2e46bf2263c017a074e3ffcaf2d0ff07cb71044d9ed70dfe311dc27816c",
      "rows": 2,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/vehicles.csv",
      "format": "csv",
      "table": "vehicles",
      "key": "datasets/car-rental-sample-database/v1/csv/vehicles.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/csv/vehicles.csv",
      "bytes": 771,
      "sha256": "7c4ebca9721b0986e23055ca514453c811e661383f56d4ce179c7ecf3e19b088",
      "rows": 12,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/bookings.csv",
      "format": "csv",
      "table": "bookings",
      "key": "datasets/car-rental-sample-database/v1/csv/bookings.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/csv/bookings.csv",
      "bytes": 76180,
      "sha256": "9e26b2ec43f26fbc4567fdf76be21211cf8ecee5409c4ab60b5183341a5c4c97",
      "rows": 1000,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/inspections.csv",
      "format": "csv",
      "table": "inspections",
      "key": "datasets/car-rental-sample-database/v1/csv/inspections.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/csv/inspections.csv",
      "bytes": 584,
      "sha256": "28063a40281b97991b9b43ad9b95c5dd323a376797a5133c415e520cb0ced38f",
      "rows": 10,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/damages.csv",
      "format": "csv",
      "table": "damages",
      "key": "datasets/car-rental-sample-database/v1/csv/damages.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/csv/damages.csv",
      "bytes": 280,
      "sha256": "33cd8dea80c3a0462ab2d2e4c71253a0ced6bb8cb10e4499ff332104629d1d06",
      "rows": 10,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/insurances.csv",
      "format": "csv",
      "table": "insurances",
      "key": "datasets/car-rental-sample-database/v1/csv/insurances.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/csv/insurances.csv",
      "bytes": 1330,
      "sha256": "4108beee025071600956ef3bdbce4b6dc4d680ac3ee2bf73183e1404e47c87b4",
      "rows": 80,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/payments.csv",
      "format": "csv",
      "table": "payments",
      "key": "datasets/car-rental-sample-database/v1/csv/payments.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/csv/payments.csv",
      "bytes": 12244,
      "sha256": "35ae9d7b0a1e123454a8e3af2ea88fda291fcb3a56017a87796b7730f00cc4b2",
      "rows": 350,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/rentals.csv",
      "format": "csv",
      "table": "rentals",
      "key": "datasets/car-rental-sample-database/v1/csv/rentals.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/csv/rentals.csv",
      "bytes": 27462,
      "sha256": "aed32a54f06f595e55a9ff287735052a2b074ac90e42518e8cc0fd8ce45dad7c",
      "rows": 650,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/fines.csv",
      "format": "csv",
      "table": "fines",
      "key": "datasets/car-rental-sample-database/v1/csv/fines.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/csv/fines.csv",
      "bytes": 467,
      "sha256": "49e4a0fd8f4a8ec53e4a2973fcddeb6824e2b7abef5b8476387d5aa69ecaf665",
      "rows": 10,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/returns.csv",
      "format": "csv",
      "table": "returns",
      "key": "datasets/car-rental-sample-database/v1/csv/returns.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/csv/returns.csv",
      "bytes": 27254,
      "sha256": "19ef2d580d337862b2c498339dea1bcfefcfcac29d339a17313efdb667b19c77",
      "rows": 650,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/reviews.csv",
      "format": "csv",
      "table": "reviews",
      "key": "datasets/car-rental-sample-database/v1/csv/reviews.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/csv/reviews.csv",
      "bytes": 924,
      "sha256": "444dbef764e211f080258f8ef8ae5d0fe034ebcf19146b2b9cd78e4575a4d0ea",
      "rows": 20,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/roadside_assists.csv",
      "format": "csv",
      "table": "roadside_assists",
      "key": "datasets/car-rental-sample-database/v1/csv/roadside_assists.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/csv/roadside_assists.csv",
      "bytes": 749,
      "sha256": "60757e4ceca43f095da62128b9b01f94ae32a701114776fa4413933b264655cf",
      "rows": 10,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/vehicle_features.csv",
      "format": "csv",
      "table": "vehicle_features",
      "key": "datasets/car-rental-sample-database/v1/csv/vehicle_features.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/csv/vehicle_features.csv",
      "bytes": 273,
      "sha256": "f9249487dde3797413d1312f16b386f05cb0fa9d11172281692243802a485580",
      "rows": 30,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/vendors.csv",
      "format": "csv",
      "table": "vendors",
      "key": "datasets/car-rental-sample-database/v1/csv/vendors.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/csv/vendors.csv",
      "bytes": 1206,
      "sha256": "1a603b05bab6482b348dd8695e5bfbfe41be78bc4cb9d1be6f7329863e1f32ae",
      "rows": 20,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/maintenances.csv",
      "format": "csv",
      "table": "maintenances",
      "key": "datasets/car-rental-sample-database/v1/csv/maintenances.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/csv/maintenances.csv",
      "bytes": 463,
      "sha256": "e7a863f75df7550da803ccccd2c62925cdd12c58144efbb377093e3964609ae8",
      "rows": 10,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "car-rental-sample-database.json",
      "format": "json",
      "table": null,
      "key": "datasets/car-rental-sample-database/v1/car-rental-sample-database.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/car-rental-sample-database.json",
      "bytes": 733172,
      "sha256": "5599f80ae15856e7e394467c7d70cc4238ca05d48204cf4cb12a9a5759b1f2ab",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/car-rental-sample-database/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/sql/postgres.sql",
      "bytes": 251229,
      "sha256": "901014c04a2117a67b78e8efa15766ce8124e99a80ff783c07d9f6ee5ba1ac63",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/car-rental-sample-database/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/sql/mysql.sql",
      "bytes": 247906,
      "sha256": "e2e393bcd76e9357c9523b27945ef5e903fb518171e33b3b2e5129288ba90cad",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/car-rental-sample-database/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/sql/mssql.sql",
      "bytes": 256087,
      "sha256": "2fe87d367c0370c0174e0277a9a1530117340b1ce8c26e8f5427df749ddacb25",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/car-rental-sample-database/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/sql/sqlite.sql",
      "bytes": 245353,
      "sha256": "e303714ece42b5e9fe034dc8e97417185fe86be8145ae585955987dffe5b88a6",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/car-rental-sample-database/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/prisma/seed.ts",
      "bytes": 619060,
      "sha256": "64d21ec7c2b1826eed8f9114c28c445201129c346c465e004664a7ba075f2cf4",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/car-rental-sample-database/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/django/fixtures.json",
      "bytes": 854653,
      "sha256": "3e4f37b2b2bec85a752e2994c7acb40d51ffd70cea9f4ad2d840dfe138f8faef",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "flagship": {
    "sizes": {
      "1k": {
        "rows": 3331,
        "counts": {
          "categories": 6,
          "departments": 4,
          "discounts": 4,
          "features": 12,
          "fuels": 4,
          "insurance_types": 4,
          "locations": 12,
          "maintenance_types": 6,
          "manufacturers": 10,
          "memberships": 4,
          "customers": 40,
          "licenses": 40,
          "models": 40,
          "payment_methods": 4,
          "rates": 6,
          "roles": 5,
          "employees": 240,
          "shift_schedules": 10,
          "statuses": 4,
          "tax_rates": 12,
          "transmissions": 2,
          "vehicles": 12,
          "bookings": 1000,
          "inspections": 10,
          "damages": 10,
          "insurances": 80,
          "payments": 350,
          "rentals": 650,
          "fines": 10,
          "returns": 650,
          "reviews": 20,
          "roadside_assists": 10,
          "vehicle_features": 30,
          "vendors": 20,
          "maintenances": 10
        },
        "notes": [],
        "downloads": [
          {
            "format": "sql-postgres",
            "label": "PostgreSQL",
            "file": "flagship/1k/postgres.sql.gz",
            "key": "datasets/car-rental-sample-database/v1/flagship/1k/postgres.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/flagship/1k/postgres.sql.gz",
            "bytes": 74877,
            "sha256": "6fdd168da9da64ccb2058d4bea454469a8d4299895f84ca99a20aca012267c78",
            "raw": {
              "bytes": 257715,
              "sha256": "c95146f82c9b390c41d700aa6f081ad1e00bb5f99bfb227df50001013b705c4f"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "sql-mysql",
            "label": "MySQL",
            "file": "flagship/1k/mysql.sql.gz",
            "key": "datasets/car-rental-sample-database/v1/flagship/1k/mysql.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/flagship/1k/mysql.sql.gz",
            "bytes": 74180,
            "sha256": "5395f3f801bc63f5ae073659a766d93ebf0f0b1856c79ba244fa7ea6a365c227",
            "raw": {
              "bytes": 254392,
              "sha256": "1c879d197598899fdb55c761bf158752765cb0cfa22102417ec0542eae91b374"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "sql-sqlite",
            "label": "SQLite",
            "file": "flagship/1k/sqlite.sql.gz",
            "key": "datasets/car-rental-sample-database/v1/flagship/1k/sqlite.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/flagship/1k/sqlite.sql.gz",
            "bytes": 73552,
            "sha256": "8b4140a16ead87f003bdb1db07d1526d8d0ee5c3dbae244f49f09d61d6b05825",
            "raw": {
              "bytes": 251839,
              "sha256": "d6a594e8af2e1c9f8b2566af196906dde50d91e072a7049cd232dfd669a66838"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "csv",
            "label": "CSV",
            "file": "flagship/1k/csv.zip",
            "key": "datasets/car-rental-sample-database/v1/flagship/1k/csv.zip",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/flagship/1k/csv.zip",
            "bytes": 76987,
            "sha256": "5c4e3ab1cd8e2d3d68b68df87e69ae12a68735aee5595e7fa35d5b6f9da2c9b4",
            "tables": {
              "bookings": {
                "bytes": 76180,
                "sha256": "9e26b2ec43f26fbc4567fdf76be21211cf8ecee5409c4ab60b5183341a5c4c97"
              },
              "categories": {
                "bytes": 178,
                "sha256": "fe5d1c5a0fe7e226434d249ad75e03c82ac081eb4689691fbf50deb1ea1cbef0"
              },
              "customers": {
                "bytes": 2942,
                "sha256": "b5845164ce7c6d131e03711455b01647fc7627d8678cf9cc767fd68a701615d5"
              },
              "damages": {
                "bytes": 280,
                "sha256": "33cd8dea80c3a0462ab2d2e4c71253a0ced6bb8cb10e4499ff332104629d1d06"
              },
              "departments": {
                "bytes": 136,
                "sha256": "540b123918c89d9a4acb64bf5db5193785c7eb0e5d97487bf4fbe35454ad786f"
              },
              "discounts": {
                "bytes": 179,
                "sha256": "a56c61aa0b2752af1227cc133cdcea653db174777f08e636c51bfcaa6e807b4a"
              },
              "employees": {
                "bytes": 18815,
                "sha256": "b24280d81be4d752bd7054b983f8b1124865598d207bd33ab0018b6d8df2d3ab"
              },
              "features": {
                "bytes": 333,
                "sha256": "63e0c14e1d0809f19400d0eca84f39824bf114a4b84c9a8d75ff5f3831b0840c"
              },
              "fines": {
                "bytes": 467,
                "sha256": "49e4a0fd8f4a8ec53e4a2973fcddeb6824e2b7abef5b8476387d5aa69ecaf665"
              },
              "fuels": {
                "bytes": 53,
                "sha256": "62c83af33221e1575e89f91811257e13bd8e5e79e8d99360eab358b3c3d4e3e9"
              },
              "inspections": {
                "bytes": 584,
                "sha256": "28063a40281b97991b9b43ad9b95c5dd323a376797a5133c415e520cb0ced38f"
              },
              "insurance_types": {
                "bytes": 213,
                "sha256": "28d093d2f7ff83ebc05b9daab6ed2665fb33c47a42ac076db2db25e62826187c"
              },
              "insurances": {
                "bytes": 1330,
                "sha256": "4108beee025071600956ef3bdbce4b6dc4d680ac3ee2bf73183e1404e47c87b4"
              },
              "licenses": {
                "bytes": 1358,
                "sha256": "ed6f8af523f2da91b328a02195ed8e48c3d63d3d5163315acf374ec8a115673f"
              },
              "locations": {
                "bytes": 1297,
                "sha256": "b06623e69050fc3e0632e218506112f61b6f30bcfffb8c49aac4730a150e4d1a"
              },
              "maintenance_types": {
                "bytes": 164,
                "sha256": "565b70eb7672d8f048868397b7d5805273351da3c5778372751981443bfb94eb"
              },
              "maintenances": {
                "bytes": 463,
                "sha256": "e7a863f75df7550da803ccccd2c62925cdd12c58144efbb377093e3964609ae8"
              },
              "manufacturers": {
                "bytes": 216,
                "sha256": "94a38136883a98e7de0a4265267c71bfcae1f2db940afada8a5e3e8805e0c8dc"
              },
              "memberships": {
                "bytes": 109,
                "sha256": "91721066527c2b49af247c390e84db9269cf14c3c19268c046ddf086ce66a998"
              },
              "models": {
                "bytes": 620,
                "sha256": "1486776eae735e2d6de79f75116112b9ac8b2559381d9661120106dd5f44d440"
              },
              "payment_methods": {
                "bytes": 70,
                "sha256": "28320dc137a85ea2a3da4fdcc17eac55c0b2cbcc57d5ba00094eb05616685d96"
              },
              "payments": {
                "bytes": 12244,
                "sha256": "35ae9d7b0a1e123454a8e3af2ea88fda291fcb3a56017a87796b7730f00cc4b2"
              },
              "rates": {
                "bytes": 141,
                "sha256": "b2dc426b81b25d2ff4d32737277689decee23b5857e57b7f6ffd9bf9798565b4"
              },
              "rentals": {
                "bytes": 27462,
                "sha256": "aed32a54f06f595e55a9ff287735052a2b074ac90e42518e8cc0fd8ce45dad7c"
              },
              "returns": {
                "bytes": 27254,
                "sha256": "19ef2d580d337862b2c498339dea1bcfefcfcac29d339a17313efdb667b19c77"
              },
              "reviews": {
                "bytes": 924,
                "sha256": "444dbef764e211f080258f8ef8ae5d0fe034ebcf19146b2b9cd78e4575a4d0ea"
              },
              "roadside_assists": {
                "bytes": 749,
                "sha256": "60757e4ceca43f095da62128b9b01f94ae32a701114776fa4413933b264655cf"
              },
              "roles": {
                "bytes": 136,
                "sha256": "ab1ed202abd2c9d8b40b7f8d076a0704cbd16c486b879d3e4a218faab611a43b"
              },
              "shift_schedules": {
                "bytes": 503,
                "sha256": "c6007b0dede17af36e16816cde6d060d5d68696e4a5d88759767b38ce20e74b9"
              },
              "statuses": {
                "bytes": 134,
                "sha256": "0a91302304c76b899e29e09aee32e4e46b5ead5df50177ee60998abcffc6e07e"
              },
              "tax_rates": {
                "bytes": 149,
                "sha256": "702efd8372c69456b6648ee9c6b10078739027fe5a7146166920c78fb8e413e8"
              },
              "transmissions": {
                "bytes": 32,
                "sha256": "81fbf2e46bf2263c017a074e3ffcaf2d0ff07cb71044d9ed70dfe311dc27816c"
              },
              "vehicle_features": {
                "bytes": 273,
                "sha256": "f9249487dde3797413d1312f16b386f05cb0fa9d11172281692243802a485580"
              },
              "vehicles": {
                "bytes": 771,
                "sha256": "7c4ebca9721b0986e23055ca514453c811e661383f56d4ce179c7ecf3e19b088"
              },
              "vendors": {
                "bytes": 1206,
                "sha256": "1a603b05bab6482b348dd8695e5bfbfe41be78bc4cb9d1be6f7329863e1f32ae"
              }
            },
            "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 booking's car stands at its pickup branch; the booking comes before the pickup and the drop-off one to fourteen days after",
            "violations": 0
          },
          {
            "name": "A prepayment is the booking in full: days times the category's daily rate, less the tier's and the code's discounts",
            "violations": 0
          },
          {
            "name": "A pickup happens within two hours of the booked time, and a return after the pickup with more miles on the clock",
            "violations": 0
          },
          {
            "name": "A car's odometer rises from one rental to the next",
            "violations": 0
          },
          {
            "name": "Fines and roadside assistance come during or after the rental; maintenance ends after it starts",
            "violations": 0
          },
          {
            "name": "One licence per customer, one payment and one insurance per booking, every branch has a car, and no feature is listed twice for a car",
            "violations": 0
          }
        ],
        "dirty": {
          "report": {
            "rates": {
              "missing": 0.03,
              "typos": 0.03,
              "outliers": 0.005,
              "duplicates": 0.01
            },
            "tables": {
              "departments": {
                "duplicates": 0,
                "columns": {
                  "description": {
                    "missing": 0,
                    "typos": 1,
                    "outliers": 0
                  }
                }
              },
              "discounts": {
                "duplicates": 0,
                "columns": {
                  "end_date": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "features": {
                "duplicates": 0,
                "columns": {
                  "name": {
                    "missing": 0,
                    "typos": 1,
                    "outliers": 0
                  }
                }
              },
              "locations": {
                "duplicates": 0,
                "columns": {
                  "city": {
                    "missing": 0,
                    "typos": 1,
                    "outliers": 0
                  },
                  "state": {
                    "missing": 0,
                    "typos": 1,
                    "outliers": 0
                  }
                }
              },
              "customers": {
                "duplicates": 0,
                "columns": {
                  "birth_date": {
                    "missing": 2,
                    "typos": 0,
                    "outliers": 0
                  },
                  "email": {
                    "missing": 3,
                    "typos": 2,
                    "outliers": 0
                  },
                  "first_name": {
                    "missing": 2,
                    "typos": 2,
                    "outliers": 0
                  },
                  "last_name": {
                    "missing": 2,
                    "typos": 2,
                    "outliers": 0
                  },
                  "phone": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "licenses": {
                "duplicates": 0,
                "columns": {
                  "expiry_date": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "license_number": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "state_issued": {
                    "missing": 1,
                    "typos": 2,
                    "outliers": 0
                  }
                }
              },
              "models": {
                "duplicates": 1,
                "columns": {
                  "name": {
                    "missing": 3,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "rates": {
                "duplicates": 0,
                "columns": {
                  "daily_rate": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "employees": {
                "duplicates": 0,
                "columns": {
                  "email": {
                    "missing": 5,
                    "typos": 9,
                    "outliers": 0
                  },
                  "first_name": {
                    "missing": 7,
                    "typos": 6,
                    "outliers": 0
                  },
                  "hire_date": {
                    "missing": 5,
                    "typos": 0,
                    "outliers": 0
                  },
                  "last_name": {
                    "missing": 7,
                    "typos": 5,
                    "outliers": 0
                  },
                  "phone": {
                    "missing": 10,
                    "typos": 1,
                    "outliers": 0
                  }
                }
              },
              "shift_schedules": {
                "duplicates": 0,
                "columns": {
                  "end_time": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "start_time": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "vehicles": {
                "duplicates": 0,
                "columns": {
                  "year": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "bookings": {
                "duplicates": 10,
                "columns": {
                  "booking_date": {
                    "missing": 34,
                    "typos": 0,
                    "outliers": 0
                  },
                  "dropoff_date": {
                    "missing": 25,
                    "typos": 0,
                    "outliers": 0
                  },
                  "pickup_date": {
                    "missing": 36,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "inspections": {
                "duplicates": 0,
                "columns": {
                  "inspection_date": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "notes": {
                    "missing": 0,
                    "typos": 1,
                    "outliers": 0
                  }
                }
              },
              "insurances": {
                "duplicates": 0,
                "columns": {
                  "coverage_limit": {
                    "missing": 3,
                    "typos": 0,
                    "outliers": 1
                  }
                }
              },
              "payments": {
                "duplicates": 3,
                "columns": {
                  "amount": {
                    "missing": 5,
                    "typos": 0,
                    "outliers": 1
                  },
                  "payment_date": {
                    "missing": 10,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "rentals": {
                "duplicates": 5,
                "columns": {
                  "actual_pickup_time": {
                    "missing": 11,
                    "typos": 0,
                    "outliers": 0
                  },
                  "fuel_level_percent": {
                    "missing": 13,
                    "typos": 0,
                    "outliers": 1
                  },
                  "starting_mileage": {
                    "missing": 16,
                    "typos": 0,
                    "outliers": 2
                  }
                }
              },
              "fines": {
                "duplicates": 0,
                "columns": {
                  "amount": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 1
                  },
                  "reason": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "returns": {
                "duplicates": 13,
                "columns": {
                  "actual_dropoff_time": {
                    "missing": 18,
                    "typos": 0,
                    "outliers": 0
                  },
                  "ending_mileage": {
                    "missing": 24,
                    "typos": 0,
                    "outliers": 6
                  },
                  "fuel_level_percent": {
                    "missing": 23,
                    "typos": 0,
                    "outliers": 3
                  }
                }
              },
              "reviews": {
                "duplicates": 1,
                "columns": {
                  "comments": {
                    "missing": 1,
                    "typos": 1,
                    "outliers": 0
                  },
                  "rating": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "review_date": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "vendors": {
                "duplicates": 0,
                "columns": {
                  "name": {
                    "missing": 0,
                    "typos": 2,
                    "outliers": 0
                  }
                }
              },
              "maintenances": {
                "duplicates": 0,
                "columns": {
                  "end_date": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "start_date": {
                    "missing": 3,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              }
            },
            "totals": {
              "missing": 283,
              "typos": 37,
              "outliers": 15,
              "duplicates": 33
            }
          },
          "downloads": [
            {
              "format": "dirty-sql-postgres",
              "label": "PostgreSQL, with faults",
              "file": "flagship/1k/dirty-postgres.sql.gz",
              "key": "datasets/car-rental-sample-database/v1/flagship/1k/dirty-postgres.sql.gz",
              "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/flagship/1k/dirty-postgres.sql.gz",
              "bytes": 73036,
              "sha256": "cc04a6e190f1bf919109c57d37b590966e56a79c309d53be94a3b3ee1d891678",
              "raw": {
                "bytes": 249379,
                "sha256": "49f8f1d565ccd2f43ce3d6854b9ef529a8e693c4451b0dc60b91618e5934623d"
              },
              "contentType": "application/gzip"
            },
            {
              "format": "dirty-csv",
              "label": "CSV, with faults",
              "file": "flagship/1k/dirty-csv.zip",
              "key": "datasets/car-rental-sample-database/v1/flagship/1k/dirty-csv.zip",
              "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/flagship/1k/dirty-csv.zip",
              "bytes": 76451,
              "sha256": "c529124267bf01062f00011f6ab49ede1f93ac152ad799984d20f478905399d0",
              "tables": {
                "bookings": {
                  "bytes": 75145,
                  "sha256": "eda847c30e8eedb7a6684388d3edaf2e2ffc75bd5665dd6c82c28c17dadbd601"
                },
                "categories": {
                  "bytes": 178,
                  "sha256": "fe5d1c5a0fe7e226434d249ad75e03c82ac081eb4689691fbf50deb1ea1cbef0"
                },
                "customers": {
                  "bytes": 2822,
                  "sha256": "bcb008711fc446ef660dfba55238c176c64c0efd394149d821112b318b08764d"
                },
                "damages": {
                  "bytes": 280,
                  "sha256": "33cd8dea80c3a0462ab2d2e4c71253a0ced6bb8cb10e4499ff332104629d1d06"
                },
                "departments": {
                  "bytes": 136,
                  "sha256": "b44f1babd7c62c4e3abf1394935cb969601ae06e73088c5fab66b172c870f08d"
                },
                "discounts": {
                  "bytes": 169,
                  "sha256": "942d13013e9ef61a9a11f36f4ea774e5ed29a55d582d8f1b97b73a31e9b8f4f6"
                },
                "employees": {
                  "bytes": 18430,
                  "sha256": "0adbf8614e3c546c073461b413f680bedc00465abd508d2b43e3f57c166e53ec"
                },
                "features": {
                  "bytes": 333,
                  "sha256": "4d10904cbae3f7214fb41950d40f90805967b8b767febc286fd90575ac59dfb5"
                },
                "fines": {
                  "bytes": 450,
                  "sha256": "064fef4b3e8760056880b11c0c49974cedda45306de14c396bff0c7d789f1225"
                },
                "fuels": {
                  "bytes": 53,
                  "sha256": "62c83af33221e1575e89f91811257e13bd8e5e79e8d99360eab358b3c3d4e3e9"
                },
                "inspections": {
                  "bytes": 568,
                  "sha256": "3891f26c253abda43d61bd8df1dbd27725bb84af641ddf96cdf7e38cc6d74c93"
                },
                "insurance_types": {
                  "bytes": 213,
                  "sha256": "28d093d2f7ff83ebc05b9daab6ed2665fb33c47a42ac076db2db25e62826187c"
                },
                "insurances": {
                  "bytes": 1318,
                  "sha256": "c42a21a9c01df54ea2500c67337d658e01cafc3e70b841cdc11ad1aaf0a8448e"
                },
                "licenses": {
                  "bytes": 1335,
                  "sha256": "111baefaeebfe017810b720b29eae27a3ed271b36fc1b9aa02755431d43226c5"
                },
                "locations": {
                  "bytes": 1297,
                  "sha256": "2c1435a3bc900f259a6dabbf46a5615b7b833664de8237fd5a2ef7e8d4f98c5d"
                },
                "maintenance_types": {
                  "bytes": 164,
                  "sha256": "565b70eb7672d8f048868397b7d5805273351da3c5778372751981443bfb94eb"
                },
                "maintenances": {
                  "bytes": 423,
                  "sha256": "9a249a3faaf2ffd0eeda5fefbfc20254a2575a0b653987764dc4e1042796aa9b"
                },
                "manufacturers": {
                  "bytes": 216,
                  "sha256": "94a38136883a98e7de0a4265267c71bfcae1f2db940afada8a5e3e8805e0c8dc"
                },
                "memberships": {
                  "bytes": 109,
                  "sha256": "91721066527c2b49af247c390e84db9269cf14c3c19268c046ddf086ce66a998"
                },
                "models": {
                  "bytes": 620,
                  "sha256": "42b4a759748a4a4635e5ffeaee76ff94c513c59041f4510de0ad95177cd5a74b"
                },
                "payment_methods": {
                  "bytes": 70,
                  "sha256": "28320dc137a85ea2a3da4fdcc17eac55c0b2cbcc57d5ba00094eb05616685d96"
                },
                "payments": {
                  "bytes": 12146,
                  "sha256": "cd092b12cc4ef627bd73efe451e0e05fe181da0e9ab0724227ebd887f207f65e"
                },
                "rates": {
                  "bytes": 138,
                  "sha256": "ef1a33351c0a997d139a0cf2871f76e6957bb653a5bf4ddeef27c825dd0d9c23"
                },
                "rentals": {
                  "bytes": 27350,
                  "sha256": "2e1363754d148ed353c0576b374691f7d3b7da84f84d76ac46c47f98352fcc82"
                },
                "returns": {
                  "bytes": 27286,
                  "sha256": "57cb85b2a96eacec01d134c454af9147fc41c19cccfbd88b1c57f10adcefb4d8"
                },
                "reviews": {
                  "bytes": 935,
                  "sha256": "0974666a1547a1f69884b3ec4447c2ed581fc105a71042dad6cc83df98d7cc79"
                },
                "roadside_assists": {
                  "bytes": 749,
                  "sha256": "60757e4ceca43f095da62128b9b01f94ae32a701114776fa4413933b264655cf"
                },
                "roles": {
                  "bytes": 136,
                  "sha256": "ab1ed202abd2c9d8b40b7f8d076a0704cbd16c486b879d3e4a218faab611a43b"
                },
                "shift_schedules": {
                  "bytes": 465,
                  "sha256": "a913ab1d7e3da1a151ef1a46ec1763d8e78060b112c3d1c96d9789bd09e5fd81"
                },
                "statuses": {
                  "bytes": 134,
                  "sha256": "0a91302304c76b899e29e09aee32e4e46b5ead5df50177ee60998abcffc6e07e"
                },
                "tax_rates": {
                  "bytes": 149,
                  "sha256": "702efd8372c69456b6648ee9c6b10078739027fe5a7146166920c78fb8e413e8"
                },
                "transmissions": {
                  "bytes": 32,
                  "sha256": "81fbf2e46bf2263c017a074e3ffcaf2d0ff07cb71044d9ed70dfe311dc27816c"
                },
                "vehicle_features": {
                  "bytes": 273,
                  "sha256": "f9249487dde3797413d1312f16b386f05cb0fa9d11172281692243802a485580"
                },
                "vehicles": {
                  "bytes": 767,
                  "sha256": "db94f9c065955110b4cb45218ff32b265e16a1d4156c4c0f51e100be8ab6ba34"
                },
                "vendors": {
                  "bytes": 1207,
                  "sha256": "67319a9a5710cf6804b9eaefe4b98a6883c8100cb503ade58fb25a373917ba33"
                }
              },
              "contentType": "application/zip"
            }
          ]
        }
      },
      "100k": {
        "rows": 291299,
        "counts": {
          "categories": 6,
          "departments": 4,
          "discounts": 4,
          "features": 12,
          "fuels": 4,
          "insurance_types": 4,
          "locations": 12,
          "maintenance_types": 6,
          "manufacturers": 10,
          "memberships": 4,
          "customers": 4000,
          "licenses": 4000,
          "models": 40,
          "payment_methods": 4,
          "rates": 6,
          "roles": 5,
          "employees": 240,
          "shift_schedules": 500,
          "statuses": 4,
          "tax_rates": 12,
          "transmissions": 2,
          "vehicles": 1200,
          "bookings": 100000,
          "inspections": 1000,
          "damages": 200,
          "insurances": 8000,
          "payments": 35000,
          "rentals": 65000,
          "fines": 1000,
          "returns": 65000,
          "reviews": 2000,
          "roadside_assists": 500,
          "vehicle_features": 3000,
          "vendors": 20,
          "maintenances": 500
        },
        "notes": [],
        "downloads": [
          {
            "format": "sql-postgres",
            "label": "PostgreSQL",
            "file": "flagship/100k/postgres.sql.gz",
            "key": "datasets/car-rental-sample-database/v1/flagship/100k/postgres.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/flagship/100k/postgres.sql.gz",
            "bytes": 6083312,
            "sha256": "654833202eb7ab6cc6218a0d64a3a6338761485c2217c8a09b8c5554b1c2210f",
            "raw": {
              "bytes": 21229128,
              "sha256": "fd4b78dec43be8970b3ec1bd55fc9859a156a17fec920964438f3e39a0fbe010"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "sql-mysql",
            "label": "MySQL",
            "file": "flagship/100k/mysql.sql.gz",
            "key": "datasets/car-rental-sample-database/v1/flagship/100k/mysql.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/flagship/100k/mysql.sql.gz",
            "bytes": 6081474,
            "sha256": "21a94739dd826dde110052214d07abe22e45a61ba9fca3c47cb3db0529b440d0",
            "raw": {
              "bytes": 21219639,
              "sha256": "15ac01451314d1837fad61eb4921f10a7bca7a324d33ae78c09ea7912f71aea8"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "sql-sqlite",
            "label": "SQLite",
            "file": "flagship/100k/sqlite.sql.gz",
            "key": "datasets/car-rental-sample-database/v1/flagship/100k/sqlite.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/flagship/100k/sqlite.sql.gz",
            "bytes": 6080807,
            "sha256": "5ab9c1f5b1cba1c1c512334dd2ed084b6c12ecb4745c0b9f02b63ae231969584",
            "raw": {
              "bytes": 21217086,
              "sha256": "319c945356f2406e960863afa7216b206826c39782b7bd1654b981408e8dc403"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "csv",
            "label": "CSV",
            "file": "flagship/100k/csv.zip",
            "key": "datasets/car-rental-sample-database/v1/flagship/100k/csv.zip",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/flagship/100k/csv.zip",
            "bytes": 6158446,
            "sha256": "32c74adffae2d844a93757a70a52cb28e7576c4c6cd1092ca6f0abef39c80ad5",
            "tables": {
              "bookings": {
                "bytes": 8156473,
                "sha256": "59fe7b24dfb4826577891adbc4d2528ec15dc520b712ea7693394abfb248d486"
              },
              "categories": {
                "bytes": 178,
                "sha256": "fe5d1c5a0fe7e226434d249ad75e03c82ac081eb4689691fbf50deb1ea1cbef0"
              },
              "customers": {
                "bytes": 300038,
                "sha256": "c3a269d070b6e15d67ac64cd7a82c6ddf48213794b8f5cb1e4400b17ae624c62"
              },
              "damages": {
                "bytes": 5432,
                "sha256": "c98f0633e09a0f32a2561f04fa7d7ea402a247f6435053eec2046ac748759329"
              },
              "departments": {
                "bytes": 131,
                "sha256": "93d285abd95238661dd23f5f8e155a0d97f993693f71fac4cd472a598363f0f5"
              },
              "discounts": {
                "bytes": 179,
                "sha256": "a56c61aa0b2752af1227cc133cdcea653db174777f08e636c51bfcaa6e807b4a"
              },
              "employees": {
                "bytes": 18809,
                "sha256": "5a8f8d11af330ef964ca8e45edf9debd4575f8b04c3087d535636d5e219f9231"
              },
              "features": {
                "bytes": 341,
                "sha256": "fe870049ce2c931023c661fa04da95c6bc8cd879507372be95cc02a3246ef2fb"
              },
              "fines": {
                "bytes": 45154,
                "sha256": "a20b8336be6945062858874d4830f6af99c3e29c67661963ef9aa5723757a441"
              },
              "fuels": {
                "bytes": 53,
                "sha256": "b65fc1b1b51d42494eef90423f55745cca8d1b87eacfdda1b54beba4da081255"
              },
              "inspections": {
                "bytes": 54335,
                "sha256": "f477f98a90131e11436ec0a39f6bf40326088ab3e09a467f8cd72b3a8f27dfc2"
              },
              "insurance_types": {
                "bytes": 213,
                "sha256": "28d093d2f7ff83ebc05b9daab6ed2665fb33c47a42ac076db2db25e62826187c"
              },
              "insurances": {
                "bytes": 159656,
                "sha256": "ee44b138deeabd93a07f94bdeee7b07176823bddedde6f847c20e1658c834e07"
              },
              "licenses": {
                "bytes": 145842,
                "sha256": "9ac7c61acabbc4f18e6f08088beada458d62fb13ee07501c421d948a03055b17"
              },
              "locations": {
                "bytes": 1294,
                "sha256": "9f3eddac7951177a3cd8e1cfde65683e1fe39acfd224dcdf78aabd17c93f8568"
              },
              "maintenance_types": {
                "bytes": 163,
                "sha256": "3ed11b8daab5940adf7804bf5ea7a9bc945fa3fccb55abb0820ea303aba66a50"
              },
              "maintenances": {
                "bytes": 21418,
                "sha256": "a259e5a6a17d9beee763ee1b147d19a7ef3a1e4c7a08b330a0c20105d08ea477"
              },
              "manufacturers": {
                "bytes": 216,
                "sha256": "94a38136883a98e7de0a4265267c71bfcae1f2db940afada8a5e3e8805e0c8dc"
              },
              "memberships": {
                "bytes": 109,
                "sha256": "91721066527c2b49af247c390e84db9269cf14c3c19268c046ddf086ce66a998"
              },
              "models": {
                "bytes": 620,
                "sha256": "1486776eae735e2d6de79f75116112b9ac8b2559381d9661120106dd5f44d440"
              },
              "payment_methods": {
                "bytes": 70,
                "sha256": "50f67067dded99756ea6ef538eafabbc6b74a5b0d600edfae8fa045648d42d9e"
              },
              "payments": {
                "bytes": 1373491,
                "sha256": "8cf0a1533e4fbb466c9db50fdba7c95c0ba5637c9f0cd2ced3793d4b1a849c2a"
              },
              "rates": {
                "bytes": 141,
                "sha256": "b2dc426b81b25d2ff4d32737277689decee23b5857e57b7f6ffd9bf9798565b4"
              },
              "rentals": {
                "bytes": 3000370,
                "sha256": "d82a1f4f31332c87d27f4046b1b363ae9002e5bb679446e5de7e118f6b1bb615"
              },
              "returns": {
                "bytes": 2977870,
                "sha256": "b852f5153e69b5754b53c2f762197d0c0f93f4eeda5e7439c67103e61372a5bb"
              },
              "reviews": {
                "bytes": 97059,
                "sha256": "24670d76a4e5a8623dc8d513ca58cd19a2fdb53f4c10423f912748e2fc9f42f1"
              },
              "roadside_assists": {
                "bytes": 35797,
                "sha256": "de0d478a23c75d73860dbd21253b9370c7c97728e06ef1a27c70b6ad4ab89e31"
              },
              "roles": {
                "bytes": 136,
                "sha256": "ab1ed202abd2c9d8b40b7f8d076a0704cbd16c486b879d3e4a218faab611a43b"
              },
              "shift_schedules": {
                "bytes": 24219,
                "sha256": "efb894a9cc81b239a4f43e2656043d31fa70f30216719f39ef94ac99c4f954b1"
              },
              "statuses": {
                "bytes": 139,
                "sha256": "019cd7c75fd8c1167973b971587c3982ad8b2aa54f7530c742124b1787dfe18a"
              },
              "tax_rates": {
                "bytes": 149,
                "sha256": "702efd8372c69456b6648ee9c6b10078739027fe5a7146166920c78fb8e413e8"
              },
              "transmissions": {
                "bytes": 32,
                "sha256": "2990d892a77fd1cbdac5e2dc5c8a24a39d4e1156f6e3bdc2e372977085c99997"
              },
              "vehicle_features": {
                "bytes": 35907,
                "sha256": "212988439fd55b87e682e06bacfd7411b37314a78c9b75f36eb364d89c16ca72"
              },
              "vehicles": {
                "bytes": 69734,
                "sha256": "443bc15d6cffca23c40c1137398d34b4af9cc2501a7f44df6ab2f12cbcfa34a5"
              },
              "vendors": {
                "bytes": 1156,
                "sha256": "192bb6eb579d71f107699539ab40a3a5490a75f2e8ed08772876e1663ebc5c5f"
              }
            },
            "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 booking's car stands at its pickup branch; the booking comes before the pickup and the drop-off one to fourteen days after",
            "violations": 0
          },
          {
            "name": "A prepayment is the booking in full: days times the category's daily rate, less the tier's and the code's discounts",
            "violations": 0
          },
          {
            "name": "A pickup happens within two hours of the booked time, and a return after the pickup with more miles on the clock",
            "violations": 0
          },
          {
            "name": "A car's odometer rises from one rental to the next",
            "violations": 0
          },
          {
            "name": "Fines and roadside assistance come during or after the rental; maintenance ends after it starts",
            "violations": 0
          },
          {
            "name": "One licence per customer, one payment and one insurance per booking, every branch has a car, and no feature is listed twice for a car",
            "violations": 0
          }
        ],
        "dirty": {
          "report": {
            "rates": {
              "missing": 0.03,
              "typos": 0.03,
              "outliers": 0.005,
              "duplicates": 0.01
            },
            "tables": {
              "locations": {
                "duplicates": 0,
                "columns": {
                  "city": {
                    "missing": 2,
                    "typos": 1,
                    "outliers": 0
                  },
                  "name": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "manufacturers": {
                "duplicates": 0,
                "columns": {
                  "name": {
                    "missing": 0,
                    "typos": 1,
                    "outliers": 0
                  }
                }
              },
              "customers": {
                "duplicates": 35,
                "columns": {
                  "birth_date": {
                    "missing": 131,
                    "typos": 0,
                    "outliers": 0
                  },
                  "email": {
                    "missing": 113,
                    "typos": 138,
                    "outliers": 0
                  },
                  "first_name": {
                    "missing": 98,
                    "typos": 136,
                    "outliers": 0
                  },
                  "last_name": {
                    "missing": 118,
                    "typos": 131,
                    "outliers": 0
                  },
                  "phone": {
                    "missing": 124,
                    "typos": 38,
                    "outliers": 0
                  }
                }
              },
              "licenses": {
                "duplicates": 43,
                "columns": {
                  "expiry_date": {
                    "missing": 96,
                    "typos": 0,
                    "outliers": 0
                  },
                  "license_number": {
                    "missing": 109,
                    "typos": 131,
                    "outliers": 0
                  },
                  "state_issued": {
                    "missing": 96,
                    "typos": 121,
                    "outliers": 0
                  }
                }
              },
              "models": {
                "duplicates": 1,
                "columns": {
                  "name": {
                    "missing": 0,
                    "typos": 1,
                    "outliers": 0
                  }
                }
              },
              "employees": {
                "duplicates": 3,
                "columns": {
                  "email": {
                    "missing": 9,
                    "typos": 6,
                    "outliers": 0
                  },
                  "first_name": {
                    "missing": 15,
                    "typos": 6,
                    "outliers": 0
                  },
                  "hire_date": {
                    "missing": 7,
                    "typos": 0,
                    "outliers": 0
                  },
                  "last_name": {
                    "missing": 5,
                    "typos": 4,
                    "outliers": 0
                  },
                  "phone": {
                    "missing": 6,
                    "typos": 1,
                    "outliers": 0
                  }
                }
              },
              "shift_schedules": {
                "duplicates": 3,
                "columns": {
                  "end_time": {
                    "missing": 18,
                    "typos": 0,
                    "outliers": 0
                  },
                  "start_time": {
                    "missing": 9,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "statuses": {
                "duplicates": 0,
                "columns": {
                  "description": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "tax_rates": {
                "duplicates": 0,
                "columns": {
                  "percentage": {
                    "missing": 0,
                    "typos": 0,
                    "outliers": 1
                  },
                  "state_code": {
                    "missing": 0,
                    "typos": 1,
                    "outliers": 0
                  }
                }
              },
              "vehicles": {
                "duplicates": 12,
                "columns": {
                  "color": {
                    "missing": 31,
                    "typos": 40,
                    "outliers": 0
                  },
                  "license_plate": {
                    "missing": 46,
                    "typos": 30,
                    "outliers": 0
                  },
                  "mileage": {
                    "missing": 33,
                    "typos": 0,
                    "outliers": 4
                  },
                  "vin": {
                    "missing": 36,
                    "typos": 32,
                    "outliers": 0
                  },
                  "year": {
                    "missing": 29,
                    "typos": 0,
                    "outliers": 6
                  }
                }
              },
              "bookings": {
                "duplicates": 1033,
                "columns": {
                  "booking_date": {
                    "missing": 3053,
                    "typos": 0,
                    "outliers": 0
                  },
                  "dropoff_date": {
                    "missing": 3104,
                    "typos": 0,
                    "outliers": 0
                  },
                  "pickup_date": {
                    "missing": 2901,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "inspections": {
                "duplicates": 11,
                "columns": {
                  "inspection_date": {
                    "missing": 34,
                    "typos": 0,
                    "outliers": 0
                  },
                  "notes": {
                    "missing": 29,
                    "typos": 31,
                    "outliers": 0
                  },
                  "passed": {
                    "missing": 29,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "damages": {
                "duplicates": 2,
                "columns": {
                  "description": {
                    "missing": 4,
                    "typos": 8,
                    "outliers": 0
                  },
                  "estimated_repair_cost": {
                    "missing": 7,
                    "typos": 0,
                    "outliers": 1
                  }
                }
              },
              "insurances": {
                "duplicates": 78,
                "columns": {
                  "coverage_limit": {
                    "missing": 237,
                    "typos": 0,
                    "outliers": 37
                  }
                }
              },
              "payments": {
                "duplicates": 357,
                "columns": {
                  "amount": {
                    "missing": 1082,
                    "typos": 0,
                    "outliers": 186
                  },
                  "payment_date": {
                    "missing": 1072,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "rentals": {
                "duplicates": 661,
                "columns": {
                  "actual_pickup_time": {
                    "missing": 1887,
                    "typos": 0,
                    "outliers": 0
                  },
                  "fuel_level_percent": {
                    "missing": 2047,
                    "typos": 0,
                    "outliers": 329
                  },
                  "starting_mileage": {
                    "missing": 1925,
                    "typos": 0,
                    "outliers": 323
                  }
                }
              },
              "fines": {
                "duplicates": 11,
                "columns": {
                  "amount": {
                    "missing": 24,
                    "typos": 0,
                    "outliers": 7
                  },
                  "issued_date": {
                    "missing": 30,
                    "typos": 0,
                    "outliers": 0
                  },
                  "paid": {
                    "missing": 29,
                    "typos": 0,
                    "outliers": 0
                  },
                  "reason": {
                    "missing": 25,
                    "typos": 28,
                    "outliers": 0
                  }
                }
              },
              "returns": {
                "duplicates": 671,
                "columns": {
                  "actual_dropoff_time": {
                    "missing": 1983,
                    "typos": 0,
                    "outliers": 0
                  },
                  "ending_mileage": {
                    "missing": 1968,
                    "typos": 0,
                    "outliers": 297
                  },
                  "fuel_level_percent": {
                    "missing": 1952,
                    "typos": 0,
                    "outliers": 326
                  }
                }
              },
              "reviews": {
                "duplicates": 15,
                "columns": {
                  "comments": {
                    "missing": 39,
                    "typos": 44,
                    "outliers": 0
                  },
                  "rating": {
                    "missing": 61,
                    "typos": 0,
                    "outliers": 7
                  },
                  "review_date": {
                    "missing": 50,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "roadside_assists": {
                "duplicates": 6,
                "columns": {
                  "cost": {
                    "missing": 13,
                    "typos": 0,
                    "outliers": 1
                  },
                  "issue_description": {
                    "missing": 14,
                    "typos": 16,
                    "outliers": 0
                  },
                  "request_time": {
                    "missing": 12,
                    "typos": 0,
                    "outliers": 0
                  },
                  "resolved_time": {
                    "missing": 15,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "vehicle_features": {
                "duplicates": 22,
                "columns": {}
              },
              "vendors": {
                "duplicates": 1,
                "columns": {
                  "address": {
                    "missing": 1,
                    "typos": 1,
                    "outliers": 0
                  },
                  "phone": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "maintenances": {
                "duplicates": 5,
                "columns": {
                  "cost": {
                    "missing": 15,
                    "typos": 0,
                    "outliers": 3
                  },
                  "end_date": {
                    "missing": 15,
                    "typos": 0,
                    "outliers": 0
                  },
                  "start_date": {
                    "missing": 16,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              }
            },
            "totals": {
              "missing": 24807,
              "typos": 946,
              "outliers": 1528,
              "duplicates": 2970
            }
          },
          "downloads": [
            {
              "format": "dirty-sql-postgres",
              "label": "PostgreSQL, with faults",
              "file": "flagship/100k/dirty-postgres.sql.gz",
              "key": "datasets/car-rental-sample-database/v1/flagship/100k/dirty-postgres.sql.gz",
              "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/flagship/100k/dirty-postgres.sql.gz",
              "bytes": 6081648,
              "sha256": "9ea1930d3f60e4937b1cc9ea3b96c052568d5be250cb32d265a6bfe3ca4c9fb8",
              "raw": {
                "bytes": 21190694,
                "sha256": "b40576ec20a8ee3b5f657b9a014bb34205467a39491216631927138ce49be46f"
              },
              "contentType": "application/gzip"
            },
            {
              "format": "dirty-csv",
              "label": "CSV, with faults",
              "file": "flagship/100k/dirty-csv.zip",
              "key": "datasets/car-rental-sample-database/v1/flagship/100k/dirty-csv.zip",
              "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/flagship/100k/dirty-csv.zip",
              "bytes": 6138370,
              "sha256": "538a5ee6c702ae7e1486b74c23ccf17d81ddb51b274df8c6d1b4daf96a8f04e7",
              "tables": {
                "bookings": {
                  "bytes": 8068285,
                  "sha256": "3dd83d147bbc95c5d4c3a64b217dd34ca18023baab421cdf9fbc4108ab341738"
                },
                "categories": {
                  "bytes": 178,
                  "sha256": "fe5d1c5a0fe7e226434d249ad75e03c82ac081eb4689691fbf50deb1ea1cbef0"
                },
                "customers": {
                  "bytes": 295827,
                  "sha256": "b2ab67f0983159441b7bc8ef5d674f4a7484a5fa29bdc8d5d1084ba46ae24702"
                },
                "damages": {
                  "bytes": 5416,
                  "sha256": "be490538451103f76bace2cb84786ca755aa1685cba331052c2addfd74e0cd3b"
                },
                "departments": {
                  "bytes": 131,
                  "sha256": "93d285abd95238661dd23f5f8e155a0d97f993693f71fac4cd472a598363f0f5"
                },
                "discounts": {
                  "bytes": 179,
                  "sha256": "a56c61aa0b2752af1227cc133cdcea653db174777f08e636c51bfcaa6e807b4a"
                },
                "employees": {
                  "bytes": 18524,
                  "sha256": "3768260782217c4458a6de68238631e89522249ab3e3dda56911174ae36b02d1"
                },
                "features": {
                  "bytes": 341,
                  "sha256": "fe870049ce2c931023c661fa04da95c6bc8cd879507372be95cc02a3246ef2fb"
                },
                "fines": {
                  "bytes": 44926,
                  "sha256": "70b4f573c7dce9a197b7a8ebba8805f60041f09b4228089ca3528b64070406ef"
                },
                "fuels": {
                  "bytes": 53,
                  "sha256": "b65fc1b1b51d42494eef90423f55745cca8d1b87eacfdda1b54beba4da081255"
                },
                "inspections": {
                  "bytes": 53736,
                  "sha256": "c9eae43b3da02fab62608e1e57cceffe5a1af096d82617faa0160b597e5b30de"
                },
                "insurance_types": {
                  "bytes": 213,
                  "sha256": "28d093d2f7ff83ebc05b9daab6ed2665fb33c47a42ac076db2db25e62826187c"
                },
                "insurances": {
                  "bytes": 160134,
                  "sha256": "dbf49be14be79288930ad82cadbeac812aaa23f59ac6d3d88cabf27be02bfd1e"
                },
                "licenses": {
                  "bytes": 145325,
                  "sha256": "1a0813675eb7cae1f5729fd14f4614669d2550e4cf06b59dccdddfda87769de4"
                },
                "locations": {
                  "bytes": 1257,
                  "sha256": "7ee0ef407ed82fe965f24528fcfe230507ffdccb633f9bef8fac995d65fcd34e"
                },
                "maintenance_types": {
                  "bytes": 163,
                  "sha256": "3ed11b8daab5940adf7804bf5ea7a9bc945fa3fccb55abb0820ea303aba66a50"
                },
                "maintenances": {
                  "bytes": 21232,
                  "sha256": "e13b0cea619a73481b65509600be698c511ee70a750db28f6e9f053013a4984a"
                },
                "manufacturers": {
                  "bytes": 216,
                  "sha256": "a1746c14bfcd2f491875e0c93f312a5f2af4bb20fbf4e594d51354273d98da71"
                },
                "memberships": {
                  "bytes": 109,
                  "sha256": "91721066527c2b49af247c390e84db9269cf14c3c19268c046ddf086ce66a998"
                },
                "models": {
                  "bytes": 635,
                  "sha256": "96a7a196a764bee7eacea4722f81b75d4a0d8edb15ac96beab01ff61f729485e"
                },
                "payment_methods": {
                  "bytes": 70,
                  "sha256": "50f67067dded99756ea6ef538eafabbc6b74a5b0d600edfae8fa045648d42d9e"
                },
                "payments": {
                  "bytes": 1363229,
                  "sha256": "98473d7e5adca74fa0f1afa9b1aad3203b5af4aea6836e5ed2901bb2bba0bae5"
                },
                "rates": {
                  "bytes": 141,
                  "sha256": "b2dc426b81b25d2ff4d32737277689decee23b5857e57b7f6ffd9bf9798565b4"
                },
                "rentals": {
                  "bytes": 2979778,
                  "sha256": "d4521c30ddf9f10d48e7b8de184b3bfe895d30d4c40323e6c068b0c3d716d31c"
                },
                "returns": {
                  "bytes": 2956322,
                  "sha256": "7c12143d0102bd8b33f45220295a2dbe7217d87dd02acf02bd080117472e9b5a"
                },
                "reviews": {
                  "bytes": 96247,
                  "sha256": "3a2f571ce4e272884dd43a6919eb2a70c6334b1b400bdb3fc5198fd07fc2cb35"
                },
                "roadside_assists": {
                  "bytes": 35489,
                  "sha256": "82fac0d36b43e7915cec206b18d9ae8551fb544bea4bc61264879b7ab66a9758"
                },
                "roles": {
                  "bytes": 136,
                  "sha256": "ab1ed202abd2c9d8b40b7f8d076a0704cbd16c486b879d3e4a218faab611a43b"
                },
                "shift_schedules": {
                  "bytes": 23852,
                  "sha256": "7a268e52e66a64609efd42b3930b3ddffe6f3a82daa927f42401d7601ec39f42"
                },
                "statuses": {
                  "bytes": 123,
                  "sha256": "1a4a8f11e0e22edfb06d0a09fea390910c4457a13c7d0a0b873134398cf47ec0"
                },
                "tax_rates": {
                  "bytes": 151,
                  "sha256": "d66e17e6a0fdc3564d58db7556a908d0ed9e84f014b9b51697e1c3567bd79bd9"
                },
                "transmissions": {
                  "bytes": 32,
                  "sha256": "2990d892a77fd1cbdac5e2dc5c8a24a39d4e1156f6e3bdc2e372977085c99997"
                },
                "vehicle_features": {
                  "bytes": 36177,
                  "sha256": "2fbd74aa8c12ab61a1d91939f218a50ee9815039bb4a761ae2c7b8565d4accc5"
                },
                "vehicles": {
                  "bytes": 69201,
                  "sha256": "5c7fa33d739036d69bf25e7a0b4c362fe8cdb64d7e61939170043509c54b4dd4"
                },
                "vendors": {
                  "bytes": 1178,
                  "sha256": "d487777cdc13dbe77d53667a9534dd870790da959b2847fee4d66381a0792373"
                }
              },
              "contentType": "application/zip"
            }
          ]
        }
      },
      "1m": {
        "rows": 2909399,
        "counts": {
          "categories": 6,
          "departments": 4,
          "discounts": 4,
          "features": 12,
          "fuels": 4,
          "insurance_types": 4,
          "locations": 12,
          "maintenance_types": 6,
          "manufacturers": 10,
          "memberships": 4,
          "customers": 40000,
          "licenses": 40000,
          "models": 40,
          "payment_methods": 4,
          "rates": 6,
          "roles": 5,
          "employees": 240,
          "shift_schedules": 5000,
          "statuses": 4,
          "tax_rates": 12,
          "transmissions": 2,
          "vehicles": 12000,
          "bookings": 1000000,
          "inspections": 10000,
          "damages": 2000,
          "insurances": 80000,
          "payments": 350000,
          "rentals": 650000,
          "fines": 10000,
          "returns": 650000,
          "reviews": 20000,
          "roadside_assists": 5000,
          "vehicle_features": 30000,
          "vendors": 20,
          "maintenances": 5000
        },
        "notes": [
          "At this size the tables beside bookings were cut to 1/16 of it, so the whole build stays under 3,000,000 rows."
        ],
        "downloads": [
          {
            "format": "sql-postgres",
            "label": "PostgreSQL",
            "file": "flagship/1m/postgres.sql.gz",
            "key": "datasets/car-rental-sample-database/v1/flagship/1m/postgres.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/flagship/1m/postgres.sql.gz",
            "bytes": 63085527,
            "sha256": "9a02a497079e483358eaefdf82af24ff04c056a0ac684e1acc7939ec5c1377f6",
            "raw": {
              "bytes": 218520885,
              "sha256": "a419e4f08abc5123a067e4e6d7ea5f9c7af7ff3371c38f4e7fe1aa5b6e9eaa82"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "sql-mysql",
            "label": "MySQL",
            "file": "flagship/1m/mysql.sql.gz",
            "key": "datasets/car-rental-sample-database/v1/flagship/1m/mysql.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/flagship/1m/mysql.sql.gz",
            "bytes": 63082086,
            "sha256": "39e7373842ebb1a81f03a36cc310f3d1d8fcd2474e933b8161e925a756a9e88e",
            "raw": {
              "bytes": 218454987,
              "sha256": "6443ea5b7432fad3d852f13266d8e0128f66110a5f69dc9784de3c97ae023297"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "sql-sqlite",
            "label": "SQLite",
            "file": "flagship/1m/sqlite.sql.gz",
            "key": "datasets/car-rental-sample-database/v1/flagship/1m/sqlite.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/flagship/1m/sqlite.sql.gz",
            "bytes": 63081345,
            "sha256": "1793b7a790e865c9d30c05d8a8263d824f11597493a4d94bddb6d1fdea293103",
            "raw": {
              "bytes": 218452434,
              "sha256": "0da8536b55cd39238262bc9195af3c02eb01da45584790abd06496ed7e801549"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "csv",
            "label": "CSV",
            "file": "flagship/1m/csv.zip",
            "key": "datasets/car-rental-sample-database/v1/flagship/1m/csv.zip",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/car-rental-sample-database/v1/flagship/1m/csv.zip",
            "bytes": 64438568,
            "sha256": "d939727cad02492ed21f73aa721b44474a638202a8b055f97772df891b9e6436",
            "tables": {
              "bookings": {
                "bytes": 84511650,
                "sha256": "a10834b20eb4cd271a99bca6457f9504095c8b4903cb0a1a9c21fefabb69fac4"
              },
              "categories": {
                "bytes": 178,
                "sha256": "fe5d1c5a0fe7e226434d249ad75e03c82ac081eb4689691fbf50deb1ea1cbef0"
              },
              "customers": {
                "bytes": 3040933,
                "sha256": "92ca9ca141fe47f3ba58116a30629d1c7eb7688ca7cd2936e3ac5101025b0536"
              },
              "damages": {
                "bytes": 57935,
                "sha256": "3f6c14d12223b48b1fda773a1e2f157678262803c2676622fd73dc1ce63ab435"
              },
              "departments": {
                "bytes": 142,
                "sha256": "992537fa69e0266e6cfcf6559064cc786e05081b4cd00b5539182efb1c8c0d32"
              },
              "discounts": {
                "bytes": 179,
                "sha256": "a56c61aa0b2752af1227cc133cdcea653db174777f08e636c51bfcaa6e807b4a"
              },
              "employees": {
                "bytes": 18886,
                "sha256": "19c980875187507253f0187614270e72d7eee8794370f437c8b01fe7d62a1fd8"
              },
              "features": {
                "bytes": 316,
                "sha256": "92013c20b07da33a45381bf4e215745823b3c50f1118d4254425e542a9ddb696"
              },
              "fines": {
                "bytes": 471287,
                "sha256": "42994113835eb2f0cdad3727eb1e05cb826041da201870e498a1a30da4c8a107"
              },
              "fuels": {
                "bytes": 53,
                "sha256": "1793027fe3423d1f22c7d8a6057abf6f58e515f84d8247c10f78359f51980e32"
              },
              "inspections": {
                "bytes": 562177,
                "sha256": "3e6c592c230c8f75c17d6c836dbb12cae2993551d878d8e3752b5cb029e4b70d"
              },
              "insurance_types": {
                "bytes": 213,
                "sha256": "28d093d2f7ff83ebc05b9daab6ed2665fb33c47a42ac076db2db25e62826187c"
              },
              "insurances": {
                "bytes": 1756085,
                "sha256": "058872df446f4f3dbc6be681752e247063cdad5f5310e5e990e58fa1e797a5ed"
              },
              "licenses": {
                "bytes": 1537844,
                "sha256": "da41d03a3abdbe916e2de08ba4666d72874d65492ee23ab521dc2745c77c0ed7"
              },
              "locations": {
                "bytes": 1269,
                "sha256": "6518502538f710d59fb4bb9c839cc12994b1e990cd3f4a643780e82a90fcf2a4"
              },
              "maintenance_types": {
                "bytes": 163,
                "sha256": "d18d852bef311f4ef1183bada647a94bdcc6a6faf7343224939411d5835b91e2"
              },
              "maintenances": {
                "bytes": 223439,
                "sha256": "1d7fc429f943695d69023adde1928c32ed5fc7ea5ab309406a5d5782c776f5ed"
              },
              "manufacturers": {
                "bytes": 216,
                "sha256": "94a38136883a98e7de0a4265267c71bfcae1f2db940afada8a5e3e8805e0c8dc"
              },
              "memberships": {
                "bytes": 109,
                "sha256": "91721066527c2b49af247c390e84db9269cf14c3c19268c046ddf086ce66a998"
              },
              "models": {
                "bytes": 620,
                "sha256": "1486776eae735e2d6de79f75116112b9ac8b2559381d9661120106dd5f44d440"
              },
              "payment_methods": {
                "bytes": 70,
                "sha256": "767a64d951a5edeeaaf17d86aac43f6a178f64a7d45d80830861c146cbdcc9d6"
              },
              "payments": {
                "bytes": 14441357,
                "sha256": "826333f2314cf44a165c82e22584faae9246e9a9fb8650796b0b5e7934efadb6"
              },
              "rates": {
                "bytes": 141,
                "sha256": "b2dc426b81b25d2ff4d32737277689decee23b5857e57b7f6ffd9bf9798565b4"
              },
              "rentals": {
                "bytes": 31305465,
                "sha256": "ebbcf6281ea3b059e7d056790204c413e01a8c9d5692ad39ee60c84306d6cd02"
              },
              "returns": {
                "bytes": 31078227,
                "sha256": "5b37604f5ff690969c8c10716b018af67a8dea564b5dd738ef28149e7d74aa12"
              },
              "reviews": {
                "bytes": 1029956,
                "sha256": "e67477501a0861bc55b0a1211eff50cc8325a170921f6e0b72e4a24d344819bd"
              },
              "roadside_assists": {
                "bytes": 367430,
                "sha256": "6d9be4cb5de63094d406928ee9227282062ee6ab8203bd1ba86d976a05242acf"
              },
              "roles": {
                "bytes": 136,
                "sha256": "ab1ed202abd2c9d8b40b7f8d076a0704cbd16c486b879d3e4a218faab611a43b"
              },
              "shift_schedules": {
                "bytes": 246704,
                "sha256": "ed80447c500d82d4676b4c4337f3c08d090fbfcf114a111d3e6c5ce02cc79458"
              },
              "statuses": {
                "bytes": 139,
                "sha256": "9d07839c3358f6aeef17be8eda905d6ff5e5357a9b34971699f63eb5b1f92104"
              },
              "tax_rates": {
                "bytes": 149,
                "sha256": "702efd8372c69456b6648ee9c6b10078739027fe5a7146166920c78fb8e413e8"
              },
              "transmissions": {
                "bytes": 32,
                "sha256": "81fbf2e46bf2263c017a074e3ffcaf2d0ff07cb71044d9ed70dfe311dc27816c"
              },
              "vehicle_features": {
                "bytes": 418450,
                "sha256": "120dac840c6fbf98d34c5edf007f1170093e37bcb02632fd0b5786216c2f2ffc"
              },
              "vehicles": {
                "bytes": 709845,
                "sha256": "2033497dee32746f2556e0bd5edded87cc6e6060c9d7f35f6a8ccbd4c95bddc3"
              },
              "vendors": {
                "bytes": 1151,
                "sha256": "dd9dc857d6c2eb2924a37531d565d074b96afdac1d7b3878738412bb1f3aad87"
              }
            },
            "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 booking's car stands at its pickup branch; the booking comes before the pickup and the drop-off one to fourteen days after",
            "violations": 0
          },
          {
            "name": "A prepayment is the booking in full: days times the category's daily rate, less the tier's and the code's discounts",
            "violations": 0
          },
          {
            "name": "A pickup happens within two hours of the booked time, and a return after the pickup with more miles on the clock",
            "violations": 0
          },
          {
            "name": "A car's odometer rises from one rental to the next",
            "violations": 0
          },
          {
            "name": "Fines and roadside assistance come during or after the rental; maintenance ends after it starts",
            "violations": 0
          },
          {
            "name": "One licence per customer, one payment and one insurance per booking, every branch has a car, and no feature is listed twice for a car",
            "violations": 0
          }
        ]
      }
    },
    "rules": [
      {
        "name": "A booking's car stands at its pickup branch; the booking comes before the pickup and the drop-off one to fourteen days after",
        "sql": "SELECT count(*) AS violations FROM bookings b JOIN vehicles v ON v.id = b.vehicle_id WHERE v.location_id <> b.pickup_location_id OR b.booking_date >= b.pickup_date OR b.dropoff_date < b.pickup_date + interval '1 day' OR b.dropoff_date > b.pickup_date + interval '14 days'"
      },
      {
        "name": "A prepayment is the booking in full: days times the category's daily rate, less the tier's and the code's discounts",
        "sql": "SELECT (SELECT count(*) FROM payments p JOIN bookings b ON b.id = p.booking_id JOIN vehicles v ON v.id = b.vehicle_id JOIN models m ON m.id = v.model_id JOIN rates r ON r.category_id = m.category_id JOIN customers c ON c.id = b.customer_id JOIN memberships ms ON ms.id = c.membership_id JOIN discounts d ON d.id = b.discount_id WHERE p.amount <> round(round((b.dropoff_date::date - b.pickup_date::date) * r.daily_rate * (100 - ms.discount_percent) / 100.0, 2) * (100 - d.percent) / 100.0, 2)) AS violations"
      },
      {
        "name": "A pickup happens within two hours of the booked time, and a return after the pickup with more miles on the clock",
        "sql": "SELECT (SELECT count(*) FROM rentals r JOIN bookings b ON b.id = r.booking_id WHERE r.actual_pickup_time < b.pickup_date OR r.actual_pickup_time > b.pickup_date + interval '2 hours') + (SELECT count(*) FROM returns rt JOIN rentals r ON r.id = rt.rental_id WHERE rt.actual_dropoff_time <= r.actual_pickup_time OR rt.ending_mileage <= r.starting_mileage) AS violations"
      },
      {
        "name": "A car's odometer rises from one rental to the next",
        "sql": "SELECT count(*) AS violations FROM (SELECT r.starting_mileage, lag(r.starting_mileage) OVER (PARTITION BY b.vehicle_id ORDER BY r.actual_pickup_time) AS before FROM rentals r JOIN bookings b ON b.id = r.booking_id) x WHERE x.starting_mileage < x.before"
      },
      {
        "name": "Fines and roadside assistance come during or after the rental; maintenance ends after it starts",
        "sql": "SELECT (SELECT count(*) FROM fines f JOIN rentals r ON r.id = f.rental_id WHERE f.issued_date <= r.actual_pickup_time::date) + (SELECT count(*) FROM roadside_assists a JOIN rentals r ON r.id = a.rental_id WHERE a.request_time <= r.actual_pickup_time OR a.resolved_time <= a.request_time) + (SELECT count(*) FROM maintenances WHERE end_date < start_date) AS violations"
      },
      {
        "name": "One licence per customer, one payment and one insurance per booking, every branch has a car, and no feature is listed twice for a car",
        "sql": "SELECT (SELECT count(*) - count(DISTINCT customer_id) FROM licenses) + (SELECT count(*) - count(DISTINCT booking_id) FROM payments) + (SELECT count(*) - count(DISTINCT booking_id) FROM insurances) + (SELECT count(*) FROM locations l LEFT JOIN (SELECT DISTINCT location_id FROM vehicles) v ON v.location_id = l.id WHERE v.location_id IS NULL) + (SELECT count(*) - count(DISTINCT (vehicle_id, feature_id)) FROM vehicle_features) AS violations"
      }
    ]
  },
  "publishedAt": 1791375873216,
  "updatedAt": 1791375873216
}
