import { Column , Entity , PrimaryGeneratedColumn } from 'typeorm' ; @ Entity ( ) export class Cat { @ PrimaryGeneratedColumn ( 'uuid' ) id : string ; @ Column ( ) name : string ; @ Column ( ) breed : string ; @ Column ( { type : 'int' } ) age : number ; constructor ( name , breed ? , age ? ) ; constructor ( name , breed , age ? ) ; constructor ( name , breed , age ) ; constructor ( name ? , breed ? , age ? ) ; constructor ( name ? , breed ? , age ? ) { this . name = name || '' ; this . breed = breed || '' ; this . age = age || NaN ; } }