custom comments in entity.mst
This commit is contained in:
parent
b1fdd92583
commit
61a39768fe
@ -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~}}
|
||||
|
Loading…
Reference in New Issue
Block a user