Multi-tenant SaaS schema
Prompt
Create a database schema diagram for a multi-tenant SaaS application with organizations, users, memberships, roles, workspaces, projects, environments, audit_logs, API keys, and subscriptions. Show primary keys, foreign keys, tenant boundary fields, and the main ownership relationships.
Why this prompt works
It captures the parts of the model that usually create complexity in SaaS products: tenancy, access control, and ownership.
Follow-up prompt
Add invoices, usage records, feature flags, and soft-delete fields for key entities.