-- Add group_key column to admin_documents
-- Allows users to organize documents into logical groups

-- Add the column (nullable, VARCHAR 255)
ALTER TABLE admin_documents ADD COLUMN IF NOT EXISTS group_key VARCHAR(255);

-- Add index for filtering/grouping queries
CREATE INDEX IF NOT EXISTS ix_admin_documents_group_key ON admin_documents(group_key);
