agent-workspace / supabase /tables /system_notifications.sql
luom2645's picture
Add files using upload-large-folder tool
1f30e8c verified
Raw History Blame Contribute Delete
379 Bytes
CREATE TABLE system_notifications (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
recipient_id UUID,
title TEXT NOT NULL,
message TEXT NOT NULL,
type TEXT DEFAULT 'info' CHECK (type IN ('info',
'warning',
'error',
'success')),
is_read BOOLEAN DEFAULT false,
data JSONB,
created_at TIMESTAMPTZ DEFAULT NOW(),
read_at TIMESTAMPTZ
);