feat: SMTP integration, dynamic app_settings for email, and email verification enforcement for tier upgrades

This commit is contained in:
Mohan Ki
2026-07-27 18:54:19 +05:30
parent 41e333b30e
commit b328b0429a
9 changed files with 273 additions and 2 deletions
+2
View File
@@ -5,6 +5,8 @@ CREATE TABLE IF NOT EXISTS users (
email VARCHAR(255) UNIQUE NOT NULL,
password_hash VARCHAR(255) NOT NULL,
role VARCHAR(50) DEFAULT 'free',
is_email_verified BOOLEAN DEFAULT false,
email_verification_token VARCHAR(255),
created_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP
);
+6 -1
View File
@@ -11,5 +11,10 @@ INSERT INTO app_settings (key, value, category) VALUES
('icici_api_key', '', 'payments'),
('google_safe_browsing_key', '', 'security'),
('google_client_id', '', 'auth'),
('apple_service_id', '', 'auth')
('apple_service_id', '', 'auth'),
('smtp_host', 'smtp.office365.com', 'smtp'),
('smtp_port', '587', 'smtp'),
('smtp_user', 'noreply@cavininfotech.com', 'smtp'),
('smtp_pass', 'xmkshjlszjbkcyzb', 'smtp'),
('smtp_secure', 'false', 'smtp')
ON CONFLICT (key) DO NOTHING;