15 lines
330 B
Go
15 lines
330 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
type Notification struct {
|
|
BaseModel
|
|
|
|
Subject string `json:"subject"`
|
|
Content string `json:"content"`
|
|
IsImportant bool `json:"is_important"`
|
|
ReadAt *time.Time `json:"read_at"`
|
|
SenderID *uint `json:"sender_id"`
|
|
RecipientID uint `json:"recipient_id"`
|
|
}
|