*/ final class PromotionAttributeMapper extends DataMapperFactory { /** * Columns. * * @var array * @since 1.0.0 */ public const COLUMNS = [ 'marketing_promotion_attr_id' => ['name' => 'marketing_promotion_attr_id', 'type' => 'int', 'internal' => 'id'], 'marketing_promotion_attr_promotion' => ['name' => 'marketing_promotion_attr_promotion', 'type' => 'int', 'internal' => 'promotion'], 'marketing_promotion_attr_type' => ['name' => 'marketing_promotion_attr_type', 'type' => 'int', 'internal' => 'type'], 'marketing_promotion_attr_value' => ['name' => 'marketing_promotion_attr_value', 'type' => 'int', 'internal' => 'value'], ]; /** * Has one relation. * * @var array * @since 1.0.0 */ public const OWNS_ONE = [ 'type' => [ 'mapper' => PromotionAttributeTypeMapper::class, 'external' => 'marketing_promotion_attr_type', ], 'value' => [ 'mapper' => PromotionAttributeValueMapper::class, 'external' => 'marketing_promotion_attr_value', ], ]; /** * Primary table. * * @var string * @since 1.0.0 */ public const TABLE = 'marketing_promotion_attr'; /** * Primary field name. * * @var string * @since 1.0.0 */ public const PRIMARYFIELD = 'marketing_promotion_attr_id'; }