Skills / No-code and low-code apps / Designing your data: tables, fields and links

No-code and low-code apps, lesson 2 of 8

Designing your data: tables, fields and links

Whether you use Airtable, a spreadsheet or a real database, the app is only as good as the data structure underneath it. Most messy no-code projects are really messy data.

Tables hold one kind of thing. Make one table per kind of thing the business deals with: Customers, Orders, Products, Staff. Each row (record) is one of those things, and each column (field) is one fact about it.

Fields have types. Choose the right type for each field: text, number, date, single select (one choice from a list), checkbox, email, attachment. Types stop mistakes: a date field will not accept "next Tuesday-ish", and a single select keeps "Paid", "paid" and "PAID" from becoming three different values.

One fact in one place. Never type a customer's phone number into every order. Store it once in Customers, and link each order to its customer. When the number changes, you change it once.

Links connect tables. A linked record field says "this order belongs to this customer". One customer can have many orders: this is called a one-to-many relationship. With links in place you can show each customer's orders, count them, or total their spending automatically (with lookup and rollup fields in Airtable).

Give every record a clear name (the first, primary field), such as the customer's name or an order number, so links are readable.

Sketch tables, fields and links on paper first. If you find yourself creating columns like Product 1, Product 2, Product 3, you need a separate linked table instead.

Try it: Design the tables for a small bakery that takes custom cake orders. List each table, its fields with their types, and how the tables link.

Check yourself

1. A customer's phone number changes. In a well-designed base, how many places do you update it?

2. Why use a single select field for order status?

3. You catch yourself adding fields Product 1, Product 2, Product 3. What does that suggest?