docs: fix audit-found drift (status enum, env, limitations, action layout)

Audit follow-up. ARCHITECTURE: status now 'In production', authoritative
note that server actions are per-domain under lib/actions/* (no monolithic
lib/actions.ts), rewrote stale Known Limitations (test suite exists;
PayPal sync route; social auth wired; webhooks signing-only; single-space
assumption), fixed env table (removed phantom SUPABASE_JWT_SECRET, added
SECRETS_ENCRYPTION_KEY/OAuth). DATABASE_SCHEMA/DB_SCHEMA_MAP: ~43 tables /
migrations through 038; space_members.status is member_status enum default
'unverified' (was wrongly 'active'); fixed the active/pending flow text.
README: webhook wording matches WEBHOOKS.md. API_REFERENCE: real
lib/actions/* path + 4 previously-undocumented actions. createSecret docs
were already correct (ADMIN_ROLES = admin+board) -- left as-is.
This commit is contained in:
Moheeb Zara
2026-05-16 22:25:11 -07:00
parent dd9e3aced6
commit 3efa3cdb46
5 changed files with 37 additions and 21 deletions
+7 -6
View File
@@ -1,12 +1,13 @@
# Hackerspace.sh - Database Schema Reference
> **Last Updated**: 2026-05-15
> **Last Updated**: 2026-05-17
> **Database**: PostgreSQL via self-hosted Supabase
> **Tables**: ~30
> **Tables**: ~43
> **Source of Truth**: `scripts/schema.sql` (canonical, idempotent); numbered
> migrations `scripts/0NN_*.sql` upgrade existing deployments. The 13-table
> reference below is the original baseline; tables added by migrations
> 014-025 are summarized in the "Migrations 014-025" section at the end.
> migrations `scripts/0NN_*.sql` (through **038**) upgrade existing
> deployments. The 13-table reference below is the original baseline; tables
> added by migrations 014-038 are summarized in the migrations section at the
> end. `DB_SCHEMA_MAP.md` has the per-table quick map.
---
@@ -686,7 +687,7 @@ CREATE INDEX idx_activity_space ON activity_log(space_id, created_at);
---
## Migrations 014-035 (additions since the 13-table baseline)
## Migrations 014-038 (additions since the 13-table baseline)
`scripts/schema.sql` is the canonical idempotent schema; each numbered
migration is mirrored as a section in it. Tables/columns added: