-- 029_voice_clips.sql -- Optional retained Dross voice clips (when the "Keep voice clips" setting is on). -- Transcript + metadata here (durable, HA-replicated); audio bytes live as files -- on the owner-only ZFS subvol mounted at /var/lib/void/voice-clips. CREATE TABLE voice_clips ( id uuid PRIMARY KEY DEFAULT gen_random_uuid(), transcript text NOT NULL DEFAULT '', duration_ms integer, bytes bigint, mime text, path text NOT NULL, created_at timestamptz NOT NULL DEFAULT now() ); CREATE INDEX idx_voice_clips_created ON voice_clips (created_at DESC);