<?php

namespace App\Models;

class RewarderCountryModel extends BaseModel
{
    protected $table = 'rewarder_countries';
    protected $primaryKey = 'id';
    protected $returnType = 'object';
    protected $allowedFields = ['name', 'code', 'status', 'created_at', 'updated_at'];

    public function activeList()
    {
        return $this->where('status', 1)->orderBy('name', 'asc')->findAll();
    }
}

