custom comments in entity.mst

This commit is contained in:
francesco.spilla 2021-01-14 14:14:54 +01:00
parent b1fdd92583
commit 61a39768fe

View File

@ -35,7 +35,17 @@ import {{localImport (toEntityName entityName)}} from './{{toFileName fileName}}
@Entity("{{sqlName}}"{{#schema}} ,{schema:"{{.}}"{{#if ../database}}, database:"{{../database}}"{{/if}} } {{/schema}})
export {{defaultExport}} class {{toEntityName tscName}}{{#activeRecord}} extends BaseEntity{{/activeRecord}} {
{{#if columns}}
// Columns
{{/if~}}
{{#columns}}{{> Column}}{{/columns~}}
{{#if relations}}
// Relations
{{/if~}}
{{#relations}}{{> Relation}}{{/relations~}}
{{#relationIds}}{{> RelationId entityName=../tscName}}{{/relationIds~}}
{{#if generateConstructor}}{{>Constructor entityName=tscName}}{{/if~}}