2024-09-27 22:37:58 +00:00
|
|
|
package models
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
2024-10-19 23:17:27 +00:00
|
|
|
type Session struct {
|
2024-11-23 08:52:06 +00:00
|
|
|
ID int64
|
2024-10-27 16:44:05 +00:00
|
|
|
SessionToken string
|
|
|
|
CsrfToken string
|
2024-11-23 08:52:06 +00:00
|
|
|
UserID int64
|
2024-10-27 16:44:05 +00:00
|
|
|
CreatedAt time.Time
|
|
|
|
ExpiredAt time.Time
|
2024-10-19 23:17:27 +00:00
|
|
|
}
|
|
|
|
|
2024-09-27 22:37:58 +00:00
|
|
|
type User struct {
|
2024-11-23 08:52:06 +00:00
|
|
|
ID int64
|
2024-09-27 22:37:58 +00:00
|
|
|
Username string
|
|
|
|
Login string
|
|
|
|
PasswordHash []byte
|
|
|
|
CreatedAt time.Time
|
|
|
|
UpdatedAt time.Time
|
|
|
|
}
|