Files
2025-04-15 22:36:22 +02:00

9 lines
199 B
Go

package base
type Taxonomy struct {
ID uint `gorm:"primaryKey" json:"id"`
Name string `gorm:"not null;index" json:"name"` // e.g., "kg", "lb"
}
func (t Taxonomy) GetID() uint { return t.ID }