Skip to content

Customer identity and contact records

A customer master table with coherent names, e-mail, birth date, locale and contact fields.

simple volume small CustomersPeopleContact
Languages
eng
Formats
csv

Recipe

recipe.gbddl
gbddl 1
language eng

table customers rows 12 (
  id           int64 autoincrement primarykey
  first_name   text same(person) firstName()
  last_name    text same(person) lastName()
  full_name    text same(person) fullName()
  gender       text same(person) gender()
  email        text same(person) email()
  birth_date   date date(min: "1950-01-01", max: "2005-12-31")
  city         text same(geo) city()
  country      text same(geo) country()
  country_code text same(geo) countryCode()
  phone        text same(geo) phone()
  created_at   timestamp datetime(min: "2020-01-01 00:00:00", max: "2024-12-31 23:59:59")
  active       boolean boolean()
)

output csv

This is the exact recipe.gbddl committed to the repository. Copy it, or download the raw source.

About this recipe

Customers

A single-table recipe that generates a customer master: coherent identity and contact fields for twelve synthetic people.

What it demonstrates

  • Person identity — firstName, lastName, fullName and gender share a same(person) group, so every row describes one coherent person.
  • Contact — email derives from that same person, and phone joins a same(geo) group so it matches the row's country.
  • Locale — city, country and countryCode share a same(geo) group, so the three always describe the same place.
  • Identity key — id is an autoincrement primary key.

Run it

Submit the recipe body to POST /api/v1/jobs?input_format=gbddl, or paste it into Chef, to generate the data. The repository's local runner (run by task test) also generates it and verifies its output.

The recipe outputs one CSV table file, customers.csv, holding twelve rows.

Adapt it

  • Raise rows to produce a larger customer list.
  • Add null(...) to a column to model incomplete records.
  • Change language eng to another showcase language to localize names and geography.

Guarantees

Every row has a unique id, names and e-mail stay coherent per person, and the geography columns describe one place per row. Amounts and dates are synthetic and do not reference real people.

Tested features

Smart types, physical types, rules and formats this recipe exercises and verifies.

firstNamelastNamefullNamegenderemailphonedatedatetimebooleancitycountrycountryCodesame:personsame:geographyautoincrementprimary-key