Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Field

Hierarchy

Index

Constructors

constructor

  • new Field(name: string, type?: string): Field

Properties

Protected _name

_name: string

allowNull

allowNull: boolean = false

cast

cast: string = ""

comment

comment: string = ""

fillable

fillable: boolean = true

hidden

hidden: boolean = false

htmlEdit

htmlEdit: string = ""

htmlIndex

htmlIndex: string = ""

htmlShow

htmlShow: string = ""

included

included: boolean = true

length

length: number | string = ""

Readonly ruleManager

ruleManager: RuleManager = new RuleManager()

Readonly seed

seed: Seed = new Seed()

type

type: string

unsigned

unsigned: boolean = false

useCurrent

useCurrent: boolean = false

value

value: number | string = ""

Static Protected IgnoreList

IgnoreList: Array<string> = Item.IgnoreList.concat(['_name'])

Static Protected IncludeList

IncludeList: Array<string> = Item.IncludeList.concat(['name'])

Accessors

camelCase

  • get camelCase(): string

ignoreList

  • get ignoreList(): Array<string>

includeList

  • get includeList(): Array<string>

isIncrement

  • get isIncrement(): boolean

name

  • get name(): string
  • set name(name: string): void

snakeCase

  • get snakeCase(): string

wavelCase

  • get wavelCase(): string

Methods

Protected getDescriptor

  • getDescriptor(name: string): undefined | null | PropertyDescriptor

load

  • load(source: Item): void

Protected loadProperty

  • loadProperty(name: string, source: IKeyValue): void

toJSON

Generated using TypeDoc