Fix struct tags for bind
This commit is contained in:
parent
1ba2333658
commit
1236072f05
1 changed files with 1 additions and 1 deletions
|
@ -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 -}}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue