*/ final class AppMapper extends DataMapperFactory { /** * Columns. * * @var array * @since 1.0.0 */ public const COLUMNS = [ 'app_id' => ['name' => 'app_id', 'type' => 'int', 'internal' => 'id'], 'app_name' => ['name' => 'app_name', 'type' => 'string', 'internal' => 'name'], 'app_theme' => ['name' => 'app_theme', 'type' => 'string', 'internal' => 'theme'], 'app_status' => ['name' => 'app_status', 'type' => 'int', 'internal' => 'status'], 'app_type' => ['name' => 'app_type', 'type' => 'int', 'internal' => 'type'], 'app_unit_default' => ['name' => 'app_unit_default', 'type' => 'int', 'internal' => 'defaultUnit'], ]; /** * Model to use by the mapper. * * @var class-string * @since 1.0.0 */ public const MODEL = App::class; /** * Primary table. * * @var string * @since 1.0.0 */ public const TABLE = 'app'; /** * Primary field name. * * @var string * @since 1.0.0 */ public const PRIMARYFIELD = 'app_id'; }