erp-cicd/frontend/supabase/migrations/20250810103313_2f3e3cc3-1ac1-45cc-b10f-1d20ae25e9b6.sql
Ali af6fd7bcad
All checks were successful
Build & Deploy Frontend / build-push-deploy (push) Successful in 1m45s
added some
2025-08-30 11:57:49 +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;