import { PrimaryColumn, Column } from 'typeorm';
export class LocationStatus {
@PrimaryColumn({ name: 'location_id' })
locationId: string;
@Column({ name: 'area_code', type: 'int' })
areaCode: number;
}
I spent the past few hours trying to figure it out how to retrieve a name property value location_id and area_code from a property decorator @Column(), but no luck. I'm not sure whether it's even possible to get a list of properties or not.