* @since 1.0.0 */ protected static array $columns = [ 'accounting_costcenter_id' => ['name' => 'accounting_costcenter_id', 'type' => 'int', 'internal' => 'id'], 'accounting_costcenter_code' => ['name' => 'accounting_costcenter_code', 'type' => 'string', 'internal' => 'code'], ]; /** * Has many relation. * * @var array * @since 1.0.0 */ protected static array $hasMany = [ 'l11n' => [ 'mapper' => L11nCostCenterMapper::class, 'table' => 'accounting_costcenter_l11n', 'self' => 'accounting_costcenter_l11n_costcenter', 'conditional' => true, 'external' => null, ], ]; /** * Model to use by the mapper. * * @var string * @since 1.0.0 */ protected static string $model = CostCenter::class; /** * Primary table. * * @var string * @since 1.0.0 */ protected static string $table = 'accounting_costcenter'; /** * Primary field name. * * @var string * @since 1.0.0 */ protected static string $primaryField = 'accounting_costcenter_id'; }