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

Struct Constraint

schema/relationship.go:625–634  ·  view source on GitHub ↗

Constraint is ForeignKey Constraint

Source from the content-addressed store, hash-verified

623
624// Constraint is ForeignKey Constraint
625type Constraint struct {
626 Name string
627 Field *Field
628 Schema *Schema
629 ForeignKeys []*Field
630 ReferenceSchema *Schema
631 References []*Field
632 OnDelete string
633 OnUpdate string
634}
635
636func (constraint *Constraint) GetName() string { return constraint.Name }
637

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected