Backend DB table File Type column showing flat vs indexed
Config sheet vs ledger

Appifio Creator · Lesson AS02 · Beginner · Aura series

Two data shapes:
config sheet vs multi-row ledger

Before you ask AI to “save data”, pick the right shape - like choosing a one-time sticky note versus a ledger with one row per customer.

Learning goals: Tell “one config sheet” from “multi-row ledger”; write AI prompts with the right shape; avoid overwriting entire lists.

Reading time: ~12 minutes · Previous: AS01 · Next: AS03

UI labels:

Backend View backend database content Coder Save changes

1. Choosing a shape

Backend database content panel with row and API limits
Database content
What do you need to store?
├─ Only one set (shop name, logo, opening hours…)
Config sheet (overwrite the whole sheet on update)
└─ Many rows (each customer / post / order is one row)
List ledger (only add / edit / delete individual rows)

2. Glossary

TermMeaningWhere you see it
Config sheetOne file holding a full settings set - update = rewrite the sheetBackend / AI prompt (settings)
List ledgerMany records of the same kind - add row by rowContact forms, blogs, orders
Add one rowVisitor submits → ledger grows by 1 row, old rows stayPrompt mode Coder
Overwrite sheetReplace the entire config sheet contentsAdmin “Save settings” page

3. Concrete examples

NeedChooseWhy
Shop name, phone, brand colorConfig sheetOnly one set
List of contact submissionsLedgerEach submit = a new row
Blog postsLedgerMany posts
Toggle “show promo banner”Config sheetOne switch for the whole site
Ban in prompts: “Let visitors overwrite the whole contact list.” → Easy to wipe old tickets. Correct: “Only append one row to the list.”

3b. One data type = one ledger

  • Right: every post lives in one ledger (e.g. the blog list). The system shards behind the scenes - you do not create post-1.json, post-2.json.
  • Wrong: one file per post; or overwrite the whole ledger as if it were a config sheet.
  • CMS on: ledger names come from the content map (AS10) - posts are usually blog-posts.json, not a guessed blog.json.
Add a post → append 1 row to the ledger
List → read the ledger (light)
Detail → read 1 full row
Edit / delete a row → update that row only
In parallel: add a URL route (AS04) if the post has its own address

4. Steps when asking AI

  1. Ask yourself: one set or many rows?
  2. Mode Coder - state the shape clearly in the prompt (samples below).
  3. Preview on Changes → test.
  4. BackendView backend database content - do you see the new data?
  5. Click Save changes when happy.

5. Sample prompts

Ledger: “Public contact form - each submit only appends one row to the contact list; do not overwrite the whole list.”

Sheet: “Admin page with a settings form for shop name and phone - save by overwriting the settings config sheet; visitors must not edit this sheet.”

6. Comparisons

  • Airtable: each table ≈ ledger; one “Settings” row ≈ sheet.
  • WordPress options vs posts: options ≈ sheet; posts ≈ ledger.
  • Firebase: single document vs collection - same idea.

7. Limits

You can

  • Forms + settings side by side
  • First form submit still works (system prepares the ledger)

Do not

  • Do not use a config sheet to hold hundreds of customers
  • Do not let guests overwrite a ledger

8. Security

  • Public pages: only append rows to allowed ledgers (contacts…).
  • Edit / delete / overwrite config sheets: only after admin login (AS05).

9. Common issues

SituationFix
Submitting the form wiped old ticketsAI overwrote - fix the prompt to “append one row only”; see X07
Not sure if it is a sheet or a ledgerOpen Backend and inspect; ask AI “is this config or a list?”

10. Checklist

  1. Can you pick sheet vs ledger for 3 shop examples?
  2. Does your form prompt say “append one row only”?

Appifio Creator · Aura series · AS02