entity

This field is required and must be set in every model

Usage

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

Typescript Declarations

const entity: string = undefined