Skip to content

Country-aware bank accounts

Bank accounts whose IBAN, BIC, currency and country stay coherent per row.

simple volume small BankingFinance
Languages
eng
Formats
csv

Recipe

recipe.gbddl
gbddl 1
language eng

table bank_accounts rows 10 (
  id           int64 autoincrement primarykey
  city         text same(geo) city()
  country      text same(geo) country()
  country_code text same(geo) countryCode()
  iban         text unique same(geo) iban(formatted: true)
  bic          text same(geo) bic()
  currency     text same(geo) currency()
  holder       text fullName()
  opened_on    date date(min: "2015-01-01", max: "2024-12-31")
  balance      decimal(14, 2) decimal(min: -1000000, max: 10000000)
)

output csv

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

About this recipe

Bank accounts

A single-table recipe that generates country-aware bank accounts: the IBAN, BIC, currency and country of each account describe one coherent place.

What it demonstrates

  • Banking coherence — city, country, country_code, iban, bic and currency share a same(geo) group, so the IBAN and BIC match the country.
  • Structured identifiers — iban is a formatted, check-digit-valid IBAN in a varchar(34) column, unique per row.
  • Balances — balance is a signed decimal amount.

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, bank_accounts.csv, holding ten rows.

Adapt it

  • Pin iban(country: "DE") for one country's accounts.
  • Raise rows for a larger account list.

Guarantees

Every row has a unique id and iban; the IBAN, BIC, currency and country are coherent per row. Account data is synthetic.

Tested features

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

citycountrycountryCodeibanbiccurrencyfullNamedatedecimaluniquesame:geographyautoincrementprimary-key