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.
- Languages
eng- Formats
csv
Recipe
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_nois 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 —
nameis acompanyname andlegal_formalegalFormthat follows the supplier's country, so the two read like one legal entity. - Contact person —
contact_nameandcontact_emailshare asame(person)group, so the contact is one coherent person. - Address block —
phone,postal_code,city,region,countryandcountry_codeshare asame(geo)group, so they all describe one place;streetis a standalone street name. - Tax and bank identity —
vat_idis a check-digit-validvatIdandibana check-digit-validiban, both unique;bicandcurrencyfollow the samesame(geo)group so they match the supplier's country. - Commercial terms —
payment_termsis a fixedenum,lead_time_daysa bounded integer, andactivea boolean status flag;websiteis 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_nomask to match your source system's reference format. - Add or drop columns to mirror the exact columns of your import template.
- Replace the
payment_termsvalues with the categories your target system accepts, or piniban(country: "DE")for one country's bank details. - Raise
rowsto 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