package model

import (
	"gorm.io/gorm"
	"time"
)

type ChessStatus struct {
	gorm.Model
	Players string `json:"players"`
	Current string `json:"current"`
	IsEnd   bool   `json:"is_end"`
	Status  string `json:"status"`
	Winner  string `json:"winner"`
	ChessId string `json:"chess_id"`
}

type ChessStatusLog struct {
	gorm.Model
	RoomId  uint      `json:"roomId"`
	Current string    `json:"current"`
	Players string    `json:"players"`
	IsEnd   bool      `json:"is_end"`
	Status  string    `json:"status"`
	Winner  string    `json:"winner"`
	ChessId string    `json:"chess_id"`
	Time    time.Time `json:"time"`
}
