alai-server/backend/models/player.go

12 lines
271 B
Go
Raw Normal View History

2022-06-29 21:26:05 -04:00
package models
import "gorm.io/gorm"
type Player struct {
gorm.Model
ID uint64 `json:"ID" gorm:"primaryKey"`
RUT string `json:"rut" gorm:"unique;size:9;not null"`
Name string `json:"name" gorm:"not null"`
Email string `json:"email" gorm:"unique;not null"`
}