typeKey

Makes it possible to change the type property used for STI


Look at Single Table Inheritance for more detail

Usage

class User extends Model {  static entity = 'users'  static fields () {    return {      userId: this.attr(null)    }  }}

Typescript Declarations

const entity: string = undefined