`POST /v1/tables`
POST/v1/tables
Creates the physical PostgreSQL table with the mandatory system column set
(id, env_id, data JSONB, created_at, updated_at,
resource_version, deleted_at), enables + forces RLS, creates the four
env-scoped policies, registers the table in table_registry, writes the
create DDL audit row, and emits the sentin8:db:table:created event -
registry, audit, and event all in the SAME transaction as the domain
change.
Create table.
create a table with mandatory system columns + RLS.
Request
Responses
- 200
- 403
Table created
Missing db:table:admin scope