{
  "format": "dataset-manifest/1",
  "slug": "crm-sample-database",
  "version": 1,
  "seed": "flagship:crm-sample-database:1k",
  "engine": 2,
  "engineVersion": "1.0.0",
  "spec": {
    "format": "dataset/1",
    "engine": 2,
    "slug": "crm-sample-database",
    "name": "CRM sample database",
    "tagline": "Accounts, contacts, leads, deals, quotes, contracts, invoices and payments for a B2B sales team, with support.",
    "description": "A business-to-business sales organisation over five years: reps own accounts and contacts, work leads from campaigns, move deals through seven stages, send quotes, sign contracts and invoice against them, while calls, meetings, tasks and support tickets record the work around it. A deal stage that says closed-won is closed and won; a contract runs exactly a year; a quote and a deal are the sum of their lines; an invoice line is quantity times unit price, an invoice is its lines plus 8% tax and is due thirty days after it is issued, and a payment settles an invoice in full on or after its issue date. A campaign never spends more than its budget.",
    "domain": "marketing",
    "shape": "transactional",
    "useCases": [
      "sql-practice",
      "bi-dashboards",
      "test-fixtures"
    ],
    "keywords": [
      "crm",
      "sales pipeline",
      "deals",
      "invoices",
      "sample database"
    ],
    "locale": "en_US",
    "license": "CC0-1.0",
    "version": 1,
    "seed": "flagship:crm-sample-database",
    "tables": {
      "account_territories": {
        "description": "Rows for the account_territories table.",
        "rows": 25,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "account_id": {
            "kind": "fk",
            "ref": "accounts.id",
            "skew": "long-tail"
          },
          "territory_id": {
            "kind": "fk",
            "ref": "territories.id",
            "skew": "long-tail"
          }
        }
      },
      "accounts": {
        "description": "Rows for the accounts table.",
        "rows": 20,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "annual_revenue": {
            "kind": "decimal",
            "min": 500000,
            "max": 900000000,
            "scale": 2,
            "distribution": "long-tail"
          },
          "billing_city": {
            "kind": "place.city"
          },
          "billing_country": {
            "kind": "constant",
            "value": "United States"
          },
          "billing_postal_code": {
            "kind": "place.postcode"
          },
          "billing_state": {
            "kind": "place.regionCode"
          },
          "billing_street": {
            "kind": "location.streetAddress"
          },
          "employees_count": {
            "kind": "int",
            "min": 5,
            "max": 50000,
            "distribution": "long-tail"
          },
          "industry_type_id": {
            "kind": "fk",
            "ref": "industry_types.id",
            "skew": "long-tail"
          },
          "name": {
            "kind": "company.name"
          },
          "owner_id": {
            "kind": "fk",
            "ref": "users.id",
            "skew": "long-tail"
          },
          "phone": {
            "kind": "place.phone"
          },
          "shipping_city": {
            "kind": "copy",
            "from": "billing_city"
          },
          "shipping_country": {
            "kind": "constant",
            "value": "United States"
          },
          "shipping_postal_code": {
            "kind": "copy",
            "from": "billing_postal_code"
          },
          "shipping_state": {
            "kind": "copy",
            "from": "billing_state"
          },
          "shipping_street": {
            "kind": "copy",
            "from": "billing_street"
          },
          "website": {
            "kind": "internet.url"
          }
        }
      },
      "business_units": {
        "description": "Rows for the business_units table.",
        "rows": 5,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "description": {
            "kind": "enum",
            "values": [
              "Field sales",
              "Inside sales",
              "Channel partners"
            ]
          },
          "name": {
            "kind": "enum",
            "values": [
              "North America",
              "EMEA",
              "APAC",
              "Latin America",
              "Enterprise"
            ],
            "unique": true
          }
        }
      },
      "calls": {
        "description": "Rows for the calls table.",
        "rows": 100,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "description": {
            "kind": "enum",
            "values": [
              "Left a voicemail",
              "Spoke with the champion",
              "Sent the deck afterwards",
              "Booked a demo"
            ]
          },
          "duration_seconds": {
            "kind": "int",
            "min": 30,
            "max": 3600,
            "distribution": "long-tail"
          },
          "outcome": {
            "kind": "enum",
            "values": [
              "connected",
              "voicemail",
              "no_answer",
              "meeting_booked"
            ],
            "weights": [
              45,
              25,
              20,
              10
            ]
          },
          "owner_id": {
            "kind": "fk",
            "ref": "users.id",
            "skew": "long-tail"
          },
          "start_time": {
            "kind": "datetime",
            "from": "2021-01-01",
            "to": "2025-12-31",
            "dayProfile": "business"
          },
          "subject": {
            "kind": "enum",
            "values": [
              "Discovery call",
              "Follow-up",
              "Pricing discussion",
              "Renewal check-in",
              "Demo booking",
              "Support escalation"
            ]
          }
        }
      },
      "campaign_members": {
        "description": "Rows for the campaign_members table.",
        "rows": 80,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "campaign_id": {
            "kind": "fk",
            "ref": "campaigns.id",
            "skew": "long-tail"
          },
          "contact_id": {
            "kind": "fk",
            "ref": "contacts.id",
            "skew": "long-tail"
          },
          "lead_id": {
            "kind": "fk",
            "ref": "leads.id",
            "skew": "long-tail"
          },
          "status": {
            "kind": "enum",
            "values": [
              "sent",
              "opened",
              "responded",
              "bounced"
            ],
            "weights": [
              45,
              30,
              15,
              10
            ]
          }
        }
      },
      "campaigns": {
        "description": "Rows for the campaigns table.",
        "rows": 40,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "actual_cost": {
            "kind": "decimal",
            "min": 0,
            "max": 200703,
            "scale": 2,
            "distribution": "long-tail"
          },
          "budgeted_cost": {
            "kind": "decimal",
            "min": 2000,
            "max": 250000,
            "scale": 2,
            "distribution": "long-tail"
          },
          "end_date": {
            "kind": "date",
            "after": "start_date",
            "withinDays": 90
          },
          "expected_revenue": {
            "kind": "decimal",
            "min": 10000,
            "max": 2000000,
            "scale": 2,
            "distribution": "long-tail"
          },
          "name": {
            "kind": "title",
            "min": 2,
            "max": 4,
            "pool": [
              "spring",
              "summer",
              "fall",
              "winter",
              "launch",
              "webinar",
              "series",
              "roadshow",
              "summit",
              "partner",
              "push",
              "renewal",
              "upsell",
              "enterprise",
              "starter",
              "outreach",
              "nurture",
              "reactivation",
              "expansion",
              "kickoff"
            ]
          },
          "owner_id": {
            "kind": "fk",
            "ref": "users.id",
            "skew": "long-tail"
          },
          "start_date": {
            "kind": "date",
            "from": "2021-01-01",
            "to": "2025-10-31"
          },
          "status": {
            "kind": "constant",
            "value": "completed"
          },
          "type": {
            "kind": "enum",
            "values": [
              "email",
              "webinar",
              "trade_show",
              "paid_search",
              "direct_mail",
              "social"
            ]
          }
        }
      },
      "competitors": {
        "description": "Rows for the competitors table.",
        "rows": 15,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "name": {
            "kind": "company.name"
          },
          "strengths": {
            "kind": "enum",
            "values": [
              "Price",
              "Brand",
              "Integrations",
              "Support",
              "Feature depth"
            ]
          },
          "weaknesses": {
            "kind": "enum",
            "values": [
              "Slow support",
              "Dated interface",
              "Expensive add-ons",
              "Weak reporting",
              "Long onboarding"
            ]
          },
          "website": {
            "kind": "internet.url"
          }
        }
      },
      "contacts": {
        "description": "Rows for the contacts table.",
        "rows": 60,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "account_id": {
            "kind": "fk",
            "ref": "accounts.id",
            "skew": "long-tail"
          },
          "birth_date": {
            "kind": "date",
            "from": "1960-01-01",
            "to": "2000-12-31"
          },
          "department": {
            "kind": "enum",
            "values": [
              "IT",
              "Engineering",
              "Finance",
              "Operations",
              "Procurement",
              "Sales"
            ]
          },
          "email": {
            "kind": "internet.email",
            "from": {
              "firstName": "first_name",
              "lastName": "last_name"
            }
          },
          "first_name": {
            "kind": "person.firstName"
          },
          "job_title": {
            "kind": "enum",
            "values": [
              "Chief Technology Officer",
              "VP of Engineering",
              "IT Director",
              "Procurement Manager",
              "Operations Manager",
              "Chief Financial Officer",
              "Head of Sales",
              "Product Manager"
            ]
          },
          "last_name": {
            "kind": "person.lastName"
          },
          "mobile": {
            "kind": "phone.number"
          },
          "owner_id": {
            "kind": "fk",
            "ref": "users.id",
            "skew": "long-tail"
          },
          "phone": {
            "kind": "phone.number"
          }
        }
      },
      "contracts": {
        "description": "Rows for the contracts table.",
        "rows": 30,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "account_id": {
            "kind": "fk",
            "ref": "accounts.id",
            "skew": "long-tail"
          },
          "end_date": {
            "kind": "date",
            "after": "start_date",
            "withinDays": 365
          },
          "number": {
            "kind": "pattern",
            "pattern": "[CTR]-########",
            "unique": true
          },
          "owner_id": {
            "kind": "fk",
            "ref": "users.id",
            "skew": "long-tail"
          },
          "start_date": {
            "kind": "date",
            "from": "2021-01-01",
            "to": "2025-06-30"
          },
          "status": {
            "kind": "constant",
            "value": "signed"
          },
          "terms_months": {
            "kind": "constant",
            "value": 12
          }
        }
      },
      "deal_competitors": {
        "description": "Rows for the deal_competitors table.",
        "rows": 30,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "competitor_id": {
            "kind": "fk",
            "ref": "competitors.id",
            "skew": "long-tail"
          },
          "deal_id": {
            "kind": "fk",
            "ref": "deals.id",
            "skew": "long-tail"
          },
          "notes": {
            "kind": "enum",
            "values": [
              "Cheaper on paper",
              "Incumbent vendor",
              "Stronger integrations",
              "Weaker support",
              "Lost on price"
            ]
          }
        }
      },
      "deal_products": {
        "description": "Rows for the deal_products table.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "deal_id": {
            "kind": "fk",
            "ref": "deals.id",
            "skew": "long-tail"
          },
          "discount": {
            "kind": "decimal",
            "min": 0,
            "max": 0,
            "scale": 2
          },
          "product_id": {
            "kind": "fk",
            "ref": "products.id",
            "skew": "long-tail"
          },
          "quantity": {
            "kind": "int",
            "min": 1,
            "max": 50,
            "distribution": "long-tail"
          },
          "sales_price": {
            "kind": "decimal",
            "min": 50,
            "max": 5000,
            "scale": 2,
            "distribution": "long-tail"
          }
        }
      },
      "deal_stages": {
        "description": "Rows for the deal_stages table.",
        "rows": 7,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "is_closed": {
            "kind": "bool"
          },
          "is_won": {
            "kind": "bool"
          },
          "name": {
            "kind": "enum",
            "values": [
              "prospecting",
              "qualification",
              "proposal",
              "negotiation",
              "closed_won",
              "closed_lost",
              "on_hold"
            ],
            "unique": true
          },
          "probability": {
            "kind": "int",
            "min": 0,
            "max": 100
          }
        }
      },
      "deals": {
        "description": "Rows for the deals table.",
        "rows": 80,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "account_id": {
            "kind": "fk",
            "ref": "accounts.id",
            "skew": "long-tail"
          },
          "amount": {
            "kind": "decimal",
            "min": 0,
            "max": 758491,
            "scale": 2,
            "distribution": "long-tail"
          },
          "close_date": {
            "kind": "date",
            "from": "2021-01-01",
            "to": "2025-12-31",
            "trend": "growing"
          },
          "description": {
            "kind": "enum",
            "values": [
              "New business",
              "Renewal",
              "Upsell",
              "Cross-sell"
            ],
            "weights": [
              40,
              30,
              20,
              10
            ]
          },
          "lead_source_id": {
            "kind": "fk",
            "ref": "lead_sources.id",
            "skew": "long-tail"
          },
          "name": {
            "kind": "title",
            "min": 2,
            "max": 3,
            "pool": [
              "platform",
              "renewal",
              "expansion",
              "migration",
              "pilot",
              "rollout",
              "licences",
              "upgrade",
              "annual",
              "enterprise",
              "support",
              "add-on",
              "seats",
              "phase",
              "two",
              "integration",
              "analytics",
              "security",
              "cloud",
              "onboarding"
            ]
          },
          "owner_id": {
            "kind": "fk",
            "ref": "users.id",
            "skew": "long-tail"
          },
          "stage_id": {
            "kind": "fk",
            "ref": "deal_stages.id",
            "skew": "long-tail"
          }
        }
      },
      "industry_types": {
        "description": "Rows for the industry_types table.",
        "rows": 15,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "description": {
            "kind": "enum",
            "values": [
              "Core market",
              "Growth market",
              "Opportunistic"
            ]
          },
          "name": {
            "kind": "enum",
            "values": [
              "Software",
              "Financial services",
              "Healthcare",
              "Manufacturing",
              "Retail",
              "Education",
              "Logistics",
              "Media",
              "Telecommunications",
              "Energy",
              "Government",
              "Hospitality",
              "Real estate",
              "Legal",
              "Nonprofit"
            ],
            "unique": true
          }
        }
      },
      "invoice_lines": {
        "description": "Rows for the invoice_lines table.",
        "rows": 1000,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "amount": {
            "kind": "expr",
            "op": "product",
            "of": [
              "quantity",
              "unit_price"
            ],
            "scale": 2
          },
          "invoice_id": {
            "kind": "fk",
            "ref": "invoices.id",
            "skew": "flat"
          },
          "product_id": {
            "kind": "fk",
            "ref": "products.id",
            "skew": "long-tail"
          },
          "quantity": {
            "kind": "int",
            "min": 1,
            "max": 50,
            "distribution": "long-tail"
          },
          "unit_price": {
            "kind": "decimal",
            "min": 50,
            "max": 5000,
            "scale": 2,
            "distribution": "long-tail"
          }
        }
      },
      "invoices": {
        "description": "Rows for the invoices table.",
        "rows": 250,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "account_id": {
            "kind": "fk",
            "ref": "accounts.id",
            "skew": "long-tail"
          },
          "contract_id": {
            "kind": "fk",
            "ref": "contracts.id",
            "skew": "long-tail"
          },
          "due_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2025-12-31"
          },
          "issue_date": {
            "kind": "date",
            "from": "2021-01-01",
            "to": "2025-12-31",
            "trend": "growing"
          },
          "number": {
            "kind": "pattern",
            "pattern": "[INV]-########",
            "unique": true
          },
          "status": {
            "kind": "constant",
            "value": "issued"
          },
          "subtotal": {
            "kind": "decimal",
            "min": 0,
            "max": 476313,
            "scale": 2
          },
          "tax": {
            "kind": "decimal",
            "min": 0,
            "max": 38105,
            "scale": 2
          },
          "total_amount": {
            "kind": "decimal",
            "min": 0,
            "max": 514418,
            "scale": 2,
            "distribution": "long-tail"
          }
        }
      },
      "kb_articles": {
        "description": "Rows for the kb_articles table.",
        "rows": 10,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "author_id": {
            "kind": "fk",
            "ref": "users.id",
            "skew": "long-tail"
          },
          "category_id": {
            "kind": "fk",
            "ref": "kb_categories.id",
            "skew": "long-tail"
          },
          "content": {
            "kind": "constant",
            "value": "See the help centre for the full article."
          },
          "title": {
            "kind": "title",
            "min": 3,
            "max": 6,
            "pool": [
              "how",
              "to",
              "set",
              "up",
              "reset",
              "your",
              "password",
              "connect",
              "export",
              "data",
              "invite",
              "users",
              "billing",
              "invoices",
              "roles",
              "single",
              "sign-on",
              "webhooks",
              "reports",
              "dashboard",
              "limits",
              "troubleshoot",
              "sync",
              "errors"
            ]
          },
          "view_count": {
            "kind": "int",
            "min": 0,
            "max": 50000,
            "distribution": "long-tail"
          }
        }
      },
      "kb_categories": {
        "description": "Rows for the kb_categories table.",
        "rows": 8,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "description": {
            "kind": "enum",
            "values": [
              "For admins",
              "For end users",
              "For developers"
            ]
          },
          "name": {
            "kind": "enum",
            "values": [
              "Getting started",
              "Billing",
              "Integrations",
              "Security",
              "Reporting",
              "Administration",
              "API",
              "Troubleshooting"
            ],
            "unique": true
          }
        }
      },
      "lead_sources": {
        "description": "Rows for the lead_sources table.",
        "rows": 8,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "description": {
            "kind": "enum",
            "values": [
              "Inbound",
              "Outbound",
              "Partner"
            ]
          },
          "name": {
            "kind": "enum",
            "values": [
              "website",
              "referral",
              "trade_show",
              "webinar",
              "cold_call",
              "partner",
              "paid_search",
              "social"
            ],
            "unique": true
          }
        }
      },
      "lead_statuses": {
        "description": "Rows for the lead_statuses table.",
        "rows": 6,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "description": {
            "kind": "enum",
            "values": [
              "Open",
              "Closed"
            ]
          },
          "name": {
            "kind": "enum",
            "values": [
              "new",
              "contacted",
              "qualified",
              "nurturing",
              "converted",
              "disqualified"
            ],
            "unique": true
          }
        }
      },
      "leads": {
        "description": "Rows for the leads table.",
        "rows": 60,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "city": {
            "kind": "place.city"
          },
          "company_name": {
            "kind": "company.name"
          },
          "country": {
            "kind": "constant",
            "value": "United States"
          },
          "email": {
            "kind": "internet.email",
            "from": {
              "firstName": "first_name",
              "lastName": "last_name"
            }
          },
          "first_name": {
            "kind": "person.firstName"
          },
          "last_name": {
            "kind": "person.lastName"
          },
          "lead_source_id": {
            "kind": "fk",
            "ref": "lead_sources.id",
            "skew": "long-tail"
          },
          "lead_status_id": {
            "kind": "fk",
            "ref": "lead_statuses.id",
            "skew": "long-tail"
          },
          "owner_id": {
            "kind": "fk",
            "ref": "users.id",
            "skew": "long-tail"
          },
          "phone": {
            "kind": "phone.number"
          },
          "postal_code": {
            "kind": "place.postcode"
          },
          "score": {
            "kind": "int",
            "min": 1,
            "max": 100,
            "distribution": "normal"
          },
          "state": {
            "kind": "place.regionCode"
          },
          "street": {
            "kind": "location.streetAddress"
          },
          "title": {
            "kind": "enum",
            "values": [
              "IT Manager",
              "Director of Operations",
              "CTO",
              "Procurement Lead",
              "Founder",
              "Analyst"
            ]
          },
          "website": {
            "kind": "internet.url"
          }
        }
      },
      "meeting_participants": {
        "description": "Rows for the meeting_participants table.",
        "rows": 90,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "contact_id": {
            "kind": "fk",
            "ref": "contacts.id",
            "skew": "long-tail"
          },
          "meeting_id": {
            "kind": "fk",
            "ref": "meetings.id",
            "skew": "long-tail"
          }
        }
      },
      "meetings": {
        "description": "Rows for the meetings table.",
        "rows": 40,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "description": {
            "kind": "enum",
            "values": [
              "On site",
              "Video call",
              "Over lunch"
            ],
            "weights": [
              25,
              65,
              10
            ]
          },
          "end_time": {
            "kind": "datetime",
            "after": "start_time",
            "withinSeconds": 7200
          },
          "location": {
            "kind": "enum",
            "values": [
              "Customer office",
              "Video call",
              "Our office",
              "Conference venue"
            ],
            "weights": [
              30,
              55,
              10,
              5
            ]
          },
          "owner_id": {
            "kind": "fk",
            "ref": "users.id",
            "skew": "long-tail"
          },
          "start_time": {
            "kind": "datetime",
            "from": "2021-01-01",
            "to": "2025-12-31",
            "dayProfile": "business"
          },
          "subject": {
            "kind": "enum",
            "values": [
              "Kickoff",
              "Product demo",
              "Quarterly review",
              "Contract negotiation",
              "Technical deep dive"
            ]
          }
        }
      },
      "payments": {
        "description": "Rows for the payments table.",
        "rows": 220,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "amount": {
            "kind": "decimal",
            "min": 0,
            "max": 514418,
            "scale": 2,
            "distribution": "long-tail"
          },
          "invoice_id": {
            "kind": "fk",
            "ref": "invoices.id",
            "unique": true
          },
          "payment_date": {
            "kind": "date",
            "after": "invoice_id.issue_date",
            "withinDays": 45
          },
          "payment_method": {
            "kind": "enum",
            "values": [
              "ach",
              "wire",
              "card",
              "check"
            ],
            "weights": [
              50,
              25,
              15,
              10
            ]
          },
          "transaction_reference": {
            "kind": "pattern",
            "pattern": "[PAY]-############",
            "unique": true
          }
        }
      },
      "price_book_entries": {
        "description": "Rows for the price_book_entries table.",
        "rows": 180,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "active": {
            "kind": "bool"
          },
          "price_book_id": {
            "kind": "fk",
            "ref": "price_books.id",
            "skew": "long-tail"
          },
          "product_id": {
            "kind": "fk",
            "ref": "products.id",
            "skew": "long-tail"
          },
          "unit_price": {
            "kind": "decimal",
            "min": 50,
            "max": 5000,
            "scale": 2,
            "distribution": "long-tail"
          }
        }
      },
      "price_books": {
        "description": "Rows for the price_books table.",
        "rows": 3,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "active": {
            "kind": "constant",
            "value": true
          },
          "description": {
            "kind": "enum",
            "values": [
              "List prices",
              "Partner discount",
              "Government pricing"
            ]
          },
          "name": {
            "kind": "enum",
            "values": [
              "Standard",
              "Partner",
              "Public sector"
            ],
            "unique": true
          }
        }
      },
      "products": {
        "description": "Rows for the products table.",
        "rows": 60,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "active": {
            "kind": "bool",
            "trueRate": 0.85
          },
          "code": {
            "kind": "pattern",
            "pattern": "[PRD]-####",
            "unique": true
          },
          "description": {
            "kind": "enum",
            "values": [
              "Per seat, annual",
              "Per seat, monthly",
              "Flat fee",
              "Usage based",
              "Professional services"
            ]
          },
          "name": {
            "kind": "title",
            "min": 2,
            "max": 3,
            "pool": [
              "cloud",
              "suite",
              "analytics",
              "connect",
              "secure",
              "flow",
              "insight",
              "core",
              "pro",
              "edge",
              "sync",
              "vault",
              "pulse",
              "desk",
              "hub",
              "stream",
              "guard",
              "labs"
            ]
          }
        }
      },
      "quote_line_items": {
        "description": "Rows for the quote_line_items table.",
        "rows": 180,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "discount": {
            "kind": "decimal",
            "min": 0,
            "max": 0,
            "scale": 2
          },
          "product_id": {
            "kind": "fk",
            "ref": "products.id",
            "skew": "long-tail"
          },
          "quantity": {
            "kind": "int",
            "min": 1,
            "max": 50,
            "distribution": "long-tail"
          },
          "quote_id": {
            "kind": "fk",
            "ref": "quotes.id",
            "skew": "long-tail"
          },
          "unit_price": {
            "kind": "decimal",
            "min": 50,
            "max": 5000,
            "scale": 2,
            "distribution": "long-tail"
          }
        }
      },
      "quotes": {
        "description": "Rows for the quotes table.",
        "rows": 60,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "deal_id": {
            "kind": "fk",
            "ref": "deals.id",
            "skew": "long-tail"
          },
          "discount": {
            "kind": "decimal",
            "min": 0,
            "max": 4851,
            "scale": 2,
            "distribution": "long-tail"
          },
          "expiration_date": {
            "kind": "date",
            "from": "2021-01-15",
            "to": "2026-01-31"
          },
          "grand_total": {
            "kind": "decimal",
            "min": 0,
            "max": 779750,
            "scale": 2,
            "distribution": "long-tail"
          },
          "name": {
            "kind": "pattern",
            "pattern": "[Quote ]####"
          },
          "number": {
            "kind": "pattern",
            "pattern": "[Q-]########",
            "unique": true
          },
          "owner_id": {
            "kind": "fk",
            "ref": "users.id",
            "skew": "long-tail"
          },
          "subtotal": {
            "kind": "decimal",
            "min": 0,
            "max": 726307,
            "scale": 2
          },
          "tax": {
            "kind": "decimal",
            "min": 0,
            "max": 57760,
            "scale": 2
          }
        }
      },
      "roles": {
        "description": "Rows for the roles table.",
        "rows": 6,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "description": {
            "kind": "enum",
            "values": [
              "Owns pipeline",
              "Owns accounts",
              "Runs a team",
              "Handles tickets",
              "Runs campaigns",
              "Runs the system"
            ]
          },
          "name": {
            "kind": "enum",
            "values": [
              "sales_rep",
              "account_executive",
              "sales_manager",
              "support_agent",
              "marketing",
              "admin"
            ],
            "unique": true
          }
        }
      },
      "tasks": {
        "description": "Rows for the tasks table.",
        "rows": 60,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "description": {
            "kind": "enum",
            "values": [
              "From the pipeline review",
              "Customer asked",
              "Manager follow-up"
            ]
          },
          "due_date": {
            "kind": "date",
            "from": "2021-01-01",
            "to": "2025-12-31"
          },
          "owner_id": {
            "kind": "fk",
            "ref": "users.id",
            "skew": "long-tail"
          },
          "priority": {
            "kind": "enum",
            "values": [
              "low",
              "medium",
              "high"
            ]
          },
          "status": {
            "kind": "enum",
            "values": [
              "done",
              "open",
              "deferred"
            ],
            "weights": [
              80,
              12,
              8
            ]
          },
          "subject": {
            "kind": "enum",
            "values": [
              "Send proposal",
              "Update forecast",
              "Prepare QBR deck",
              "Chase signature",
              "Log call notes"
            ]
          }
        }
      },
      "territories": {
        "description": "Rows for the territories table.",
        "rows": 12,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "description": {
            "kind": "enum",
            "values": [
              "Direct",
              "Partner-led",
              "Mixed"
            ]
          },
          "name": {
            "kind": "enum",
            "values": [
              "Northeast",
              "Southeast",
              "Midwest",
              "Southwest",
              "West Coast",
              "Mountain",
              "UK and Ireland",
              "DACH",
              "Nordics",
              "Benelux",
              "ANZ",
              "Japan"
            ],
            "unique": true
          }
        }
      },
      "ticket_priorities": {
        "description": "Rows for the ticket_priorities table.",
        "rows": 4,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "name": {
            "kind": "enum",
            "values": [
              "low",
              "medium",
              "high",
              "urgent"
            ],
            "unique": true
          },
          "urgency_level": {
            "kind": "int",
            "min": 1,
            "max": 4,
            "unique": true
          }
        }
      },
      "ticket_statuses": {
        "description": "Rows for the ticket_statuses table.",
        "rows": 5,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "is_closed": {
            "kind": "bool"
          },
          "name": {
            "kind": "enum",
            "values": [
              "new",
              "open",
              "pending_customer",
              "resolved",
              "closed"
            ],
            "unique": true
          }
        }
      },
      "tickets": {
        "description": "Rows for the tickets table.",
        "rows": 50,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "account_id": {
            "kind": "fk",
            "ref": "accounts.id",
            "skew": "long-tail"
          },
          "contact_id": {
            "kind": "fk",
            "ref": "contacts.id",
            "skew": "long-tail"
          },
          "created_at": {
            "kind": "datetime",
            "from": "2021-01-01",
            "to": "2025-12-31",
            "dayProfile": "business"
          },
          "description": {
            "kind": "enum",
            "values": [
              "Reported by email",
              "Reported by phone",
              "Opened in the portal"
            ]
          },
          "owner_id": {
            "kind": "fk",
            "ref": "users.id",
            "skew": "long-tail"
          },
          "priority_id": {
            "kind": "fk",
            "ref": "ticket_priorities.id",
            "skew": "long-tail"
          },
          "resolved_at": {
            "kind": "datetime",
            "after": "created_at",
            "withinDays": 14,
            "dayProfile": "business",
            "nullable": true,
            "nullRate": 0.1
          },
          "status_id": {
            "kind": "fk",
            "ref": "ticket_statuses.id",
            "skew": "long-tail"
          },
          "subject": {
            "kind": "enum",
            "values": [
              "Cannot log in",
              "Invoice question",
              "Integration failing",
              "Feature request",
              "Data export",
              "Slow dashboard"
            ]
          }
        }
      },
      "users": {
        "description": "Rows for the users table.",
        "rows": 10,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "active": {
            "kind": "bool",
            "trueRate": 0.9
          },
          "business_unit_id": {
            "kind": "fk",
            "ref": "business_units.id",
            "skew": "long-tail"
          },
          "email": {
            "kind": "internet.email",
            "from": {
              "firstName": "first_name",
              "lastName": "last_name"
            },
            "unique": true
          },
          "first_name": {
            "kind": "person.firstName"
          },
          "last_name": {
            "kind": "person.lastName"
          },
          "phone": {
            "kind": "phone.number"
          },
          "role_id": {
            "kind": "fk",
            "ref": "roles.id",
            "skew": "long-tail"
          }
        }
      }
    }
  },
  "counts": {
    "business_units": 5,
    "competitors": 15,
    "deal_stages": 7,
    "industry_types": 15,
    "kb_categories": 8,
    "lead_sources": 8,
    "lead_statuses": 6,
    "price_books": 3,
    "products": 60,
    "price_book_entries": 180,
    "roles": 6,
    "territories": 12,
    "ticket_priorities": 4,
    "ticket_statuses": 5,
    "users": 10,
    "accounts": 20,
    "account_territories": 25,
    "calls": 100,
    "campaigns": 40,
    "contacts": 60,
    "contracts": 30,
    "deals": 80,
    "deal_competitors": 30,
    "deal_products": 200,
    "invoices": 250,
    "invoice_lines": 1000,
    "kb_articles": 10,
    "leads": 60,
    "campaign_members": 80,
    "meetings": 40,
    "meeting_participants": 90,
    "payments": 220,
    "quotes": 60,
    "quote_line_items": 180,
    "tasks": 60,
    "tickets": 50
  },
  "artifacts": [
    {
      "file": "csv/business_units.csv",
      "format": "csv",
      "table": "business_units",
      "key": "datasets/crm-sample-database/v1/csv/business_units.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/csv/business_units.csv",
      "bytes": 162,
      "sha256": "781a30583f478fb248e6631574d0fd40d38a6488a8a8a45766b38e1f84b5a05a",
      "rows": 5,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/competitors.csv",
      "format": "csv",
      "table": "competitors",
      "key": "datasets/crm-sample-database/v1/csv/competitors.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/csv/competitors.csv",
      "bytes": 1220,
      "sha256": "f8ca1ccb39d4447af77106010c306425674316f93cc10c9443855114b65df114",
      "rows": 15,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/deal_stages.csv",
      "format": "csv",
      "table": "deal_stages",
      "key": "datasets/crm-sample-database/v1/csv/deal_stages.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/csv/deal_stages.csv",
      "bytes": 238,
      "sha256": "869e72583ddfbe38e29ab8fc5a2d1def2bdd5b4ed78a7df217a3fb68566b899b",
      "rows": 7,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/industry_types.csv",
      "format": "csv",
      "table": "industry_types",
      "key": "datasets/crm-sample-database/v1/csv/industry_types.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/csv/industry_types.csv",
      "bytes": 433,
      "sha256": "4c4d7d57738e3fd8dda11b040c583516e9db58862582d62d3d4359195a2be32b",
      "rows": 15,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/kb_categories.csv",
      "format": "csv",
      "table": "kb_categories",
      "key": "datasets/crm-sample-database/v1/csv/kb_categories.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/csv/kb_categories.csv",
      "bytes": 239,
      "sha256": "1a256e54ae82281f4c73790104464e78bd88d4f12c5029b0c58750117a4639ff",
      "rows": 8,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/lead_sources.csv",
      "format": "csv",
      "table": "lead_sources",
      "key": "datasets/crm-sample-database/v1/csv/lead_sources.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/csv/lead_sources.csv",
      "bytes": 182,
      "sha256": "d20fb80f186922654740adcd90a4458d78dba222452082c7ee4a39ce2afdde47",
      "rows": 8,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/lead_statuses.csv",
      "format": "csv",
      "table": "lead_statuses",
      "key": "datasets/crm-sample-database/v1/csv/lead_statuses.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/csv/lead_statuses.csv",
      "bytes": 130,
      "sha256": "51a94210d81df515c5cb824f76a1d2aba773e79dc3b3ad6aa05c28a1f625e428",
      "rows": 6,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/price_books.csv",
      "format": "csv",
      "table": "price_books",
      "key": "datasets/crm-sample-database/v1/csv/price_books.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/csv/price_books.csv",
      "bytes": 133,
      "sha256": "42efbbb804a322a3258176bdb758813b1a3e7e9505e4df07aab483a1922b578d",
      "rows": 3,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/products.csv",
      "format": "csv",
      "table": "products",
      "key": "datasets/crm-sample-database/v1/csv/products.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/csv/products.csv",
      "bytes": 3022,
      "sha256": "1a6c2960bf3ddcf2b6ba70381554b57d6a3497222b4e0d00bdc38eaf6edc32a4",
      "rows": 60,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/price_book_entries.csv",
      "format": "csv",
      "table": "price_book_entries",
      "key": "datasets/crm-sample-database/v1/csv/price_book_entries.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/csv/price_book_entries.csv",
      "bytes": 4016,
      "sha256": "939d423e220b201d5402261d93bd82e357da155092a5fed7af14b9dd8718bd9c",
      "rows": 180,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/roles.csv",
      "format": "csv",
      "table": "roles",
      "key": "datasets/crm-sample-database/v1/csv/roles.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/csv/roles.csv",
      "bytes": 197,
      "sha256": "dcbf1c3acbd3edde2d1b8f8f7d94cf6fb7944bfcc3d3012d58c4e68e9d13a4f9",
      "rows": 6,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/territories.csv",
      "format": "csv",
      "table": "territories",
      "key": "datasets/crm-sample-database/v1/csv/territories.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/csv/territories.csv",
      "bytes": 257,
      "sha256": "ccc42e672b8f635fddad2cd2046be9dca9d11a267c8334685dc8578dc59fbbff",
      "rows": 12,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/ticket_priorities.csv",
      "format": "csv",
      "table": "ticket_priorities",
      "key": "datasets/crm-sample-database/v1/csv/ticket_priorities.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/csv/ticket_priorities.csv",
      "bytes": 66,
      "sha256": "316e2468fda17a11d681b64415fab41840ee33fc1b00cd35053ad1a1bdfbba58",
      "rows": 4,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/ticket_statuses.csv",
      "format": "csv",
      "table": "ticket_statuses",
      "key": "datasets/crm-sample-database/v1/csv/ticket_statuses.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/csv/ticket_statuses.csv",
      "bytes": 104,
      "sha256": "678b0a90224955406dd6fb55985e8d62d4857dfe06133cbb99bb88d8669906e7",
      "rows": 5,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/users.csv",
      "format": "csv",
      "table": "users",
      "key": "datasets/crm-sample-database/v1/csv/users.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/csv/users.csv",
      "bytes": 734,
      "sha256": "3fb54f37918e8eb404e3c9b357b68ed619d4a2d2fb88c8c865bcfecc82b6b381",
      "rows": 10,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/accounts.csv",
      "format": "csv",
      "table": "accounts",
      "key": "datasets/crm-sample-database/v1/csv/accounts.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/csv/accounts.csv",
      "bytes": 4098,
      "sha256": "396be4bd2ac4ace294934ac15bdf42f63d1b3463c3e1295e5c3bd8280bc586f6",
      "rows": 20,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/account_territories.csv",
      "format": "csv",
      "table": "account_territories",
      "key": "datasets/crm-sample-database/v1/csv/account_territories.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/csv/account_territories.csv",
      "bytes": 233,
      "sha256": "11bccfd0650f1a2d7f056f714c07cff7acbb19b651926b085f35b36ad7880548",
      "rows": 25,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/calls.csv",
      "format": "csv",
      "table": "calls",
      "key": "datasets/crm-sample-database/v1/csv/calls.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/csv/calls.csv",
      "bytes": 7702,
      "sha256": "6f6cd91097524c06e2e715f5813a6a43c3119b53411457102bc93f8c4916a955",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/campaigns.csv",
      "format": "csv",
      "table": "campaigns",
      "key": "datasets/crm-sample-database/v1/csv/campaigns.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/csv/campaigns.csv",
      "bytes": 4186,
      "sha256": "cfd1bf0bea38ce339363fd79ef0dadfe1fd2b395681a1bceee7d3f7d6af60652",
      "rows": 40,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/contacts.csv",
      "format": "csv",
      "table": "contacts",
      "key": "datasets/crm-sample-database/v1/csv/contacts.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/csv/contacts.csv",
      "bytes": 7094,
      "sha256": "02711a5ccf72415d4a8395181d53fa97ddd55f99ab65f6c879608b01d8fafc5b",
      "rows": 60,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/contracts.csv",
      "format": "csv",
      "table": "contracts",
      "key": "datasets/crm-sample-database/v1/csv/contracts.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/csv/contracts.csv",
      "bytes": 1665,
      "sha256": "0e84cd159d889b1968aa1e88899213300076022c5cb9a1b0be28b9d327b77dc7",
      "rows": 30,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/deals.csv",
      "format": "csv",
      "table": "deals",
      "key": "datasets/crm-sample-database/v1/csv/deals.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/csv/deals.csv",
      "bytes": 5102,
      "sha256": "6a3309231e9c0aa000018248be46fa17269be45290beb620a9d2ebea73bcf686",
      "rows": 80,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/deal_competitors.csv",
      "format": "csv",
      "table": "deal_competitors",
      "key": "datasets/crm-sample-database/v1/csv/deal_competitors.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/csv/deal_competitors.csv",
      "bytes": 825,
      "sha256": "e9cdd0e2b614c69fa0a95231f8518a080e01972e4855a55144bda7405e64dd5d",
      "rows": 30,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/deal_products.csv",
      "format": "csv",
      "table": "deal_products",
      "key": "datasets/crm-sample-database/v1/csv/deal_products.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/csv/deal_products.csv",
      "bytes": 4402,
      "sha256": "571401deab1bca166b65fbf3702f566d7d72a76d099b2ff8f6e98722af609ca1",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/invoices.csv",
      "format": "csv",
      "table": "invoices",
      "key": "datasets/crm-sample-database/v1/csv/invoices.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/csv/invoices.csv",
      "bytes": 19460,
      "sha256": "64c1e6bc6a6e64f1013ae20fb81f8e702bbc80aee912047b7921d6ac0362a7f8",
      "rows": 250,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/invoice_lines.csv",
      "format": "csv",
      "table": "invoice_lines",
      "key": "datasets/crm-sample-database/v1/csv/invoice_lines.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/csv/invoice_lines.csv",
      "bytes": 29688,
      "sha256": "1cb7d3f23152473112ea280eedc543001e812c38c78881a7254e1f00e49389f0",
      "rows": 1000,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/kb_articles.csv",
      "format": "csv",
      "table": "kb_articles",
      "key": "datasets/crm-sample-database/v1/csv/kb_articles.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/csv/kb_articles.csv",
      "bytes": 918,
      "sha256": "1c79830efe7b44d43e00ab26727113e1c023eea6aaafd3260470737437c9cf83",
      "rows": 10,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/leads.csv",
      "format": "csv",
      "table": "leads",
      "key": "datasets/crm-sample-database/v1/csv/leads.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/csv/leads.csv",
      "bytes": 10872,
      "sha256": "d7052016148b7e850ef968cf0c454ef2addcdf6dc992e3327b089099de5d0af2",
      "rows": 60,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/campaign_members.csv",
      "format": "csv",
      "table": "campaign_members",
      "key": "datasets/crm-sample-database/v1/csv/campaign_members.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/csv/campaign_members.csv",
      "bytes": 1513,
      "sha256": "e91cac1eb530cea5b53694684629c009be4ee17c1d7a36d2b4b1cf6784531174",
      "rows": 80,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/meetings.csv",
      "format": "csv",
      "table": "meetings",
      "key": "datasets/crm-sample-database/v1/csv/meetings.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/csv/meetings.csv",
      "bytes": 3475,
      "sha256": "4664a4ba31347cb508793c2a1b2fa2596b9cfd5e140c352dec6b254019a86956",
      "rows": 40,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/meeting_participants.csv",
      "format": "csv",
      "table": "meeting_participants",
      "key": "datasets/crm-sample-database/v1/csv/meeting_participants.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/csv/meeting_participants.csv",
      "bytes": 839,
      "sha256": "ffa01170e0b2dd657985e1e0d6ebfe1e12c67fc2f25ecdc3cf55b6960b8b4231",
      "rows": 90,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/payments.csv",
      "format": "csv",
      "table": "payments",
      "key": "datasets/crm-sample-database/v1/csv/payments.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/csv/payments.csv",
      "bytes": 11005,
      "sha256": "016b8126a26ec42665955315be82e72e886f3cbfcbc483b2d8b0775ed218ae09",
      "rows": 220,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/quotes.csv",
      "format": "csv",
      "table": "quotes",
      "key": "datasets/crm-sample-database/v1/csv/quotes.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/csv/quotes.csv",
      "bytes": 4395,
      "sha256": "8900d551c31dcf0b33484baed2aab2c383f32bf04f938115a1423c782a7a6af4",
      "rows": 60,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/quote_line_items.csv",
      "format": "csv",
      "table": "quote_line_items",
      "key": "datasets/crm-sample-database/v1/csv/quote_line_items.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/csv/quote_line_items.csv",
      "bytes": 3984,
      "sha256": "35b1f8b39cbde0830a10e2e109161cf2081eb410fc774a2f6ac49f6b7af8df26",
      "rows": 180,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/tasks.csv",
      "format": "csv",
      "table": "tasks",
      "key": "datasets/crm-sample-database/v1/csv/tasks.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/csv/tasks.csv",
      "bytes": 3753,
      "sha256": "13aad90e698f3c45b6c641a1c1acaf60c624ed8665f9e989ef797be6eaf60fc4",
      "rows": 60,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/tickets.csv",
      "format": "csv",
      "table": "tickets",
      "key": "datasets/crm-sample-database/v1/csv/tickets.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/csv/tickets.csv",
      "bytes": 4541,
      "sha256": "d9b028c87a34e23dc302faa298f695013615be47e5635aaad20ac7358ec72ab5",
      "rows": 50,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "crm-sample-database.json",
      "format": "json",
      "table": null,
      "key": "datasets/crm-sample-database/v1/crm-sample-database.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/crm-sample-database.json",
      "bytes": 572563,
      "sha256": "bc76506418bde71e6ba52df8eddb1a4f7cf88c14473ace1116e9b11bf422d6a6",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/crm-sample-database/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/sql/postgres.sql",
      "bytes": 210575,
      "sha256": "0b57fc09878619f9a1936f63b794d0ef070a60901b7ce3cbe3bd76ca94193dc3",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/crm-sample-database/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/sql/mysql.sql",
      "bytes": 206180,
      "sha256": "d0be3952106eca2e17edc27f5069ee0f20becbdc3ddb5100faea5f07e049c6e9",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/crm-sample-database/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/sql/mssql.sql",
      "bytes": 213316,
      "sha256": "1d59bea888a17316b7fb4685ba39ebcc6be65034f74d57a45c3e7bf78ecea7e6",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/crm-sample-database/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/sql/sqlite.sql",
      "bytes": 203014,
      "sha256": "f1aeca5721466d933f40ae7c71c92e715352abbbebe21df5fe52d331cc7da6e4",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/crm-sample-database/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/prisma/seed.ts",
      "bytes": 431938,
      "sha256": "bf43bec0556cb552dd066fb3e9a62ad44a5d57dbcc3ebc48be0651de45dbde3b",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/crm-sample-database/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/django/fixtures.json",
      "bytes": 702288,
      "sha256": "4f547c126a8e0771c029572a984cec505c0225fad83e4aa983fcde66cb8c4974",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "flagship": {
    "sizes": {
      "1k": {
        "rows": 3029,
        "counts": {
          "business_units": 5,
          "competitors": 15,
          "deal_stages": 7,
          "industry_types": 15,
          "kb_categories": 8,
          "lead_sources": 8,
          "lead_statuses": 6,
          "price_books": 3,
          "products": 60,
          "price_book_entries": 180,
          "roles": 6,
          "territories": 12,
          "ticket_priorities": 4,
          "ticket_statuses": 5,
          "users": 10,
          "accounts": 20,
          "account_territories": 25,
          "calls": 100,
          "campaigns": 40,
          "contacts": 60,
          "contracts": 30,
          "deals": 80,
          "deal_competitors": 30,
          "deal_products": 200,
          "invoices": 250,
          "invoice_lines": 1000,
          "kb_articles": 10,
          "leads": 60,
          "campaign_members": 80,
          "meetings": 40,
          "meeting_participants": 90,
          "payments": 220,
          "quotes": 60,
          "quote_line_items": 180,
          "tasks": 60,
          "tickets": 50
        },
        "notes": [],
        "downloads": [
          {
            "format": "sql-postgres",
            "label": "PostgreSQL",
            "file": "flagship/1k/postgres.sql.gz",
            "key": "datasets/crm-sample-database/v1/flagship/1k/postgres.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/flagship/1k/postgres.sql.gz",
            "bytes": 65414,
            "sha256": "594c5424ec48bace6410ac5a2e40ec95694dbb40f6c02d30536eb9e9e72fbcb0",
            "raw": {
              "bytes": 217785,
              "sha256": "fd03d365c536e628c8653f59ae27c64a8f075f2ea4a595f57109877140c6b7c4"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "sql-mysql",
            "label": "MySQL",
            "file": "flagship/1k/mysql.sql.gz",
            "key": "datasets/crm-sample-database/v1/flagship/1k/mysql.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/flagship/1k/mysql.sql.gz",
            "bytes": 64768,
            "sha256": "5e7acdb36c12abbe5fd56ce6121a23fbc169809737432f0add7244586f30f90a",
            "raw": {
              "bytes": 213390,
              "sha256": "93721028be1265415fbbbe6dcf15a36d7f572b156054579a0c48239db480f258"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "sql-sqlite",
            "label": "SQLite",
            "file": "flagship/1k/sqlite.sql.gz",
            "key": "datasets/crm-sample-database/v1/flagship/1k/sqlite.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/flagship/1k/sqlite.sql.gz",
            "bytes": 64200,
            "sha256": "a89887e31d4554fba633627ab2138c254d8ac96077d1e6a3acdd836f52b52f81",
            "raw": {
              "bytes": 210224,
              "sha256": "c9916ea922a289b012678065dd3192e40003fe2ddf6a28801154c02afda64e4b"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "csv",
            "label": "CSV",
            "file": "flagship/1k/csv.zip",
            "key": "datasets/crm-sample-database/v1/flagship/1k/csv.zip",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/flagship/1k/csv.zip",
            "bytes": 64575,
            "sha256": "bf96eb4b784a0bddf9716075b122ef30c7c418d1acf15dc4ea2bda276e7f7afe",
            "tables": {
              "account_territories": {
                "bytes": 233,
                "sha256": "11bccfd0650f1a2d7f056f714c07cff7acbb19b651926b085f35b36ad7880548"
              },
              "accounts": {
                "bytes": 4098,
                "sha256": "396be4bd2ac4ace294934ac15bdf42f63d1b3463c3e1295e5c3bd8280bc586f6"
              },
              "business_units": {
                "bytes": 162,
                "sha256": "781a30583f478fb248e6631574d0fd40d38a6488a8a8a45766b38e1f84b5a05a"
              },
              "calls": {
                "bytes": 7702,
                "sha256": "6f6cd91097524c06e2e715f5813a6a43c3119b53411457102bc93f8c4916a955"
              },
              "campaign_members": {
                "bytes": 1513,
                "sha256": "e91cac1eb530cea5b53694684629c009be4ee17c1d7a36d2b4b1cf6784531174"
              },
              "campaigns": {
                "bytes": 4186,
                "sha256": "cfd1bf0bea38ce339363fd79ef0dadfe1fd2b395681a1bceee7d3f7d6af60652"
              },
              "competitors": {
                "bytes": 1220,
                "sha256": "f8ca1ccb39d4447af77106010c306425674316f93cc10c9443855114b65df114"
              },
              "contacts": {
                "bytes": 7094,
                "sha256": "02711a5ccf72415d4a8395181d53fa97ddd55f99ab65f6c879608b01d8fafc5b"
              },
              "contracts": {
                "bytes": 1665,
                "sha256": "0e84cd159d889b1968aa1e88899213300076022c5cb9a1b0be28b9d327b77dc7"
              },
              "deal_competitors": {
                "bytes": 825,
                "sha256": "e9cdd0e2b614c69fa0a95231f8518a080e01972e4855a55144bda7405e64dd5d"
              },
              "deal_products": {
                "bytes": 4402,
                "sha256": "571401deab1bca166b65fbf3702f566d7d72a76d099b2ff8f6e98722af609ca1"
              },
              "deal_stages": {
                "bytes": 238,
                "sha256": "869e72583ddfbe38e29ab8fc5a2d1def2bdd5b4ed78a7df217a3fb68566b899b"
              },
              "deals": {
                "bytes": 5102,
                "sha256": "6a3309231e9c0aa000018248be46fa17269be45290beb620a9d2ebea73bcf686"
              },
              "industry_types": {
                "bytes": 433,
                "sha256": "4c4d7d57738e3fd8dda11b040c583516e9db58862582d62d3d4359195a2be32b"
              },
              "invoice_lines": {
                "bytes": 29688,
                "sha256": "1cb7d3f23152473112ea280eedc543001e812c38c78881a7254e1f00e49389f0"
              },
              "invoices": {
                "bytes": 19460,
                "sha256": "64c1e6bc6a6e64f1013ae20fb81f8e702bbc80aee912047b7921d6ac0362a7f8"
              },
              "kb_articles": {
                "bytes": 918,
                "sha256": "1c79830efe7b44d43e00ab26727113e1c023eea6aaafd3260470737437c9cf83"
              },
              "kb_categories": {
                "bytes": 239,
                "sha256": "1a256e54ae82281f4c73790104464e78bd88d4f12c5029b0c58750117a4639ff"
              },
              "lead_sources": {
                "bytes": 182,
                "sha256": "d20fb80f186922654740adcd90a4458d78dba222452082c7ee4a39ce2afdde47"
              },
              "lead_statuses": {
                "bytes": 130,
                "sha256": "51a94210d81df515c5cb824f76a1d2aba773e79dc3b3ad6aa05c28a1f625e428"
              },
              "leads": {
                "bytes": 10872,
                "sha256": "d7052016148b7e850ef968cf0c454ef2addcdf6dc992e3327b089099de5d0af2"
              },
              "meeting_participants": {
                "bytes": 839,
                "sha256": "ffa01170e0b2dd657985e1e0d6ebfe1e12c67fc2f25ecdc3cf55b6960b8b4231"
              },
              "meetings": {
                "bytes": 3475,
                "sha256": "4664a4ba31347cb508793c2a1b2fa2596b9cfd5e140c352dec6b254019a86956"
              },
              "payments": {
                "bytes": 11005,
                "sha256": "016b8126a26ec42665955315be82e72e886f3cbfcbc483b2d8b0775ed218ae09"
              },
              "price_book_entries": {
                "bytes": 4016,
                "sha256": "939d423e220b201d5402261d93bd82e357da155092a5fed7af14b9dd8718bd9c"
              },
              "price_books": {
                "bytes": 133,
                "sha256": "42efbbb804a322a3258176bdb758813b1a3e7e9505e4df07aab483a1922b578d"
              },
              "products": {
                "bytes": 3022,
                "sha256": "1a6c2960bf3ddcf2b6ba70381554b57d6a3497222b4e0d00bdc38eaf6edc32a4"
              },
              "quote_line_items": {
                "bytes": 3984,
                "sha256": "35b1f8b39cbde0830a10e2e109161cf2081eb410fc774a2f6ac49f6b7af8df26"
              },
              "quotes": {
                "bytes": 4395,
                "sha256": "8900d551c31dcf0b33484baed2aab2c383f32bf04f938115a1423c782a7a6af4"
              },
              "roles": {
                "bytes": 197,
                "sha256": "dcbf1c3acbd3edde2d1b8f8f7d94cf6fb7944bfcc3d3012d58c4e68e9d13a4f9"
              },
              "tasks": {
                "bytes": 3753,
                "sha256": "13aad90e698f3c45b6c641a1c1acaf60c624ed8665f9e989ef797be6eaf60fc4"
              },
              "territories": {
                "bytes": 257,
                "sha256": "ccc42e672b8f635fddad2cd2046be9dca9d11a267c8334685dc8578dc59fbbff"
              },
              "ticket_priorities": {
                "bytes": 66,
                "sha256": "316e2468fda17a11d681b64415fab41840ee33fc1b00cd35053ad1a1bdfbba58"
              },
              "ticket_statuses": {
                "bytes": 104,
                "sha256": "678b0a90224955406dd6fb55985e8d62d4857dfe06133cbb99bb88d8669906e7"
              },
              "tickets": {
                "bytes": 4541,
                "sha256": "d9b028c87a34e23dc302faa298f695013615be47e5635aaad20ac7358ec72ab5"
              },
              "users": {
                "bytes": 734,
                "sha256": "3fb54f37918e8eb404e3c9b357b68ed619d4a2d2fb88c8c865bcfecc82b6b381"
              }
            },
            "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 stage that is won is closed, and only closed-won is won",
            "violations": 0
          },
          {
            "name": "An invoice line is quantity times unit price, and an invoice its lines plus 8% tax",
            "violations": 0
          },
          {
            "name": "An invoice is due thirty days after it is issued",
            "violations": 0
          },
          {
            "name": "A payment settles its invoice in full, on or after the issue date",
            "violations": 0
          },
          {
            "name": "A quote and a deal are the sum of their lines",
            "violations": 0
          },
          {
            "name": "A campaign never spends more than its budget",
            "violations": 0
          },
          {
            "name": "Every contract runs exactly a year",
            "violations": 0
          },
          {
            "name": "A ticket is resolved after it is opened",
            "violations": 0
          }
        ],
        "dirty": {
          "report": {
            "rates": {
              "missing": 0.03,
              "typos": 0.03,
              "outliers": 0.005,
              "duplicates": 0.01
            },
            "tables": {
              "business_units": {
                "duplicates": 0,
                "columns": {
                  "description": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "competitors": {
                "duplicates": 0,
                "columns": {
                  "name": {
                    "missing": 0,
                    "typos": 1,
                    "outliers": 0
                  },
                  "strengths": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "weaknesses": {
                    "missing": 3,
                    "typos": 0,
                    "outliers": 0
                  },
                  "website": {
                    "missing": 2,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "deal_stages": {
                "duplicates": 0,
                "columns": {
                  "name": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "industry_types": {
                "duplicates": 0,
                "columns": {
                  "name": {
                    "missing": 0,
                    "typos": 1,
                    "outliers": 0
                  }
                }
              },
              "kb_categories": {
                "duplicates": 0,
                "columns": {
                  "name": {
                    "missing": 0,
                    "typos": 1,
                    "outliers": 0
                  }
                }
              },
              "products": {
                "duplicates": 0,
                "columns": {
                  "active": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "code": {
                    "missing": 3,
                    "typos": 1,
                    "outliers": 0
                  },
                  "description": {
                    "missing": 2,
                    "typos": 2,
                    "outliers": 0
                  },
                  "name": {
                    "missing": 0,
                    "typos": 4,
                    "outliers": 0
                  }
                }
              },
              "price_book_entries": {
                "duplicates": 2,
                "columns": {
                  "active": {
                    "missing": 4,
                    "typos": 0,
                    "outliers": 0
                  },
                  "unit_price": {
                    "missing": 6,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "territories": {
                "duplicates": 0,
                "columns": {
                  "name": {
                    "missing": 0,
                    "typos": 2,
                    "outliers": 0
                  }
                }
              },
              "users": {
                "duplicates": 0,
                "columns": {
                  "first_name": {
                    "missing": 0,
                    "typos": 1,
                    "outliers": 0
                  },
                  "last_name": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "accounts": {
                "duplicates": 0,
                "columns": {
                  "billing_city": {
                    "missing": 0,
                    "typos": 2,
                    "outliers": 0
                  },
                  "billing_country": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "billing_state": {
                    "missing": 2,
                    "typos": 0,
                    "outliers": 0
                  },
                  "billing_street": {
                    "missing": 0,
                    "typos": 4,
                    "outliers": 0
                  },
                  "employees_count": {
                    "missing": 2,
                    "typos": 0,
                    "outliers": 0
                  },
                  "shipping_city": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "shipping_street": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "calls": {
                "duplicates": 0,
                "columns": {
                  "description": {
                    "missing": 6,
                    "typos": 0,
                    "outliers": 0
                  },
                  "duration_seconds": {
                    "missing": 4,
                    "typos": 0,
                    "outliers": 0
                  },
                  "outcome": {
                    "missing": 3,
                    "typos": 2,
                    "outliers": 0
                  },
                  "start_time": {
                    "missing": 3,
                    "typos": 0,
                    "outliers": 0
                  },
                  "subject": {
                    "missing": 1,
                    "typos": 2,
                    "outliers": 0
                  }
                }
              },
              "campaigns": {
                "duplicates": 1,
                "columns": {
                  "actual_cost": {
                    "missing": 2,
                    "typos": 0,
                    "outliers": 0
                  },
                  "budgeted_cost": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 1
                  },
                  "name": {
                    "missing": 2,
                    "typos": 4,
                    "outliers": 0
                  },
                  "status": {
                    "missing": 0,
                    "typos": 1,
                    "outliers": 0
                  },
                  "type": {
                    "missing": 0,
                    "typos": 1,
                    "outliers": 0
                  }
                }
              },
              "contacts": {
                "duplicates": 0,
                "columns": {
                  "birth_date": {
                    "missing": 2,
                    "typos": 0,
                    "outliers": 0
                  },
                  "department": {
                    "missing": 1,
                    "typos": 2,
                    "outliers": 0
                  },
                  "email": {
                    "missing": 2,
                    "typos": 1,
                    "outliers": 0
                  },
                  "first_name": {
                    "missing": 2,
                    "typos": 0,
                    "outliers": 0
                  },
                  "job_title": {
                    "missing": 2,
                    "typos": 0,
                    "outliers": 0
                  },
                  "last_name": {
                    "missing": 4,
                    "typos": 0,
                    "outliers": 0
                  },
                  "mobile": {
                    "missing": 2,
                    "typos": 0,
                    "outliers": 0
                  },
                  "phone": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "contracts": {
                "duplicates": 1,
                "columns": {
                  "end_date": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "number": {
                    "missing": 1,
                    "typos": 2,
                    "outliers": 0
                  },
                  "start_date": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "status": {
                    "missing": 4,
                    "typos": 1,
                    "outliers": 0
                  },
                  "terms_months": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "deals": {
                "duplicates": 1,
                "columns": {
                  "amount": {
                    "missing": 4,
                    "typos": 0,
                    "outliers": 0
                  },
                  "description": {
                    "missing": 3,
                    "typos": 6,
                    "outliers": 0
                  },
                  "name": {
                    "missing": 3,
                    "typos": 1,
                    "outliers": 0
                  }
                }
              },
              "deal_products": {
                "duplicates": 3,
                "columns": {
                  "discount": {
                    "missing": 5,
                    "typos": 0,
                    "outliers": 0
                  },
                  "quantity": {
                    "missing": 5,
                    "typos": 0,
                    "outliers": 2
                  },
                  "sales_price": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "invoices": {
                "duplicates": 2,
                "columns": {
                  "due_date": {
                    "missing": 6,
                    "typos": 0,
                    "outliers": 0
                  },
                  "issue_date": {
                    "missing": 6,
                    "typos": 0,
                    "outliers": 0
                  },
                  "number": {
                    "missing": 7,
                    "typos": 11,
                    "outliers": 0
                  },
                  "status": {
                    "missing": 14,
                    "typos": 11,
                    "outliers": 0
                  },
                  "subtotal": {
                    "missing": 8,
                    "typos": 0,
                    "outliers": 1
                  },
                  "tax": {
                    "missing": 10,
                    "typos": 0,
                    "outliers": 2
                  },
                  "total_amount": {
                    "missing": 13,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "invoice_lines": {
                "duplicates": 4,
                "columns": {
                  "amount": {
                    "missing": 35,
                    "typos": 0,
                    "outliers": 5
                  },
                  "quantity": {
                    "missing": 25,
                    "typos": 0,
                    "outliers": 9
                  },
                  "unit_price": {
                    "missing": 23,
                    "typos": 0,
                    "outliers": 8
                  }
                }
              },
              "leads": {
                "duplicates": 1,
                "columns": {
                  "city": {
                    "missing": 2,
                    "typos": 1,
                    "outliers": 0
                  },
                  "company_name": {
                    "missing": 1,
                    "typos": 2,
                    "outliers": 0
                  },
                  "country": {
                    "missing": 2,
                    "typos": 0,
                    "outliers": 0
                  },
                  "email": {
                    "missing": 5,
                    "typos": 2,
                    "outliers": 0
                  },
                  "last_name": {
                    "missing": 3,
                    "typos": 1,
                    "outliers": 0
                  },
                  "postal_code": {
                    "missing": 1,
                    "typos": 1,
                    "outliers": 0
                  },
                  "score": {
                    "missing": 2,
                    "typos": 0,
                    "outliers": 1
                  },
                  "state": {
                    "missing": 0,
                    "typos": 3,
                    "outliers": 0
                  },
                  "street": {
                    "missing": 2,
                    "typos": 4,
                    "outliers": 0
                  },
                  "title": {
                    "missing": 2,
                    "typos": 3,
                    "outliers": 0
                  }
                }
              },
              "campaign_members": {
                "duplicates": 2,
                "columns": {
                  "status": {
                    "missing": 0,
                    "typos": 2,
                    "outliers": 0
                  }
                }
              },
              "meetings": {
                "duplicates": 0,
                "columns": {
                  "description": {
                    "missing": 3,
                    "typos": 1,
                    "outliers": 0
                  },
                  "end_time": {
                    "missing": 2,
                    "typos": 0,
                    "outliers": 0
                  },
                  "subject": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "payments": {
                "duplicates": 1,
                "columns": {
                  "amount": {
                    "missing": 7,
                    "typos": 0,
                    "outliers": 1
                  },
                  "payment_date": {
                    "missing": 7,
                    "typos": 0,
                    "outliers": 0
                  },
                  "payment_method": {
                    "missing": 5,
                    "typos": 4,
                    "outliers": 0
                  },
                  "transaction_reference": {
                    "missing": 9,
                    "typos": 5,
                    "outliers": 0
                  }
                }
              },
              "quotes": {
                "duplicates": 1,
                "columns": {
                  "discount": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "expiration_date": {
                    "missing": 2,
                    "typos": 0,
                    "outliers": 0
                  },
                  "grand_total": {
                    "missing": 3,
                    "typos": 0,
                    "outliers": 0
                  },
                  "name": {
                    "missing": 3,
                    "typos": 2,
                    "outliers": 0
                  },
                  "number": {
                    "missing": 4,
                    "typos": 2,
                    "outliers": 0
                  },
                  "tax": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 1
                  }
                }
              },
              "quote_line_items": {
                "duplicates": 1,
                "columns": {
                  "discount": {
                    "missing": 4,
                    "typos": 0,
                    "outliers": 0
                  },
                  "quantity": {
                    "missing": 5,
                    "typos": 0,
                    "outliers": 0
                  },
                  "unit_price": {
                    "missing": 12,
                    "typos": 0,
                    "outliers": 1
                  }
                }
              },
              "tasks": {
                "duplicates": 2,
                "columns": {
                  "description": {
                    "missing": 3,
                    "typos": 1,
                    "outliers": 0
                  },
                  "due_date": {
                    "missing": 7,
                    "typos": 0,
                    "outliers": 0
                  },
                  "priority": {
                    "missing": 5,
                    "typos": 4,
                    "outliers": 0
                  },
                  "status": {
                    "missing": 2,
                    "typos": 4,
                    "outliers": 0
                  },
                  "subject": {
                    "missing": 2,
                    "typos": 1,
                    "outliers": 0
                  }
                }
              },
              "tickets": {
                "duplicates": 0,
                "columns": {
                  "created_at": {
                    "missing": 2,
                    "typos": 0,
                    "outliers": 0
                  },
                  "description": {
                    "missing": 2,
                    "typos": 0,
                    "outliers": 0
                  },
                  "subject": {
                    "missing": 1,
                    "typos": 3,
                    "outliers": 0
                  }
                }
              }
            },
            "totals": {
              "missing": 359,
              "typos": 110,
              "outliers": 32,
              "duplicates": 22
            }
          },
          "downloads": [
            {
              "format": "dirty-sql-postgres",
              "label": "PostgreSQL, with faults",
              "file": "flagship/1k/dirty-postgres.sql.gz",
              "key": "datasets/crm-sample-database/v1/flagship/1k/dirty-postgres.sql.gz",
              "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/flagship/1k/dirty-postgres.sql.gz",
              "bytes": 63573,
              "sha256": "28c7f6b089431190884e2459210184c0a2da55221ba71364f9ac7c7d27ba4b36",
              "raw": {
                "bytes": 208164,
                "sha256": "ca1c4bd5d2af0bdab4344fc7fdfec2bd9f947d6fa4b52347f5cab0a98c1785ba"
              },
              "contentType": "application/gzip"
            },
            {
              "format": "dirty-csv",
              "label": "CSV, with faults",
              "file": "flagship/1k/dirty-csv.zip",
              "key": "datasets/crm-sample-database/v1/flagship/1k/dirty-csv.zip",
              "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/flagship/1k/dirty-csv.zip",
              "bytes": 64438,
              "sha256": "912c6fbf15a73bdf4a59186a2b5ef33e1e4bcf97c86a0ecc9f748f1bb6447f37",
              "tables": {
                "account_territories": {
                  "bytes": 233,
                  "sha256": "11bccfd0650f1a2d7f056f714c07cff7acbb19b651926b085f35b36ad7880548"
                },
                "accounts": {
                  "bytes": 4055,
                  "sha256": "64e8f12a50076d4ddecea84d827ea0391947834002ff93fefeb425dd3bd08858"
                },
                "business_units": {
                  "bytes": 146,
                  "sha256": "980fd07ac9c952522a94b6e3b5c539b71f23e56e2a234eeaf69c6b6b5e04d40f"
                },
                "calls": {
                  "bytes": 7472,
                  "sha256": "70b95b3851649c2af051b7028d6ecbd6d886adcaa85db53551eab0d0d41ca294"
                },
                "campaign_members": {
                  "bytes": 1549,
                  "sha256": "e54be2acec319c2e2b5c81500eedd368628db679a62499565b29ad2de8eb3e4c"
                },
                "campaigns": {
                  "bytes": 4212,
                  "sha256": "919a6119e5acba587f80b98cc94bb61c54d1f50d53a60b38cdb5e13bf6bf89fc"
                },
                "competitors": {
                  "bytes": 1115,
                  "sha256": "6fc2ac4da3041ad611441240c4e780d8f2e19f7f2ae14392af65f30fd676ecbd"
                },
                "contacts": {
                  "bytes": 6901,
                  "sha256": "b720b144a5cd2f32a0bf2816ac81be77f4381741b5e412405f1a7d8a42784469"
                },
                "contracts": {
                  "bytes": 1667,
                  "sha256": "6783967a66d03bcede2f2aa1c26e7e9318ad281807fc2a92f10b7f17bd9c2bee"
                },
                "deal_competitors": {
                  "bytes": 825,
                  "sha256": "e9cdd0e2b614c69fa0a95231f8518a080e01972e4855a55144bda7405e64dd5d"
                },
                "deal_products": {
                  "bytes": 4451,
                  "sha256": "cefbbe3183f1fc785aeec4c543bf9182f2e4d587ef62d8c0f2d95821e92189c6"
                },
                "deal_stages": {
                  "bytes": 225,
                  "sha256": "3ed8ae096ddc1ac190047b69431a8590d72a88bf231b41166a3908f919e1dabc"
                },
                "deals": {
                  "bytes": 5029,
                  "sha256": "a6517ccee17cbea8e75d0e2dea298cd8538e0c1091fe68b059df1c68c3bfaeda"
                },
                "industry_types": {
                  "bytes": 436,
                  "sha256": "9d467d807a06856103ca6f6af39e71c04f3cd6bec29996386fceeb62ce43afe7"
                },
                "invoice_lines": {
                  "bytes": 29393,
                  "sha256": "c5b44cd8056016b6af070b23c003f18871b9e3fdc064acc4ce54de6fc28cf4ac"
                },
                "invoices": {
                  "bytes": 19104,
                  "sha256": "d82c64e0ad0ded340382e3bddeaf9048d7880d2e742f8685afa8c403c4ff9941"
                },
                "kb_articles": {
                  "bytes": 918,
                  "sha256": "1c79830efe7b44d43e00ab26727113e1c023eea6aaafd3260470737437c9cf83"
                },
                "kb_categories": {
                  "bytes": 242,
                  "sha256": "b6f58a6a52fd533795f09eff203a967a05901ce61e95f66c17d1ca12408d534b"
                },
                "lead_sources": {
                  "bytes": 182,
                  "sha256": "d20fb80f186922654740adcd90a4458d78dba222452082c7ee4a39ce2afdde47"
                },
                "lead_statuses": {
                  "bytes": 130,
                  "sha256": "51a94210d81df515c5cb824f76a1d2aba773e79dc3b3ad6aa05c28a1f625e428"
                },
                "leads": {
                  "bytes": 10771,
                  "sha256": "ddd8e4998ffcbabb72773c003c82c4904073f56f184e2381b9cd68c1d0a48d7c"
                },
                "meeting_participants": {
                  "bytes": 839,
                  "sha256": "ffa01170e0b2dd657985e1e0d6ebfe1e12c67fc2f25ecdc3cf55b6960b8b4231"
                },
                "meetings": {
                  "bytes": 3394,
                  "sha256": "461ae68de0cec98db1a3875835e54e3ed564613e4198d7fea49f9e96fff0878c"
                },
                "payments": {
                  "bytes": 10776,
                  "sha256": "25fafc6663ea78e888229f368e8280e4ce8fcd2d196d075d21eb987ec24ac556"
                },
                "price_book_entries": {
                  "bytes": 4005,
                  "sha256": "11a85a592d6d9ddf8badefc964c5ced29418d5f77750e17cc015c6f61b31d4ea"
                },
                "price_books": {
                  "bytes": 133,
                  "sha256": "42efbbb804a322a3258176bdb758813b1a3e7e9505e4df07aab483a1922b578d"
                },
                "products": {
                  "bytes": 2971,
                  "sha256": "ecf6d46cee372f803d097340663d5a3aa530bf34b2eb37706df08350b84dfbf4"
                },
                "quote_line_items": {
                  "bytes": 3917,
                  "sha256": "476472784df7012ec5603d543ceb4bc8df1cd9844be0a91e92103cae4b09e435"
                },
                "quotes": {
                  "bytes": 4339,
                  "sha256": "3bd122f5cca8784507e4ee26010fef14d9c867187e8fe11aad2749dc31a10742"
                },
                "roles": {
                  "bytes": 197,
                  "sha256": "dcbf1c3acbd3edde2d1b8f8f7d94cf6fb7944bfcc3d3012d58c4e68e9d13a4f9"
                },
                "tasks": {
                  "bytes": 3699,
                  "sha256": "6665a81df35f60272728f77cbecbdb9144cd2cfb9e7cc7840bdb48c48b1eb5fd"
                },
                "territories": {
                  "bytes": 260,
                  "sha256": "eacecb31de085cb4246518848bc7e3613e760de13da143b33221531ed0d13db3"
                },
                "ticket_priorities": {
                  "bytes": 66,
                  "sha256": "316e2468fda17a11d681b64415fab41840ee33fc1b00cd35053ad1a1bdfbba58"
                },
                "ticket_statuses": {
                  "bytes": 104,
                  "sha256": "678b0a90224955406dd6fb55985e8d62d4857dfe06133cbb99bb88d8669906e7"
                },
                "tickets": {
                  "bytes": 4453,
                  "sha256": "f4ac40312c19bc462ea6ea0cd790c07a5b06cd0f3ea78e5acd89cce7092d0ba3"
                },
                "users": {
                  "bytes": 729,
                  "sha256": "c164d805034cd005f420600433283edcb26f6995fa6b2a4c1fe8d3706ad25dfa"
                }
              },
              "contentType": "application/zip"
            }
          ]
        }
      },
      "100k": {
        "rows": 264024,
        "counts": {
          "business_units": 5,
          "competitors": 15,
          "deal_stages": 7,
          "industry_types": 15,
          "kb_categories": 8,
          "lead_sources": 8,
          "lead_statuses": 6,
          "price_books": 3,
          "products": 60,
          "price_book_entries": 180,
          "roles": 6,
          "territories": 12,
          "ticket_priorities": 4,
          "ticket_statuses": 5,
          "users": 100,
          "accounts": 2000,
          "account_territories": 2500,
          "calls": 10000,
          "campaigns": 40,
          "contacts": 6000,
          "contracts": 3000,
          "deals": 8000,
          "deal_competitors": 3000,
          "deal_products": 20000,
          "invoices": 25000,
          "invoice_lines": 100000,
          "kb_articles": 50,
          "leads": 6000,
          "campaign_members": 8000,
          "meetings": 4000,
          "meeting_participants": 9000,
          "payments": 22000,
          "quotes": 6000,
          "quote_line_items": 18000,
          "tasks": 6000,
          "tickets": 5000
        },
        "notes": [],
        "downloads": [
          {
            "format": "sql-postgres",
            "label": "PostgreSQL",
            "file": "flagship/100k/postgres.sql.gz",
            "key": "datasets/crm-sample-database/v1/flagship/100k/postgres.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/flagship/100k/postgres.sql.gz",
            "bytes": 5149429,
            "sha256": "5adbea43fe47a62732c7278384725089277e9fab85c976a7fc8903205b1c5d84",
            "raw": {
              "bytes": 17760010,
              "sha256": "154707c371d0558a1ca57d2b1eb2a36a2b57072283b7a2cf3212ed88db1cb480"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "sql-mysql",
            "label": "MySQL",
            "file": "flagship/100k/mysql.sql.gz",
            "key": "datasets/crm-sample-database/v1/flagship/100k/mysql.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/flagship/100k/mysql.sql.gz",
            "bytes": 5147532,
            "sha256": "c6329a8a3e5c7fe4774425f6ae587ce9d1c9c5292296a5652e2c96db4577c3d5",
            "raw": {
              "bytes": 17755346,
              "sha256": "930082009bea9a767c3bddd8d55489bcf4ea698a9c7e0002c8c903ca437a85a2"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "sql-sqlite",
            "label": "SQLite",
            "file": "flagship/100k/sqlite.sql.gz",
            "key": "datasets/crm-sample-database/v1/flagship/100k/sqlite.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/flagship/100k/sqlite.sql.gz",
            "bytes": 5146863,
            "sha256": "fd6038179ab76ffe6b04fdd50521b195bd1cc7f413053b5712d031da3143b150",
            "raw": {
              "bytes": 17752180,
              "sha256": "87b536565af994d9c7d805969e814f73303bec878487a49abbcce30620f851ec"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "csv",
            "label": "CSV",
            "file": "flagship/100k/csv.zip",
            "key": "datasets/crm-sample-database/v1/flagship/100k/csv.zip",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/flagship/100k/csv.zip",
            "bytes": 5097524,
            "sha256": "9ef848bce92bc0c18a9d8b6247fa84655d1d3e92c51e87e51bb604351a4999d4",
            "tables": {
              "account_territories": {
                "bytes": 29347,
                "sha256": "a341c3eba5ec2ebddad255b821593fbe88c63a4af39cc3befa032c26479ceffd"
              },
              "accounts": {
                "bytes": 391906,
                "sha256": "c7f77942d8f343d497c6aabeec819ce9178ccb3c4421a003ac545db736642a76"
              },
              "business_units": {
                "bytes": 155,
                "sha256": "d456aa074ffc0582450fb40e73b3ff78dab289f8ebe03ce89f96ec6d13a01a52"
              },
              "calls": {
                "bytes": 789021,
                "sha256": "c2a9c029a6151d7c04ae4018dfad7fa6c2e3c885f48f1e4f6d5cf08dc629148b"
              },
              "campaign_members": {
                "bytes": 191138,
                "sha256": "05ff56cda8d74067e607b7473dfa49a319b50033d9e713df6b8d5737b92c29be"
              },
              "campaigns": {
                "bytes": 4011,
                "sha256": "d10d5db9e2745c9b9b6c361ce2a6abe2f086b2ecee4411442de5faf7285f4735"
              },
              "competitors": {
                "bytes": 1215,
                "sha256": "c5ee96a59c640ef6f04dc4b0d3869ea577b94547c76962991bbc38bc66f7a94b"
              },
              "contacts": {
                "bytes": 730980,
                "sha256": "4a611866e827279b66419f514cd41b19fe654f559df363456c0db5e1d928d7db"
              },
              "contracts": {
                "bytes": 172113,
                "sha256": "3a0a9ac55d987736f40cb95baeda7016f6b84834c5a6c149896b75352febc921"
              },
              "deal_competitors": {
                "bytes": 88208,
                "sha256": "df1582c96dc0f803c04acd8f3be90036355567e813d9175bda51ab4544b697f5"
              },
              "deal_products": {
                "bytes": 512019,
                "sha256": "b98ded869ad109519ceaf3c3c0925569fcf56e2e18c6d59517045fb56217824f"
              },
              "deal_stages": {
                "bytes": 238,
                "sha256": "869e72583ddfbe38e29ab8fc5a2d1def2bdd5b4ed78a7df217a3fb68566b899b"
              },
              "deals": {
                "bytes": 528718,
                "sha256": "2e86fd734ae03537d4da4278b54a1c691006f588929b8061e668878e80b965ea"
              },
              "industry_types": {
                "bytes": 437,
                "sha256": "1ab150674df3cb88c9d16fbd0cfb28db6e55e506a4be0ac0b5781df495dacd4c"
              },
              "invoice_lines": {
                "bytes": 3357079,
                "sha256": "2c74c55d8fc02dd121703d5afb31690f1c4c990046ac97c0b05c418791910d69"
              },
              "invoices": {
                "bytes": 2076199,
                "sha256": "e1e15d0a5f1244f0a6a29956352730f8c30a546aefb69fb8086cf5466ff84717"
              },
              "kb_articles": {
                "bytes": 4256,
                "sha256": "1350e74a015e07dce849c5c534e01b211f5405ce748d33a658b405a397c8629e"
              },
              "kb_categories": {
                "bytes": 243,
                "sha256": "f3caa88ce7427f16e458c33d6e7821b1e28052cfcb0a505dcc00a0e42ea5acd9"
              },
              "lead_sources": {
                "bytes": 185,
                "sha256": "c6daa82e16524b1618a55528e88b747bdc875347d0ab8989341ebbee285f68ff"
              },
              "lead_statuses": {
                "bytes": 130,
                "sha256": "51a94210d81df515c5cb824f76a1d2aba773e79dc3b3ad6aa05c28a1f625e428"
              },
              "leads": {
                "bytes": 1105806,
                "sha256": "83af2cd94b235604ec8c70951759a249265583361f6776279d7f009e15f630aa"
              },
              "meeting_participants": {
                "bytes": 131356,
                "sha256": "163b13ae08e11e8194680af904acdf0ce6771c20892fc90e44191586c8a4efc0"
              },
              "meetings": {
                "bytes": 349049,
                "sha256": "b9561bbd6aa8fba67760fa43d926c24672521990ddc334f8ea57124677e09f7c"
              },
              "payments": {
                "bytes": 1183830,
                "sha256": "8bf1c62e49f91fca3a93c62dfb274529edf35b7a4bbbaea107f99829efa5f5c6"
              },
              "price_book_entries": {
                "bytes": 4000,
                "sha256": "3a220768f222c34377059a083c6584b33710cb36ecec022fc4e25b4490aebfad"
              },
              "price_books": {
                "bytes": 131,
                "sha256": "44d38864bb43563a723dae5b7838157c6d1188af48e580a15957e1ee4493397b"
              },
              "products": {
                "bytes": 3047,
                "sha256": "557ac78c00dbf2c914d3a6a56412b90f7c54468f8ec58ee1f7df5503c240bbd2"
              },
              "quote_line_items": {
                "bytes": 458303,
                "sha256": "2857cb935ebfaf64f2a7cea1026a56b996eeba121249a4d9024683765bb66644"
              },
              "quotes": {
                "bytes": 454924,
                "sha256": "d407c5215caddcccec5ea1ffe2fffab458ff5e87ce3a98a694b1dbe96dca02c2"
              },
              "roles": {
                "bytes": 200,
                "sha256": "b252855d6f926da7d708835c5a89292746bcdf8c22130de6aa5c23a8ddd84aee"
              },
              "tasks": {
                "bytes": 390257,
                "sha256": "742d8c4cf772d5c65ef8861183acd871f1992fe68a032517e977901474bbd490"
              },
              "territories": {
                "bytes": 265,
                "sha256": "c27a244e3f15376d54b88abc6e53d6b4e0ca925000b3c7a1530681938c121364"
              },
              "ticket_priorities": {
                "bytes": 66,
                "sha256": "316e2468fda17a11d681b64415fab41840ee33fc1b00cd35053ad1a1bdfbba58"
              },
              "ticket_statuses": {
                "bytes": 104,
                "sha256": "678b0a90224955406dd6fb55985e8d62d4857dfe06133cbb99bb88d8669906e7"
              },
              "tickets": {
                "bytes": 469128,
                "sha256": "853ea67547c76517b64c06a254473b8b0a644b7a341cae23e3032289ad0244e0"
              },
              "users": {
                "bytes": 6969,
                "sha256": "4720edbb04696e6b14e301a6ca3f4903cd21d92125e32a5885724e0980de0dc2"
              }
            },
            "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 stage that is won is closed, and only closed-won is won",
            "violations": 0
          },
          {
            "name": "An invoice line is quantity times unit price, and an invoice its lines plus 8% tax",
            "violations": 0
          },
          {
            "name": "An invoice is due thirty days after it is issued",
            "violations": 0
          },
          {
            "name": "A payment settles its invoice in full, on or after the issue date",
            "violations": 0
          },
          {
            "name": "A quote and a deal are the sum of their lines",
            "violations": 0
          },
          {
            "name": "A campaign never spends more than its budget",
            "violations": 0
          },
          {
            "name": "Every contract runs exactly a year",
            "violations": 0
          },
          {
            "name": "A ticket is resolved after it is opened",
            "violations": 0
          }
        ],
        "dirty": {
          "report": {
            "rates": {
              "missing": 0.03,
              "typos": 0.03,
              "outliers": 0.005,
              "duplicates": 0.01
            },
            "tables": {
              "competitors": {
                "duplicates": 0,
                "columns": {
                  "name": {
                    "missing": 1,
                    "typos": 1,
                    "outliers": 0
                  },
                  "strengths": {
                    "missing": 0,
                    "typos": 1,
                    "outliers": 0
                  },
                  "weaknesses": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "deal_stages": {
                "duplicates": 0,
                "columns": {
                  "is_closed": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "is_won": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "industry_types": {
                "duplicates": 0,
                "columns": {
                  "description": {
                    "missing": 0,
                    "typos": 1,
                    "outliers": 0
                  },
                  "name": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "lead_sources": {
                "duplicates": 0,
                "columns": {
                  "name": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "lead_statuses": {
                "duplicates": 0,
                "columns": {
                  "name": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "price_books": {
                "duplicates": 0,
                "columns": {
                  "description": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "products": {
                "duplicates": 1,
                "columns": {
                  "active": {
                    "missing": 2,
                    "typos": 0,
                    "outliers": 0
                  },
                  "code": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "description": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "name": {
                    "missing": 5,
                    "typos": 2,
                    "outliers": 0
                  }
                }
              },
              "price_book_entries": {
                "duplicates": 3,
                "columns": {
                  "active": {
                    "missing": 9,
                    "typos": 0,
                    "outliers": 0
                  },
                  "unit_price": {
                    "missing": 5,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "territories": {
                "duplicates": 0,
                "columns": {
                  "description": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "name": {
                    "missing": 0,
                    "typos": 1,
                    "outliers": 0
                  }
                }
              },
              "ticket_statuses": {
                "duplicates": 0,
                "columns": {
                  "is_closed": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "users": {
                "duplicates": 0,
                "columns": {
                  "active": {
                    "missing": 4,
                    "typos": 0,
                    "outliers": 0
                  },
                  "email": {
                    "missing": 4,
                    "typos": 5,
                    "outliers": 0
                  },
                  "first_name": {
                    "missing": 3,
                    "typos": 2,
                    "outliers": 0
                  },
                  "last_name": {
                    "missing": 2,
                    "typos": 4,
                    "outliers": 0
                  },
                  "phone": {
                    "missing": 1,
                    "typos": 2,
                    "outliers": 0
                  }
                }
              },
              "accounts": {
                "duplicates": 21,
                "columns": {
                  "annual_revenue": {
                    "missing": 72,
                    "typos": 0,
                    "outliers": 5
                  },
                  "billing_city": {
                    "missing": 82,
                    "typos": 55,
                    "outliers": 0
                  },
                  "billing_country": {
                    "missing": 56,
                    "typos": 57,
                    "outliers": 0
                  },
                  "billing_postal_code": {
                    "missing": 57,
                    "typos": 19,
                    "outliers": 0
                  },
                  "billing_state": {
                    "missing": 83,
                    "typos": 76,
                    "outliers": 0
                  },
                  "billing_street": {
                    "missing": 74,
                    "typos": 63,
                    "outliers": 0
                  },
                  "employees_count": {
                    "missing": 54,
                    "typos": 0,
                    "outliers": 9
                  },
                  "name": {
                    "missing": 56,
                    "typos": 59,
                    "outliers": 0
                  },
                  "phone": {
                    "missing": 62,
                    "typos": 25,
                    "outliers": 0
                  },
                  "shipping_city": {
                    "missing": 63,
                    "typos": 69,
                    "outliers": 0
                  },
                  "shipping_country": {
                    "missing": 68,
                    "typos": 65,
                    "outliers": 0
                  },
                  "shipping_postal_code": {
                    "missing": 47,
                    "typos": 20,
                    "outliers": 0
                  },
                  "shipping_state": {
                    "missing": 59,
                    "typos": 66,
                    "outliers": 0
                  },
                  "shipping_street": {
                    "missing": 60,
                    "typos": 62,
                    "outliers": 0
                  },
                  "website": {
                    "missing": 49,
                    "typos": 71,
                    "outliers": 0
                  }
                }
              },
              "account_territories": {
                "duplicates": 20,
                "columns": {}
              },
              "calls": {
                "duplicates": 108,
                "columns": {
                  "description": {
                    "missing": 284,
                    "typos": 286,
                    "outliers": 0
                  },
                  "duration_seconds": {
                    "missing": 278,
                    "typos": 0,
                    "outliers": 44
                  },
                  "outcome": {
                    "missing": 331,
                    "typos": 280,
                    "outliers": 0
                  },
                  "start_time": {
                    "missing": 302,
                    "typos": 0,
                    "outliers": 0
                  },
                  "subject": {
                    "missing": 304,
                    "typos": 295,
                    "outliers": 0
                  }
                }
              },
              "campaigns": {
                "duplicates": 0,
                "columns": {
                  "actual_cost": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "budgeted_cost": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "end_date": {
                    "missing": 3,
                    "typos": 0,
                    "outliers": 0
                  },
                  "expected_revenue": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 2
                  },
                  "name": {
                    "missing": 1,
                    "typos": 1,
                    "outliers": 0
                  },
                  "start_date": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "status": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "type": {
                    "missing": 1,
                    "typos": 1,
                    "outliers": 0
                  }
                }
              },
              "contacts": {
                "duplicates": 59,
                "columns": {
                  "birth_date": {
                    "missing": 201,
                    "typos": 0,
                    "outliers": 0
                  },
                  "department": {
                    "missing": 173,
                    "typos": 165,
                    "outliers": 0
                  },
                  "email": {
                    "missing": 182,
                    "typos": 182,
                    "outliers": 0
                  },
                  "first_name": {
                    "missing": 186,
                    "typos": 181,
                    "outliers": 0
                  },
                  "job_title": {
                    "missing": 204,
                    "typos": 186,
                    "outliers": 0
                  },
                  "last_name": {
                    "missing": 180,
                    "typos": 154,
                    "outliers": 0
                  },
                  "mobile": {
                    "missing": 177,
                    "typos": 54,
                    "outliers": 0
                  },
                  "phone": {
                    "missing": 166,
                    "typos": 60,
                    "outliers": 0
                  }
                }
              },
              "contracts": {
                "duplicates": 20,
                "columns": {
                  "end_date": {
                    "missing": 97,
                    "typos": 0,
                    "outliers": 0
                  },
                  "number": {
                    "missing": 92,
                    "typos": 109,
                    "outliers": 0
                  },
                  "start_date": {
                    "missing": 102,
                    "typos": 0,
                    "outliers": 0
                  },
                  "status": {
                    "missing": 91,
                    "typos": 89,
                    "outliers": 0
                  },
                  "terms_months": {
                    "missing": 86,
                    "typos": 0,
                    "outliers": 19
                  }
                }
              },
              "deals": {
                "duplicates": 78,
                "columns": {
                  "amount": {
                    "missing": 224,
                    "typos": 0,
                    "outliers": 31
                  },
                  "close_date": {
                    "missing": 248,
                    "typos": 0,
                    "outliers": 0
                  },
                  "description": {
                    "missing": 257,
                    "typos": 223,
                    "outliers": 0
                  },
                  "name": {
                    "missing": 234,
                    "typos": 243,
                    "outliers": 0
                  }
                }
              },
              "deal_competitors": {
                "duplicates": 32,
                "columns": {
                  "notes": {
                    "missing": 100,
                    "typos": 86,
                    "outliers": 0
                  }
                }
              },
              "deal_products": {
                "duplicates": 220,
                "columns": {
                  "discount": {
                    "missing": 614,
                    "typos": 0,
                    "outliers": 0
                  },
                  "quantity": {
                    "missing": 589,
                    "typos": 0,
                    "outliers": 123
                  },
                  "sales_price": {
                    "missing": 657,
                    "typos": 0,
                    "outliers": 102
                  }
                }
              },
              "invoices": {
                "duplicates": 246,
                "columns": {
                  "due_date": {
                    "missing": 721,
                    "typos": 0,
                    "outliers": 0
                  },
                  "issue_date": {
                    "missing": 734,
                    "typos": 0,
                    "outliers": 0
                  },
                  "number": {
                    "missing": 788,
                    "typos": 780,
                    "outliers": 0
                  },
                  "status": {
                    "missing": 770,
                    "typos": 752,
                    "outliers": 0
                  },
                  "subtotal": {
                    "missing": 772,
                    "typos": 0,
                    "outliers": 121
                  },
                  "tax": {
                    "missing": 712,
                    "typos": 0,
                    "outliers": 111
                  },
                  "total_amount": {
                    "missing": 759,
                    "typos": 0,
                    "outliers": 148
                  }
                }
              },
              "invoice_lines": {
                "duplicates": 1005,
                "columns": {
                  "amount": {
                    "missing": 2931,
                    "typos": 0,
                    "outliers": 473
                  },
                  "quantity": {
                    "missing": 3003,
                    "typos": 0,
                    "outliers": 485
                  },
                  "unit_price": {
                    "missing": 3033,
                    "typos": 0,
                    "outliers": 503
                  }
                }
              },
              "kb_articles": {
                "duplicates": 1,
                "columns": {
                  "content": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "title": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "leads": {
                "duplicates": 45,
                "columns": {
                  "city": {
                    "missing": 179,
                    "typos": 180,
                    "outliers": 0
                  },
                  "company_name": {
                    "missing": 174,
                    "typos": 188,
                    "outliers": 0
                  },
                  "country": {
                    "missing": 179,
                    "typos": 164,
                    "outliers": 0
                  },
                  "email": {
                    "missing": 178,
                    "typos": 156,
                    "outliers": 0
                  },
                  "first_name": {
                    "missing": 196,
                    "typos": 195,
                    "outliers": 0
                  },
                  "last_name": {
                    "missing": 179,
                    "typos": 166,
                    "outliers": 0
                  },
                  "phone": {
                    "missing": 168,
                    "typos": 72,
                    "outliers": 0
                  },
                  "postal_code": {
                    "missing": 170,
                    "typos": 49,
                    "outliers": 0
                  },
                  "score": {
                    "missing": 168,
                    "typos": 0,
                    "outliers": 28
                  },
                  "state": {
                    "missing": 165,
                    "typos": 185,
                    "outliers": 0
                  },
                  "street": {
                    "missing": 187,
                    "typos": 188,
                    "outliers": 0
                  },
                  "title": {
                    "missing": 178,
                    "typos": 189,
                    "outliers": 0
                  },
                  "website": {
                    "missing": 186,
                    "typos": 188,
                    "outliers": 0
                  }
                }
              },
              "campaign_members": {
                "duplicates": 90,
                "columns": {
                  "status": {
                    "missing": 275,
                    "typos": 253,
                    "outliers": 0
                  }
                }
              },
              "meetings": {
                "duplicates": 39,
                "columns": {
                  "description": {
                    "missing": 115,
                    "typos": 122,
                    "outliers": 0
                  },
                  "end_time": {
                    "missing": 116,
                    "typos": 0,
                    "outliers": 0
                  },
                  "location": {
                    "missing": 119,
                    "typos": 121,
                    "outliers": 0
                  },
                  "start_time": {
                    "missing": 111,
                    "typos": 0,
                    "outliers": 0
                  },
                  "subject": {
                    "missing": 120,
                    "typos": 129,
                    "outliers": 0
                  }
                }
              },
              "meeting_participants": {
                "duplicates": 76,
                "columns": {}
              },
              "payments": {
                "duplicates": 209,
                "columns": {
                  "amount": {
                    "missing": 645,
                    "typos": 0,
                    "outliers": 109
                  },
                  "payment_date": {
                    "missing": 734,
                    "typos": 0,
                    "outliers": 0
                  },
                  "payment_method": {
                    "missing": 661,
                    "typos": 683,
                    "outliers": 0
                  },
                  "transaction_reference": {
                    "missing": 736,
                    "typos": 628,
                    "outliers": 0
                  }
                }
              },
              "quotes": {
                "duplicates": 61,
                "columns": {
                  "discount": {
                    "missing": 191,
                    "typos": 0,
                    "outliers": 38
                  },
                  "expiration_date": {
                    "missing": 187,
                    "typos": 0,
                    "outliers": 0
                  },
                  "grand_total": {
                    "missing": 193,
                    "typos": 0,
                    "outliers": 34
                  },
                  "name": {
                    "missing": 179,
                    "typos": 184,
                    "outliers": 0
                  },
                  "number": {
                    "missing": 185,
                    "typos": 130,
                    "outliers": 0
                  },
                  "subtotal": {
                    "missing": 169,
                    "typos": 0,
                    "outliers": 25
                  },
                  "tax": {
                    "missing": 185,
                    "typos": 0,
                    "outliers": 16
                  }
                }
              },
              "quote_line_items": {
                "duplicates": 183,
                "columns": {
                  "discount": {
                    "missing": 497,
                    "typos": 0,
                    "outliers": 0
                  },
                  "quantity": {
                    "missing": 532,
                    "typos": 0,
                    "outliers": 73
                  },
                  "unit_price": {
                    "missing": 527,
                    "typos": 0,
                    "outliers": 92
                  }
                }
              },
              "tasks": {
                "duplicates": 70,
                "columns": {
                  "description": {
                    "missing": 198,
                    "typos": 185,
                    "outliers": 0
                  },
                  "due_date": {
                    "missing": 203,
                    "typos": 0,
                    "outliers": 0
                  },
                  "priority": {
                    "missing": 182,
                    "typos": 158,
                    "outliers": 0
                  },
                  "status": {
                    "missing": 196,
                    "typos": 159,
                    "outliers": 0
                  },
                  "subject": {
                    "missing": 157,
                    "typos": 204,
                    "outliers": 0
                  }
                }
              },
              "tickets": {
                "duplicates": 42,
                "columns": {
                  "created_at": {
                    "missing": 160,
                    "typos": 0,
                    "outliers": 0
                  },
                  "description": {
                    "missing": 155,
                    "typos": 140,
                    "outliers": 0
                  },
                  "resolved_at": {
                    "missing": 144,
                    "typos": 0,
                    "outliers": 0
                  },
                  "subject": {
                    "missing": 179,
                    "typos": 138,
                    "outliers": 0
                  }
                }
              }
            },
            "totals": {
              "missing": 31941,
              "typos": 10007,
              "outliers": 2591,
              "duplicates": 2629
            }
          },
          "downloads": [
            {
              "format": "dirty-sql-postgres",
              "label": "PostgreSQL, with faults",
              "file": "flagship/100k/dirty-postgres.sql.gz",
              "key": "datasets/crm-sample-database/v1/flagship/100k/dirty-postgres.sql.gz",
              "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/flagship/100k/dirty-postgres.sql.gz",
              "bytes": 5202056,
              "sha256": "a462a09295f3db5f890208c656805c86164b63be1181ba87f3aafbd8d3bdc5ce",
              "raw": {
                "bytes": 17765274,
                "sha256": "f3058161a88ff73bfb65db4c057f35f032fbffe62919946b5b3cb75a2f58cacf"
              },
              "contentType": "application/gzip"
            },
            {
              "format": "dirty-csv",
              "label": "CSV, with faults",
              "file": "flagship/100k/dirty-csv.zip",
              "key": "datasets/crm-sample-database/v1/flagship/100k/dirty-csv.zip",
              "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/flagship/100k/dirty-csv.zip",
              "bytes": 5123485,
              "sha256": "45e1739fd0409a9d5ef43e561b6eb744f9a0a670fc7023d8aa3e95c84265b51a",
              "tables": {
                "account_territories": {
                  "bytes": 29594,
                  "sha256": "15ffcd7d674c8afdf068c6ef7dc71a5f058c0bb4beefef914d2add91f87166b6"
                },
                "accounts": {
                  "bytes": 386288,
                  "sha256": "d7192b7142cb56c49bf460a906b919104fdeb7aff7d73596620e05cb7a436b7d"
                },
                "business_units": {
                  "bytes": 155,
                  "sha256": "d456aa074ffc0582450fb40e73b3ff78dab289f8ebe03ce89f96ec6d13a01a52"
                },
                "calls": {
                  "bytes": 779020,
                  "sha256": "1978b589b2d1aefd08f5a44a30bd78ad65b5ada1d60e5f783182ba326ad9f429"
                },
                "campaign_members": {
                  "bytes": 192173,
                  "sha256": "38114acdbceedea82ff858886ed730248c3eff69ef882763417a42e797b1ff08"
                },
                "campaigns": {
                  "bytes": 3912,
                  "sha256": "7fe60fe59409d1f681831fe71491a17c59d41ca7eca3d982468efcce69723c50"
                },
                "competitors": {
                  "bytes": 1176,
                  "sha256": "01da16410ffe5e380cc1b8476ba8807753da4c6a448daa16dc076e834c680f8e"
                },
                "contacts": {
                  "bytes": 720831,
                  "sha256": "a6a39c8f3f0cf50af759b6f584f6f9f9438cafc0c9c00ec34bb8580927a9b7c5"
                },
                "contracts": {
                  "bytes": 169655,
                  "sha256": "e4e11af182da3386917bac7780816673c05f0db23a35544fb3c1e937da72ed15"
                },
                "deal_competitors": {
                  "bytes": 87707,
                  "sha256": "3ffdd2b7d60613810dd81e2d0db10137b01a3a76a28aca941c43746b0775d3e0"
                },
                "deal_products": {
                  "bytes": 512135,
                  "sha256": "dbf46e623c819aabcd7d41fa4a28d4dcd3cd78ff496a80d7cd211946d2bf4cfb"
                },
                "deal_stages": {
                  "bytes": 229,
                  "sha256": "66f0d4aba6a42b44786512f5ea405bfa87543ffd6c824398d1b58a48e3222cef"
                },
                "deals": {
                  "bytes": 523187,
                  "sha256": "264721f62d1952a5c3d61613409411b95a932a46efeac4083cdd58ef54211ad1"
                },
                "industry_types": {
                  "bytes": 430,
                  "sha256": "1cb9bef1e7599e555760521d502b3c3e9205ce00cb5459330772f4974ef62f2d"
                },
                "invoice_lines": {
                  "bytes": 3346719,
                  "sha256": "9c66aeea978d28cd6a7aff5613366f0e78efab5ac1321760f278bd57146b44aa"
                },
                "invoices": {
                  "bytes": 2051907,
                  "sha256": "c557117d82aeb3ff1e67f18df14d8e48bd8ddb3959147533f330f26e6d3948a6"
                },
                "kb_articles": {
                  "bytes": 4288,
                  "sha256": "2bca68b571a4346daeb4a5de0bd8bd0a1ea264af6d3f68f051c01bfc7da886b0"
                },
                "kb_categories": {
                  "bytes": 243,
                  "sha256": "f3caa88ce7427f16e458c33d6e7821b1e28052cfcb0a505dcc00a0e42ea5acd9"
                },
                "lead_sources": {
                  "bytes": 174,
                  "sha256": "3a17ae460debdb279e9d65095f22af22017e2305b48f4962cd9d46d09c0d3056"
                },
                "lead_statuses": {
                  "bytes": 118,
                  "sha256": "1bb2c649ba073cff2d27724ef368ec08526888840edb84f1df7453c518197cec"
                },
                "leads": {
                  "bytes": 1087774,
                  "sha256": "5f8deaa4d6fff5f1d0661dcf7fb3c6e22c5032a8f5abcb63c1d6d4b2ca83fac5"
                },
                "meeting_participants": {
                  "bytes": 132484,
                  "sha256": "f066394b539ffed6b542d5107c706ce6a147b4a7009e59f15eebb06c4b028b16"
                },
                "meetings": {
                  "bytes": 344277,
                  "sha256": "58fb4c05a3f7d26d62b31d9bfc7a31e4538e4986abcdcf7e5799873a008a626a"
                },
                "payments": {
                  "bytes": 1169906,
                  "sha256": "7a9425cd41a695c9d57c7c82545ae169d3ff75564c6b81e98238d77544b6d458"
                },
                "price_book_entries": {
                  "bytes": 3998,
                  "sha256": "cd93e0346dedc0dfaf10acc9f154fdadd25d8f51a365827a53a92545bca9cfdc"
                },
                "price_books": {
                  "bytes": 120,
                  "sha256": "1d50a070d4a884fa0509eb14d3aff275351caadd3f95786f40b922347f6440d4"
                },
                "products": {
                  "bytes": 2982,
                  "sha256": "5ed96c3ed8f7085148cab4d20f13b51b8d2c8091114991cdea5873380e6ee0ed"
                },
                "quote_line_items": {
                  "bytes": 458466,
                  "sha256": "d7fe91b9ebdca4de4da71ac980f442905163be89e62dc7a4e3b65d9ff4902db5"
                },
                "quotes": {
                  "bytes": 449525,
                  "sha256": "f009ce430034989515d72abf01ab0ecf9e97d4c9cccc785485a25fad9bfb7f05"
                },
                "roles": {
                  "bytes": 200,
                  "sha256": "b252855d6f926da7d708835c5a89292746bcdf8c22130de6aa5c23a8ddd84aee"
                },
                "tasks": {
                  "bytes": 386102,
                  "sha256": "ecb5d0fbdf87f7e8b00a4969690811cda70fa5046a5d568db6f7ce64cae44a5d"
                },
                "territories": {
                  "bytes": 259,
                  "sha256": "720c7d8f1ce0ffe19cc305d21d52c9f31bfa7bb4da3ec78c391ee4d68c6ceb55"
                },
                "ticket_priorities": {
                  "bytes": 66,
                  "sha256": "316e2468fda17a11d681b64415fab41840ee33fc1b00cd35053ad1a1bdfbba58"
                },
                "ticket_statuses": {
                  "bytes": 99,
                  "sha256": "2cda28c70cf930961c3f1e0106cb1ef6907e0b190088520c61a3acd2bf827965"
                },
                "tickets": {
                  "bytes": 462063,
                  "sha256": "51c66053845d41122a10ae248270192ae77d10b79630627aaccef538f73e8033"
                },
                "users": {
                  "bytes": 6821,
                  "sha256": "fd8c5a7262c336b6c90748139c29f33630aafa03c2f8a4ca5fbdd5d8fa895d5b"
                }
              },
              "contentType": "application/zip"
            }
          ]
        }
      },
      "1m": {
        "rows": 2636874,
        "counts": {
          "business_units": 5,
          "competitors": 15,
          "deal_stages": 7,
          "industry_types": 15,
          "kb_categories": 8,
          "lead_sources": 8,
          "lead_statuses": 6,
          "price_books": 3,
          "products": 60,
          "price_book_entries": 180,
          "roles": 6,
          "territories": 12,
          "ticket_priorities": 4,
          "ticket_statuses": 5,
          "users": 1000,
          "accounts": 20000,
          "account_territories": 25000,
          "calls": 100000,
          "campaigns": 40,
          "contacts": 60000,
          "contracts": 30000,
          "deals": 80000,
          "deal_competitors": 30000,
          "deal_products": 200000,
          "invoices": 250000,
          "invoice_lines": 1000000,
          "kb_articles": 500,
          "leads": 60000,
          "campaign_members": 80000,
          "meetings": 40000,
          "meeting_participants": 90000,
          "payments": 220000,
          "quotes": 60000,
          "quote_line_items": 180000,
          "tasks": 60000,
          "tickets": 50000
        },
        "notes": [],
        "downloads": [
          {
            "format": "sql-postgres",
            "label": "PostgreSQL",
            "file": "flagship/1m/postgres.sql.gz",
            "key": "datasets/crm-sample-database/v1/flagship/1m/postgres.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/flagship/1m/postgres.sql.gz",
            "bytes": 53288833,
            "sha256": "6eff918ebc8d4272eac8b022075e604a8dc3baa21b68bfe15e01ec48e28a4dc3",
            "raw": {
              "bytes": 183151576,
              "sha256": "0f460deff30dbda5faf7098f9b8bd1177d938028f0375b331fa62e4062023139"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "sql-mysql",
            "label": "MySQL",
            "file": "flagship/1m/mysql.sql.gz",
            "key": "datasets/crm-sample-database/v1/flagship/1m/mysql.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/flagship/1m/mysql.sql.gz",
            "bytes": 53286470,
            "sha256": "9f1ea3bdb303f843d151665fab28f62e7155e05a605f303747252964465db0bb",
            "raw": {
              "bytes": 183144132,
              "sha256": "fb7b4a31c9258249cf9821a2381900a021e01cfc829588126c80845a84a49e04"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "sql-sqlite",
            "label": "SQLite",
            "file": "flagship/1m/sqlite.sql.gz",
            "key": "datasets/crm-sample-database/v1/flagship/1m/sqlite.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/flagship/1m/sqlite.sql.gz",
            "bytes": 53285898,
            "sha256": "c3a0562b5a728cade7a5bff9b16ea18766962b6aadb8d2285e69f61398c86fc7",
            "raw": {
              "bytes": 183140966,
              "sha256": "4efc95c0325a25371aef713c87d24ec6527b8630e462c008eec179057914bd36"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "csv",
            "label": "CSV",
            "file": "flagship/1m/csv.zip",
            "key": "datasets/crm-sample-database/v1/flagship/1m/csv.zip",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crm-sample-database/v1/flagship/1m/csv.zip",
            "bytes": 53094628,
            "sha256": "775dd232dd2966f5fd21f0a7febf426b89dd216713c6a4c706d3967a582a8181",
            "tables": {
              "account_territories": {
                "bytes": 341615,
                "sha256": "17f3d00de33e93d7ef29fae681f01b54bdbc426f5d1336b6cb3334b8af5eabcc"
              },
              "accounts": {
                "bytes": 3950111,
                "sha256": "7c7042ceaf92ce7a2465b4c05d514572cd8f62e8f7d04212509be085754fb364"
              },
              "business_units": {
                "bytes": 151,
                "sha256": "74af369ca876427cb27169b8c83e2dc38e4f4a60e4b6473e8f1a878d772c61c8"
              },
              "calls": {
                "bytes": 8079746,
                "sha256": "32e430c7c94f597c32b83814aa41736ae83c23096d4f2477d03cb726dfff40e2"
              },
              "campaign_members": {
                "bytes": 2148863,
                "sha256": "790dc9e71b706e6292264f3411d399380e8354e52ae4fcfa08147087d60b4c12"
              },
              "campaigns": {
                "bytes": 4110,
                "sha256": "5d6fc946542d2fec2ef804d4a1446363487de06ceb033f1e1699297b8c563493"
              },
              "competitors": {
                "bytes": 1212,
                "sha256": "fda38f9201f3ceb254dfe7cd33b2282b97c89e4969fb039bbdcb4b5a94114c50"
              },
              "contacts": {
                "bytes": 7495446,
                "sha256": "b2bedc888f47686c4bff17086e724b048ac71cc4d193edaa1f5186f688b0a8b4"
              },
              "contracts": {
                "bytes": 1805999,
                "sha256": "713ebc227c264b9a1599d15217d6e7a5f7a587562422430150f2639fdd0647b9"
              },
              "deal_competitors": {
                "bytes": 941941,
                "sha256": "ecfebe28f47b741b44a2d7cd33cdf6587da3a7e55f7d494348962e25d0d6eeb2"
              },
              "deal_products": {
                "bytes": 5517293,
                "sha256": "9a95ac02162a21f05c45ebca8315014d31c075253af5276586e3f1e7c8385465"
              },
              "deal_stages": {
                "bytes": 238,
                "sha256": "869e72583ddfbe38e29ab8fc5a2d1def2bdd5b4ed78a7df217a3fb68566b899b"
              },
              "deals": {
                "bytes": 5518615,
                "sha256": "6f56553c96ea011b488d3b43b847da35c8578f5fb4e4d2889f9938c324b21d89"
              },
              "industry_types": {
                "bytes": 437,
                "sha256": "031feb809f8faab8641bfb865b795be64098c80f679977f747ff509297bb12dd"
              },
              "invoice_lines": {
                "bytes": 35563688,
                "sha256": "ce272329b9d0079a4e1d982c6dbd9b30f138990c7d8f73344aa4a239690e5b43"
              },
              "invoices": {
                "bytes": 21506712,
                "sha256": "420a6fff7fd2d65219441afc9c2ddced0eefb05b7fb42b44aff5b21e5badd43d"
              },
              "kb_articles": {
                "bytes": 44549,
                "sha256": "c5d7c93edecb470f9b080bbc31448a9d096cb215f89635edf602ee7a464285b4"
              },
              "kb_categories": {
                "bytes": 246,
                "sha256": "154bb631ef47983c663e0946ea93a21bcfca979ed51a1098f5d37228e94064b3"
              },
              "lead_sources": {
                "bytes": 184,
                "sha256": "7470448af95999069be5bf4f8e8a10308aa8020760d75f6ba13fc0feb0cc4148"
              },
              "lead_statuses": {
                "bytes": 130,
                "sha256": "51a94210d81df515c5cb824f76a1d2aba773e79dc3b3ad6aa05c28a1f625e428"
              },
              "leads": {
                "bytes": 11194227,
                "sha256": "28be5393a1ee84f0737bb44c2bd449816ea8b60f93c49f8b5843805e99056693"
              },
              "meeting_participants": {
                "bytes": 1580646,
                "sha256": "bf97dce38840a893f1fec94a3871493956d900f05bd5f470a32cc87b6b71d58d"
              },
              "meetings": {
                "bytes": 3569772,
                "sha256": "cc8605596005c076eab71248f89f6e0bac0e7e893f2b6516373e03e493081945"
              },
              "payments": {
                "bytes": 12281158,
                "sha256": "fc7f8d5671fbd7dab31aaa66795c2f05481fd7c5b3764c4d444f239de63c3d0e"
              },
              "price_book_entries": {
                "bytes": 4035,
                "sha256": "73574a575713cf85def40ee3f5f2cf1dfaf208e2fbe813b2c0b18791bc8c538c"
              },
              "price_books": {
                "bytes": 134,
                "sha256": "e1bc23fbc5961ddbff6f1ba215237007e35ec79a6cee6bfc083cfcdb9985e5b4"
              },
              "products": {
                "bytes": 2890,
                "sha256": "4eb9efd163e718b6daa60d7bada1d24285c12077fb3fe90f8ac6c9613740ea97"
              },
              "quote_line_items": {
                "bytes": 4941709,
                "sha256": "d3d97578f82b1a84127ed027c40236c9205437492f67c0d35a68e7c19d97bfb6"
              },
              "quotes": {
                "bytes": 4722585,
                "sha256": "6ec0eadd2379a755fd706559dff1fa69979eb8c44e0774c3ddd1e8b03a43bc4f"
              },
              "roles": {
                "bytes": 206,
                "sha256": "6661ff4f6baef85575913ec5550dd0d5d2d3c2413fef6c27fda431605ef4ff4e"
              },
              "tasks": {
                "bytes": 4020034,
                "sha256": "3a1f5bf471cbfad2708f322b67baecd96acbb4166f99df8ea0b10bafd86711ed"
              },
              "territories": {
                "bytes": 248,
                "sha256": "e5501761c5ecf90548ca78232592eb7e26be2d9d5cf81f6b4e1c536cad79ddb3"
              },
              "ticket_priorities": {
                "bytes": 66,
                "sha256": "316e2468fda17a11d681b64415fab41840ee33fc1b00cd35053ad1a1bdfbba58"
              },
              "ticket_statuses": {
                "bytes": 104,
                "sha256": "678b0a90224955406dd6fb55985e8d62d4857dfe06133cbb99bb88d8669906e7"
              },
              "tickets": {
                "bytes": 4878034,
                "sha256": "9a9c7dd97842715eb6e98ec3a2bb89c996b82f32956f07fd06f60e328da7b9cf"
              },
              "users": {
                "bytes": 70475,
                "sha256": "069c859bf1430c2529a610259cc9cf1e21295f6cce33521a7688c8c0d9c00211"
              }
            },
            "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 stage that is won is closed, and only closed-won is won",
            "violations": 0
          },
          {
            "name": "An invoice line is quantity times unit price, and an invoice its lines plus 8% tax",
            "violations": 0
          },
          {
            "name": "An invoice is due thirty days after it is issued",
            "violations": 0
          },
          {
            "name": "A payment settles its invoice in full, on or after the issue date",
            "violations": 0
          },
          {
            "name": "A quote and a deal are the sum of their lines",
            "violations": 0
          },
          {
            "name": "A campaign never spends more than its budget",
            "violations": 0
          },
          {
            "name": "Every contract runs exactly a year",
            "violations": 0
          },
          {
            "name": "A ticket is resolved after it is opened",
            "violations": 0
          }
        ]
      }
    },
    "rules": [
      {
        "name": "A stage that is won is closed, and only closed-won is won",
        "sql": "SELECT count(*) AS violations FROM deal_stages WHERE (is_won AND NOT is_closed) OR (is_won <> (name = 'closed_won'))"
      },
      {
        "name": "An invoice line is quantity times unit price, and an invoice its lines plus 8% tax",
        "sql": "SELECT count(*) AS violations FROM invoices i LEFT JOIN (SELECT invoice_id, sum(amount) AS lines, sum(CASE WHEN amount <> round(quantity * unit_price, 2) THEN 1 ELSE 0 END) AS bad FROM invoice_lines GROUP BY invoice_id) l ON l.invoice_id = i.id WHERE i.subtotal <> COALESCE(l.lines, 0) OR i.tax <> round(i.subtotal * 0.08, 2) OR i.total_amount <> i.subtotal + i.tax OR COALESCE(l.bad, 0) > 0"
      },
      {
        "name": "An invoice is due thirty days after it is issued",
        "sql": "SELECT count(*) AS violations FROM invoices WHERE due_date - issue_date <> 30"
      },
      {
        "name": "A payment settles its invoice in full, on or after the issue date",
        "sql": "SELECT count(*) AS violations FROM payments p JOIN invoices i ON i.id = p.invoice_id WHERE p.amount <> i.total_amount OR p.payment_date < i.issue_date"
      },
      {
        "name": "A quote and a deal are the sum of their lines",
        "sql": "SELECT (SELECT count(*) FROM quotes q LEFT JOIN (SELECT quote_id, sum(round(quantity * unit_price, 2)) AS lines FROM quote_line_items GROUP BY quote_id) l ON l.quote_id = q.id WHERE q.subtotal <> COALESCE(l.lines, 0) OR q.grand_total <> q.subtotal - q.discount + q.tax) + (SELECT count(*) FROM deals d LEFT JOIN (SELECT deal_id, sum(round(quantity * sales_price, 2)) AS lines FROM deal_products GROUP BY deal_id) l ON l.deal_id = d.id WHERE d.amount <> COALESCE(l.lines, 0)) AS violations"
      },
      {
        "name": "A campaign never spends more than its budget",
        "sql": "SELECT count(*) AS violations FROM campaigns WHERE actual_cost > budgeted_cost"
      },
      {
        "name": "Every contract runs exactly a year",
        "sql": "SELECT count(*) AS violations FROM contracts WHERE end_date <> start_date + interval '365 days' OR terms_months <> 12"
      },
      {
        "name": "A ticket is resolved after it is opened",
        "sql": "SELECT count(*) AS violations FROM tickets WHERE resolved_at < created_at"
      }
    ]
  },
  "publishedAt": 1791328137854,
  "updatedAt": 1791328137854
}
