Add ingredieints
This commit is contained in:
@@ -13,6 +13,11 @@ type Unit struct {
|
||||
Name string `gorm:"not null;size:255" json:"name"`
|
||||
Abbreviation *string `gorm:"size:50" json:"abbreviation"`
|
||||
IsActive bool `gorm:"default:true" json:"is_active"`
|
||||
DeletedAt *time.Time `gorm:"index" json:"deleted_at,omitempty"`
|
||||
CreatedAt time.Time `gorm:"autoCreateTime" json:"created_at"`
|
||||
UpdatedAt time.Time `gorm:"autoUpdateTime" json:"updated_at"`
|
||||
}
|
||||
|
||||
func (Unit) TableName() string {
|
||||
return "units"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user