feat: sync current progress (P0 hardening + P1 observability + deploy docs/systemd)
This commit is contained in:
17
internal/model/reminder_dead_letter.go
Normal file
17
internal/model/reminder_dead_letter.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
type ReminderDeadLetter struct {
|
||||
ID uint `json:"id" gorm:"primaryKey"`
|
||||
ReminderID uint `json:"reminder_id" gorm:"not null;uniqueIndex"`
|
||||
UserID uint `json:"user_id" gorm:"not null;index"`
|
||||
AssetID uint `json:"asset_id" gorm:"not null;index"`
|
||||
RemindAt time.Time `json:"remind_at" gorm:"not null;index"`
|
||||
Channel string `json:"channel" gorm:"size:32;not null"`
|
||||
Status string `json:"status" gorm:"size:16;not null"`
|
||||
RetryCount int `json:"retry_count" gorm:"not null"`
|
||||
LastError string `json:"last_error" gorm:"size:500"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
}
|
||||
Reference in New Issue
Block a user