Blueprintv1.0.1

The single baseline every tenant is provisioned from. Regenerated KAHVE-FIRST baseline — a faithful, complete schema dumped from kahve-staging-1 and verified by a fresh-DB ON_ERROR_STOP apply.

tenant-factory/v1

Schema objects· click a tile to browse the names

RLS-enabled tables
166
every public table

Edge bundle

Functions
122
Entrypoint
main/index.ts
Verify JWT
no
Deploy alias
stable

Edge functions deploy as one bundle and are not part of the committed schema blueprint, so they aren’t listed by name here.

Seed data

Stores
1
Payment methods
31
Catalog
none (bare production tenant)

Per-tenant inputs

  • TENANT_IDrequiredlowercase alnum + hyphens, 3-50 chars
  • MERCHANT_NAMErequireddisplay name
  • TIERoptionaldefaults to 's'
  • SUPER_ADMIN_EMAILrequiredbootstrap super-admin login
  • R2_ACCESS_KEY_IDrequiredfrom pool host env
  • R2_SECRET_ACCESS_KEYrequiredfrom pool host env
  • CF_ACCOUNT_IDrequiredfrom pool host env

Version & provenance

Blueprint version
v1.0.1
API version
tenant-factory/v1
Created
2026-06-16
Updated
2026-06-18
Schema files (12) · sha-256 pinned (immutable)
  • 0000-auth-bootstrap.sql552e0187c08f
  • 0001-extensions-and-schemas.sql4849cdaabb3a
  • 0002-enums-sequences.sql7d26246a78a1
  • 0003-tables.sqle0dd4ba176d2
  • 0004-realtime-publication.sqlcf9c1410923e
  • 0005-views.sqle0dcf926516f
  • 0006-functions.sql75aa7e4afd07
  • 0007-constraints-triggers-indexes.sqlf5bd6b3644e3
  • 0008-view-redefinitions.sqle2f32ae86579
  • 0009-rls-policies.sql79de01027392
  • 0010-tsf-supplemental.sql41db72568f53
  • 0011-grants.sqlf54e67ff3a25