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

class Divisi_model extends CI_Model {

    public function __construct() {
        parent::__construct();
    }

    // Ambil semua data divisi
    public function get_all() {
        return $this->db->get('divisi_categories')->result();
    }

    // Kalau perlu ambil divisi by ID
    public function get_by_id($id) {
        return $this->db->get_where('divisi_categories', ['divisi_categories_id' => $id])->row();
    }
}
