38 lines
604 B
Go
38 lines
604 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type User struct {
|
|
Id int64
|
|
Username string
|
|
Email string
|
|
PasswordHash string
|
|
IsAdmin bool
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
}
|
|
|
|
// ToDo: should be in a notification model?
|
|
type Notification struct {
|
|
ID int
|
|
UserId int
|
|
Subject string
|
|
Body string
|
|
IsRead bool
|
|
CreatedAt time.Time
|
|
}
|
|
|
|
// ToDo: should be in a message model?
|
|
type Message struct {
|
|
ID int
|
|
SenderId int
|
|
RecipientId int
|
|
Subject string
|
|
Message string
|
|
IsRead bool
|
|
CreatedAt time.Time
|
|
ArchivedAt *time.Time
|
|
}
|