export const VIRTUAL_COLUMN_KEY = Symbol ( 'VIRTUAL_COLUMN_KEY' ) ; export function VirtualColumn ( name ? ) { return ( target , propertyKey ) => { const metaInfo = Reflect . getMetadata ( VIRTUAL_COLUMN_KEY , target ) || { } ; metaInfo [ propertyKey ] = name ?? propertyKey ; Reflect . defineMetadata ( VIRTUAL_COLUMN_KEY , metaInfo , target ) ; } ; }