Design the Database

PromptIntermediateData

A schema of tables, relationships and permissions, with sample data.

The prompt
Design a [Postgres/MySQL/SQLite] database schema for this app: [the description].
For each table: the columns and their types, the keys and the indexes. Explain the relationships, the permission policies (who reads and who writes), a migration file and a small set of sample data. Warn me about any personal data that needs protection.