{
  "format": "dataset-manifest/1",
  "slug": "auto-showroom",
  "version": 3,
  "seed": "auto-showroom:1",
  "spec": {
    "format": "dataset/1",
    "slug": "auto-showroom",
    "name": "Auto Dealership Transactions",
    "tagline": "Transactions, customers, vehicles, services, loans, and suppliers from an auto dealership.",
    "description": "An auto showroom connects customers with the vehicles and services they need, facilitating everything from new car purchases to maintenance requests. This operation thrives on tracking customer interactions, managing vehicle inventories, processing loan applications, and overseeing various services, while also coordinating with suppliers who provide essential parts and components. Each day, staff members assist customers in selecting from a wide range of car models, ensuring they find the perfect fit for their needs, whether it be a popular sedan or a specialized vehicle. Service requests often revolve around routine maintenance, showcasing the regularity of these interactions and the importance of customer satisfaction in fostering long-term relationships.\n\nThe dataset consists of several interconnected tables: 'customers' holds information about the individuals purchasing or servicing vehicles; 'vehicles' lists the different car models available; 'transactions' captures the details of purchases and service appointments; 'services' outlines the types of maintenance or repairs offered; 'loans' documents the financing options available to customers; and 'suppliers' provides insights into the various companies supplying parts and accessories. A single row in the 'customers' table represents one individual, while a row in the 'vehicles' table reflects a specific model. These can be joined through the 'transactions' table, which relates customers to their chosen vehicles and the services they have utilized.\n\nThis dataset answers a variety of questions relevant to the auto dealership's operations, such as identifying customer preferences, analyzing transaction trends, and evaluating service performance. Practitioners can explore how customer demographics correlate with vehicle choices or how service frequency affects customer loyalty. This dataset is synthetic, providing a safe environment for developers and analysts to sharpen their skills without the complexities and privacy concerns associated with real-world data.",
    "domain": "hospitality",
    "shape": "transactional",
    "useCases": [
      "sql-practice",
      "orm-seeding"
    ],
    "keywords": [
      "auto dealership",
      "transactions",
      "customers",
      "vehicles",
      "services",
      "loans",
      "suppliers"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "customers": {
        "description": "This table contains customer information, linking each customer to their transactions and requests. Each row represents an individual customer.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each customer."
          },
          "full_name": {
            "kind": "fullName",
            "description": "Full name of the customer."
          },
          "email": {
            "kind": "email",
            "from": "full_name",
            "description": "Email address of the customer."
          },
          "phone": {
            "kind": "phone",
            "description": "Contact phone number of the customer."
          },
          "city": {
            "kind": "city",
            "description": "City where the customer resides.",
            "nullable": true,
            "when": {
              "column": "loyalty_status",
              "in": [
                "silver",
                "gold",
                "platinum"
              ]
            }
          },
          "loyalty_status": {
            "kind": "enum",
            "values": [
              "bronze",
              "silver",
              "gold",
              "platinum"
            ],
            "description": "Loyalty status of the customer.",
            "nullable": true,
            "weights": [
              8,
              5,
              2,
              1
            ]
          }
        }
      },
      "vehicles": {
        "description": "This table captures the vehicle models available at the dealership, linking to transactions and services. Each row represents a distinct vehicle model.",
        "rows": 100,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each vehicle model."
          },
          "model_name": {
            "kind": "productName",
            "description": "Name of the vehicle model."
          },
          "manufacturer": {
            "kind": "company",
            "description": "Manufacturer of the vehicle."
          },
          "price": {
            "kind": "decimal",
            "min": 20000,
            "max": 100000,
            "scale": 2,
            "description": "Price of the vehicle model.",
            "nullable": true,
            "when": {
              "column": "category",
              "in": [
                "SUV",
                "truck",
                "specialty"
              ]
            },
            "distribution": "long-tail"
          },
          "category": {
            "kind": "enum",
            "values": [
              "sedan",
              "SUV",
              "truck",
              "specialty"
            ],
            "description": "Category of the vehicle.",
            "nullable": true,
            "weights": [
              6,
              4,
              3,
              1
            ]
          }
        }
      },
      "transactions": {
        "description": "This table records each sale transaction, linking customers to the vehicles they purchase. Each row represents a sale.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each transaction."
          },
          "customer_id": {
            "kind": "fk",
            "ref": "customers.id",
            "description": "Customer who made the purchase."
          },
          "vehicle_id": {
            "kind": "fk",
            "ref": "vehicles.id",
            "description": "Vehicle purchased in the transaction."
          },
          "transaction_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Date of the transaction.",
            "trend": "seasonal"
          },
          "amount": {
            "kind": "decimal",
            "min": 20000,
            "max": 100000,
            "scale": 2,
            "description": "Total amount of the transaction.",
            "distribution": "long-tail"
          }
        }
      },
      "services": {
        "description": "This table details the services provided to customers, linking back to their transactions. Each row represents a service request.",
        "rows": 250,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each service record."
          },
          "transaction_id": {
            "kind": "fk",
            "ref": "transactions.id",
            "description": "Transaction associated with the service."
          },
          "service_type": {
            "kind": "enum",
            "values": [
              "maintenance",
              "repair",
              "cleaning"
            ],
            "description": "Type of service provided.",
            "weights": [
              7,
              2,
              1
            ]
          },
          "service_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Date when the service was rendered.",
            "nullable": true,
            "trend": "seasonal"
          },
          "cost": {
            "kind": "decimal",
            "min": 50,
            "max": 2000,
            "scale": 2,
            "description": "Cost of the service provided.",
            "nullable": true,
            "when": {
              "column": "service_type",
              "in": [
                "repair",
                "cleaning"
              ]
            },
            "distribution": "normal"
          }
        }
      },
      "loans": {
        "description": "This table tracks loan applications made by customers for vehicle purchases. Each row corresponds to a loan application.",
        "rows": 150,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each loan application."
          },
          "customer_id": {
            "kind": "fk",
            "ref": "customers.id",
            "description": "Customer applying for the loan."
          },
          "amount": {
            "kind": "decimal",
            "min": 5000,
            "max": 50000,
            "scale": 2,
            "description": "Loan amount requested.",
            "distribution": "long-tail"
          },
          "application_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Date of loan application.",
            "nullable": true,
            "when": {
              "column": "status",
              "in": [
                "approved"
              ]
            },
            "trend": "growing"
          },
          "status": {
            "kind": "enum",
            "values": [
              "pending",
              "approved",
              "rejected"
            ],
            "description": "Current status of the loan application.",
            "nullable": true,
            "weights": [
              5,
              3,
              1
            ]
          }
        }
      },
      "suppliers": {
        "description": "This table contains information about suppliers that provide parts and services to the dealership. Each row represents a supplier.",
        "rows": 80,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each supplier."
          },
          "name": {
            "kind": "company",
            "description": "Name of the supplier."
          },
          "contact": {
            "kind": "fullName",
            "description": "Contact person at the supplier."
          },
          "phone": {
            "kind": "phone",
            "description": "Contact phone number for the supplier."
          },
          "email": {
            "kind": "email",
            "from": "contact",
            "description": "Email address of the supplier's contact."
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "categorical",
      "monetary",
      "timestamped",
      "nullable"
    ],
    "analysisQuestions": [
      "What are the most popular vehicle models sold this year?",
      "How often do customers return for maintenance services?",
      "What is the average loan amount requested by customers?",
      "Which supplier provides the most parts for our vehicles?",
      "What percentage of transactions involve specialty vehicles?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Customers with Transactions",
        "sql": "SELECT customers.full_name, transactions.amount FROM customers JOIN transactions ON customers.id = transactions.customer_id;",
        "dialect": "postgres"
      },
      {
        "title": "Count Services by Type",
        "sql": "SELECT service_type, COUNT(*) FROM services GROUP BY service_type;",
        "dialect": "postgres"
      },
      {
        "title": "Average Transaction Amount by Vehicle Category",
        "sql": "SELECT vehicles.category, AVG(transactions.amount) FROM transactions JOIN vehicles ON transactions.vehicle_id = vehicles.id GROUP BY vehicles.category;",
        "dialect": "postgres"
      },
      {
        "title": "Loans Status Summary",
        "sql": "SELECT status, COUNT(*) FROM loans GROUP BY status;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Sales Analysis",
        "body": "A business analyst at an auto dealership can use this dataset to analyze sales trends over the year, identifying which vehicle models are selling the best and how customer loyalty impacts purchasing decisions."
      },
      {
        "title": "Service Optimization",
        "body": "Service managers can leverage this data to optimize service schedules, ensuring that maintenance requests are handled efficiently, and identifying peak service times to allocate resources effectively."
      },
      {
        "title": "Loan Processing Efficiency",
        "body": "Loan officers can utilize the dataset to assess the volume of loan applications, monitor approval rates, and identify any bottlenecks in the loan processing system, ultimately aiming to enhance customer satisfaction."
      },
      {
        "title": "Supplier Relationship Management",
        "body": "Procurement specialists can analyze supplier data to evaluate performance, track the frequency of parts ordered, and establish stronger relationships with suppliers based on reliability and service quality."
      }
    ]
  },
  "counts": {
    "customers": 200,
    "loans": 150,
    "suppliers": 80,
    "vehicles": 100,
    "transactions": 300,
    "services": 250
  },
  "stats": {
    "customers": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "full_name": {
          "nulls": 0,
          "distinct": 194,
          "min": "Alice Adams",
          "max": "Zoe Shah"
        },
        "email": {
          "nulls": 0,
          "distinct": 197
        },
        "phone": {
          "nulls": 0,
          "distinct": 188
        },
        "city": {
          "nulls": 111,
          "distinct": 49,
          "min": "Amsterdam",
          "max": "Zurich"
        },
        "loyalty_status": {
          "nulls": 23,
          "distinct": 4,
          "min": "bronze",
          "max": "silver"
        }
      }
    },
    "vehicles": {
      "rows": 100,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "model_name": {
          "nulls": 0,
          "distinct": 93,
          "min": "Classic Blender",
          "max": "Wireless Umbrella"
        },
        "manufacturer": {
          "nulls": 0,
          "distinct": 94,
          "min": "Acme Labs",
          "max": "Willow Holdings"
        },
        "price": {
          "nulls": 50,
          "distinct": 50,
          "min": 20108.63,
          "max": 90357.54
        },
        "category": {
          "nulls": 9,
          "distinct": 4,
          "min": "SUV",
          "max": "truck"
        }
      }
    },
    "transactions": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "customer_id": {
          "nulls": 0,
          "distinct": 157,
          "min": 1,
          "max": 199
        },
        "vehicle_id": {
          "nulls": 0,
          "distinct": 95,
          "min": 1,
          "max": 100
        },
        "transaction_date": {
          "nulls": 0,
          "distinct": 210,
          "min": "2023-01-01",
          "max": "2023-12-31"
        },
        "amount": {
          "nulls": 0,
          "distinct": 300,
          "min": 20000,
          "max": 99306.99
        }
      }
    },
    "services": {
      "rows": 250,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 250,
          "min": 1,
          "max": 250
        },
        "transaction_id": {
          "nulls": 0,
          "distinct": 167,
          "min": 1,
          "max": 299
        },
        "service_type": {
          "nulls": 0,
          "distinct": 3,
          "min": "cleaning",
          "max": "repair"
        },
        "service_date": {
          "nulls": 26,
          "distinct": 162,
          "min": "2023-01-01",
          "max": "2023-12-31"
        },
        "cost": {
          "nulls": 195,
          "distinct": 55,
          "min": 421.29,
          "max": 1624.74
        }
      }
    },
    "loans": {
      "rows": 150,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 150,
          "min": 1,
          "max": 150
        },
        "customer_id": {
          "nulls": 0,
          "distinct": 107,
          "min": 5,
          "max": 200
        },
        "amount": {
          "nulls": 0,
          "distinct": 150,
          "min": 5000.01,
          "max": 49391.51
        },
        "application_date": {
          "nulls": 105,
          "distinct": 43,
          "min": "2023-01-13",
          "max": "2023-12-27"
        },
        "status": {
          "nulls": 20,
          "distinct": 3,
          "min": "approved",
          "max": "rejected"
        }
      }
    },
    "suppliers": {
      "rows": 80,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 80,
          "min": 1,
          "max": 80
        },
        "name": {
          "nulls": 0,
          "distinct": 80,
          "min": "Acme Foods",
          "max": "Willow Works"
        },
        "contact": {
          "nulls": 0,
          "distinct": 80,
          "min": "Amir Hassan",
          "max": "Zara Lopez"
        },
        "phone": {
          "nulls": 0,
          "distinct": 80
        },
        "email": {
          "nulls": 0,
          "distinct": 80
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/customers.csv",
      "format": "csv",
      "table": "customers",
      "key": "datasets/auto-showroom/v3/csv/customers.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/auto-showroom/v3/csv/customers.csv",
      "bytes": 13445,
      "sha256": "12f31415c7b722653c704b9bdcfc812c70786225b42dfee7f488b312363a892b",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/loans.csv",
      "format": "csv",
      "table": "loans",
      "key": "datasets/auto-showroom/v3/csv/loans.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/auto-showroom/v3/csv/loans.csv",
      "bytes": 4233,
      "sha256": "888033da0b8b24c39649d8dad78b8cb5d5060ece395ae6437f90889c794df48f",
      "rows": 150,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/suppliers.csv",
      "format": "csv",
      "table": "suppliers",
      "key": "datasets/auto-showroom/v3/csv/suppliers.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/auto-showroom/v3/csv/suppliers.csv",
      "bytes": 5594,
      "sha256": "fb303b4c5abce3971a3bed39438864e049c544e6b54b013afcd64034ac6f626a",
      "rows": 80,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/vehicles.csv",
      "format": "csv",
      "table": "vehicles",
      "key": "datasets/auto-showroom/v3/csv/vehicles.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/auto-showroom/v3/csv/vehicles.csv",
      "bytes": 4346,
      "sha256": "ee6cbc7efa76d44679f65ccfde108d0d6a7fdeb8ab710070f23e4b982addd5cb",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/transactions.csv",
      "format": "csv",
      "table": "transactions",
      "key": "datasets/auto-showroom/v3/csv/transactions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/auto-showroom/v3/csv/transactions.csv",
      "bytes": 9370,
      "sha256": "807a51278c98583d188852888b5a447a23ddb5bf2b4444320a51b318a02e77d7",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/services.csv",
      "format": "csv",
      "table": "services",
      "key": "datasets/auto-showroom/v3/csv/services.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/auto-showroom/v3/csv/services.csv",
      "bytes": 7984,
      "sha256": "e1741559501f26810fcd887c5f97036b92bbd72792ac81aeebe345806572961a",
      "rows": 250,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "auto-showroom.json",
      "format": "json",
      "table": null,
      "key": "datasets/auto-showroom/v3/auto-showroom.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/auto-showroom/v3/auto-showroom.json",
      "bytes": 169243,
      "sha256": "203c3c5d3d1b7902481a21625607afbc2167866d6f7ae7f92d4fc89d06258477",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/auto-showroom/v3/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/auto-showroom/v3/sql/postgres.sql",
      "bytes": 66216,
      "sha256": "aeb54fef81c6c92141a521c5cb48afecb3f3c6a74eedd2858b36755e194d3294",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/auto-showroom/v3/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/auto-showroom/v3/sql/mysql.sql",
      "bytes": 65555,
      "sha256": "1e853291d2354801714a3c439a06690d491146011ecbcb2299a4faaaeb097af0",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/auto-showroom/v3/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/auto-showroom/v3/sql/mssql.sql",
      "bytes": 68367,
      "sha256": "398b6ff1b08da2f24c7cf3d944661802d3f83c9bc5e43ea0413dc65bb946ca11",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/auto-showroom/v3/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/auto-showroom/v3/sql/sqlite.sql",
      "bytes": 65292,
      "sha256": "a53e2b660e159b16cac2ddcaee235058febf6d0e55eb6e34e7da232ca512fa06",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/auto-showroom/v3/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/auto-showroom/v3/prisma/seed.ts",
      "bytes": 130921,
      "sha256": "b80fa59abac31badb3deeadefd43def778ccba6491fde3fbc6853b602bf3ce0c",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/auto-showroom/v3/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/auto-showroom/v3/django/fixtures.json",
      "bytes": 215847,
      "sha256": "c13de453174c35e2f04cae49888f29cc5f779c6752875ce59e313731814e9e3c",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788768181372,
  "updatedAt": 1788782524285
}
