package dm import "time" type EventType string const ( EventWelcome EventType = "welcome" EventExpiringSoon EventType = "expiring_soon" EventExpired EventType = "expired" EventExtended EventType = "extended" ) type Status string const ( StatusPending Status = "pending" StatusDelivered Status = "delivered" StatusDead Status = "dead" ) type OutboxItem struct { ID int64 EventType EventType Pubkey string Content string Attempts int LastAttemptAt *time.Time NextAttemptAt time.Time Status Status LastError string CreatedAt time.Time }