Tutorial: model your first three tables¶
Stub (SV-P4·S4·T7). The
ttr import-schemaengine is built and proven end-to-end; S6 turns this into a full worked tutorial against the sample database.
The fastest way to a model is to let import-schema draft it, then shape three tables by hand so
you learn the vocabulary. Outline:
- Import. Run
ttr import-schemaagainst the sample database (see Import a database). You getdb.*.ttrm,er.ttrmand the review checklist. - Read the
dbmirror. Find your three tables — note the columns, types, primary keys and any declared foreign keys the tool captured. - Shape the
erentities. Opener.ttrm. For each of the three, refine the entity: give it a plural label, mark the name attribute, drop columns that are pure plumbing. - Accept the relations. Walk the review checklist: accept the declared and verified relations between your three tables, and decide any proposed header/detail fold.
- Commit. The
ermodel is now yours — re-runs never overwrite it.
TODO(S6): concrete table names, before/after snippets, and the expected review-checklist entries.