final project structure
This commit is contained in:
8
wagfarm-api/taxonomy/base/model.go
Normal file
8
wagfarm-api/taxonomy/base/model.go
Normal file
@@ -0,0 +1,8 @@
|
||||
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 }
|
||||
Reference in New Issue
Block a user