import { Template } from '../../template' const tpl: Template = p => ({ // ***IMPORTANT***: If this field is changed, the related path must be updated as well in the DTOs generator! fileName: `${p.module}.entity.ts`, script: true, // NOTE: As this is the entity template, it does not have access to the `entityMetadata` parameter content: ` import { BaseEntity, Entity, PrimaryGeneratedColumn } from "typeorm"; @Entity() export class ${p.className}Entity extends BaseEntity { @PrimaryGeneratedColumn('uuid') public id: string; } ` }) export default tpl