When a game finishes (win or draw), players see a "Play again" button. Clicking it creates a new game and the opponent sees a "Join Rematch" link to join the same game.
39 lines
680 B
Go
39 lines
680 B
Go
// Code generated by sqlc. DO NOT EDIT.
|
|
// versions:
|
|
// sqlc v1.30.0
|
|
|
|
package gen
|
|
|
|
import (
|
|
"database/sql"
|
|
)
|
|
|
|
type Game struct {
|
|
ID string
|
|
Board string
|
|
CurrentTurn int64
|
|
Status int64
|
|
WinnerUserID sql.NullString
|
|
WinningCells sql.NullString
|
|
CreatedAt sql.NullTime
|
|
UpdatedAt sql.NullTime
|
|
RematchGameID sql.NullString
|
|
}
|
|
|
|
type GamePlayer struct {
|
|
GameID string
|
|
UserID sql.NullString
|
|
GuestPlayerID sql.NullString
|
|
Nickname string
|
|
Color int64
|
|
Slot int64
|
|
CreatedAt sql.NullTime
|
|
}
|
|
|
|
type User struct {
|
|
ID string
|
|
Username string
|
|
PasswordHash string
|
|
CreatedAt sql.NullTime
|
|
}
|