initial commit
This commit is contained in:
27
internal/domain/notification/notification.go
Normal file
27
internal/domain/notification/notification.go
Normal file
@@ -0,0 +1,27 @@
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user