*/ final class EquipmentAttributeMapper extends DataMapperFactory { /** * Columns. * * @var array * @since 1.0.0 */ public const COLUMNS = [ 'equipmgmt_equipment_attr_id' => ['name' => 'equipmgmt_equipment_attr_id', 'type' => 'int', 'internal' => 'id'], 'equipmgmt_equipment_attr_equipment' => ['name' => 'equipmgmt_equipment_attr_equipment', 'type' => 'int', 'internal' => 'ref'], 'equipmgmt_equipment_attr_type' => ['name' => 'equipmgmt_equipment_attr_type', 'type' => 'int', 'internal' => 'type'], 'equipmgmt_equipment_attr_value' => ['name' => 'equipmgmt_equipment_attr_value', 'type' => 'int', 'internal' => 'value'], ]; /** * Has one relation. * * @var array * @since 1.0.0 */ public const OWNS_ONE = [ 'type' => [ 'mapper' => EquipmentAttributeTypeMapper::class, 'external' => 'equipmgmt_equipment_attr_type', ], 'value' => [ 'mapper' => EquipmentAttributeValueMapper::class, 'external' => 'equipmgmt_equipment_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 = 'equipmgmt_equipment_attr'; /** * Primary field name. * * @var string * @since 1.0.0 */ public const PRIMARYFIELD = 'equipmgmt_equipment_attr_id'; }