baseEntity
This field is required for a class which is inheriting one of the classes defined
Look at Single Table Inheritance for more detail
Usage
class Adult extends Person {
static entity = 'adult'
static baseEntity = 'person'
static fields () {
return {
...super.fields(),
job: this.attr('')
}
}
}
Typescript Declarations
const baseEntity: string = undefined
Table of Contents