erp-cicd/my-access-hub-main/supabase/migrations/20250810103313_2f3e3cc3-1ac1-45cc-b10f-1d20ae25e9b6.sql
Ali 20e95c2fb6
Some checks failed
Build & Deploy Frontend / build-push-deploy (push) Failing after 15s
pushing all
2025-08-30 11:51:11 +05:30

9 lines
421 B
SQL

-- Add password field to email_accounts table for IMAP authentication
ALTER TABLE email_accounts
ADD COLUMN password_encrypted text;
-- Add comment for security
COMMENT ON COLUMN email_accounts.password_encrypted IS 'Encrypted password for IMAP/SMTP authentication';
-- Create index for performance
CREATE INDEX IF NOT EXISTS idx_email_accounts_user_active ON email_accounts(user_id, is_active) WHERE is_active = true;