Design database schema
Help me design a database schema. Known material: [business objects and field list] and [main read and write paths], for [a backend developer]. Propose tables, fields, types, keys, and indexes, explain how they serve the stated queries, and flag tradeoffs around redundancy and future growth. Do not invent business rules that were not mentioned; call out missing scale information instead of guessing.
Open this template in the optimizer →
Placeholders to fill in
- business objects and field list
- main read and write paths
- a backend developer
Placeholders stand for your own facts. Never invent figures, sources or credentials the model was not given.
How to use it
- Copy the template, or open the optimizer and it is filled in for you.
- Replace every placeholder in brackets with your own material.
- Add constraints such as length, audience, tone, and what must not change.
- Generate, then refine in three directions and copy the result.
Original template written for this site
More coding goals
Browse other tasks
Canonical version: https://www.prompt.dx3906.net/zh/templates/coding/purpose-design-db-schema