<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Dokter_model extends CI_Model {

    public function get_all_active() {
        return $this->db->get_where('tb_dokter', ['status' => 1])->result();
    }

    public function get_by_id($dokter_id) {
        return $this->db->get_where('tb_dokter', ['dokter_id' => $dokter_id])->row();
    }

    public function get_by_poli($poli_id) {
        return $this->db->get_where('tb_dokter', ['id_poli' => $poli_id, 'status' => 1])->result();
    }
}
