8 lines
247 B
Cheetah
8 lines
247 B
Cheetah
CREATE TABLE IF NOT EXISTS {{.SchemaName}}.{{.TableName}} (
|
|
{{- range $i, $col := .Columns}}
|
|
{{- if $i}},{{end}}
|
|
{{$col.Name}} {{$col.Type}}
|
|
{{- if $col.Default}} DEFAULT {{$col.Default}}{{end}}
|
|
{{- if $col.NotNull}} NOT NULL{{end}}
|
|
{{- end}}
|
|
); |