* @since 1.0.0 */ protected static array $columns = [ 'qa_category_id' => ['name' => 'qa_category_id', 'type' => 'int', 'internal' => 'id'], 'qa_category_name' => ['name' => 'qa_category_name', 'type' => 'string', 'internal' => 'name'], 'qa_category_parent' => ['name' => 'qa_category_parent', 'type' => 'int', 'internal' => 'parent'], ]; /** * Belongs to. * * @var array * @since 1.0.0 */ protected static array $belongsTo = [ 'parent' => [ 'mapper' => self::class, 'self' => 'qa_category_parent', ], ]; /** * Primary table. * * @var string * @since 1.0.0 */ protected static string $table = 'qa_category'; /** * Primary field name. * * @var string * @since 1.0.0 */ protected static string $primaryField = 'qa_category_id'; }