Spaces:
Paused
Paused
File size: 1,040 Bytes
83a59ca | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | package entities
import (
"time"
"github.com/google/uuid"
)
const (
// PhoneNotificationStatusPending is the status when a notification is scheduled to be sent
PhoneNotificationStatusPending = "pending"
// PhoneNotificationStatusSent is the status when a notification has been sent
PhoneNotificationStatusSent = "sent"
// PhoneNotificationStatusFailed is the status when a notification could not be sent.
PhoneNotificationStatusFailed = "failed"
)
// PhoneNotificationStatus is the status of a phone notification
type PhoneNotificationStatus string
// PhoneNotification represents a scheduled wake-up notification for a phone gateway.
type PhoneNotification struct {
ID uuid.UUID `json:"id" gorm:"primaryKey;type:uuid;"`
MessageID uuid.UUID `json:"message_id"`
UserID UserID `json:"user_id"`
PhoneID uuid.UUID `json:"phone_id"`
Status string `json:"status"`
ScheduledAt time.Time `json:"scheduled_at"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
|