package orm type relType int8 const ( hasOne relType = iota << 1 hasMany relType = iota << 1 belongsTo relType = iota << 1 ) type rel struct { *tbl } type relations map[relType]*rel