phpOMS/tests/DataStorage/Database/TestModel/ManyToManyRelModelPrivateMapper.php
Dennis Eichhorn 65264e33ae fix test
2023-10-22 09:00:41 +00:00

50 lines
1.2 KiB
PHP

<?php
/**
* Jingga
*
* PHP Version 8.1
*
* @package tests
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
namespace phpOMS\tests\DataStorage\Database\TestModel;
use phpOMS\DataStorage\Database\Mapper\DataMapperFactory;
class ManyToManyRelModelPrivateMapper extends DataMapperFactory
{
/**
* Columns.
*
* @var array<string, array{name:string, type:string, internal:string, autocomplete?:bool, readonly?:bool, writeonly?:bool, annotations?:array}>
* @since 1.0.0
*/
public const COLUMNS = [
'test_has_many_relp_id' => ['name' => 'test_has_many_relp_id', 'type' => 'int', 'internal' => 'id'],
'test_has_many_relp_string' => ['name' => 'test_has_many_relp_string', 'type' => 'string', 'internal' => 'string'],
];
/**
* Primary table.
*
* @var string
* @since 1.0.0
*/
public const TABLE = 'test_has_many_relp';
/**
* Primary field name.
*
* @var string
* @since 1.0.0
*/
public const PRIMARYFIELD = 'test_has_many_relp_id';
public const MODEL = ManyToManyRelModel::class;
}