30 lines
437 B
Go
30 lines
437 B
Go
package db
|
|
|
|
import "time"
|
|
|
|
type Player struct {
|
|
ID int64
|
|
Username string
|
|
PasswordHash string
|
|
CreatedAt time.Time
|
|
LastLogin *time.Time
|
|
}
|
|
|
|
type Position struct {
|
|
X float32
|
|
Y float32
|
|
Z float32
|
|
Yaw float32
|
|
Pitch float32
|
|
World string
|
|
}
|
|
|
|
type Session struct {
|
|
ID int64
|
|
PlayerID int64
|
|
Token string
|
|
ServerType string
|
|
ServerID string
|
|
CreatedAt time.Time
|
|
ExpiresAt time.Time
|
|
} |