Skip to content

Project timesheets

Projects, people and their time entries.

related volume small ProjectsPeopleRelationships
Languages
eng
Formats
csv

Recipe

recipe.gbddl
gbddl 1
language eng

table projects rows 8 (
  id         int64 autoincrement primarykey
  name       text words(maxWords: 3)
  language   text programmingLanguage()
  started_on date date(min: "2023-01-01", max: "2024-12-31")
)

table people rows 10 (
  id        int64 autoincrement primarykey
  full_name text same(person) fullName()
  email     text same(person) email()
)

table time_entries rows 40 per(projects, 1, 6) (
  id         int64 autoincrement primarykey
  project_id int64 fk(projects.id)
  person_id  int64 fk(people.id)
  hours      decimal(5, 2) decimal(min: 0.5, max: 8)
  worked_on  date date(min: "2023-01-01", max: "2024-12-31")
)

output csv

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

About this recipe

Project timesheets

A multi-table recipe that generates project timesheets: projects, people and their time entries.

What it demonstrates

  • Relationships — time_entries references projects and people.
  • Project attributes — each projects row has a name, a programmingLanguage and a start date.
  • Row distribution — per(projects, 1, 6) gives each project one to six time entries.

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 CSV files: projects.csv, people.csv and time_entries.csv.

Guarantees

Every foreign key names an existing parent row, per(...) grouping holds, and each entry's hours is in the declared range. Values are synthetic.

Tested features

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

wordsprogrammingLanguagedatefullNameemaildecimalfkpersame:personautoincrementprimary-key