to much to describe, everything in PR
This commit is contained in:
16
internal/models/notification.go
Normal file
16
internal/models/notification.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
type Notification struct {
|
||||
ID uuid.UUID `db:"id"`
|
||||
UserID uuid.UUID `db:"user_id"`
|
||||
Title string `db:"title"`
|
||||
Body *string `db:"body"`
|
||||
IsRead bool `db:"is_read"`
|
||||
CreatedAt time.Time `db:"created_at"`
|
||||
}
|
||||
Reference in New Issue
Block a user