Sessions 5-7a: 955 tests, deployment ready

This commit is contained in:
Kev
2026-06-08 18:35:13 -04:00
parent 06b82624a2
commit 1fa04dc776
371 changed files with 49366 additions and 955 deletions
@@ -0,0 +1,16 @@
-- Migration: 010_security_events.sql
-- Security events table for audit logging.
-- Created: 2026-04-13
CREATE TABLE IF NOT EXISTS security_events (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
event_type TEXT NOT NULL,
ip_address TEXT,
path TEXT,
detail TEXT,
created_at TIMESTAMPTZ DEFAULT NOW()
);
CREATE INDEX IF NOT EXISTS idx_se_type ON security_events(event_type);
CREATE INDEX IF NOT EXISTS idx_se_time ON security_events(created_at);
ALTER TABLE security_events ENABLE ROW LEVEL SECURITY;
CREATE POLICY se_svc ON security_events FOR ALL USING (auth.role() = 'service_role');