package model type Pasture struct { PastureCode string `xorm:"varchar(50) 'FARM_NUM'"` Pastureid string `xorm:"varchar(30) 'uuid'"` PastureName string `xorm:"varchar(30) 'FARM_NAME'"` } func (s *Pasture) TableName() string { return "t_nz_farm" }