Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddRelation ¶
func AddRelation(modelFile string, relations []RelationInfo, modelName string) error
AddRelation menambahkan relasi ke file model
Types ¶
type RelationInfo ¶
type RelationInfo struct {
FieldName string
Target string
Type RelationType
}
type RelationType ¶
type RelationType string
const ( One2Many RelationType = "one2many" Many2Many RelationType = "many2many" )
Click to show internal directories.
Click to hide internal directories.