mirror of
https://github.com/MADTeacher/go_basics.git
synced 2025-11-23 21:34:47 +02:00
15 lines
524 B
Go
15 lines
524 B
Go
package database
|
|
|
|
import "time"
|
|
|
|
// PlayerFinishGame представляет модель таблицы
|
|
// для хранения завершенной игры в БД
|
|
type PlayerFinishGame struct {
|
|
ID int `gorm:"primary_key;autoIncrement;not null"`
|
|
WinnerName string `gorm:"not null"`
|
|
AnotherPlayerName string `gorm:"not null"`
|
|
BoardJSON []byte `gorm:"type:json;not null"`
|
|
PlayerFigure int `gorm:"not null"`
|
|
Time time.Time `gorm:"not null"`
|
|
}
|