004 Tenants and places are optional table features
Summary: why the tenants, memberships and places tables exist only in databases that ask for them.
Key terms: feature, migration, check_tables, schema version.
Related: Data · spec 10
Date: 2026-11-25. State: in force, built.
Decided
- The core tables exist in every database.
tenants(tenants and memberships) andplacesare features. migrate,createandupgradetake the list of features.auth-chad schema --withandauth-chad featureprint the SQL.- A server that is configured to use a feature refuses to start if the database lacks its tables (
check_tables). - The
featurestable records which features a database has.
Why
An application without tenants should not carry empty tables that look important. Failing at start is better than failing on the first request that needs a missing table.