File size: 289 Bytes
e08027e | 1 2 3 4 5 6 7 8 9 10 11 12 | CREATE TABLE audit_logs (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
actor_id UUID,
actor_role TEXT,
action TEXT NOT NULL,
target_table TEXT,
target_id UUID,
details JSONB,
ip_address INET,
user_agent TEXT,
timestamp TIMESTAMPTZ DEFAULT NOW()
); |