package models type Player struct { ID uint `json:"id" gorm:"primary_key"` Name string `json:"name" gorm:"not null"` ClanID uint `json:"clan_id" gorm:"not null"` Clan Clan `gorm:"references:ID"` }