diff --git a/sql2go/parser.go b/sql2go/parser.go index 8fbe5fa..0aa588e 100644 --- a/sql2go/parser.go +++ b/sql2go/parser.go @@ -79,7 +79,7 @@ func ParseCreateTableSql(sql string) (*BasicTableInfo, error) { columnDefined, _, getColumnFunc := generateTableColumnDefined(basic.ModelStructName, r.TableSpec.Columns) basic.ColumnDescDefined = columnDefined basic.ModelStruct += getColumnFunc - basic.ModelStruct = basic.ColumnDefined + `\n` + basic.ModelStruct + basic.ModelStruct = basic.ColumnDescDefined + "\n" + basic.ModelStruct return basic, nil }