diff --git a/templates/00_struct.tpl b/templates/00_struct.tpl index 14df3c7..12d0db0 100644 --- a/templates/00_struct.tpl +++ b/templates/00_struct.tpl @@ -3,6 +3,6 @@ // {{$modelName}} is an object representing the database table. type {{$modelName}} struct { {{range $column := .Table.Columns -}} - {{titleCase $column.Name}} {{$column.Type}} `boil:"{{printf "%s.%s" $tableNameSingular $column.Name}}" json:"{{$column.Name}}" toml:"{{$column.Name}}" yaml:"{{$column.Name}}"` + {{titleCase $column.Name}} {{$column.Type}} `boil:"{{$column.Name}}" json:"{{$column.Name}}" toml:"{{$column.Name}}" yaml:"{{$column.Name}}"` {{end -}} }