> * @since 1.0.0 */ protected static $columns = [ 'hr_staff_id' => ['name' => 'hr_staff_id', 'type' => 'int', 'internal' => 'id'], 'hr_staff_account' => ['name' => 'hr_staff_account', 'type' => 'int', 'internal' => 'account'], ]; /** * Belongs to. * * @var array> * @since 1.0.0 */ protected static $belongsTo = [ 'account' => [ 'mapper' => AccountMapper::class, 'src' => 'hr_staff_account', ], ]; /** * Has many relation. * * @var array> * @since 1.0.0 */ protected static $hasMany = [ 'history' => [ 'mapper' => EmployeeHistoryMapper::class, 'table' => 'hr_staff_history', 'dst' => 'hr_staff_history_staff', 'src' => null, ], ]; /** * Primary table. * * @var string * @since 1.0.0 */ protected static $table = 'hr_staff'; /** * Primary field name. * * @var string * @since 1.0.0 */ protected static $primaryField = 'hr_staff_id'; }