Polish companies

Fifty companies with the numbers Polish business forms ask for, each with a correct check digit.

pl-PL 1 table 50 rows CSV

NIP and REGON never repeat in the table, so each row can stand for a different company. The legal form is drawn from the list in the recipe. Change the list, or add columns of your own with values. A correct NIP or REGON can belong to a real company, so keep the file in test systems.

The table has no company names, because this version has no generator for them.

The recipe

companies-pl.yaml
# Fifty Polish companies, in one table.
#
# Each row has a tax number (NIP), a business register number (REGON), a legal
# form, a city and a bank account number (IBAN), each identifier with a correct
# check digit. A correct number can belong to a real company, so keep the file
# in test systems.
#
#   qadg generate companies-pl.yaml
#
# writes company.csv and run-note.json. The same seed gives the same rows on
# every machine.
version: "0.1"
seed: "companies-pl"
locale: pl-PL
entities:
  company:
    count: 50
    primary_key: [nip]
    fields:
      nip:        { generator: nip, unique: true }
      regon:      { generator: regon, unique: true }
      legal_form: { values: [sp. z o.o., S.A., sp.j., sp.k.] }
      city:       { generator: city }
      iban:       { generator: iban }
output:
  format: csv

Run it

Save the recipe, then run this in the same folder. This is what the program printed for it.

terminal
$ qadg generate companies-pl.yaml
       company: 50 rows, 5 columns
1 table, 50 rows written

What it writes

company.csv

The first 5 of its 50 rows.

nipregonlegal_formcityiban
6123612198161731747S.A.OławaPL95092694357242378771219949
9466891779452834258S.A.RadomPL48041104978666776178784468
8870278775881288496S.A.GiżyckoPL07919757511954232970525891
2769709304682958433sp.j.WałbrzychPL69805938857643286365341555
9685456569010096618sp.k.Wodzisław ŚląskiPL29239692298428542066837746

run-note.json

The seed, the locale and the versions behind the run, and every table it wrote with its rows and columns.