package model // EmailChannelMigration represents a migration of an email channel from one inbox to another. // Reference: Chatwoot EmailChannelMigration model — initiates migration of an email channel // between inboxes, tracking the migration status (pending -> processing -> completed/failed). type EmailChannelMigration struct { Base AccountID uint `gorm:"not null;index" json:"account_id"` InboxID uint `gorm:"not null" json:"inbox_id"` // source inbox TargetInboxID uint `gorm:"not null" json:"target_inbox_id"` // target inbox MigrationStatus string `gorm:"size:50;not null;default:pending" json:"migration_status"` // pending/processing/completed/failed } func (EmailChannelMigration) TableName() string { return "email_channel_migrations" }