How databases work in AI-built apps
Tables, rows, relationships, queries and access rules — what your AI tool created for you, and how to read it without learning SQL first.
A database stores records that an app reads and changes through queries. Learn how tables, filters and access rules affect the rows a user can see.
Start with the guide that matches your question or the error you can see. Each guide below names the problem, gives checks you can run, and links to related reading.
Illustrative case: Account A owns a draft, but its list requests only published records. The draft can be stored correctly and still be absent because the query filter excludes it. An access policy can independently exclude rows, so inspect both the application query and the database's access decision.
record 1: owner=A, status=draft
record 2: owner=B, status=published
A requests: own records with status=published
Expected result: []The empty result above does not justify returning Account B's record. Change the status filter only if the screen is meant to show drafts; preserve the ownership restriction. Administrator tooling seeing both records does not establish what an ordinary user should receive.
Use the database guide to understand tables and queries. Follow the linked row-security and frontend-access guides when permissions or empty results are the problem. Do not repair a missing row by turning off security.
Tables, rows, relationships, queries and access rules — what your AI tool created for you, and how to read it without learning SQL first.
Looking for something else? Browse every topic.