*/ final class ChecklistTemplateTaskMapper extends DataMapperFactory { /** * Columns. * * @var array * @since 1.0.0 */ public const COLUMNS = [ 'checklist_template_task_id' => ['name' => 'checklist_template_task_id', 'type' => 'int', 'internal' => 'id'], 'checklist_template_task_order' => ['name' => 'checklist_template_task_order', 'type' => 'int', 'internal' => 'order'], 'checklist_template_task_template' => ['name' => 'checklist_template_task_template', 'type' => 'int', 'internal' => 'template'], 'checklist_template_task_task' => ['name' => 'checklist_template_task_task', 'type' => 'int', 'internal' => 'task'], ]; /** * Has one relation. * * @var array * @since 1.0.0 */ public const OWNS_ONE = [ 'task' => [ 'mapper' => TaskMapper::class, 'external' => 'checklist_template_task_task', ], ]; /** * Primary table. * * @var string * @since 1.0.0 */ public const TABLE = 'checklist_template_task'; /** * Primary field name. * * @var string * @since 1.0.0 */ public const PRIMARYFIELD = 'checklist_template_task_id'; }