Chapter 8 · Part 3: Make it yours
Thinking in data
Most apps start as a spreadsheet. The group keeps a list, someone adds a column, someone else types things a little differently, and a year later nobody trusts it. This chapter shows you how to read a spreadsheet like that and decide what a real app should keep instead.
There's no installing and no code. By the end you'll have one file that describes your app's data, and every later chapter builds from it.
The spreadsheet
Here's the shared spreadsheet a group of three friends might keep for family-friendly restaurants. Everything in it is made up, including the places and the people. Each row is one night out.
| Date | Place | Who | Rating | Playground? | Notes |
|---|---|---|---|---|---|
| 3/2 | Zigzag Zebra Pizzeria | Priya | 4/5 | Y | Loved the tots. Dana: too loud for the baby |
| 3/9 | zigzag zebra | Dana | great! | yes | patio was closed |
| March 16 | Mango Moon Tacos | Marcus | ★★★★ | no | Kids ate free. Priya says skip Tuesdays |
| 3/23 | The Spotted Spoon | Priya + Marcus | 3 | kinda | Playground is a sandbox |
| 3/30 | Mango Moon | Dana | 5 | N/A | |
| 4/6 | zigzag zebra pizzeria | Marcus | 4 | Y | Went again, same table |
It looks fine. It works fine, for a while. Look at it the way an app would, though, and the problems show up. The same restaurant is spelled three ways. Ratings arrive as 4/5, great!, stars, and plain numbers. The playground column has Y, yes, kinda, and N/A. Two people share one cell. Several people's opinions are crammed into one note.
Six questions that take it apart
Go through these in order for any spreadsheet. Each one is a decision you make once, now, instead of a mistake someone makes forever.
1. What are the things in it?
Pick out the nouns. Here there are four: a restaurant, a person, a visit (one night out), and a review (what one person thought of one restaurant). The spreadsheet has no tab for any of them. It folds all four into one row.
2. Which column is really a different thing hiding in a column?
- Place is a restaurant. Its name is typed again on every row, which is how three spellings happen. A real app stores each restaurant once and points to it.
- Who is a person. Today it's just text, so “Priya + Marcus” can sit in one cell. An app needs one person per record.
- Notes holds two different things. “Loved the tots” is what Priya thought. “Went again, same table” is about one specific night. One belongs to a review, the other to a visit.
3. What changes over time, and what never does?
A visit never changes. It happened on March 2, and that stays true. A review can change, because Priya might rate the place a 5 after a second visit. A restaurant's details change slowly, and often for the better: a patio gets added, a second playground opens, a kids' menu appears. So an app should record when a restaurant's details were last checked and flag the old ones, so the group knows which listings are due for a fresh look.
Growth raises a good question, too. Say Mango Moon Tacos opens a second location across town. Is that the same restaurant, or a new one? In our app, each location is its own restaurant, because its area, its patio, and its playground can all be different. Your app might decide the other way. What matters is that you decide it now, while it's a sentence in a plan and not a tangle in a database.
4. Whose rows are whose?
This one decides what sign-in protects. In our app:
- A restaurant belongs to the whole group.
- A review belongs to one person, and the group can read it. Each person gets one review per restaurant.
- A visit belongs to one person, and only that person can see it.
5. What mistakes does the spreadsheet let people make?
Each messy cell becomes a rule the app enforces:
| In the spreadsheet | What the app does instead |
|---|---|
| Three spellings of one place | You search first. You can add a restaurant only if the search finds nothing. |
| Ratings as 4/5, great!, stars | A rating is a whole number from 1 to 5, picked from a control that can't hold anything else. |
| Playground: Y, yes, kinda, N/A | Features are checkboxes from a fixed list. The group decides what counts (see below). |
| Dates as 3/2 and March 16 | A date picker. The date can't be in the future. |
| Two people in the Who cell | One person per review and one person per visit. |
| A review someone else can overwrite | You can edit only your own review. |
“Kinda” is a real decision
When the spreadsheet says kinda for a sandbox, someone has to decide whether a sandbox counts as a playground. A spreadsheet lets everyone decide differently. An app makes the group decide once. Ours does it with a separate Play area feature next to Playground. The right answer depends on your group. What matters is that there is an answer, and it's written down.
6. What could you see if the data were clean?
This is the payoff. Once ratings are numbers and restaurants are stored once, the app can show an average rating, the places nobody has visited in six months, every restaurant with both a patio and a playground, and who has reviewed what. The spreadsheet could never do that without someone retyping it.
What it turns into
Here are the cleaned-up records for the same six rows. Each kind of thing gets its own table.
| Name | Area | Food type | Features | Public |
|---|---|---|---|---|
| Zigzag Zebra Pizzeria | The Heights | Pizza | Patio, Playground | Yes |
| Mango Moon Tacos | Katy | Tacos | Patio | Yes |
| The Spotted Spoon | Sugar Land | American | Play area | No |
| Restaurant | Person | Rating | Overall note |
|---|---|---|---|
| Zigzag Zebra Pizzeria | Priya | 4 | Loved the tots. |
| Zigzag Zebra Pizzeria | Dana | ? (she wrote “great!”) | Patio was closed. |
| Zigzag Zebra Pizzeria | Marcus | 4 | |
| Mango Moon Tacos | Marcus | 4 | Kids ate free. |
| Mango Moon Tacos | Dana | 5 | |
| The Spotted Spoon | Priya and Marcus? One rating, two people | 3 |
| Date | Restaurant | Person | Notes |
|---|---|---|---|
| March 2 | Zigzag Zebra Pizzeria | Priya | |
| March 9 | Zigzag Zebra Pizzeria | Dana | Patio was closed |
| March 16 | Mango Moon Tacos | Marcus | Priya says skip Tuesdays |
| March 23 | The Spotted Spoon | Priya | |
| March 23 | The Spotted Spoon | Marcus | |
| March 30 | Mango Moon Tacos | Dana | |
| April 6 | Zigzag Zebra Pizzeria | Marcus | Went again, same table |
Two cells still need a person. Dana wrote “great!”, and no program can turn that into a number, so someone has to ask her. And Priya and Marcus gave one rating together, so the group has to decide whether it counts for one of them, both, or neither. That's normal. In Chapter 10 you'll bring a messy spreadsheet in, and the app will point out cells like these for you to fix by hand, without refusing the whole import.
In MongoDB, it's collections and documents
You chose MongoDB for this guide. It calls each table a collection and each row a document. A document is a little bundle of named values, written out as text. Here's one restaurant:
{
"name": "Zigzag Zebra Pizzeria",
"area": "heights",
"foodType": "pizza",
"features": ["patio", "playground"],
"public": true,
"lastChecked": "2026-11-02"
}It looks a lot like a row, written as text. A review and a visit each carry the restaurant's ID and the person's ID, so they can point back to the restaurant and to who wrote them. You'll build that in Chapters 9 to 15, one piece at a time.
Put it in a file
You've done the thinking. Now write it down, in one file that every later chapter follows. Here's the data model for The Kids' Table, as a phase plan. Save it in your plan folder as 08-data-model.md.
# Phase 8: write down the data model Read `plan/00-app-plan.md` first. This phase writes down what the app keeps, in one file, before any code touches a database. Every later phase follows this file. If something here changes, change it here first, then tell Claude. ## Goal One file, `plan/data-model.md`, that says what the app keeps, who owns each thing, who can see it, and what mistakes the app has to stop. ## How to work - Ask me questions before you write anything. One at a time, up to 10. Focus on things that could be stored twice, things that belong to one person, and things a spreadsheet lets people type wrongly. - Plain English. No code in this phase. - When you finish, list every assumption you made so I can correct it. ## The things the app keeps **Restaurant.** Shared by the whole group. - name (text, required) - area (one choice from the settings list) - food type (one choice from the settings list) - features (any of the settings list: patio, playground, play area) - public (yes or no; the owner decides; default no) - last checked (a date; the owner sees which listings are due for a fresh look after six months) - photos (members only) - who added it, and when **Review.** One per person per restaurant. - which restaurant, which member - rating (a whole number from 1 to 5) - overall note (text, optional) - when it was written and last edited **Visit.** Many per person per restaurant. Private to the person who logged it. - which restaurant, which member - date (can't be in the future) - notes (text, optional) **Member.** Added in phase 12. - name and email - status: waiting, member, or removed - role: owner or member ## The settings file One file names the app and its choices: the app name, what a "restaurant" is called, what a "visit" is called, the list of areas, the list of food types, and the list of features. To build your own version, change this file. ## Rules the app must enforce - One review per person per restaurant. - A rating is a whole number from 1 to 5. Not "4/5", not "great!", not stars. - Features are chosen from the list. They aren't typed. - A restaurant is found by searching first. A new one is added only if the search finds nothing. - A visit has a real date, and not one in the future. - Only the person who logged a visit can see it. - The public page shows only restaurants the owner marked public, and never shows reviews or photos. ## Out of scope Everything that isn't the data. Pages, sign-in, and photos come in later phases.
Real names, real people
The spreadsheet in this chapter is made up. When you do this with your own group's list, keep it to what the app needs. Don't put children's names, ages, or schools into a hobby app. If your list is about students or school data, stop here. A hobby app isn't the right place for it, and Chapter 18 explains why.
If you're building your own idea
You can have Claude do the question-asking for you. Paste a few typical rows from your own spreadsheet where the brackets are. As in Chapter 6, the prompt tells Claude to question you first and to list its assumptions at the end. That's where you'll find the choices you hadn't made.
I'm planning a web app, and I have a spreadsheet the group uses today. Here are its column names and a few typical rows: [paste your column names and 5 to 10 real or typical rows] Help me turn it into a data model. Don't write code. First ask me up to 10 questions, one at a time, about anything unclear: who owns each piece of information, which columns are really a different thing hiding in a column, what changes over time, and what mistakes the spreadsheet lets people make. Wait for my answer each time. When I've answered, write one Markdown file with these sections: the things the app keeps (one block per thing, with each field and its type), who owns each thing and who can see it, the rules the app must enforce, the settings that should live in one settings file, and what's out of scope. Use plain English. Then list every assumption you made so I can correct them.
Save what it writes as plan/data-model.md, and read it before you build on it. Look for the same things we looked for above: a name typed in more than one place, a column that holds two things, and a cell that only one person should see.
If it doesn't work
If your spreadsheet has no obvious “things,” ask one question for each column: “If this changed, would it change one row or every row that mentions it?” A restaurant's address would change every row. That tells you it belongs to the restaurant, not the visit.
What you should see
A short file in your plan folder that lists what your app keeps, who owns each thing, and the rules it enforces. It should read like a plan a friend could follow.
Checkpoint
0 of 4Next step: in Chapter 9, you'll connect your app to the database you made in Chapter 5, and keep its password where nobody else can see it.
Last checked November 15, 2026. Software screens and free-plan limits change. If something here doesn't match what you see, the official link in the chapter is the source to trust.