Update entity.mst

Fix for:
Argument of type '{ type: "int"; unique: boolean; name: string; }' is not assignable to parameter of type 'PrimaryGeneratedColumnNumericOptions'.
This commit is contained in:
TienLeok Ngo 2019-10-23 15:16:09 +08:00 committed by GitHub
parent ef10b8653a
commit a975a46e21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,8 +12,8 @@ import {BaseEntity,Column,Entity,Index,JoinColumn,JoinTable,ManyToMany,ManyToOne
type:"{{type}}", {{/generated}}{{^generated}} @Column("{{type}}",{ {{#nullable}}
nullable:true,{{/nullable}}{{^nullable}}
nullable:false,{{/nullable}}{{#primary}}
primary:{{primary}},{{/primary}}{{/generated}}{{#unique}}
unique: true,{{/unique}}{{#length}}
primary:{{primary}},{{/primary}}{{#unique}}
unique: true,{{/unique}}{{/generated}}{{#length}}
length:{{.}},{{/length}}{{#width}}
width:{{.}},{{/width}}{{#unsigned}}
unsigned: true,{{/unsigned}}{{#default}}