Exercise - Extend the model on your own
In this challenge, you apply what you practiced without step-by-step instructions. Adventure Works wants to record which staff member handles the follow-up for each issue.
Challenge
- Add a bounded, optional text field named
followUpByto theIssueentity. Choose amaxlength that fits a person's name. - Before you apply it, predict what happens to the three existing records.
- Apply the change and confirm that the deployment is healthy.
- Verify in the app that the existing issues still appear. Then change the seed code so a new issue includes a
followUpByvalue, and confirm that the value is stored.
If you need a hint, the pattern is the same as the partNumber field. Use @text with max and optional: true, add ? to the property, and keep the record type in packages/shared/src/index.ts in step.
Clean up
A trial capacity allows only a few SQL databases, so keep one app and remove what you no longer need.
- Stop the development loop with Ctrl+C.
- Delete the app item from your Fabric workspace, confirm in the workspace item list that no child items remain, and delete the local project folder. If a child item remains, delete it too.