# Source contract and data dictionary

All rows are original synthetic teaching records, authored 31 October 2026. No actual workshop, person, contact, attendance or financial record is represented. File dates are scenario dates, not collection dates. `base`, `independent`, `changed` and `empty` are separate datasets, never sequential imports. No generated evidence is a claim about a real organization.

## Tables

| Table / field | Meaning, unit and rule |
|---|---|
| sessions | One scheduled session per row; six in base |
| session_id | Integer primary key; stable within a fixture, not across all fixtures |
| topic | Supplied category Repair or Design |
| site | Supplied category North or South; no actual address |
| starts_on | Date-only text, padded YYYY-MM-DD; supplied dates valid; schema does not validate calendars |
| capacity | Nonnegative integer listed seat capacity; not an observed attendance count |
| status | open or cancelled; cancellation reason not supplied |
| registrations | One booking record per row; ten in base; not one person per row |
| reg_id | Integer primary key |
| session_id | Required foreign key to sessions; may repeat |
| booking_ref | Required synthetic booking contact reference; may repeat, cannot identify every participant |
| seats | Positive integer seats reserved by the booking |
| attended | Integer recorded attended seats, 0 through seats, or NULL for not recorded |
| fee_cents | Nonnegative integer CAD cents stated on the booking; not proof of payment, tax, revenue or profit |
| intake | One unvalidated import claim per ingest_id; excluded from trusted analysis |
| ingest_id | Unique integer identity of the raw claim, not its claimed registration |
| reg_id/session_id/seats/attended/fee_cents in intake | Claims awaiting validation; missing, repeated, orphan and impossible examples intentionally included |

No session can be assumed full merely from listed capacity. No open/closed enrollment period, waiting list, attendance reason, instructor, person-level record or satisfaction score is supplied. No inference of unique attendees, effectiveness, causality or future demand is licensed by these fixtures.

## Base records (complete trusted source)

| session_id | topic | site | starts_on | capacity | status |
|---:|---|---|---|---:|---|
|101|Repair|North|2026-09-03|6|open|
|102|Repair|South|2026-09-04|4|open|
|103|Design|North|2026-09-10|5|open|
|104|Design|South|2026-09-11|0|cancelled|
|105|Repair|North|2026-09-17|4|open|
|106|Design|South|2026-09-18|3|open|

| reg_id | session_id | booking_ref | seats | attended | fee_cents |
|---:|---:|---|---:|---:|---:|
|1001|101|L01|2|2|1200|
|1002|101|L02|1|0|600|
|1003|101|L03|1|NULL|600|
|1004|102|L01|2|1|1200|
|1005|102|L04|2|2|1200|
|1006|103|L05|1|1|0|
|1007|103|L06|2|NULL|1200|
|1008|105|L02|1|1|600|
|1009|105|L07|1|0|600|
|1010|105|L08|1|1|600|

## Independent records (complete trusted source)

| session_id | topic | site | starts_on | capacity | status |
|---:|---|---|---|---:|---|
|201|Design|North|2026-10-02|3|open|
|202|Repair|South|2026-10-03|2|open|
|203|Repair|North|2026-10-09|4|open|
|204|Design|South|2026-10-10|0|cancelled|

| reg_id | session_id | booking_ref | seats | attended | fee_cents |
|---:|---:|---|---:|---:|---:|
|2001|201|M01|1|1|250|
|2002|201|M02|1|NULL|250|
|2003|202|M01|2|0|500|
|2004|203|M03|2|2|500|
|2005|203|M04|1|1|0|

## Changed-data records

Sessions: `(301,Repair,North,2026-11-01,4,open)`, `(302,Design,South,2026-11-02,2,open)`, `(303,Design,North,2026-11-03,3,open)`.
Bookings: `(3001,301,N01,1,1,250)`, `(3002,301,N02,1,0,250)`, `(3003,302,N03,2,NULL,500)`.
There are no raw intake rows. `empty` has all three tables and no rows.

## CSV conventions and loading

The CSV copies are inspection/download alternatives to the SQL fixtures, not a second source of truth. Headers use the field names above. Literal `NULL` denotes SQL NULL in these teaching CSV files; no empty-string values occur. A spreadsheet may show the word NULL as text, so a generic CSV importer will not automatically recreate the database missingness semantics. Use `schema.sql` plus the chosen `.sql` fixture for the tested execution route; do not blindly import CSV into an existing database. The tests compare every CSV cell with the SQL fixture after applying this explicit NULL convention.

## Provenance and retention exercise

Retain the unmodified teaching package and your own attempts/results in a local learning folder. Do not add personal information. The course does not transmit files or collect names. The project asks for a simulated access/retention plan; it does not establish legal compliance or configure actual permissions. Delete only your disposable output copies when no longer needed; preserve your source and correction history if you want reproducibility.
