{
  "format": "dataset-manifest/1",
  "slug": "insurance-sample-database",
  "version": 1,
  "seed": "flagship:insurance-sample-database:1k",
  "engine": 2,
  "engineVersion": "1.0.0",
  "spec": {
    "format": "dataset/1",
    "engine": 2,
    "slug": "insurance-sample-database",
    "name": "Insurance sample database",
    "tagline": "Policies on five lines of cover, monthly premium invoices and payments, agent commissions, claims and their payouts.",
    "description": "An insurer’s book from 2023 to 2025: customers holding auto, home, life, health and travel policies sold by agents in agency branches, about a year of premium installments and the payments that settle them, the selling agent’s commission, and claims from report to assessment to payout. The figures obey the policy: a premium is at least its plan’s minimum and a coverage at most its maximum, an installment bills the monthly premium and a payment pays it in full within its thirty days, a commission is the agent’s rate on a payment of the policy they sold. A claim’s incident falls inside the policy term and its estimate inside the coverage; only an approved claim is paid, its payout what the assessment approved less the deductible. An insured vehicle is always on an auto policy, a property on a home policy and a beneficiary on a life policy.",
    "domain": "insurance",
    "shape": "transactional",
    "useCases": [
      "sql-practice",
      "analytics-demo",
      "test-fixtures"
    ],
    "keywords": [
      "insurance",
      "policies",
      "claims",
      "premiums",
      "sample database"
    ],
    "locale": "en_US",
    "license": "CC0-1.0",
    "version": 1,
    "seed": "flagship:insurance-sample-database",
    "tables": {
      "addresses": {
        "description": "Rows for the addresses table.",
        "rows": 65,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "city": {
            "kind": "place.city"
          },
          "country": {
            "kind": "constant",
            "value": "United States"
          },
          "postal_code": {
            "kind": "place.postcode"
          },
          "state": {
            "kind": "place.regionCode"
          },
          "street": {
            "kind": "location.streetAddress"
          }
        }
      },
      "adjusters": {
        "description": "Rows for the adjusters table.",
        "rows": 60,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "company_id": {
            "kind": "fk",
            "ref": "companies.id",
            "skew": "flat"
          },
          "email": {
            "kind": "internet.email",
            "from": {
              "firstName": "first_name",
              "lastName": "last_name"
            },
            "unique": true
          },
          "first_name": {
            "kind": "person.firstName"
          },
          "last_name": {
            "kind": "person.lastName"
          },
          "license_number": {
            "kind": "pattern",
            "pattern": "[ADJ-]######",
            "unique": true,
            "description": "A made-up adjuster licence number."
          },
          "phone": {
            "kind": "phone.number"
          }
        }
      },
      "agencies": {
        "description": "Rows for the agencies table.",
        "rows": 12,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "address_id": {
            "kind": "fk",
            "ref": "addresses.id",
            "skew": "long-tail"
          },
          "email": {
            "kind": "internet.email"
          },
          "license_number": {
            "kind": "pattern",
            "pattern": "[AG-]######",
            "unique": true,
            "description": "A made-up agency licence number."
          },
          "name": {
            "kind": "company.name",
            "unique": true
          },
          "phone": {
            "kind": "phone.number"
          }
        }
      },
      "agents": {
        "description": "Rows for the agents table.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "branch_id": {
            "kind": "fk",
            "ref": "branches.id",
            "skew": "flat"
          },
          "email": {
            "kind": "internet.email",
            "from": {
              "firstName": "first_name",
              "lastName": "last_name"
            },
            "unique": true
          },
          "first_name": {
            "kind": "person.firstName"
          },
          "hire_date": {
            "kind": "date",
            "from": "2010-01-01",
            "to": "2022-12-31"
          },
          "last_name": {
            "kind": "person.lastName"
          },
          "license_number": {
            "kind": "pattern",
            "pattern": "[LIC-]#######",
            "unique": true,
            "description": "A made-up producer licence number."
          },
          "phone": {
            "kind": "phone.number"
          }
        }
      },
      "beneficiaries": {
        "description": "Rows for the beneficiaries table.",
        "rows": 20,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "first_name": {
            "kind": "person.firstName"
          },
          "last_name": {
            "kind": "person.lastName"
          },
          "percentage": {
            "kind": "constant",
            "value": 100
          },
          "phone": {
            "kind": "phone.number"
          },
          "policy_id": {
            "kind": "fk",
            "ref": "policies.id"
          },
          "relationship": {
            "kind": "enum",
            "values": [
              "Spouse",
              "Child",
              "Parent",
              "Sibling",
              "Partner"
            ],
            "weights": [
              45,
              30,
              10,
              8,
              7
            ]
          }
        }
      },
      "branches": {
        "description": "Rows for the branches table.",
        "rows": 40,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "address_id": {
            "kind": "fk",
            "ref": "addresses.id",
            "skew": "long-tail"
          },
          "agency_id": {
            "kind": "fk",
            "ref": "agencies.id",
            "skew": "flat"
          },
          "name": {
            "kind": "enum",
            "values": [
              "Downtown",
              "Northside",
              "Westfield",
              "Riverside",
              "Eastgate",
              "Midtown",
              "Lakeview"
            ]
          },
          "phone": {
            "kind": "phone.number"
          }
        }
      },
      "claim_assessments": {
        "description": "Rows for the claim_assessments table.",
        "rows": 20,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "adjuster_id": {
            "kind": "fk",
            "ref": "adjusters.id"
          },
          "approved": {
            "kind": "decimal",
            "min": 0,
            "max": 15790,
            "scale": 2
          },
          "claim_id": {
            "kind": "fk",
            "ref": "claims.id",
            "unique": true
          },
          "date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2026-03-31"
          },
          "deductible": {
            "kind": "decimal",
            "min": 0,
            "max": 1000,
            "scale": 2
          },
          "notes": {
            "kind": "enum",
            "values": [
              "Photos reviewed",
              "Repair estimate obtained",
              "Medical records received",
              "Site visit completed",
              "Police report on file"
            ]
          },
          "status": {
            "kind": "enum",
            "values": [
              "approved",
              "denied",
              "pending"
            ]
          }
        }
      },
      "claim_documents": {
        "description": "Rows for the claim_documents table.",
        "rows": 30,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "claim_id": {
            "kind": "fk",
            "ref": "claims.id",
            "skew": "flat"
          },
          "file_path": {
            "kind": "pattern",
            "pattern": "[claims/]xxxxxxxxxxxx[.pdf]"
          },
          "name": {
            "kind": "enum",
            "values": [
              "Photos of damage",
              "Police report",
              "Repair estimate",
              "Medical bill",
              "Receipt"
            ]
          },
          "type": {
            "kind": "enum",
            "values": [
              "pdf",
              "jpg",
              "png"
            ],
            "weights": [
              55,
              35,
              10
            ]
          },
          "upload_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2026-03-31"
          }
        }
      },
      "claim_payments": {
        "description": "Rows for the claim_payments table.",
        "rows": 10,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "amount": {
            "kind": "decimal",
            "min": 0,
            "max": 15293,
            "scale": 2
          },
          "claim_id": {
            "kind": "fk",
            "ref": "claims.id",
            "unique": true
          },
          "date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2026-06-30"
          },
          "method": {
            "kind": "enum",
            "values": [
              "bank transfer",
              "check"
            ],
            "weights": [
              85,
              15
            ]
          },
          "recipient": {
            "kind": "enum",
            "values": [
              "Policyholder"
            ]
          }
        }
      },
      "claims": {
        "description": "Rows for the claims table.",
        "rows": 20,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "description": {
            "kind": "enum",
            "values": [
              "Rear-end collision",
              "Water damage from a burst pipe",
              "Theft from vehicle",
              "Hospital admission",
              "Storm damage to roof",
              "Trip cancelled for illness",
              "Windshield crack",
              "Kitchen fire",
              "Emergency room visit",
              "Lost luggage"
            ]
          },
          "estimated_loss": {
            "kind": "decimal",
            "min": 0,
            "max": 56925,
            "scale": 2,
            "distribution": "long-tail"
          },
          "incident_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2025-12-31"
          },
          "number": {
            "kind": "pattern",
            "pattern": "[CLM-]#########",
            "unique": true
          },
          "policy_id": {
            "kind": "fk",
            "ref": "policies.id"
          },
          "report_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2026-01-31"
          },
          "status": {
            "kind": "enum",
            "values": [
              "approved",
              "denied",
              "under review"
            ],
            "weights": [
              72,
              15,
              13
            ]
          }
        }
      },
      "commissions": {
        "description": "Rows for the commissions table.",
        "rows": 80,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "agent_id": {
            "kind": "fk",
            "ref": "agents.id"
          },
          "amount": {
            "kind": "decimal",
            "min": 0,
            "max": 119,
            "scale": 2,
            "nullable": true,
            "nullRate": 0
          },
          "date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2026-01-31",
            "nullable": true,
            "nullRate": 0
          },
          "payment_id": {
            "kind": "fk",
            "ref": "payments.id",
            "nullable": true,
            "nullRate": 0
          },
          "policy_id": {
            "kind": "fk",
            "ref": "policies.id",
            "unique": true
          },
          "rate": {
            "kind": "int",
            "min": 5,
            "max": 15
          },
          "status": {
            "kind": "enum",
            "values": [
              "paid",
              "pending"
            ],
            "weights": [
              92,
              8
            ]
          }
        }
      },
      "companies": {
        "description": "Rows for the companies table.",
        "rows": 6,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "email": {
            "kind": "internet.email"
          },
          "name": {
            "kind": "enum",
            "values": [
              "Harborline Mutual",
              "Crestview Assurance",
              "Northgate Insurance Group",
              "Bluepeak Underwriters",
              "Summit Ridge Casualty",
              "Lakeshore Life"
            ],
            "unique": true
          },
          "phone": {
            "kind": "phone.number"
          },
          "tax_identifier": {
            "kind": "pattern",
            "pattern": "##-#######",
            "unique": true,
            "description": "A made-up employer identification number in the ##-####### format."
          },
          "website": {
            "kind": "internet.url"
          }
        }
      },
      "customer_support_tickets": {
        "description": "Rows for the customer_support_tickets table.",
        "rows": 10,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "agent_id": {
            "kind": "fk",
            "ref": "agents.id"
          },
          "customer_id": {
            "kind": "fk",
            "ref": "customers.id"
          },
          "date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2025-12-31",
            "dayProfile": "business"
          },
          "description": {
            "kind": "enum",
            "values": [
              "Customer called in",
              "Sent through the portal",
              "Emailed the branch",
              "Asked in person"
            ]
          },
          "status": {
            "kind": "enum",
            "values": [
              "resolved",
              "closed",
              "open"
            ],
            "weights": [
              70,
              25,
              5
            ]
          },
          "subject": {
            "kind": "enum",
            "values": [
              "Update my address",
              "Question about my bill",
              "Add a driver",
              "Claim status",
              "Cancel my policy",
              "Proof of insurance"
            ]
          }
        }
      },
      "customers": {
        "description": "Rows for the customers table.",
        "rows": 60,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "address_id": {
            "kind": "fk",
            "ref": "addresses.id",
            "unique": true
          },
          "date_of_birth": {
            "kind": "date",
            "from": "1945-01-01",
            "to": "2004-12-31"
          },
          "email": {
            "kind": "internet.email",
            "from": {
              "firstName": "first_name",
              "lastName": "last_name"
            },
            "unique": true
          },
          "first_name": {
            "kind": "person.firstName"
          },
          "gender": {
            "kind": "enum",
            "values": [
              "female",
              "male",
              "non-binary"
            ],
            "weights": [
              49,
              49,
              2
            ]
          },
          "last_name": {
            "kind": "person.lastName"
          },
          "phone": {
            "kind": "phone.number"
          }
        }
      },
      "documents": {
        "description": "Rows for the documents table.",
        "rows": 40,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "customer_id": {
            "kind": "fk",
            "ref": "customers.id"
          },
          "file_path": {
            "kind": "pattern",
            "pattern": "[documents/]xxxxxxxxxxxx[.pdf]"
          },
          "name": {
            "kind": "enum",
            "values": [
              "Policy schedule",
              "Declarations page",
              "Signed application",
              "ID card",
              "Proof of address"
            ]
          },
          "policy_id": {
            "kind": "fk",
            "ref": "policies.id",
            "skew": "flat"
          },
          "type": {
            "kind": "enum",
            "values": [
              "pdf",
              "jpg",
              "png"
            ],
            "weights": [
              80,
              12,
              8
            ]
          },
          "upload_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2025-12-31"
          }
        }
      },
      "invoices": {
        "description": "Rows for the invoices table.",
        "rows": 1000,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "amount_due": {
            "kind": "decimal",
            "min": 0,
            "max": 901,
            "scale": 2
          },
          "due_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2026-01-31"
          },
          "issue_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2025-12-31"
          },
          "number": {
            "kind": "pattern",
            "pattern": "[INV-]#########",
            "unique": true
          },
          "policy_id": {
            "kind": "fk",
            "ref": "policies.id",
            "skew": "flat"
          },
          "status": {
            "kind": "enum",
            "values": [
              "issued"
            ]
          }
        }
      },
      "medical_providers": {
        "description": "Rows for the medical_providers table.",
        "rows": 80,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "address_id": {
            "kind": "fk",
            "ref": "addresses.id",
            "skew": "long-tail"
          },
          "email": {
            "kind": "internet.email"
          },
          "name": {
            "kind": "enum",
            "values": [
              "Mercy General",
              "St. Luke Clinic",
              "Riverside Medical Center",
              "Valley Urgent Care",
              "Cedar Family Practice",
              "Hillcrest Imaging",
              "Bayview Physical Therapy",
              "Northside Dental"
            ]
          },
          "phone": {
            "kind": "phone.number"
          },
          "provider_type": {
            "kind": "enum",
            "values": [
              "Hospital",
              "Clinic",
              "Urgent care",
              "Specialist",
              "Imaging",
              "Therapy"
            ]
          }
        }
      },
      "medical_treatments": {
        "description": "Rows for the medical_treatments table.",
        "rows": 10,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "claim_id": {
            "kind": "fk",
            "ref": "claims.id"
          },
          "cost": {
            "kind": "decimal",
            "min": 150,
            "max": 45000,
            "scale": 2,
            "distribution": "long-tail"
          },
          "date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2026-01-31"
          },
          "details": {
            "kind": "enum",
            "values": [
              "Outpatient visit",
              "Overnight stay",
              "X-ray and cast",
              "Surgery",
              "Physical therapy course"
            ]
          },
          "diagnosis": {
            "kind": "enum",
            "values": [
              "Fracture",
              "Sprain",
              "Pneumonia",
              "Appendicitis",
              "Concussion",
              "Laceration",
              "Migraine"
            ]
          },
          "provider_id": {
            "kind": "fk",
            "ref": "medical_providers.id"
          }
        }
      },
      "payments": {
        "description": "Rows for the payments table.",
        "rows": 920,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "amount_paid": {
            "kind": "decimal",
            "min": 0,
            "max": 901,
            "scale": 2
          },
          "date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2026-01-31"
          },
          "invoice_id": {
            "kind": "fk",
            "ref": "invoices.id",
            "unique": true
          },
          "method": {
            "kind": "enum",
            "values": [
              "card",
              "bank transfer",
              "direct debit",
              "check"
            ],
            "weights": [
              40,
              15,
              40,
              5
            ]
          },
          "reference": {
            "kind": "pattern",
            "pattern": "[PAY-]##########",
            "unique": true
          }
        }
      },
      "policies": {
        "description": "Rows for the policies table.",
        "rows": 80,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "agent_id": {
            "kind": "fk",
            "ref": "agents.id"
          },
          "coverage": {
            "kind": "decimal",
            "min": 0,
            "max": 990000,
            "scale": 2
          },
          "customer_id": {
            "kind": "fk",
            "ref": "customers.id",
            "skew": "flat"
          },
          "end_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2026-12-31"
          },
          "number": {
            "kind": "pattern",
            "pattern": "[POL-]########",
            "unique": true
          },
          "plan_id": {
            "kind": "fk",
            "ref": "policy_plans.id",
            "weights": [
              6,
              12,
              8,
              3,
              2,
              5,
              3,
              9,
              4,
              2,
              4,
              5,
              2,
              2,
              2,
              4,
              5,
              3,
              3,
              2,
              3,
              3,
              1,
              1,
              1
            ]
          },
          "premium": {
            "kind": "decimal",
            "min": 0,
            "max": 901,
            "scale": 2,
            "distribution": "long-tail"
          },
          "start_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2025-06-30"
          },
          "status": {
            "kind": "enum",
            "values": [
              "issued"
            ]
          }
        }
      },
      "policy_categories": {
        "description": "Rows for the policy_categories table.",
        "rows": 5,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "description": {
            "kind": "enum",
            "values": [
              "Cars, vans and motorcycles",
              "Houses, condos and contents",
              "Term and whole life cover",
              "Medical and hospital cover",
              "Trip cancellation and medical abroad"
            ],
            "unique": true
          },
          "name": {
            "kind": "enum",
            "values": [
              "Auto",
              "Home",
              "Life",
              "Health",
              "Travel"
            ],
            "unique": true
          }
        }
      },
      "policy_plans": {
        "description": "Rows for the policy_plans table.",
        "rows": 25,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "category_id": {
            "kind": "fk",
            "ref": "policy_categories.id"
          },
          "company_id": {
            "kind": "fk",
            "ref": "companies.id",
            "skew": "flat"
          },
          "description": {
            "kind": "enum",
            "values": [
              "Our most popular cover",
              "Lower premium, higher deductible",
              "Broad cover with extras",
              "Built for families",
              "Essential protection"
            ]
          },
          "max_coverage": {
            "kind": "decimal",
            "min": 1000,
            "max": 1000000,
            "scale": 2
          },
          "min_premium": {
            "kind": "decimal",
            "min": 5,
            "max": 500,
            "scale": 2
          },
          "name": {
            "kind": "enum",
            "values": [
              "Auto Basic",
              "Auto Standard",
              "Auto Plus",
              "Auto Premier",
              "Motorcycle",
              "Renters",
              "Condo",
              "Homeowners Standard",
              "Homeowners Plus",
              "Landlord",
              "Term 10",
              "Term 20",
              "Term 30",
              "Whole Life",
              "Final Expense",
              "Health Bronze",
              "Health Silver",
              "Health Gold",
              "Dental",
              "Vision",
              "Travel Single Trip",
              "Travel Annual",
              "Travel Business",
              "Travel Student",
              "Travel Senior"
            ],
            "unique": true
          }
        }
      },
      "policy_riders": {
        "description": "Rows for the policy_riders table.",
        "rows": 30,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "coverage_limit": {
            "kind": "decimal",
            "min": 1000,
            "max": 50000,
            "scale": 2,
            "distribution": "long-tail"
          },
          "description": {
            "kind": "enum",
            "values": [
              "Optional add-on",
              "Extends the base cover",
              "Lowers the out-of-pocket cost"
            ]
          },
          "name": {
            "kind": "enum",
            "values": [
              "Roadside assistance",
              "Rental reimbursement",
              "Flood cover",
              "Jewellery cover",
              "Accidental death",
              "Waiver of premium",
              "Trip interruption"
            ]
          },
          "policy_id": {
            "kind": "fk",
            "ref": "policies.id",
            "skew": "flat"
          },
          "premium": {
            "kind": "decimal",
            "min": 2,
            "max": 25,
            "scale": 2
          }
        }
      },
      "properties": {
        "description": "Rows for the properties table.",
        "rows": 20,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "address_id": {
            "kind": "fk",
            "ref": "addresses.id"
          },
          "policy_id": {
            "kind": "fk",
            "ref": "policies.id"
          },
          "square_footage": {
            "kind": "int",
            "min": 450,
            "max": 5200,
            "distribution": "normal"
          },
          "type": {
            "kind": "enum",
            "values": [
              "Single-family house",
              "Townhouse",
              "Condo",
              "Apartment",
              "Duplex"
            ],
            "weights": [
              45,
              15,
              20,
              15,
              5
            ]
          },
          "value": {
            "kind": "decimal",
            "min": 90000,
            "max": 1500000,
            "scale": 2,
            "distribution": "long-tail"
          },
          "year_built": {
            "kind": "int",
            "min": 1920,
            "max": 2024,
            "distribution": "high"
          }
        }
      },
      "reinsurance_claims": {
        "description": "Rows for the reinsurance_claims table.",
        "rows": 10,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "claim_id": {
            "kind": "fk",
            "ref": "claims.id",
            "unique": true
          },
          "date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2026-06-30"
          },
          "paid": {
            "kind": "decimal",
            "min": 0,
            "max": 5180,
            "scale": 2
          },
          "reinsurance_contract_id": {
            "kind": "fk",
            "ref": "reinsurance_contracts.id"
          },
          "requested": {
            "kind": "decimal",
            "min": 0,
            "max": 6316,
            "scale": 2
          },
          "status": {
            "kind": "enum",
            "values": [
              "settled"
            ]
          }
        }
      },
      "reinsurance_companies": {
        "description": "Rows for the reinsurance_companies table.",
        "rows": 5,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "address_id": {
            "kind": "fk",
            "ref": "addresses.id",
            "skew": "long-tail"
          },
          "email": {
            "kind": "internet.email"
          },
          "name": {
            "kind": "enum",
            "values": [
              "Atlas Re",
              "Meridian Reinsurance",
              "Keystone Re",
              "Polaris Risk Partners",
              "Orion Re"
            ],
            "unique": true
          },
          "phone": {
            "kind": "phone.number"
          }
        }
      },
      "reinsurance_contracts": {
        "description": "Rows for the reinsurance_contracts table.",
        "rows": 12,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "company_id": {
            "kind": "fk",
            "ref": "companies.id",
            "skew": "flat"
          },
          "coverage_percentage": {
            "kind": "decimal",
            "min": 20,
            "max": 50,
            "scale": 2
          },
          "end_date": {
            "kind": "date",
            "from": "2025-12-31",
            "to": "2025-12-31"
          },
          "number": {
            "kind": "pattern",
            "pattern": "[RC-]####",
            "unique": true
          },
          "premium": {
            "kind": "decimal",
            "min": 250000,
            "max": 4000000,
            "scale": 2,
            "distribution": "long-tail"
          },
          "reinsurer_id": {
            "kind": "fk",
            "ref": "reinsurance_companies.id",
            "skew": "flat"
          },
          "start_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2023-01-01"
          }
        }
      },
      "renewals": {
        "description": "Rows for the renewals table.",
        "rows": 30,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2026-12-31"
          },
          "end_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2028-12-31"
          },
          "policy_id": {
            "kind": "fk",
            "ref": "policies.id",
            "unique": true
          },
          "premium": {
            "kind": "decimal",
            "min": 0,
            "max": 436,
            "scale": 2
          },
          "start_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2027-12-31"
          },
          "status": {
            "kind": "enum",
            "values": [
              "renewed",
              "declined",
              "lapsed"
            ],
            "weights": [
              78,
              12,
              10
            ]
          }
        }
      },
      "underwriters": {
        "description": "Rows for the underwriters table.",
        "rows": 40,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "certification_level": {
            "kind": "enum",
            "values": [
              "Associate",
              "Senior",
              "Chartered"
            ],
            "weights": [
              45,
              35,
              20
            ]
          },
          "company_id": {
            "kind": "fk",
            "ref": "companies.id",
            "skew": "flat"
          },
          "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"
          }
        }
      },
      "underwriting_assessments": {
        "description": "Rows for the underwriting_assessments table.",
        "rows": 80,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "date": {
            "kind": "date",
            "from": "2022-12-01",
            "to": "2025-06-30"
          },
          "decision": {
            "kind": "enum",
            "values": [
              "approved",
              "approved with conditions"
            ],
            "weights": [
              85,
              15
            ]
          },
          "notes": {
            "kind": "enum",
            "values": [
              "Standard risk",
              "Prior claims reviewed",
              "Inspection waived",
              "Credit check passed",
              "Higher deductible agreed"
            ]
          },
          "policy_id": {
            "kind": "fk",
            "ref": "policies.id",
            "unique": true
          },
          "risk_score": {
            "kind": "int",
            "min": 1,
            "max": 100,
            "distribution": "normal"
          },
          "underwriter_id": {
            "kind": "fk",
            "ref": "underwriters.id"
          }
        }
      },
      "vehicles": {
        "description": "Rows for the vehicles table.",
        "rows": 30,
        "columns": {
          "id": {
            "kind": "pk"
          },
          "license_plate": {
            "kind": "pattern",
            "pattern": "AAA-####",
            "unique": true
          },
          "make": {
            "kind": "enum",
            "values": [
              "Toyota",
              "Ford",
              "Chevrolet",
              "Honda",
              "Nissan",
              "Hyundai",
              "Kia",
              "Subaru",
              "Jeep",
              "Tesla",
              "BMW",
              "Mazda"
            ],
            "weights": [
              16,
              14,
              12,
              11,
              8,
              7,
              6,
              5,
              6,
              4,
              4,
              7
            ]
          },
          "model": {
            "kind": "enum",
            "values": [
              "Sedan",
              "Hatchback",
              "SUV",
              "Pickup",
              "Minivan",
              "Coupe"
            ]
          },
          "policy_id": {
            "kind": "fk",
            "ref": "policies.id"
          },
          "value": {
            "kind": "decimal",
            "min": 4000,
            "max": 85000,
            "scale": 2,
            "distribution": "long-tail"
          },
          "vin": {
            "kind": "vehicle.vin",
            "unique": true
          },
          "year": {
            "kind": "int",
            "min": 2008,
            "max": 2025,
            "distribution": "high"
          }
        }
      }
    }
  },
  "counts": {
    "addresses": 65,
    "agencies": 12,
    "branches": 40,
    "agents": 300,
    "companies": 6,
    "adjusters": 60,
    "customers": 60,
    "customer_support_tickets": 10,
    "medical_providers": 80,
    "policy_categories": 5,
    "policy_plans": 25,
    "policies": 80,
    "beneficiaries": 20,
    "claims": 20,
    "claim_assessments": 20,
    "claim_documents": 30,
    "claim_payments": 10,
    "documents": 40,
    "invoices": 1000,
    "medical_treatments": 10,
    "payments": 920,
    "commissions": 80,
    "policy_riders": 30,
    "properties": 20,
    "reinsurance_companies": 5,
    "reinsurance_contracts": 12,
    "reinsurance_claims": 10,
    "renewals": 30,
    "underwriters": 40,
    "underwriting_assessments": 80,
    "vehicles": 30
  },
  "artifacts": [
    {
      "file": "csv/addresses.csv",
      "format": "csv",
      "table": "addresses",
      "key": "datasets/insurance-sample-database/v1/csv/addresses.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/csv/addresses.csv",
      "bytes": 3644,
      "sha256": "42849ef307e7a117f87d2efacc79df5baf123e34ef6e819250f3dca83930907d",
      "rows": 65,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/agencies.csv",
      "format": "csv",
      "table": "agencies",
      "key": "datasets/insurance-sample-database/v1/csv/agencies.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/csv/agencies.csv",
      "bytes": 996,
      "sha256": "07dd5c5d78748c671343b89ff050ce23cc7992655a69e58695f2c19df4e7bf8b",
      "rows": 12,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/branches.csv",
      "format": "csv",
      "table": "branches",
      "key": "datasets/insurance-sample-database/v1/csv/branches.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/csv/branches.csv",
      "bytes": 1354,
      "sha256": "07ba14fee33e392c108c2aefc2e412c5327e2fd7daca34c8ea23355b63b05504",
      "rows": 40,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/agents.csv",
      "format": "csv",
      "table": "agents",
      "key": "datasets/insurance-sample-database/v1/csv/agents.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/csv/agents.csv",
      "bytes": 26004,
      "sha256": "594cef9083782d5b28bf2bc6fd016fbd0223c90c95b1b18d0056dbc7fa82d051",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/companies.csv",
      "format": "csv",
      "table": "companies",
      "key": "datasets/insurance-sample-database/v1/csv/companies.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/csv/companies.csv",
      "bytes": 696,
      "sha256": "3367e20dd844eff7f73d75ff6955e0f8e7cb2f3f3eeb97ab65281feca3fb8c21",
      "rows": 6,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/adjusters.csv",
      "format": "csv",
      "table": "adjusters",
      "key": "datasets/insurance-sample-database/v1/csv/adjusters.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/csv/adjusters.csv",
      "bytes": 4442,
      "sha256": "1c5f117c3a4881ba79391fc61753aaa696eb7e99d57434f248e340d5fc334749",
      "rows": 60,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/customers.csv",
      "format": "csv",
      "table": "customers",
      "key": "datasets/insurance-sample-database/v1/csv/customers.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/csv/customers.csv",
      "bytes": 4931,
      "sha256": "028d19d2803b7296f6f7af95a45815d8dc1e962c40fb2c8ecb0fa570613e0077",
      "rows": 60,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/customer_support_tickets.csv",
      "format": "csv",
      "table": "customer_support_tickets",
      "key": "datasets/insurance-sample-database/v1/csv/customer_support_tickets.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/csv/customer_support_tickets.csv",
      "bytes": 699,
      "sha256": "8f2dc93d8a37ee623e0b6a435bdbb40b9af440f7493a1769faf45762927b2c8c",
      "rows": 10,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/medical_providers.csv",
      "format": "csv",
      "table": "medical_providers",
      "key": "datasets/insurance-sample-database/v1/csv/medical_providers.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/csv/medical_providers.csv",
      "bytes": 6320,
      "sha256": "4b35fc29ccc1618d04bcab06a82ceb10210039719fe8fb97975f23011a688ac0",
      "rows": 80,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/policy_categories.csv",
      "format": "csv",
      "table": "policy_categories",
      "key": "datasets/insurance-sample-database/v1/csv/policy_categories.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/csv/policy_categories.csv",
      "bytes": 214,
      "sha256": "1df6b45a0bcc66b6d98881c0e70c7ea9b90af3b84c61d3136406703f70c353c3",
      "rows": 5,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/policy_plans.csv",
      "format": "csv",
      "table": "policy_plans",
      "key": "datasets/insurance-sample-database/v1/csv/policy_plans.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/csv/policy_plans.csv",
      "bytes": 1416,
      "sha256": "89b1effbcc5727674a8aa4b7c4954e7987595acfdcda3aff762975d52e293665",
      "rows": 25,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/policies.csv",
      "format": "csv",
      "table": "policies",
      "key": "datasets/insurance-sample-database/v1/csv/policies.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/csv/policies.csv",
      "bytes": 5394,
      "sha256": "4b3ef5c474a4a526e3d6ae05fcfc90ddbcf578cb1085a198656749ac40214e09",
      "rows": 80,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/beneficiaries.csv",
      "format": "csv",
      "table": "beneficiaries",
      "key": "datasets/insurance-sample-database/v1/csv/beneficiaries.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/csv/beneficiaries.csv",
      "bytes": 999,
      "sha256": "83f3b43535cdc7820a27d94b22b21a5306a44911eb7e305bcfe1c051ebc8bca4",
      "rows": 20,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/claims.csv",
      "format": "csv",
      "table": "claims",
      "key": "datasets/insurance-sample-database/v1/csv/claims.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/csv/claims.csv",
      "bytes": 1608,
      "sha256": "9d95aae062d758c6ad72bbe0965e5094eb5189d820071aa9bd4380896cc8eaae",
      "rows": 20,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/claim_assessments.csv",
      "format": "csv",
      "table": "claim_assessments",
      "key": "datasets/insurance-sample-database/v1/csv/claim_assessments.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/csv/claim_assessments.csv",
      "bytes": 1239,
      "sha256": "ecce0f285669724a8934abf326031bbd97a7de0381f6fb98f929e6d8742dc2cd",
      "rows": 20,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/claim_documents.csv",
      "format": "csv",
      "table": "claim_documents",
      "key": "datasets/insurance-sample-database/v1/csv/claim_documents.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/csv/claim_documents.csv",
      "bytes": 1819,
      "sha256": "ff0546a74967f1e2568c3612ccb7efa9eab8850002223d84cab8e4ae5c4f6249",
      "rows": 30,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/claim_payments.csv",
      "format": "csv",
      "table": "claim_payments",
      "key": "datasets/insurance-sample-database/v1/csv/claim_payments.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/csv/claim_payments.csv",
      "bytes": 525,
      "sha256": "3ce4a53975d2cf8baa18af002a91b1c049c759a18ba4ac9fee7ca158df2791d5",
      "rows": 10,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/documents.csv",
      "format": "csv",
      "table": "documents",
      "key": "datasets/insurance-sample-database/v1/csv/documents.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/csv/documents.csv",
      "bytes": 2710,
      "sha256": "bf30ad0dab6473407aa040e87eeaaa93026624a972a4e64af2a51fae363d6586",
      "rows": 40,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/invoices.csv",
      "format": "csv",
      "table": "invoices",
      "key": "datasets/insurance-sample-database/v1/csv/invoices.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/csv/invoices.csv",
      "bytes": 56156,
      "sha256": "77c40e9b88e204a36b509bcc388df54f6a1596932b336fef2c131fbf350e9f23",
      "rows": 1000,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/medical_treatments.csv",
      "format": "csv",
      "table": "medical_treatments",
      "key": "datasets/insurance-sample-database/v1/csv/medical_treatments.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/csv/medical_treatments.csv",
      "bytes": 581,
      "sha256": "f3fd513ea3d6d6f447909c3deb16882fea2a0ef90f9135652cd5d8cc672afb35",
      "rows": 10,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/payments.csv",
      "format": "csv",
      "table": "payments",
      "key": "datasets/insurance-sample-database/v1/csv/payments.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/csv/payments.csv",
      "bytes": 45636,
      "sha256": "79c41b7100522d62815887e7a06419dde1b3241e395549df2ace7664533e653d",
      "rows": 920,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/commissions.csv",
      "format": "csv",
      "table": "commissions",
      "key": "datasets/insurance-sample-database/v1/csv/commissions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/csv/commissions.csv",
      "bytes": 3122,
      "sha256": "dd6624c3ce05a026d4ae984b268a53755e7975701158deb756553b12dc0f1476",
      "rows": 80,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/policy_riders.csv",
      "format": "csv",
      "table": "policy_riders",
      "key": "datasets/insurance-sample-database/v1/csv/policy_riders.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/csv/policy_riders.csv",
      "bytes": 1867,
      "sha256": "9737279c4216335f55150edfb281977b3dd8957dce33f1d0233740e4c00cc077",
      "rows": 30,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/properties.csv",
      "format": "csv",
      "table": "properties",
      "key": "datasets/insurance-sample-database/v1/csv/properties.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/csv/properties.csv",
      "bytes": 914,
      "sha256": "3b629f8631b9ebbcf6fc4bfbd2605a0bd2c0af8b1df5d1c3418cec649f4902f1",
      "rows": 20,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/reinsurance_companies.csv",
      "format": "csv",
      "table": "reinsurance_companies",
      "key": "datasets/insurance-sample-database/v1/csv/reinsurance_companies.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/csv/reinsurance_companies.csv",
      "bytes": 354,
      "sha256": "41731381589cc52154b42e2f7d1359392c8186e48174f1b208e3777389dbfa98",
      "rows": 5,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/reinsurance_contracts.csv",
      "format": "csv",
      "table": "reinsurance_contracts",
      "key": "datasets/insurance-sample-database/v1/csv/reinsurance_contracts.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/csv/reinsurance_contracts.csv",
      "bytes": 693,
      "sha256": "2747dc6f667f29265b72526cf360b97861ae99bdf4e9a7505056bcecfa07f8a2",
      "rows": 12,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/reinsurance_claims.csv",
      "format": "csv",
      "table": "reinsurance_claims",
      "key": "datasets/insurance-sample-database/v1/csv/reinsurance_claims.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/csv/reinsurance_claims.csv",
      "bytes": 443,
      "sha256": "a30b6eaabbee6516844693d76173645a397a8bc6f98656d21f034a89733f58ad",
      "rows": 10,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/renewals.csv",
      "format": "csv",
      "table": "renewals",
      "key": "datasets/insurance-sample-database/v1/csv/renewals.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/csv/renewals.csv",
      "bytes": 1674,
      "sha256": "685169971dca30b87d72000f78d4507822572a1f1633a022296a840fedda02e1",
      "rows": 30,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/underwriters.csv",
      "format": "csv",
      "table": "underwriters",
      "key": "datasets/insurance-sample-database/v1/csv/underwriters.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/csv/underwriters.csv",
      "bytes": 2900,
      "sha256": "eeced700fe524d70bcd3957c841985bdbd711b2041928538b1cbe508f19a0f6b",
      "rows": 40,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/underwriting_assessments.csv",
      "format": "csv",
      "table": "underwriting_assessments",
      "key": "datasets/insurance-sample-database/v1/csv/underwriting_assessments.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/csv/underwriting_assessments.csv",
      "bytes": 4466,
      "sha256": "36fd4e386c7064b83aed44bda0cfc863af36a4313c36939cfbbc183c2745c550",
      "rows": 80,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/vehicles.csv",
      "format": "csv",
      "table": "vehicles",
      "key": "datasets/insurance-sample-database/v1/csv/vehicles.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/csv/vehicles.csv",
      "bytes": 1863,
      "sha256": "d163be983ad4bbac6fb5c3ae258c27d6c4fe381ec0393850420acaff30b6d175",
      "rows": 30,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "insurance-sample-database.json",
      "format": "json",
      "table": null,
      "key": "datasets/insurance-sample-database/v1/insurance-sample-database.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/insurance-sample-database.json",
      "bytes": 635917,
      "sha256": "3a03879bd168b09bb78e1b50c6a78780624240b87ef97990ebd59afb2e16b2f3",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/insurance-sample-database/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/sql/postgres.sql",
      "bytes": 268324,
      "sha256": "1dca6e96eb174a8d6b9dc46bd1b839212ce27a9ff9f0f09afb85362264a94134",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/insurance-sample-database/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/sql/mysql.sql",
      "bytes": 265242,
      "sha256": "46a81decb9c204954c07f76ace4a2352c9eb8f871598f15b0fa38172fa967034",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/insurance-sample-database/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/sql/mssql.sql",
      "bytes": 278814,
      "sha256": "6cf34aa77639fe46f22d7f09f573beb2f4c1609a48a4efe20bd008f0ce08c19f",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/insurance-sample-database/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/sql/sqlite.sql",
      "bytes": 262225,
      "sha256": "f03deb947a54a5b983ee455b6a5d6a573d578a12b275bbf1b311028535c7e441",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/insurance-sample-database/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/prisma/seed.ts",
      "bytes": 478898,
      "sha256": "60f805b8f8a518abed75f868ef525872b612b969da7840774a0426b833c0fe64",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/insurance-sample-database/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/django/fixtures.json",
      "bytes": 765924,
      "sha256": "f98a2128b27a3064f215582f0a308b95185a74fbce04c1940fe3d1aa9467e02d",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "flagship": {
    "sizes": {
      "1k": {
        "rows": 3150,
        "counts": {
          "addresses": 65,
          "agencies": 12,
          "branches": 40,
          "agents": 300,
          "companies": 6,
          "adjusters": 60,
          "customers": 60,
          "customer_support_tickets": 10,
          "medical_providers": 80,
          "policy_categories": 5,
          "policy_plans": 25,
          "policies": 80,
          "beneficiaries": 20,
          "claims": 20,
          "claim_assessments": 20,
          "claim_documents": 30,
          "claim_payments": 10,
          "documents": 40,
          "invoices": 1000,
          "medical_treatments": 10,
          "payments": 920,
          "commissions": 80,
          "policy_riders": 30,
          "properties": 20,
          "reinsurance_companies": 5,
          "reinsurance_contracts": 12,
          "reinsurance_claims": 10,
          "renewals": 30,
          "underwriters": 40,
          "underwriting_assessments": 80,
          "vehicles": 30
        },
        "notes": [],
        "downloads": [
          {
            "format": "sql-postgres",
            "label": "PostgreSQL",
            "file": "flagship/1k/postgres.sql.gz",
            "key": "datasets/insurance-sample-database/v1/flagship/1k/postgres.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/flagship/1k/postgres.sql.gz",
            "bytes": 74448,
            "sha256": "abce187690ff7062497a7f7dc421ad76794755639c21b769815606c93fed52b0",
            "raw": {
              "bytes": 275318,
              "sha256": "8525e108a6cdd22562bfca41c168e0835cf5f3cb21121d5f0c9959f7e38b899f"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "sql-mysql",
            "label": "MySQL",
            "file": "flagship/1k/mysql.sql.gz",
            "key": "datasets/insurance-sample-database/v1/flagship/1k/mysql.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/flagship/1k/mysql.sql.gz",
            "bytes": 73860,
            "sha256": "0425110256fe5d286d61507d5a8d1dd141d7762bb191c0bb47041cfe6bbc7b9a",
            "raw": {
              "bytes": 272236,
              "sha256": "4cc4eb90ed4687ec4d1756917814dbc8b50166b86e7d50239979f7e642164e47"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "sql-sqlite",
            "label": "SQLite",
            "file": "flagship/1k/sqlite.sql.gz",
            "key": "datasets/insurance-sample-database/v1/flagship/1k/sqlite.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/flagship/1k/sqlite.sql.gz",
            "bytes": 73308,
            "sha256": "416298aef7d4abf67c613f343d80604c853f7c13b74dcf75e03e98c664663f30",
            "raw": {
              "bytes": 269219,
              "sha256": "6ea8c0e0c49c5f4cf2aaec5a37689b62ce6b85cd588b6d194bec27da38fca778"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "csv",
            "label": "CSV",
            "file": "flagship/1k/csv.zip",
            "key": "datasets/insurance-sample-database/v1/flagship/1k/csv.zip",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/flagship/1k/csv.zip",
            "bytes": 74853,
            "sha256": "b3401511a54e8737b162effc72a5323239caf87f695c2ea932059a53e5bd6be5",
            "tables": {
              "addresses": {
                "bytes": 3644,
                "sha256": "42849ef307e7a117f87d2efacc79df5baf123e34ef6e819250f3dca83930907d"
              },
              "adjusters": {
                "bytes": 4442,
                "sha256": "1c5f117c3a4881ba79391fc61753aaa696eb7e99d57434f248e340d5fc334749"
              },
              "agencies": {
                "bytes": 996,
                "sha256": "07dd5c5d78748c671343b89ff050ce23cc7992655a69e58695f2c19df4e7bf8b"
              },
              "agents": {
                "bytes": 26004,
                "sha256": "594cef9083782d5b28bf2bc6fd016fbd0223c90c95b1b18d0056dbc7fa82d051"
              },
              "beneficiaries": {
                "bytes": 999,
                "sha256": "83f3b43535cdc7820a27d94b22b21a5306a44911eb7e305bcfe1c051ebc8bca4"
              },
              "branches": {
                "bytes": 1354,
                "sha256": "07ba14fee33e392c108c2aefc2e412c5327e2fd7daca34c8ea23355b63b05504"
              },
              "claim_assessments": {
                "bytes": 1239,
                "sha256": "ecce0f285669724a8934abf326031bbd97a7de0381f6fb98f929e6d8742dc2cd"
              },
              "claim_documents": {
                "bytes": 1819,
                "sha256": "ff0546a74967f1e2568c3612ccb7efa9eab8850002223d84cab8e4ae5c4f6249"
              },
              "claim_payments": {
                "bytes": 525,
                "sha256": "3ce4a53975d2cf8baa18af002a91b1c049c759a18ba4ac9fee7ca158df2791d5"
              },
              "claims": {
                "bytes": 1608,
                "sha256": "9d95aae062d758c6ad72bbe0965e5094eb5189d820071aa9bd4380896cc8eaae"
              },
              "commissions": {
                "bytes": 3122,
                "sha256": "dd6624c3ce05a026d4ae984b268a53755e7975701158deb756553b12dc0f1476"
              },
              "companies": {
                "bytes": 696,
                "sha256": "3367e20dd844eff7f73d75ff6955e0f8e7cb2f3f3eeb97ab65281feca3fb8c21"
              },
              "customer_support_tickets": {
                "bytes": 699,
                "sha256": "8f2dc93d8a37ee623e0b6a435bdbb40b9af440f7493a1769faf45762927b2c8c"
              },
              "customers": {
                "bytes": 4931,
                "sha256": "028d19d2803b7296f6f7af95a45815d8dc1e962c40fb2c8ecb0fa570613e0077"
              },
              "documents": {
                "bytes": 2710,
                "sha256": "bf30ad0dab6473407aa040e87eeaaa93026624a972a4e64af2a51fae363d6586"
              },
              "invoices": {
                "bytes": 56156,
                "sha256": "77c40e9b88e204a36b509bcc388df54f6a1596932b336fef2c131fbf350e9f23"
              },
              "medical_providers": {
                "bytes": 6320,
                "sha256": "4b35fc29ccc1618d04bcab06a82ceb10210039719fe8fb97975f23011a688ac0"
              },
              "medical_treatments": {
                "bytes": 581,
                "sha256": "f3fd513ea3d6d6f447909c3deb16882fea2a0ef90f9135652cd5d8cc672afb35"
              },
              "payments": {
                "bytes": 45636,
                "sha256": "79c41b7100522d62815887e7a06419dde1b3241e395549df2ace7664533e653d"
              },
              "policies": {
                "bytes": 5394,
                "sha256": "4b3ef5c474a4a526e3d6ae05fcfc90ddbcf578cb1085a198656749ac40214e09"
              },
              "policy_categories": {
                "bytes": 214,
                "sha256": "1df6b45a0bcc66b6d98881c0e70c7ea9b90af3b84c61d3136406703f70c353c3"
              },
              "policy_plans": {
                "bytes": 1416,
                "sha256": "89b1effbcc5727674a8aa4b7c4954e7987595acfdcda3aff762975d52e293665"
              },
              "policy_riders": {
                "bytes": 1867,
                "sha256": "9737279c4216335f55150edfb281977b3dd8957dce33f1d0233740e4c00cc077"
              },
              "properties": {
                "bytes": 914,
                "sha256": "3b629f8631b9ebbcf6fc4bfbd2605a0bd2c0af8b1df5d1c3418cec649f4902f1"
              },
              "reinsurance_claims": {
                "bytes": 443,
                "sha256": "a30b6eaabbee6516844693d76173645a397a8bc6f98656d21f034a89733f58ad"
              },
              "reinsurance_companies": {
                "bytes": 354,
                "sha256": "41731381589cc52154b42e2f7d1359392c8186e48174f1b208e3777389dbfa98"
              },
              "reinsurance_contracts": {
                "bytes": 693,
                "sha256": "2747dc6f667f29265b72526cf360b97861ae99bdf4e9a7505056bcecfa07f8a2"
              },
              "renewals": {
                "bytes": 1674,
                "sha256": "685169971dca30b87d72000f78d4507822572a1f1633a022296a840fedda02e1"
              },
              "underwriters": {
                "bytes": 2900,
                "sha256": "eeced700fe524d70bcd3957c841985bdbd711b2041928538b1cbe508f19a0f6b"
              },
              "underwriting_assessments": {
                "bytes": 4466,
                "sha256": "36fd4e386c7064b83aed44bda0cfc863af36a4313c36939cfbbc183c2745c550"
              },
              "vehicles": {
                "bytes": 1863,
                "sha256": "d163be983ad4bbac6fb5c3ae258c27d6c4fe381ec0393850420acaff30b6d175"
              }
            },
            "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 premium is one to two and a half times its plan's minimum and a coverage at most its maximum; a policy runs a year and was underwritten before it began",
            "violations": 0
          },
          {
            "name": "An installment bills the monthly premium inside the term and falls due thirty days later; a payment pays one in full within those thirty days",
            "violations": 0
          },
          {
            "name": "A commission goes to the agent who sold the policy, on a payment of that policy, at the agent's rate",
            "violations": 0
          },
          {
            "name": "What is insured fits the line of cover: a vehicle on an auto policy, a property on a home policy, a beneficiary on a life policy, a medical treatment on a health claim",
            "violations": 0
          },
          {
            "name": "A claim happens inside the policy term, is reported within thirty days with an estimate inside the coverage, and its assessment carries its decision",
            "violations": 0
          },
          {
            "name": "Only an approved claim is paid, and it is paid what its assessment approved: part of the estimate less the deductible, never below nothing",
            "violations": 0
          },
          {
            "name": "A renewal starts the day after the term ends and costs 3-10% more; reinsurance asks for its contract’s share of an approved payout",
            "violations": 0
          }
        ],
        "dirty": {
          "report": {
            "rates": {
              "missing": 0.03,
              "typos": 0.03,
              "outliers": 0.005,
              "duplicates": 0.01
            },
            "tables": {
              "addresses": {
                "duplicates": 1,
                "columns": {
                  "city": {
                    "missing": 1,
                    "typos": 2,
                    "outliers": 0
                  },
                  "country": {
                    "missing": 1,
                    "typos": 4,
                    "outliers": 0
                  },
                  "postal_code": {
                    "missing": 3,
                    "typos": 0,
                    "outliers": 0
                  },
                  "state": {
                    "missing": 0,
                    "typos": 2,
                    "outliers": 0
                  },
                  "street": {
                    "missing": 1,
                    "typos": 2,
                    "outliers": 0
                  }
                }
              },
              "agencies": {
                "duplicates": 0,
                "columns": {
                  "email": {
                    "missing": 0,
                    "typos": 1,
                    "outliers": 0
                  },
                  "name": {
                    "missing": 1,
                    "typos": 1,
                    "outliers": 0
                  }
                }
              },
              "branches": {
                "duplicates": 0,
                "columns": {
                  "name": {
                    "missing": 4,
                    "typos": 0,
                    "outliers": 0
                  },
                  "phone": {
                    "missing": 1,
                    "typos": 1,
                    "outliers": 0
                  }
                }
              },
              "agents": {
                "duplicates": 1,
                "columns": {
                  "email": {
                    "missing": 10,
                    "typos": 12,
                    "outliers": 0
                  },
                  "first_name": {
                    "missing": 14,
                    "typos": 12,
                    "outliers": 0
                  },
                  "hire_date": {
                    "missing": 2,
                    "typos": 0,
                    "outliers": 0
                  },
                  "last_name": {
                    "missing": 7,
                    "typos": 9,
                    "outliers": 0
                  },
                  "license_number": {
                    "missing": 10,
                    "typos": 6,
                    "outliers": 0
                  },
                  "phone": {
                    "missing": 7,
                    "typos": 4,
                    "outliers": 0
                  }
                }
              },
              "companies": {
                "duplicates": 0,
                "columns": {
                  "name": {
                    "missing": 0,
                    "typos": 1,
                    "outliers": 0
                  },
                  "tax_identifier": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "adjusters": {
                "duplicates": 1,
                "columns": {
                  "email": {
                    "missing": 2,
                    "typos": 1,
                    "outliers": 0
                  },
                  "first_name": {
                    "missing": 1,
                    "typos": 6,
                    "outliers": 0
                  },
                  "last_name": {
                    "missing": 2,
                    "typos": 1,
                    "outliers": 0
                  },
                  "license_number": {
                    "missing": 2,
                    "typos": 2,
                    "outliers": 0
                  },
                  "phone": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "customers": {
                "duplicates": 2,
                "columns": {
                  "date_of_birth": {
                    "missing": 3,
                    "typos": 0,
                    "outliers": 0
                  },
                  "email": {
                    "missing": 2,
                    "typos": 4,
                    "outliers": 0
                  },
                  "first_name": {
                    "missing": 3,
                    "typos": 0,
                    "outliers": 0
                  },
                  "gender": {
                    "missing": 2,
                    "typos": 2,
                    "outliers": 0
                  },
                  "last_name": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "phone": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "customer_support_tickets": {
                "duplicates": 0,
                "columns": {
                  "status": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "medical_providers": {
                "duplicates": 4,
                "columns": {
                  "email": {
                    "missing": 1,
                    "typos": 1,
                    "outliers": 0
                  },
                  "name": {
                    "missing": 1,
                    "typos": 1,
                    "outliers": 0
                  },
                  "phone": {
                    "missing": 2,
                    "typos": 1,
                    "outliers": 0
                  },
                  "provider_type": {
                    "missing": 2,
                    "typos": 2,
                    "outliers": 0
                  }
                }
              },
              "policy_categories": {
                "duplicates": 0,
                "columns": {
                  "name": {
                    "missing": 0,
                    "typos": 1,
                    "outliers": 0
                  }
                }
              },
              "policy_plans": {
                "duplicates": 0,
                "columns": {
                  "description": {
                    "missing": 2,
                    "typos": 0,
                    "outliers": 0
                  },
                  "name": {
                    "missing": 2,
                    "typos": 1,
                    "outliers": 0
                  }
                }
              },
              "policies": {
                "duplicates": 0,
                "columns": {
                  "coverage": {
                    "missing": 4,
                    "typos": 0,
                    "outliers": 0
                  },
                  "end_date": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "number": {
                    "missing": 3,
                    "typos": 2,
                    "outliers": 0
                  },
                  "premium": {
                    "missing": 2,
                    "typos": 0,
                    "outliers": 1
                  },
                  "status": {
                    "missing": 2,
                    "typos": 2,
                    "outliers": 0
                  }
                }
              },
              "beneficiaries": {
                "duplicates": 0,
                "columns": {
                  "first_name": {
                    "missing": 0,
                    "typos": 1,
                    "outliers": 0
                  },
                  "percentage": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "phone": {
                    "missing": 0,
                    "typos": 2,
                    "outliers": 0
                  },
                  "relationship": {
                    "missing": 2,
                    "typos": 1,
                    "outliers": 0
                  }
                }
              },
              "claims": {
                "duplicates": 0,
                "columns": {
                  "number": {
                    "missing": 0,
                    "typos": 1,
                    "outliers": 0
                  },
                  "report_date": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "claim_assessments": {
                "duplicates": 1,
                "columns": {
                  "approved": {
                    "missing": 2,
                    "typos": 0,
                    "outliers": 0
                  },
                  "date": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "deductible": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "status": {
                    "missing": 2,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "claim_documents": {
                "duplicates": 0,
                "columns": {
                  "file_path": {
                    "missing": 0,
                    "typos": 1,
                    "outliers": 0
                  },
                  "name": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "type": {
                    "missing": 2,
                    "typos": 0,
                    "outliers": 0
                  },
                  "upload_date": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "claim_payments": {
                "duplicates": 0,
                "columns": {
                  "amount": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "documents": {
                "duplicates": 0,
                "columns": {
                  "file_path": {
                    "missing": 2,
                    "typos": 0,
                    "outliers": 0
                  },
                  "name": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "type": {
                    "missing": 1,
                    "typos": 2,
                    "outliers": 0
                  }
                }
              },
              "invoices": {
                "duplicates": 15,
                "columns": {
                  "amount_due": {
                    "missing": 21,
                    "typos": 0,
                    "outliers": 6
                  },
                  "due_date": {
                    "missing": 37,
                    "typos": 0,
                    "outliers": 0
                  },
                  "issue_date": {
                    "missing": 37,
                    "typos": 0,
                    "outliers": 0
                  },
                  "number": {
                    "missing": 23,
                    "typos": 30,
                    "outliers": 0
                  },
                  "status": {
                    "missing": 31,
                    "typos": 39,
                    "outliers": 0
                  }
                }
              },
              "payments": {
                "duplicates": 11,
                "columns": {
                  "amount_paid": {
                    "missing": 28,
                    "typos": 0,
                    "outliers": 3
                  },
                  "date": {
                    "missing": 31,
                    "typos": 0,
                    "outliers": 0
                  },
                  "method": {
                    "missing": 33,
                    "typos": 12,
                    "outliers": 0
                  },
                  "reference": {
                    "missing": 24,
                    "typos": 29,
                    "outliers": 0
                  }
                }
              },
              "commissions": {
                "duplicates": 0,
                "columns": {
                  "amount": {
                    "missing": 3,
                    "typos": 0,
                    "outliers": 0
                  },
                  "date": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "rate": {
                    "missing": 2,
                    "typos": 0,
                    "outliers": 0
                  },
                  "status": {
                    "missing": 5,
                    "typos": 2,
                    "outliers": 0
                  }
                }
              },
              "policy_riders": {
                "duplicates": 0,
                "columns": {
                  "description": {
                    "missing": 2,
                    "typos": 1,
                    "outliers": 0
                  },
                  "name": {
                    "missing": 1,
                    "typos": 1,
                    "outliers": 0
                  }
                }
              },
              "reinsurance_contracts": {
                "duplicates": 0,
                "columns": {
                  "end_date": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "reinsurance_claims": {
                "duplicates": 0,
                "columns": {
                  "paid": {
                    "missing": 3,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "renewals": {
                "duplicates": 1,
                "columns": {
                  "end_date": {
                    "missing": 2,
                    "typos": 0,
                    "outliers": 0
                  },
                  "start_date": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "status": {
                    "missing": 2,
                    "typos": 1,
                    "outliers": 0
                  }
                }
              },
              "underwriters": {
                "duplicates": 1,
                "columns": {
                  "email": {
                    "missing": 2,
                    "typos": 1,
                    "outliers": 0
                  },
                  "first_name": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "last_name": {
                    "missing": 0,
                    "typos": 3,
                    "outliers": 0
                  },
                  "phone": {
                    "missing": 2,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "underwriting_assessments": {
                "duplicates": 0,
                "columns": {
                  "date": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "decision": {
                    "missing": 2,
                    "typos": 2,
                    "outliers": 0
                  },
                  "notes": {
                    "missing": 1,
                    "typos": 2,
                    "outliers": 0
                  },
                  "risk_score": {
                    "missing": 2,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "vehicles": {
                "duplicates": 0,
                "columns": {
                  "model": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "vin": {
                    "missing": 3,
                    "typos": 1,
                    "outliers": 0
                  },
                  "year": {
                    "missing": 2,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              }
            },
            "totals": {
              "missing": 430,
              "typos": 216,
              "outliers": 10,
              "duplicates": 38
            }
          },
          "downloads": [
            {
              "format": "dirty-sql-postgres",
              "label": "PostgreSQL, with faults",
              "file": "flagship/1k/dirty-postgres.sql.gz",
              "key": "datasets/insurance-sample-database/v1/flagship/1k/dirty-postgres.sql.gz",
              "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/flagship/1k/dirty-postgres.sql.gz",
              "bytes": 72773,
              "sha256": "857cc3ea85077b2a5006bd7ec00f19a5f18a282d7fc1db6037cc2fde32f24cdb",
              "raw": {
                "bytes": 266307,
                "sha256": "e45f514d37aed9551a22e47a8469a8ac1f1e0fb8429d4e1598affcd7e29e1c58"
              },
              "contentType": "application/gzip"
            },
            {
              "format": "dirty-csv",
              "label": "CSV, with faults",
              "file": "flagship/1k/dirty-csv.zip",
              "key": "datasets/insurance-sample-database/v1/flagship/1k/dirty-csv.zip",
              "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/flagship/1k/dirty-csv.zip",
              "bytes": 75263,
              "sha256": "7c9726c7b682ba15b415e2608680fe33a8265f272725a1b4b53df1bdb1b3d2b6",
              "tables": {
                "addresses": {
                  "bytes": 3654,
                  "sha256": "87d4a5c1c5d2611a0db917d72ccdd0a4dc3f8e0c843b718ea984b03f3f70916f"
                },
                "adjusters": {
                  "bytes": 4427,
                  "sha256": "1c386963ab6d4231aff750bb3f167299b51ee06a0d3d7bb0e459d60d55491cef"
                },
                "agencies": {
                  "bytes": 971,
                  "sha256": "7ed0f63f64df38b162bdb8bc41f20300dc65e55c7179acb1ea3522bd28c2b447"
                },
                "agents": {
                  "bytes": 25537,
                  "sha256": "b0f8d8ecbb6f3b741c084599b0ffab5acd4d5f4c422a5bf4b6424f99e8c17a68"
                },
                "beneficiaries": {
                  "bytes": 991,
                  "sha256": "9a6cc74d0aa9f1ffa852824e367ac27fb85753b28ed0d3161171459456164b63"
                },
                "branches": {
                  "bytes": 1309,
                  "sha256": "c4bd597abdaf0727b01e00a18446bf6a57f7f55cde6173f74e3fbe07a1ed6dc1"
                },
                "claim_assessments": {
                  "bytes": 1268,
                  "sha256": "1589066300d1440f367070e24a25333304f6a4aa150ebfc7f846a597f4926901"
                },
                "claim_documents": {
                  "bytes": 1796,
                  "sha256": "5228f86173c4d8a9004e6d35b5971eaa2fce9f1b8c2f6aa62856355bb6572eb1"
                },
                "claim_payments": {
                  "bytes": 518,
                  "sha256": "9b221967ebbefdc4390fa1e78021615eabf326bdf53b02db78f82e2495de714d"
                },
                "claims": {
                  "bytes": 1601,
                  "sha256": "c12a55877874d47c5d6591254caef7f4282791ba5f6ec5295dff9c311cac893e"
                },
                "commissions": {
                  "bytes": 3081,
                  "sha256": "6181495d4d1d7cdf3cd09ac764be440f7b4a18369042c97891e7a4d9b597a963"
                },
                "companies": {
                  "bytes": 689,
                  "sha256": "d9d79c7ba973f8572a61771810095b598d90b6aa41b4728d5491c068fe4525f0"
                },
                "customer_support_tickets": {
                  "bytes": 693,
                  "sha256": "f7e0980d6ee8bc71938a87d15702d9539e32bcb4858ff2691041976bf08ed786"
                },
                "customers": {
                  "bytes": 4945,
                  "sha256": "abbd107c5dd4f2c3b03d4b7b3dc34b7ca3f8abe0e79264960bc177e92c1dbdfb"
                },
                "documents": {
                  "bytes": 2651,
                  "sha256": "c805e44cce64a7722b100d9800f755065203a61c61ffe0dcb0f0392abe5d710b"
                },
                "invoices": {
                  "bytes": 55764,
                  "sha256": "aa7c54224bc1ad05c8533cbd53aa47f1aaf92dc3da447c29e446d1d66a29cd65"
                },
                "medical_providers": {
                  "bytes": 6541,
                  "sha256": "edc210c7289fedd3e22dce3805a9ef4795c8f7b1ece837502441d61b3da1c69f"
                },
                "medical_treatments": {
                  "bytes": 581,
                  "sha256": "f3fd513ea3d6d6f447909c3deb16882fea2a0ef90f9135652cd5d8cc672afb35"
                },
                "payments": {
                  "bytes": 45132,
                  "sha256": "99ee73e40d2de4c8327aeae85530fa0c286dacd0ec2dcdaf38c262f61a109fe7"
                },
                "policies": {
                  "bytes": 5313,
                  "sha256": "19f9e0060f52451e13a5919ac43524b368c0f4add82fd0c9b4a89602185e6413"
                },
                "policy_categories": {
                  "bytes": 214,
                  "sha256": "888fa895a8a66268bb116b6886efbd2b5f20648f3454486b8361b95f2561422e"
                },
                "policy_plans": {
                  "bytes": 1340,
                  "sha256": "692a0d884e5be0b4227d5fc99d38b77b54d24ad50ccd1c9656a7a51f140b50ef"
                },
                "policy_riders": {
                  "bytes": 1806,
                  "sha256": "cdcc770dd4d8fa1f1042556e5ca50100202cd096d93d3795c5c8ab0ff3660c7f"
                },
                "properties": {
                  "bytes": 914,
                  "sha256": "3b629f8631b9ebbcf6fc4bfbd2605a0bd2c0af8b1df5d1c3418cec649f4902f1"
                },
                "reinsurance_claims": {
                  "bytes": 428,
                  "sha256": "de09b829482ec9db42dd415b3316bead0b85c54cc2178bdfacf0ce2a9d1ee9f5"
                },
                "reinsurance_companies": {
                  "bytes": 354,
                  "sha256": "41731381589cc52154b42e2f7d1359392c8186e48174f1b208e3777389dbfa98"
                },
                "reinsurance_contracts": {
                  "bytes": 683,
                  "sha256": "d95df75d51f6810d785866805297c32f2548e3d154712ba43c41174eaca31591"
                },
                "renewals": {
                  "bytes": 1688,
                  "sha256": "4ba242edfb0315fea512492b7e8b4809431c3b4a67df3ace7d8305934c168ad9"
                },
                "underwriters": {
                  "bytes": 2885,
                  "sha256": "e7ff1d48646aca9b269b3974f72a7314a314fea939b7dc505c29dadcd6e7d67e"
                },
                "underwriting_assessments": {
                  "bytes": 4419,
                  "sha256": "7852014f1573275ed8103865246440e18a78346e584b7832f175ae5ab0af7902"
                },
                "vehicles": {
                  "bytes": 1795,
                  "sha256": "5f21cea49e53e64f84143321c08b521ea9e1dcb9afae8bb647bd7b315b51c403"
                }
              },
              "contentType": "application/zip"
            }
          ]
        }
      },
      "100k": {
        "rows": 255185,
        "counts": {
          "addresses": 6500,
          "agencies": 12,
          "branches": 40,
          "agents": 300,
          "companies": 6,
          "adjusters": 60,
          "customers": 6000,
          "customer_support_tickets": 500,
          "medical_providers": 80,
          "policy_categories": 5,
          "policy_plans": 25,
          "policies": 8000,
          "beneficiaries": 2000,
          "claims": 2000,
          "claim_assessments": 2000,
          "claim_documents": 3000,
          "claim_payments": 1000,
          "documents": 4000,
          "invoices": 100000,
          "medical_treatments": 400,
          "payments": 92000,
          "commissions": 8000,
          "policy_riders": 3000,
          "properties": 2000,
          "reinsurance_companies": 5,
          "reinsurance_contracts": 12,
          "reinsurance_claims": 200,
          "renewals": 3000,
          "underwriters": 40,
          "underwriting_assessments": 8000,
          "vehicles": 3000
        },
        "notes": [],
        "downloads": [
          {
            "format": "sql-postgres",
            "label": "PostgreSQL",
            "file": "flagship/100k/postgres.sql.gz",
            "key": "datasets/insurance-sample-database/v1/flagship/100k/postgres.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/flagship/100k/postgres.sql.gz",
            "bytes": 4916421,
            "sha256": "1e8700fa88e5ff35ef29f8a8713154c91ff1608ad4fe317866b39819404fe689",
            "raw": {
              "bytes": 19887963,
              "sha256": "f812442285df3c4b130bb78f88e8678c75ec6c0537f8c1bca21ef3d3eb80d11a"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "sql-mysql",
            "label": "MySQL",
            "file": "flagship/100k/mysql.sql.gz",
            "key": "datasets/insurance-sample-database/v1/flagship/100k/mysql.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/flagship/100k/mysql.sql.gz",
            "bytes": 4914523,
            "sha256": "0bc1b75f2f6c159b8888079dc544a9beaaa178bb51fa21bf97cad0b1677bf8f5",
            "raw": {
              "bytes": 19884881,
              "sha256": "84257f80359612fe2266836381b106f0a88569a526bd8fdfff7e96c417c780ec"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "sql-sqlite",
            "label": "SQLite",
            "file": "flagship/100k/sqlite.sql.gz",
            "key": "datasets/insurance-sample-database/v1/flagship/100k/sqlite.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/flagship/100k/sqlite.sql.gz",
            "bytes": 4913782,
            "sha256": "8fdc7ad9d474bfb0293c12a33cc76a122300235ff92a3d07fd0a2584beadcf01",
            "raw": {
              "bytes": 19881864,
              "sha256": "d9acbfdd0c7347542ec91243758dd5e29b8ddaac75bc5b9b5f99118b9735dbde"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "csv",
            "label": "CSV",
            "file": "flagship/100k/csv.zip",
            "key": "datasets/insurance-sample-database/v1/flagship/100k/csv.zip",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/flagship/100k/csv.zip",
            "bytes": 4926717,
            "sha256": "097cb8c59a7e86ee81475d42b2f6cd2f1c7f715628efacef0f2de3e13e3eb52f",
            "tables": {
              "addresses": {
                "bytes": 372341,
                "sha256": "9e1cf6db309a76dfdb2c84ee6d5000a0a6d3f7d77af7fa67e94bf33aecb0dd0f"
              },
              "adjusters": {
                "bytes": 4446,
                "sha256": "e49aee068a9477936ad5b0f1b4ceb6dd1dc1b4cf6977d29817766d382a8cd56e"
              },
              "agencies": {
                "bytes": 1012,
                "sha256": "8e5844f33f794dd43d3ba1978c54ed9cd5a76c0f1bb2617bd8a82f6ae6da43b6"
              },
              "agents": {
                "bytes": 26194,
                "sha256": "e700b5450810fb39540acf0abae6b7e96d9566f2ea03e5fd31285253b0f8f268"
              },
              "beneficiaries": {
                "bytes": 101954,
                "sha256": "693d80908ce1ca0f5f0500ebe152e5bb8639b4c8f19b97c956c3210cc3cc5a05"
              },
              "branches": {
                "bytes": 1422,
                "sha256": "51962e1104a5b8e33240a820299377aae2030a0c2c4e7a8fcf6481d562b381d0"
              },
              "claim_assessments": {
                "bytes": 124302,
                "sha256": "aede28297384b6472f23a0e29c166bcd209d473b47c81e0f5d6a31406d319873"
              },
              "claim_documents": {
                "bytes": 187786,
                "sha256": "0e558a26e99eecfd60c9e9ec434df3a95b2a10074ef8c21af20ccc3692f48b68"
              },
              "claim_payments": {
                "bytes": 51099,
                "sha256": "056c9cf0c635e4a7f95533a013346531a456793472fbe4e2b1541c000df46e6b"
              },
              "claims": {
                "bytes": 160769,
                "sha256": "8ea48071e80bb62cb34655df5c3ab2f69951d7a40ce5a8b092d3cd9997044e15"
              },
              "commissions": {
                "bytes": 354479,
                "sha256": "dd41f93239485f936e0f9194b95b4704ef444141549ed368866819aa348606c8"
              },
              "companies": {
                "bytes": 675,
                "sha256": "443f850f24aacda22a934802181ad4bee86cc62fab61c7fd9809798dc42af172"
              },
              "customer_support_tickets": {
                "bytes": 34891,
                "sha256": "8bf832ca3028890c2654c013d6780171ad16faf628e9134192ef953a8c7fb2a3"
              },
              "customers": {
                "bytes": 503802,
                "sha256": "82e10ab5f074ee7561c8e900ce667058ba462feb0d8491d4b88ccb293af86002"
              },
              "documents": {
                "bytes": 292498,
                "sha256": "72a1d4fb256227225bb498e5fd6a7a7cdd12035338c19ff43f60cfc1fa4fbda0"
              },
              "invoices": {
                "bytes": 6009133,
                "sha256": "2f3cc03c123c4888403d3b773b89a3077d894f931a118c4d7ba361ffa246e10e"
              },
              "medical_providers": {
                "bytes": 6392,
                "sha256": "f38d83bd848cded411b23e9ccba839a57141f1ad7e36c338167ad253e4fc4e4a"
              },
              "medical_treatments": {
                "bytes": 23008,
                "sha256": "024e9960bdbdc63aaf5c356c7a1bbac578abac24bc0022713f32940e2d3988b3"
              },
              "payments": {
                "bytes": 4939990,
                "sha256": "9876cc1ac3026ba5ffaab1109fbcb152f6e23c1b889dc8e9a73bba979fac01bb"
              },
              "policies": {
                "bytes": 563318,
                "sha256": "4fdde251cef9031f78e9e4d941f7f666f9f019fdd9115ffd71a0f0426bd71254"
              },
              "policy_categories": {
                "bytes": 214,
                "sha256": "1df6b45a0bcc66b6d98881c0e70c7ea9b90af3b84c61d3136406703f70c353c3"
              },
              "policy_plans": {
                "bytes": 1438,
                "sha256": "166b49df76b5398b692ce321eba5d1fd7c5467a3fc0c2cdbadcf3e1e4d3fadef"
              },
              "policy_riders": {
                "bytes": 195409,
                "sha256": "198d23763639e9e9f5d8d5fc1e7d2b07e9a3087cb0257fe9a470031841dd58c2"
              },
              "properties": {
                "bytes": 97763,
                "sha256": "4190c8f7398064f2f7a2d2e2dffec0d239b67031f76fcbedf1adaf4bf85a882d"
              },
              "reinsurance_claims": {
                "bytes": 8344,
                "sha256": "53e4029253cbfc1b78f1e2ac048a47dc75d1981b078c707af9893f7de0063aec"
              },
              "reinsurance_companies": {
                "bytes": 349,
                "sha256": "200301ce27dfd7a84043c87f3f438d02bfac19163539ef15fb70f65fe69f468d"
              },
              "reinsurance_contracts": {
                "bytes": 690,
                "sha256": "2c70c6820dc055c3acfc98eb829254bb497cc5f047c829366e455c410a37c48e"
              },
              "renewals": {
                "bytes": 173483,
                "sha256": "cd3bd103250bc4dc518341434d2f8f6412bed77a8a92902fc01f186102a0081e"
              },
              "underwriters": {
                "bytes": 2889,
                "sha256": "36bfa79bc912aa397796da27cae6c82574b36337f9fa86c2438c6769e222a29c"
              },
              "underwriting_assessments": {
                "bytes": 470477,
                "sha256": "b31acca579a3232344864d009300599feed20297a92446b7cf23265e6ae79670"
              },
              "vehicles": {
                "bytes": 193781,
                "sha256": "af03a00e1ff35f0c3e3bc6dc2d00460cc199b5066b3e86a3b87c4b3d761cdcd0"
              }
            },
            "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 premium is one to two and a half times its plan's minimum and a coverage at most its maximum; a policy runs a year and was underwritten before it began",
            "violations": 0
          },
          {
            "name": "An installment bills the monthly premium inside the term and falls due thirty days later; a payment pays one in full within those thirty days",
            "violations": 0
          },
          {
            "name": "A commission goes to the agent who sold the policy, on a payment of that policy, at the agent's rate",
            "violations": 0
          },
          {
            "name": "What is insured fits the line of cover: a vehicle on an auto policy, a property on a home policy, a beneficiary on a life policy, a medical treatment on a health claim",
            "violations": 0
          },
          {
            "name": "A claim happens inside the policy term, is reported within thirty days with an estimate inside the coverage, and its assessment carries its decision",
            "violations": 0
          },
          {
            "name": "Only an approved claim is paid, and it is paid what its assessment approved: part of the estimate less the deductible, never below nothing",
            "violations": 0
          },
          {
            "name": "A renewal starts the day after the term ends and costs 3-10% more; reinsurance asks for its contract’s share of an approved payout",
            "violations": 0
          }
        ],
        "dirty": {
          "report": {
            "rates": {
              "missing": 0.03,
              "typos": 0.03,
              "outliers": 0.005,
              "duplicates": 0.01
            },
            "tables": {
              "addresses": {
                "duplicates": 56,
                "columns": {
                  "city": {
                    "missing": 229,
                    "typos": 184,
                    "outliers": 0
                  },
                  "country": {
                    "missing": 190,
                    "typos": 197,
                    "outliers": 0
                  },
                  "postal_code": {
                    "missing": 199,
                    "typos": 63,
                    "outliers": 0
                  },
                  "state": {
                    "missing": 191,
                    "typos": 200,
                    "outliers": 0
                  },
                  "street": {
                    "missing": 219,
                    "typos": 194,
                    "outliers": 0
                  }
                }
              },
              "branches": {
                "duplicates": 0,
                "columns": {
                  "name": {
                    "missing": 4,
                    "typos": 1,
                    "outliers": 0
                  },
                  "phone": {
                    "missing": 3,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "agents": {
                "duplicates": 2,
                "columns": {
                  "email": {
                    "missing": 12,
                    "typos": 10,
                    "outliers": 0
                  },
                  "first_name": {
                    "missing": 12,
                    "typos": 8,
                    "outliers": 0
                  },
                  "hire_date": {
                    "missing": 7,
                    "typos": 0,
                    "outliers": 0
                  },
                  "last_name": {
                    "missing": 11,
                    "typos": 5,
                    "outliers": 0
                  },
                  "license_number": {
                    "missing": 6,
                    "typos": 6,
                    "outliers": 0
                  },
                  "phone": {
                    "missing": 12,
                    "typos": 2,
                    "outliers": 0
                  }
                }
              },
              "adjusters": {
                "duplicates": 2,
                "columns": {
                  "email": {
                    "missing": 1,
                    "typos": 2,
                    "outliers": 0
                  },
                  "first_name": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "last_name": {
                    "missing": 5,
                    "typos": 1,
                    "outliers": 0
                  },
                  "license_number": {
                    "missing": 2,
                    "typos": 2,
                    "outliers": 0
                  },
                  "phone": {
                    "missing": 2,
                    "typos": 1,
                    "outliers": 0
                  }
                }
              },
              "customers": {
                "duplicates": 59,
                "columns": {
                  "date_of_birth": {
                    "missing": 184,
                    "typos": 0,
                    "outliers": 0
                  },
                  "email": {
                    "missing": 167,
                    "typos": 164,
                    "outliers": 0
                  },
                  "first_name": {
                    "missing": 180,
                    "typos": 187,
                    "outliers": 0
                  },
                  "gender": {
                    "missing": 194,
                    "typos": 176,
                    "outliers": 0
                  },
                  "last_name": {
                    "missing": 164,
                    "typos": 202,
                    "outliers": 0
                  },
                  "phone": {
                    "missing": 163,
                    "typos": 47,
                    "outliers": 0
                  }
                }
              },
              "customer_support_tickets": {
                "duplicates": 4,
                "columns": {
                  "date": {
                    "missing": 14,
                    "typos": 0,
                    "outliers": 0
                  },
                  "description": {
                    "missing": 17,
                    "typos": 16,
                    "outliers": 0
                  },
                  "status": {
                    "missing": 14,
                    "typos": 11,
                    "outliers": 0
                  },
                  "subject": {
                    "missing": 12,
                    "typos": 16,
                    "outliers": 0
                  }
                }
              },
              "medical_providers": {
                "duplicates": 0,
                "columns": {
                  "email": {
                    "missing": 6,
                    "typos": 2,
                    "outliers": 0
                  },
                  "name": {
                    "missing": 1,
                    "typos": 5,
                    "outliers": 0
                  },
                  "phone": {
                    "missing": 2,
                    "typos": 0,
                    "outliers": 0
                  },
                  "provider_type": {
                    "missing": 2,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "policy_categories": {
                "duplicates": 0,
                "columns": {
                  "name": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "policy_plans": {
                "duplicates": 0,
                "columns": {
                  "description": {
                    "missing": 1,
                    "typos": 1,
                    "outliers": 0
                  },
                  "max_coverage": {
                    "missing": 2,
                    "typos": 0,
                    "outliers": 1
                  },
                  "name": {
                    "missing": 0,
                    "typos": 1,
                    "outliers": 0
                  }
                }
              },
              "policies": {
                "duplicates": 65,
                "columns": {
                  "coverage": {
                    "missing": 229,
                    "typos": 0,
                    "outliers": 36
                  },
                  "end_date": {
                    "missing": 234,
                    "typos": 0,
                    "outliers": 0
                  },
                  "number": {
                    "missing": 263,
                    "typos": 250,
                    "outliers": 0
                  },
                  "premium": {
                    "missing": 239,
                    "typos": 0,
                    "outliers": 42
                  },
                  "start_date": {
                    "missing": 245,
                    "typos": 0,
                    "outliers": 0
                  },
                  "status": {
                    "missing": 204,
                    "typos": 241,
                    "outliers": 0
                  }
                }
              },
              "beneficiaries": {
                "duplicates": 17,
                "columns": {
                  "first_name": {
                    "missing": 66,
                    "typos": 58,
                    "outliers": 0
                  },
                  "last_name": {
                    "missing": 55,
                    "typos": 58,
                    "outliers": 0
                  },
                  "percentage": {
                    "missing": 69,
                    "typos": 0,
                    "outliers": 8
                  },
                  "phone": {
                    "missing": 65,
                    "typos": 24,
                    "outliers": 0
                  },
                  "relationship": {
                    "missing": 44,
                    "typos": 73,
                    "outliers": 0
                  }
                }
              },
              "claims": {
                "duplicates": 22,
                "columns": {
                  "description": {
                    "missing": 61,
                    "typos": 62,
                    "outliers": 0
                  },
                  "estimated_loss": {
                    "missing": 60,
                    "typos": 0,
                    "outliers": 10
                  },
                  "incident_date": {
                    "missing": 76,
                    "typos": 0,
                    "outliers": 0
                  },
                  "number": {
                    "missing": 55,
                    "typos": 55,
                    "outliers": 0
                  },
                  "report_date": {
                    "missing": 51,
                    "typos": 0,
                    "outliers": 0
                  },
                  "status": {
                    "missing": 59,
                    "typos": 53,
                    "outliers": 0
                  }
                }
              },
              "claim_assessments": {
                "duplicates": 19,
                "columns": {
                  "approved": {
                    "missing": 73,
                    "typos": 0,
                    "outliers": 7
                  },
                  "date": {
                    "missing": 42,
                    "typos": 0,
                    "outliers": 0
                  },
                  "deductible": {
                    "missing": 59,
                    "typos": 0,
                    "outliers": 9
                  },
                  "notes": {
                    "missing": 53,
                    "typos": 55,
                    "outliers": 0
                  },
                  "status": {
                    "missing": 66,
                    "typos": 58,
                    "outliers": 0
                  }
                }
              },
              "claim_documents": {
                "duplicates": 31,
                "columns": {
                  "file_path": {
                    "missing": 100,
                    "typos": 85,
                    "outliers": 0
                  },
                  "name": {
                    "missing": 111,
                    "typos": 96,
                    "outliers": 0
                  },
                  "type": {
                    "missing": 103,
                    "typos": 83,
                    "outliers": 0
                  },
                  "upload_date": {
                    "missing": 88,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "claim_payments": {
                "duplicates": 7,
                "columns": {
                  "amount": {
                    "missing": 29,
                    "typos": 0,
                    "outliers": 4
                  },
                  "date": {
                    "missing": 28,
                    "typos": 0,
                    "outliers": 0
                  },
                  "method": {
                    "missing": 35,
                    "typos": 38,
                    "outliers": 0
                  },
                  "recipient": {
                    "missing": 24,
                    "typos": 28,
                    "outliers": 0
                  }
                }
              },
              "documents": {
                "duplicates": 40,
                "columns": {
                  "file_path": {
                    "missing": 118,
                    "typos": 120,
                    "outliers": 0
                  },
                  "name": {
                    "missing": 121,
                    "typos": 118,
                    "outliers": 0
                  },
                  "type": {
                    "missing": 103,
                    "typos": 136,
                    "outliers": 0
                  },
                  "upload_date": {
                    "missing": 124,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "invoices": {
                "duplicates": 969,
                "columns": {
                  "amount_due": {
                    "missing": 3105,
                    "typos": 0,
                    "outliers": 498
                  },
                  "due_date": {
                    "missing": 2998,
                    "typos": 0,
                    "outliers": 0
                  },
                  "issue_date": {
                    "missing": 2909,
                    "typos": 0,
                    "outliers": 0
                  },
                  "number": {
                    "missing": 3077,
                    "typos": 2891,
                    "outliers": 0
                  },
                  "status": {
                    "missing": 2909,
                    "typos": 3053,
                    "outliers": 0
                  }
                }
              },
              "medical_treatments": {
                "duplicates": 4,
                "columns": {
                  "cost": {
                    "missing": 13,
                    "typos": 0,
                    "outliers": 3
                  },
                  "date": {
                    "missing": 11,
                    "typos": 0,
                    "outliers": 0
                  },
                  "details": {
                    "missing": 9,
                    "typos": 12,
                    "outliers": 0
                  },
                  "diagnosis": {
                    "missing": 9,
                    "typos": 6,
                    "outliers": 0
                  }
                }
              },
              "payments": {
                "duplicates": 889,
                "columns": {
                  "amount_paid": {
                    "missing": 2792,
                    "typos": 0,
                    "outliers": 482
                  },
                  "date": {
                    "missing": 2679,
                    "typos": 0,
                    "outliers": 0
                  },
                  "method": {
                    "missing": 2814,
                    "typos": 2687,
                    "outliers": 0
                  },
                  "reference": {
                    "missing": 2680,
                    "typos": 2666,
                    "outliers": 0
                  }
                }
              },
              "commissions": {
                "duplicates": 77,
                "columns": {
                  "amount": {
                    "missing": 236,
                    "typos": 0,
                    "outliers": 38
                  },
                  "date": {
                    "missing": 251,
                    "typos": 0,
                    "outliers": 0
                  },
                  "rate": {
                    "missing": 241,
                    "typos": 0,
                    "outliers": 32
                  },
                  "status": {
                    "missing": 270,
                    "typos": 238,
                    "outliers": 0
                  }
                }
              },
              "policy_riders": {
                "duplicates": 31,
                "columns": {
                  "coverage_limit": {
                    "missing": 89,
                    "typos": 0,
                    "outliers": 16
                  },
                  "description": {
                    "missing": 101,
                    "typos": 92,
                    "outliers": 0
                  },
                  "name": {
                    "missing": 81,
                    "typos": 113,
                    "outliers": 0
                  },
                  "premium": {
                    "missing": 95,
                    "typos": 0,
                    "outliers": 18
                  }
                }
              },
              "properties": {
                "duplicates": 34,
                "columns": {
                  "square_footage": {
                    "missing": 73,
                    "typos": 0,
                    "outliers": 6
                  },
                  "type": {
                    "missing": 53,
                    "typos": 59,
                    "outliers": 0
                  },
                  "value": {
                    "missing": 71,
                    "typos": 0,
                    "outliers": 6
                  },
                  "year_built": {
                    "missing": 61,
                    "typos": 0,
                    "outliers": 14
                  }
                }
              },
              "reinsurance_companies": {
                "duplicates": 0,
                "columns": {
                  "email": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "reinsurance_contracts": {
                "duplicates": 0,
                "columns": {
                  "end_date": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  },
                  "start_date": {
                    "missing": 1,
                    "typos": 0,
                    "outliers": 0
                  }
                }
              },
              "reinsurance_claims": {
                "duplicates": 3,
                "columns": {
                  "date": {
                    "missing": 7,
                    "typos": 0,
                    "outliers": 0
                  },
                  "paid": {
                    "missing": 4,
                    "typos": 0,
                    "outliers": 1
                  },
                  "requested": {
                    "missing": 7,
                    "typos": 0,
                    "outliers": 0
                  },
                  "status": {
                    "missing": 12,
                    "typos": 7,
                    "outliers": 0
                  }
                }
              },
              "renewals": {
                "duplicates": 31,
                "columns": {
                  "date": {
                    "missing": 90,
                    "typos": 0,
                    "outliers": 0
                  },
                  "end_date": {
                    "missing": 89,
                    "typos": 0,
                    "outliers": 0
                  },
                  "premium": {
                    "missing": 78,
                    "typos": 0,
                    "outliers": 13
                  },
                  "start_date": {
                    "missing": 84,
                    "typos": 0,
                    "outliers": 0
                  },
                  "status": {
                    "missing": 102,
                    "typos": 92,
                    "outliers": 0
                  }
                }
              },
              "underwriters": {
                "duplicates": 0,
                "columns": {
                  "certification_level": {
                    "missing": 0,
                    "typos": 2,
                    "outliers": 0
                  },
                  "email": {
                    "missing": 0,
                    "typos": 2,
                    "outliers": 0
                  },
                  "first_name": {
                    "missing": 2,
                    "typos": 2,
                    "outliers": 0
                  },
                  "last_name": {
                    "missing": 1,
                    "typos": 4,
                    "outliers": 0
                  },
                  "phone": {
                    "missing": 0,
                    "typos": 3,
                    "outliers": 0
                  }
                }
              },
              "underwriting_assessments": {
                "duplicates": 87,
                "columns": {
                  "date": {
                    "missing": 237,
                    "typos": 0,
                    "outliers": 0
                  },
                  "decision": {
                    "missing": 242,
                    "typos": 234,
                    "outliers": 0
                  },
                  "notes": {
                    "missing": 244,
                    "typos": 267,
                    "outliers": 0
                  },
                  "risk_score": {
                    "missing": 257,
                    "typos": 0,
                    "outliers": 52
                  }
                }
              },
              "vehicles": {
                "duplicates": 23,
                "columns": {
                  "license_plate": {
                    "missing": 95,
                    "typos": 78,
                    "outliers": 0
                  },
                  "make": {
                    "missing": 80,
                    "typos": 91,
                    "outliers": 0
                  },
                  "model": {
                    "missing": 93,
                    "typos": 92,
                    "outliers": 0
                  },
                  "value": {
                    "missing": 96,
                    "typos": 0,
                    "outliers": 19
                  },
                  "vin": {
                    "missing": 95,
                    "typos": 96,
                    "outliers": 0
                  },
                  "year": {
                    "missing": 96,
                    "typos": 0,
                    "outliers": 12
                  }
                }
              }
            },
            "totals": {
              "missing": 35223,
              "typos": 16182,
              "outliers": 1327,
              "duplicates": 2472
            }
          },
          "downloads": [
            {
              "format": "dirty-sql-postgres",
              "label": "PostgreSQL, with faults",
              "file": "flagship/100k/dirty-postgres.sql.gz",
              "key": "datasets/insurance-sample-database/v1/flagship/100k/dirty-postgres.sql.gz",
              "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/flagship/100k/dirty-postgres.sql.gz",
              "bytes": 4985176,
              "sha256": "4e98ad81f5602c7732b1dd2be0173aa93be536ac9a1909188633d970f437fcd9",
              "raw": {
                "bytes": 19849417,
                "sha256": "0e6a9b01d84e74b5a364327c790cc80e9eccc7e1afa09898abd2290bd704ca5a"
              },
              "contentType": "application/gzip"
            },
            {
              "format": "dirty-csv",
              "label": "CSV, with faults",
              "file": "flagship/100k/dirty-csv.zip",
              "key": "datasets/insurance-sample-database/v1/flagship/100k/dirty-csv.zip",
              "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/flagship/100k/dirty-csv.zip",
              "bytes": 4968603,
              "sha256": "69fea2426bc251d234dfd5470584789a256f3c8eb40c2c3601661ac5d3e16153",
              "tables": {
                "addresses": {
                  "bytes": 366789,
                  "sha256": "be0a4d8bee3d724599e56937c18111656302ab91376046889390ffa82ffb0bda"
                },
                "adjusters": {
                  "bytes": 4478,
                  "sha256": "5df76dcf9fe05eadd9eb911d392f1782d1158674951c0c98f107a09f5c22b5b6"
                },
                "agencies": {
                  "bytes": 1012,
                  "sha256": "8e5844f33f794dd43d3ba1978c54ed9cd5a76c0f1bb2617bd8a82f6ae6da43b6"
                },
                "agents": {
                  "bytes": 25648,
                  "sha256": "340701b369c820da5e05f323dcc00c5430f2584834733c00aac98dd28c997b3a"
                },
                "beneficiaries": {
                  "bytes": 100954,
                  "sha256": "211a0c74e03824e126f90054afd3fe82683ad7f9758f164745e76b1ccb649a62"
                },
                "branches": {
                  "bytes": 1348,
                  "sha256": "7e3a1c4a1c29762defceb428b91fba569aca8bdfe31bd1092d6281bf5e8914a5"
                },
                "claim_assessments": {
                  "bytes": 123226,
                  "sha256": "f0a6526ac3f2cc4f921efc6aca3521b27b99f4bec60bc75318ade8e0e50d2c80"
                },
                "claim_documents": {
                  "bytes": 185230,
                  "sha256": "ef8802dcb957f0a93d3deb935b7a087bc535c4aa1c782d0975a59bcbbff41bf2"
                },
                "claim_payments": {
                  "bytes": 50426,
                  "sha256": "21a905c4508cce6e97c9f755379f855f42feeae6a92a59d4a0428fa39c21c431"
                },
                "claims": {
                  "bytes": 158929,
                  "sha256": "34b9e80df5fd1b73d8cdfadd927052d76bbf85e9c1926953f6d2c0b1464ce22f"
                },
                "commissions": {
                  "bytes": 353190,
                  "sha256": "ddeaf5be204f4e6716bfdbb59a0b124b67a298bb8ffba344498994a16082b527"
                },
                "companies": {
                  "bytes": 675,
                  "sha256": "443f850f24aacda22a934802181ad4bee86cc62fab61c7fd9809798dc42af172"
                },
                "customer_support_tickets": {
                  "bytes": 34454,
                  "sha256": "4836660df83f06c5ef2c04207c1aeb71dfff9ba0a20c645c5f0f897a7444ba83"
                },
                "customers": {
                  "bytes": 497914,
                  "sha256": "5e909e75c9d161f8480805a8e2b8c89d67b3716749932c87600de6137e777b3e"
                },
                "documents": {
                  "bytes": 289522,
                  "sha256": "7d35443c80932fad462fd247ca17a40d82a745ffbdf881ab3740fc57c6cb7419"
                },
                "invoices": {
                  "bytes": 5944861,
                  "sha256": "5c06a7d8605c9bf1d042fd884e84a4d84b847b47d9444e37381c3f7888433a0d"
                },
                "medical_providers": {
                  "bytes": 6167,
                  "sha256": "1dd2d7727446e4a6a75acb79bf42080e906ad549460d4ddefa7ffb71a26b27af"
                },
                "medical_treatments": {
                  "bytes": 22856,
                  "sha256": "2a30c5ef0f497d98166386ffb09d954a70ee9e4ebe0e109624d66700dc42d3b8"
                },
                "payments": {
                  "bytes": 4893494,
                  "sha256": "03c99f4c4e6f2e4ea797fe11116140489e5008f9634db2e21e694dc700637df4"
                },
                "policies": {
                  "bytes": 557027,
                  "sha256": "ba4ffe9b86278f9f064a78fb61c6d08b81faf338b53997d26ae301d6d184b277"
                },
                "policy_categories": {
                  "bytes": 210,
                  "sha256": "e76fd22b6f20a402330281d46c2f333c64a18f70f903780d81af5d4263f5264a"
                },
                "policy_plans": {
                  "bytes": 1398,
                  "sha256": "24dd033be9b1d4cf004babd7fb4629f4e139b0a92bae0e4976ac9dd1c3919752"
                },
                "policy_riders": {
                  "bytes": 193096,
                  "sha256": "de8842ecdda3b16d38380b3ff9a74a5b113403245744ebdb546dfb698dc8980a"
                },
                "properties": {
                  "bytes": 97745,
                  "sha256": "0d5b77e79df19acb5bc822ea0faac77e64b40a5f956f2cc60796340b42272cf5"
                },
                "reinsurance_claims": {
                  "bytes": 8253,
                  "sha256": "a4d8dc5171958581dbbec8b51c391f3661a5ae6dd68f23c97230a537600b5a04"
                },
                "reinsurance_companies": {
                  "bytes": 323,
                  "sha256": "1cd2b761cc0b66e269fa1cb0fa251f27b662f2c6891d81676e958368b1408336"
                },
                "reinsurance_contracts": {
                  "bytes": 670,
                  "sha256": "938e82fe7dc6806773270d8fced372865733b133ac8cf682361da085676489b9"
                },
                "renewals": {
                  "bytes": 171633,
                  "sha256": "27ffbfd95d2bb353829e04e7ef244d7a638fba619441a8974d7bd796c02fc582"
                },
                "underwriters": {
                  "bytes": 2894,
                  "sha256": "8fefa16d40f7ae82943daa7b8ddf2581fb7c71aa71b288d795c02e09543b74b9"
                },
                "underwriting_assessments": {
                  "bytes": 466230,
                  "sha256": "195cbe48d4dcf7329de0ad415edc4b31b15fded486be4eadbee506d2dfa5ff7a"
                },
                "vehicles": {
                  "bytes": 191242,
                  "sha256": "94150b04753531e27a788975917f1cf9c1309a7f4aca36c1b4918c4dec64b5d0"
                }
              },
              "contentType": "application/zip"
            }
          ]
        }
      },
      "1m": {
        "rows": 2546585,
        "counts": {
          "addresses": 65000,
          "agencies": 12,
          "branches": 40,
          "agents": 300,
          "companies": 6,
          "adjusters": 60,
          "customers": 60000,
          "customer_support_tickets": 5000,
          "medical_providers": 80,
          "policy_categories": 5,
          "policy_plans": 25,
          "policies": 80000,
          "beneficiaries": 20000,
          "claims": 20000,
          "claim_assessments": 20000,
          "claim_documents": 30000,
          "claim_payments": 10000,
          "documents": 40000,
          "invoices": 1000000,
          "medical_treatments": 4000,
          "payments": 920000,
          "commissions": 80000,
          "policy_riders": 30000,
          "properties": 20000,
          "reinsurance_companies": 5,
          "reinsurance_contracts": 12,
          "reinsurance_claims": 2000,
          "renewals": 30000,
          "underwriters": 40,
          "underwriting_assessments": 80000,
          "vehicles": 30000
        },
        "notes": [
          "At this size the tables beside invoices were cut to 1/16 of it, so the whole build stays under 3,000,000 rows."
        ],
        "downloads": [
          {
            "format": "sql-postgres",
            "label": "PostgreSQL",
            "file": "flagship/1m/postgres.sql.gz",
            "key": "datasets/insurance-sample-database/v1/flagship/1m/postgres.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/flagship/1m/postgres.sql.gz",
            "bytes": 50387399,
            "sha256": "1e433eeda33efd50c61ea183d0029758f8dfb301f57f778219c510a118209a1b",
            "raw": {
              "bytes": 203286309,
              "sha256": "8f3df82efb617f4d6b12d257de03e85934015d2714bdff074ed14d0b07098464"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "sql-mysql",
            "label": "MySQL",
            "file": "flagship/1m/mysql.sql.gz",
            "key": "datasets/insurance-sample-database/v1/flagship/1m/mysql.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/flagship/1m/mysql.sql.gz",
            "bytes": 50385289,
            "sha256": "ff4c26e4a5c16980687e5716085509a49c97b30a7b13747a05c901fe7a9e4e0a",
            "raw": {
              "bytes": 203283227,
              "sha256": "616fa7c197a733d040eff79690c65bc63fd35e217cf30b1e5ee2e4cafa0ea847"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "sql-sqlite",
            "label": "SQLite",
            "file": "flagship/1m/sqlite.sql.gz",
            "key": "datasets/insurance-sample-database/v1/flagship/1m/sqlite.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/flagship/1m/sqlite.sql.gz",
            "bytes": 50384571,
            "sha256": "931af1f80f17279acb5c088f4bbda1c7aa422a0b8ccf19896fc5d5d2bd20cf7d",
            "raw": {
              "bytes": 203280210,
              "sha256": "da9e58a297fab295d69fde7ec44c97d7966ca74c0de6045b9abf67a2756ee4c2"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "csv",
            "label": "CSV",
            "file": "flagship/1m/csv.zip",
            "key": "datasets/insurance-sample-database/v1/flagship/1m/csv.zip",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/insurance-sample-database/v1/flagship/1m/csv.zip",
            "bytes": 50751432,
            "sha256": "343d713f0823294b0b1f2a795007379ead141876d5cad0fa7755f80d298fc63d",
            "tables": {
              "addresses": {
                "bytes": 3784438,
                "sha256": "c061df9d3761e7f6e1159d1b7c42ff37011af58c81bea99c591d94074c1ba80f"
              },
              "adjusters": {
                "bytes": 4503,
                "sha256": "80e56d55323095e0ee726c16324985bba82a185a1559eff1f658be6e5001aff1"
              },
              "agencies": {
                "bytes": 1019,
                "sha256": "8a68dec3d4c59cfe7af70743748b1aa7983e456a6c99436570c01d29f791e91f"
              },
              "agents": {
                "bytes": 26175,
                "sha256": "2a893930b69fcae01202501f5129baccb0e35c9a27ea1790b175da0f914fd884"
              },
              "beneficiaries": {
                "bytes": 1059546,
                "sha256": "493f60918e496a3eb347d6e865d06a43cf171e2a9c66b92a22dc798757e7ee22"
              },
              "branches": {
                "bytes": 1463,
                "sha256": "768ef45afb404cd1dc47e6779a8eb6952a1264ebd404b41efd67c3d1255f8d08"
              },
              "claim_assessments": {
                "bytes": 1283739,
                "sha256": "3c4df8af480a545e43b89cca36d8beab74c5888f2f1d113d2bd713ed8d5c6c0f"
              },
              "claim_documents": {
                "bytes": 1940315,
                "sha256": "c19dc3b2ccd8ee10c7df5b9bd6835fd1c371efabf8ff026dd55dd83f05338e0e"
              },
              "claim_payments": {
                "bytes": 531988,
                "sha256": "b94447615a96302641d17a65dd1f9fc566d6f9ba5c05344a9a57b097d119ce92"
              },
              "claims": {
                "bytes": 1648247,
                "sha256": "6a47c53b27449811f6b06137d1d6b494cd3f5b892c6d8298dd5086b2d857865f"
              },
              "commissions": {
                "bytes": 3784587,
                "sha256": "3a03436cdd7e18cac2dd724d643403bcb3389ede19afb27881afdfc2541674ea"
              },
              "companies": {
                "bytes": 668,
                "sha256": "2728498e6c2fc0eb1eef7a6032a28b5bc61a58a36df57c261d181729d730e31b"
              },
              "customer_support_tickets": {
                "bytes": 355940,
                "sha256": "7ebfba266947a5162681f31a13a7232f09a16acd230e0805f61d7dad9f01cd98"
              },
              "customers": {
                "bytes": 5163473,
                "sha256": "16b1ce5a3bf15f8b8b45aee414e2b307cfc8ab880ad36c9f7edb36f2163f4007"
              },
              "documents": {
                "bytes": 3039723,
                "sha256": "d4a16b02f6cf717baaf43bbef367ff47ef906f6ff49d560a842ce302c0c7ef36"
              },
              "invoices": {
                "bytes": 62090416,
                "sha256": "fdd20f0274368fcf44832191736a35c5c2315cc5d37a9a6beb0c06ce88c9127e"
              },
              "medical_providers": {
                "bytes": 6397,
                "sha256": "7ac5c2206cf1bada965d7da80aa3b845597449bc4dce612e23cfbf912b258087"
              },
              "medical_treatments": {
                "bytes": 236729,
                "sha256": "7c7f7888c00149c36a92c5fcae0fc0454b0b65b39c6da10229839f71cf885525"
              },
              "payments": {
                "bytes": 51252100,
                "sha256": "570a125d4719272df1046259b01df1602b3a125284ca843987d76c2b027396fd"
              },
              "policies": {
                "bytes": 5792995,
                "sha256": "11a5df67ae88e2da829f9dbd089992908b3ca95484dd958e92db2c30f0135ee7"
              },
              "policy_categories": {
                "bytes": 214,
                "sha256": "1df6b45a0bcc66b6d98881c0e70c7ea9b90af3b84c61d3136406703f70c353c3"
              },
              "policy_plans": {
                "bytes": 1396,
                "sha256": "d058f24f2b718027274280d6b453059d1d916b2fa76c9df6f52d8a8b74173d6f"
              },
              "policy_riders": {
                "bytes": 2014572,
                "sha256": "b5048a9ab86cea76200c651f1d726ee174f05bfbb1085b72ddc9b90993696c08"
              },
              "properties": {
                "bytes": 1036535,
                "sha256": "bb3f2b67f78c7fff898dfae2872fba0e6878b5cf74a37327c7275f09d8328cb4"
              },
              "reinsurance_claims": {
                "bytes": 86411,
                "sha256": "5d4381fc08c85f61cc60b56a06a18bb9ee61dd696a68872d06dd6eadd8ff56d0"
              },
              "reinsurance_companies": {
                "bytes": 349,
                "sha256": "7235f2a88d747167c8ef2906e958817c264d72fc878e33cea496c636980447e6"
              },
              "reinsurance_contracts": {
                "bytes": 691,
                "sha256": "edb16babe5a5bd2f239d1388b0be3334afed6604aa584ea2abb63101ce8400ff"
              },
              "renewals": {
                "bytes": 1794612,
                "sha256": "7fb9e3fcde1f6b5c640f3fb4e3a64ba366ea8135990bb806d438103de79898d0"
              },
              "underwriters": {
                "bytes": 2941,
                "sha256": "9832b709b14ba4539e693823e10fb769579c9650b63dba22e3c5e2cffb91aacf"
              },
              "underwriting_assessments": {
                "bytes": 4855659,
                "sha256": "b288823af97e0af57d636f519fc3b6ba03797bf9c8124d514e157e1d221c77b5"
              },
              "vehicles": {
                "bytes": 1996485,
                "sha256": "0229a3f8414eaec78366419bca988a70abb556eae3c39a0745739947b44cc729"
              }
            },
            "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 premium is one to two and a half times its plan's minimum and a coverage at most its maximum; a policy runs a year and was underwritten before it began",
            "violations": 0
          },
          {
            "name": "An installment bills the monthly premium inside the term and falls due thirty days later; a payment pays one in full within those thirty days",
            "violations": 0
          },
          {
            "name": "A commission goes to the agent who sold the policy, on a payment of that policy, at the agent's rate",
            "violations": 0
          },
          {
            "name": "What is insured fits the line of cover: a vehicle on an auto policy, a property on a home policy, a beneficiary on a life policy, a medical treatment on a health claim",
            "violations": 0
          },
          {
            "name": "A claim happens inside the policy term, is reported within thirty days with an estimate inside the coverage, and its assessment carries its decision",
            "violations": 0
          },
          {
            "name": "Only an approved claim is paid, and it is paid what its assessment approved: part of the estimate less the deductible, never below nothing",
            "violations": 0
          },
          {
            "name": "A renewal starts the day after the term ends and costs 3-10% more; reinsurance asks for its contract’s share of an approved payout",
            "violations": 0
          }
        ]
      }
    },
    "rules": [
      {
        "name": "A premium is one to two and a half times its plan's minimum and a coverage at most its maximum; a policy runs a year and was underwritten before it began",
        "sql": "SELECT (SELECT count(*) FROM policies p JOIN policy_plans pl ON pl.id = p.plan_id WHERE p.premium < pl.min_premium OR p.premium > round(pl.min_premium * 2.5, 2) OR p.coverage > pl.max_coverage OR p.end_date <> p.start_date + 365) + (SELECT count(*) FROM underwriting_assessments u JOIN policies p ON p.id = u.policy_id WHERE u.date >= p.start_date) + (SELECT count(*) FROM policies p LEFT JOIN underwriting_assessments u ON u.policy_id = p.id WHERE u.id IS NULL) AS violations"
      },
      {
        "name": "An installment bills the monthly premium inside the term and falls due thirty days later; a payment pays one in full within those thirty days",
        "sql": "SELECT (SELECT count(*) FROM invoices i JOIN policies p ON p.id = i.policy_id WHERE i.amount_due <> p.premium OR i.issue_date < p.start_date OR i.issue_date > p.start_date + 334 OR i.due_date <> i.issue_date + 30) + (SELECT count(*) FROM payments pa JOIN invoices i ON i.id = pa.invoice_id WHERE pa.amount_paid <> i.amount_due OR pa.date < i.issue_date OR pa.date > i.issue_date + 30) AS violations"
      },
      {
        "name": "A commission goes to the agent who sold the policy, on a payment of that policy, at the agent's rate",
        "sql": "SELECT count(*) AS violations FROM commissions c JOIN policies p ON p.id = c.policy_id LEFT JOIN payments pa ON pa.id = c.payment_id LEFT JOIN invoices i ON i.id = pa.invoice_id WHERE c.agent_id <> p.agent_id OR (c.payment_id IS NOT NULL AND (i.policy_id <> c.policy_id OR c.amount <> round(pa.amount_paid * c.rate / 100.0, 2) OR c.date < pa.date))"
      },
      {
        "name": "What is insured fits the line of cover: a vehicle on an auto policy, a property on a home policy, a beneficiary on a life policy, a medical treatment on a health claim",
        "sql": "SELECT (SELECT count(*) FROM vehicles v JOIN policies p ON p.id = v.policy_id JOIN policy_plans pl ON pl.id = p.plan_id JOIN policy_categories pc ON pc.id = pl.category_id WHERE pc.name <> 'Auto') + (SELECT count(*) FROM properties x JOIN policies p ON p.id = x.policy_id JOIN policy_plans pl ON pl.id = p.plan_id JOIN policy_categories pc ON pc.id = pl.category_id WHERE pc.name <> 'Home') + (SELECT count(*) FROM beneficiaries b JOIN policies p ON p.id = b.policy_id JOIN policy_plans pl ON pl.id = p.plan_id JOIN policy_categories pc ON pc.id = pl.category_id WHERE pc.name <> 'Life') + (SELECT count(*) FROM medical_treatments m JOIN claims c ON c.id = m.claim_id JOIN policies p ON p.id = c.policy_id JOIN policy_plans pl ON pl.id = p.plan_id JOIN policy_categories pc ON pc.id = pl.category_id WHERE pc.name <> 'Health') AS violations"
      },
      {
        "name": "A claim happens inside the policy term, is reported within thirty days with an estimate inside the coverage, and its assessment carries its decision",
        "sql": "SELECT (SELECT count(*) FROM claims c JOIN policies p ON p.id = c.policy_id WHERE c.incident_date < p.start_date OR c.incident_date > p.start_date + 364 OR c.report_date < c.incident_date OR c.report_date > c.incident_date + 30 OR c.estimated_loss > p.coverage) + (SELECT count(*) FROM claim_assessments a JOIN claims c ON c.id = a.claim_id WHERE a.status <> CASE c.status WHEN 'under review' THEN 'pending' ELSE c.status END OR a.date <= c.report_date) AS violations"
      },
      {
        "name": "Only an approved claim is paid, and it is paid what its assessment approved: part of the estimate less the deductible, never below nothing",
        "sql": "SELECT (SELECT count(*) FROM claim_assessments a JOIN claims c ON c.id = a.claim_id WHERE (c.status <> 'approved' AND a.approved <> 0) OR a.approved < 0 OR a.approved > c.estimated_loss) + (SELECT count(*) FROM claim_payments cp JOIN claims c ON c.id = cp.claim_id JOIN claim_assessments a ON a.claim_id = c.id WHERE c.status <> 'approved' OR cp.amount <> a.approved) AS violations"
      },
      {
        "name": "A renewal starts the day after the term ends and costs 3-10% more; reinsurance asks for its contract’s share of an approved payout",
        "sql": "SELECT (SELECT count(*) FROM renewals r JOIN policies p ON p.id = r.policy_id WHERE r.start_date <> p.end_date + 1 OR r.end_date <> r.start_date + 365 OR r.premium < round(p.premium * 1.03, 2) OR r.premium > round(p.premium * 1.10, 2)) + (SELECT count(*) FROM reinsurance_claims rc JOIN claims c ON c.id = rc.claim_id JOIN claim_assessments a ON a.claim_id = c.id JOIN reinsurance_contracts k ON k.id = rc.reinsurance_contract_id WHERE c.status <> 'approved' OR rc.requested <> round(a.approved * k.coverage_percentage / 100.0, 2) OR rc.paid > rc.requested) AS violations"
      }
    ]
  },
  "publishedAt": 1791385384951,
  "updatedAt": 1791385384951
}
