MCPcopy
hub / github.com/go-gorm/gorm / Product2

Struct Product2

tests/hooks_test.go:215–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215type Product2 struct {
216 gorm.Model
217 Name string
218 Code string
219 Price int64
220 Owner string
221}
222
223func (s Product2) BeforeCreate(tx *gorm.DB) (err error) {
224 if !strings.HasSuffix(s.Name, "_clone") {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected