Chapter 4 Assignment

Generate Order + items

The brief

Generate an `Order` resource with fields: customerId, total, status. Add an `OrderItem` resource that belongs to Order. Run `grit sync` so the frontend types match. Create one Order from the admin panel.

You've completed this when

  • Both resources are generated and migrated
  • TypeScript types reflect the new models
  • You created an Order from the admin panel without errors

Worked through every criterion?

Push your code to GitHub, paste the link in your notes.md, and move on.

Continue to ch.5: Frameworks & Patterns