import { IVirtualEntityConfig } from '@materia/interfaces' ; import { App } from '../app' ; import { Entity } from './entity' ; import { CustomQuery } from './queries/custom' ; export class VirtualEntity extends Entity { reservedQueries = [ 'custom' ] ; model : any ; constructor ( app ) { super ( app , { custom : CustomQuery } ) ; } generateDefaultQueries ( ) { } loadModel ( ) { return Promise . resolve ( ) ; } toJson ( ) { const json = super . toJson ( ) ; json . virtual = true ; return json ; } }