['name' => 'organization_unit_id', 'type' => 'int', 'internal' => 'id'], 'organization_unit_name' => ['name' => 'organization_unit_name', 'type' => 'string', 'internal' => 'name'], 'organization_unit_description' => ['name' => 'organization_unit_description', 'type' => 'string', 'internal' => 'description'], 'organization_unit_parent' => ['name' => 'organization_unit_parent', 'type' => 'int', 'internal' => 'parent'], 'organization_unit_status' => ['name' => 'organization_unit_status', 'type' => 'int', 'internal' => 'status'], ]; protected static $belongsTo = [ 'account' => [ 'mapper' => UnitMapper::class, 'dest' => 'organization_uni_parent', ], 'parent' => [ 'mapper' => UnitMapper::class, 'dest' => 'organization_unit_parent', ], ]; /** * Primary table. * * @var string * @since 1.0.0 */ protected static $table = 'organization_unit'; /** * Primary field name. * * @var string * @since 1.0.0 */ protected static $primaryField = 'organization_unit_id'; }