import { Entity , Column , PrimaryGeneratedColumn } from 'typeorm' ; @ Entity ( ) export class Weapon { @ PrimaryGeneratedColumn ( ) id ? : number ; @ Column ( ) name : string ; @ Column ( ) damage : number ; @ Column ( ) ammo : number ; constructor ( name , damage , ammo ) { this . name = name ; this . damage = damage ; this . ammo = ammo ; } }