Skip to content

Commit 007eeb2

Browse files
committed
fix: yaml
1 parent ad2950e commit 007eeb2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

templates/common/project.yaml.tmpl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@ project:
22
name: "{{ .ModuleName }}"
33
port: {{ .Port }}
44
router: "{{ .Router }}"
5-
postgres: "{{ .DBName }}"
5+
database: "{{ .DBType }}"
66

77
entities:
8+
{{- if .Entities }}
89
{{- range .Entities }}
910
- {{ . }}
1011
{{- end }}
12+
{{- else }}
13+
- user
14+
{{- end }}

0 commit comments

Comments
 (0)