Add self join support.

This commit is contained in:
sub0Zero 2019-03-16 20:41:06 +01:00 committed by zer0sub
parent 20c6f39665
commit 1cb997fc54
5 changed files with 89 additions and 15 deletions

View file

@ -23,7 +23,7 @@ func (c ColumnInfo) IsUnique() bool {
}
func (c ColumnInfo) ToGoVarName() string {
return snaker.SnakeToCamelLower(c.TableInfo.Name) + snaker.SnakeToCamel(c.Name) + "Column"
return snaker.SnakeToCamel(c.Name) + "Column"
}
func (c ColumnInfo) ToGoType() string {