import { BaseEntity , Entity , PrimaryGeneratedColumn , Column } from 'typeorm' ; @ Entity ( ) export class ItemEntity extends BaseEntity { @ PrimaryGeneratedColumn ( ) id : number ; @ Column ( ) name : string ; constructor ( id , name ) { super ( ) ; this . id = id ; this . name = name ; } }