Skip to content

Generic supplier import columns

A flat supplier import file: an external reference, company and legal form, a contact person, a full address block, tax and bank identity, a website, payment terms, lead time and a status flag.

simple volume small SuppliersImportContactGeographyBanking
Languages
eng
Formats
csv

Recipe

recipe.gbddl
gbddl 1
language eng

table suppliers rows 20 (
  id             int64 autoincrement primarykey
  supplier_no    text unique pattern(pattern: "SUP-######")
  name           text company()
  legal_form     text same(geo) legalForm()
  contact_name   text same(person) fullName()
  contact_email  text same(person) email()
  phone          text same(geo) phone()
  street         text street()
  postal_code    text same(geo) postcode()
  city           text same(geo) city()
  region         text same(geo) subdivision()
  country        text same(geo) country()
  country_code   text same(geo) countryCode()
  vat_id         text unique vatId()
  iban           text unique same(geo) iban()
  bic            text same(geo) bic()
  currency       text same(geo) currency()
  website        text null(20%) url()
  payment_terms  text enum(values: ["net 15", "net 30", "net 60", "prepaid"])
  lead_time_days int64 integer(min: 1, max: 60)
  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

Supplier import

A single-table recipe that generates a flat supplier import file: one row per supplier, shaped like the interchange CSV an integration tool or spreadsheet would hand to a target system. It is a generic import shape, not compliance with any named ERP.

What it demonstrates

  • External reference — supplier_no is a source-system code (SUP-######) and is unique, the way an import file carries its own key instead of relying on an internal id.
  • Business identity — name is a company name and legal_form a legalForm that follows the supplier's country, so the two read like one legal entity.
  • Contact person — contact_name and contact_email share a same(person) group, so the contact is one coherent person.
  • Address block — phone, postal_code, city, region, country and country_code share a same(geo) group, so they all describe one place; street is a standalone street name.
  • Tax and bank identity — vat_id is a check-digit-valid vatId and iban a check-digit-valid iban, both unique; bic and currency follow the same same(geo) group so they match the supplier's country.
  • Commercial terms — payment_terms is a fixed enum, lead_time_days a bounded integer, and active a boolean status flag; website is a URL that is null for one in five suppliers.

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 twenty rows.

Adapt it

  • Change the supplier_no mask to match your source system's reference format.
  • Add or drop columns to mirror the exact columns of your import template.
  • Replace the payment_terms values with the categories your target system accepts, or pin iban(country: "DE") for one country's bank details.
  • Raise rows to produce a larger import file.

Guarantees

Every row has a unique id, supplier_no, vat_id and iban; the contact name and e-mail stay coherent per person, and the address, bank and currency columns describe one country per row. Values are synthetic and do not reference real suppliers or accounts.

Tested features

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

patterncompanylegalFormfullNameemailphonestreetpostcodecitysubdivisioncountrycountryCodevatIdibanbiccurrencyurlenumintegerbooleannulluniqueautoincrementprimary-keysame:personsame:geography