*/ final class ClientAttributeMapper extends DataMapperFactory { /** * Columns. * * @var array * @since 1.0.0 */ public const COLUMNS = [ 'clientmgmt_client_attr_id' => ['name' => 'clientmgmt_client_attr_id', 'type' => 'int', 'internal' => 'id'], 'clientmgmt_client_attr_client' => ['name' => 'clientmgmt_client_attr_client', 'type' => 'int', 'internal' => 'ref'], 'clientmgmt_client_attr_type' => ['name' => 'clientmgmt_client_attr_type', 'type' => 'int', 'internal' => 'type'], 'clientmgmt_client_attr_value' => ['name' => 'clientmgmt_client_attr_value', 'type' => 'int', 'internal' => 'value'], ]; /** * Has one relation. * * @var array * @since 1.0.0 */ public const OWNS_ONE = [ 'type' => [ 'mapper' => ClientAttributeTypeMapper::class, 'external' => 'clientmgmt_client_attr_type', ], 'value' => [ 'mapper' => ClientAttributeValueMapper::class, 'external' => 'clientmgmt_client_attr_value', ], ]; /** * Model to use by the mapper. * * @var class-string * @since 1.0.0 */ public const MODEL = Attribute::class; /** * Primary table. * * @var string * @since 1.0.0 */ public const TABLE = 'clientmgmt_client_attr'; /** * Primary field name. * * @var string * @since 1.0.0 */ public const PRIMARYFIELD = 'clientmgmt_client_attr_id'; }