draincloud-core/internal/storage/models/auth.go

18 lines
235 B
Go
Raw Normal View History

2024-09-27 22:37:58 +00:00
package models
import "time"
2024-10-19 23:17:27 +00:00
type Session struct {
ID string
2024-10-20 09:12:54 +00:00
User *User
2024-10-19 23:17:27 +00:00
}
2024-09-27 22:37:58 +00:00
type User struct {
ID uint64
Username string
Login string
PasswordHash []byte
CreatedAt time.Time
UpdatedAt time.Time
}