Skip to content

Employee people and employment attributes

A workforce register with coherent names, salary, hire date, age and an activity flag.

simple volume small EmployeesPeopleContact
Languages
eng
Formats
csv

Recipe

recipe.gbddl
gbddl 1
language eng

table employees rows 15 (
  id          int64 autoincrement primarykey
  first_name  text same(person) firstName()
  middle_name text null(30%) same(person) middleName()
  last_name   text same(person) lastName()
  prefix      text same(person) namePrefix()
  suffix      text null(60%) same(person) nameSuffix()
  full_name   text same(person) fullName()
  gender      text same(person) gender()
  email       text same(person) email()
  job_title   text enum(values: ["Software Engineer", "Product Manager", "Data Analyst", "Account Executive", "HR Business Partner", "Customer Support Specialist", "Financial Analyst", "UX Designer", "Operations Manager", "Marketing Coordinator"])
  salary      decimal(10, 2) money(min: 20000, max: 200000)
  hired_on    date date(min: "2000-01-01", max: "2024-12-31")
  age         int64 age(min: 18, max: 70)
  active      boolean boolean(trueRate: 85%)
)

output csv

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

About this recipe

Employees

A single-table recipe that generates a workforce register: coherent names, salary, hire date, age and an activity flag for fifteen synthetic employees.

What it demonstrates

  • Coherent person — every name field, gender and email share a same(person) group, so each row describes one person.
  • Name parts — prefix, suffix and middle_name complete the name; the middle and suffix are sometimes null.
  • Employment — job_title comes from an enum of job titles, salary a money amount, hired_on a date, and age an integer range.

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, employees.csv, holding fifteen rows.

Adapt it

  • Raise rows for a larger workforce.
  • Add a department enum column for org structure.

Guarantees

Every row has a unique id; the name, gender and e-mail are coherent per person (a unique e-mail would leave the group, so email is not unique); middle_name and suffix are null in the declared share of rows. Names and salaries are synthetic.

Tested features

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

enumfirstNamemiddleNamelastNamenamePrefixnameSuffixfullNamegenderemailmoneydateagebooleannullsame:personautoincrementprimary-key