package models type Taxonomy struct { ID uint `gorm:"primaryKey" json:"id"` Type string `gorm:"not null;index" json:"type"` // e.g., "unit", "color", etc. Name string `gorm:"not null;index" json:"name"` // e.g., "kg", "lb" }