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.
| nip | regon | legal_form | city | iban |
|---|---|---|---|---|
| 6123612198 | 161731747 | S.A. | Oława | PL95092694357242378771219949 |
| 9466891779 | 452834258 | S.A. | Radom | PL48041104978666776178784468 |
| 8870278775 | 881288496 | S.A. | Giżycko | PL07919757511954232970525891 |
| 2769709304 | 682958433 | sp.j. | Wałbrzych | PL69805938857643286365341555 |
| 9685456569 | 010096618 | sp.k. | Wodzisław Śląski | PL29239692298428542066837746 |
run-note.json
The seed, the locale and the versions behind the run, and every table it wrote with its rows and columns.