package db type Token struct { ID string `gorm:"primary_key" json:"id" form:"id"` Nick string `json:"nick" form:"nick"` Machines []*Machine `json:"machines" gorm:"many2many:token_machines;"` }