xtablo-source/supabase/migrations_backup/27_add_is_pending_to_invites.sql
2025-11-06 08:37:52 +01:00

10 lines
No EOL
483 B
SQL

-- Add is_pending column to tablo_invites table
ALTER TABLE tablo_invites
ADD COLUMN IF NOT EXISTS is_pending BOOLEAN DEFAULT FALSE NOT NULL;
-- Add comment to document the column
COMMENT ON COLUMN tablo_invites.is_pending IS
'When TRUE, the invite is pending acceptance. When FALSE, the invite has been accepted or rejected.';
-- Create index for performance when querying pending invites
CREATE INDEX IF NOT EXISTS idx_tablo_invites_is_pending ON tablo_invites(is_pending);