Go-Back-Skeleton/vendor/github.com/go-pg/pg/orm/relation.go
2017-09-25 20:20:52 +02:00

23 lines
356 B
Go

package orm
import "github.com/go-pg/pg/types"
const (
HasOneRelation = 1 << iota
BelongsToRelation
HasManyRelation
Many2ManyRelation
)
type Relation struct {
Type int
Polymorphic bool
Field *Field
JoinTable *Table
FKs []*Field
M2MTableName types.Q
M2MTableAlias types.Q
BasePrefix string
JoinPrefix string
}