Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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) and places are features.
  • migrate, create and upgrade take the list of features. auth-chad schema --with and auth-chad feature print the SQL.
  • A server that is configured to use a feature refuses to start if the database lacks its tables (check_tables).
  • The features table 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.