import { Entity , Column , PrimaryGeneratedColumn } from 'typeorm' ; @ Entity ( ) export class Task { @ PrimaryGeneratedColumn ( 'uuid' ) private id : string ; @ Column ( { type : 'varchar' , nullable : false } ) private name : string ; constructor ( name ) { this . name = name ; } public getId ( ) { return this . id ; } public getName ( ) { return this . name ; } public updateName ( name ) { this . name = name ; } }