28 lines
389 B
Go
28 lines
389 B
Go
package notification
|
|
|
|
import (
|
|
"encoding/json"
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type Notification struct {
|
|
ID uuid.UUID
|
|
UserID uuid.UUID
|
|
Title string
|
|
Description string
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
Read bool
|
|
ReadAt *time.Time
|
|
Action string
|
|
ActionData json.RawMessage
|
|
ActionURL string
|
|
ActionText string
|
|
ActionIcon string
|
|
}
|
|
|
|
|
|
|