final project structure
This commit is contained in:
9
wagfarm-api/asset/pesticide/model.go
Normal file
9
wagfarm-api/asset/pesticide/model.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package pesticide
|
||||
|
||||
import "wagfarm-api/asset/base"
|
||||
|
||||
type Pesticide struct {
|
||||
base.BoughtResource
|
||||
PesticideTypeID uint `gorm:"not null"`
|
||||
PesticideType PesticideType `gorm:"not null; constraint:OnUpdate:CASCADE,OnDelete:CASCADE;"`
|
||||
}
|
||||
Reference in New Issue
Block a user