Bounce management
This commit is contained in:
@@ -1,5 +1,19 @@
|
||||
-- Initialize database with default membership tiers
|
||||
|
||||
-- Create email bounces table
|
||||
CREATE TABLE email_bounces (
|
||||
id INT AUTO_INCREMENT PRIMARY KEY,
|
||||
email VARCHAR(255) NOT NULL,
|
||||
bounce_type ENUM('hard', 'soft') NOT NULL,
|
||||
bounce_reason VARCHAR(500),
|
||||
smtp2go_message_id VARCHAR(255),
|
||||
bounced_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
||||
resolved_at TIMESTAMP NULL,
|
||||
is_active BOOLEAN DEFAULT TRUE,
|
||||
INDEX idx_email (email),
|
||||
INDEX idx_active (is_active)
|
||||
);
|
||||
|
||||
-- Create default membership tiers
|
||||
INSERT INTO membership_tiers (name, description, annual_fee, benefits, is_active, created_at, updated_at)
|
||||
VALUES
|
||||
|
||||
Reference in New Issue
Block a user