Skip to content

Supplier business identity and address

A supplier master with company names, a contact person, address, tax identity and an activity flag.

simple volume small SuppliersContactFinance
Languages
eng
Formats
csv

Recipe

recipe.gbddl
gbddl 1
language eng

table suppliers rows 12 (
  id            int64 autoincrement primarykey
  name          text unique company()
  contact_name  text same(person) fullName()
  contact_email text unique same(person) email()
  phone         text same(geo) phone()
  street        text street()
  city          text same(geo) city()
  country       text same(geo) country()
  country_code  text same(geo) countryCode()
  vat_id        text unique vatId()
  active        boolean boolean(trueRate: 90%)
)

output csv

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

About this recipe

Suppliers

A single-table recipe that generates a supplier master: company identity, a contact person, address and tax identity for twelve synthetic businesses.

What it demonstrates

  • Business identity — name is a company name and vat_id a vatId with a valid check digit, both unique.
  • Contact person — contact_name and contact_email share a same(person) group, so they describe one coherent person.
  • Address — phone, city, country and country_code share a same(geo) group, so they describe one place; street is a street name.

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, suppliers.csv, holding twelve rows.

Adapt it

  • Raise rows for a larger supplier list.
  • Add legalForm() to include the supplier's legal form.

Guarantees

Every row has a unique id, name, contact_email and vat_id; the contact fields are coherent per person and the address fields coherent per place. Identifiers and names are synthetic.

Tested features

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

companyfullNameemailphonestreetcitycountrycountryCodevatIdsame:personsame:geographyuniqueautoincrementprimary-key