diff --git a/pkg/ast/model/table.go.tpl b/pkg/ast/model/table.go.tpl index f51aa9c..a38719e 100644 --- a/pkg/ast/model/table.go.tpl +++ b/pkg/ast/model/table.go.tpl @@ -1,10 +1,11 @@ package model var {{.CamelTable}}UpdateExcludeColumns = []Column{ - {{-if .HasCreatedAt}} + {{- if .HasCreatedAt}} table.{{.PascalTable}}.CreatedAt, {{- end}} - {{-if .SoftDelete}} + + {{- if .SoftDelete}} table.{{.PascalTable}}.DeletedAt, {{- end}} }