v0.1.10 · Study guide
Append a model to schema.tpy and regenerate only that model’s files — or refresh a single layer after a manual schema tweak.
make:model differs from tpy build--force is required$ tpy make:model Invoice --fields "amount:float,status:enum(draft,paid),user_id:uuid references User" $ tpy make:controller Invoice $ tpy make:service Invoice $ tpy migrate
make:model parses --fields, appends a model via the shared serializer, validates, then generates only that model’s layers (model, migration, schema, repository, service, controller, routes + router index).tpy build.# tpy:generated:sha256:…. If you edit the file by hand, regeneration requires --force.$ tpy make:model Note --fields "title:string required,body:string nullable" $ tpy make:service Note --force
If no primary field is provided, Studio/make prepends id: uuid primary.
enum(draft,paid); the splitter respects parentheses.--force.tpy migrate.