<?php

namespace App\Models;

use CodeIgniter\Model;

class CategoryModel extends Model
{
    protected $table = 'categories';

    protected $primaryKey = 'id_category';

    protected $returnType = 'array';

    protected $useTimestamps = false;

    protected $allowedFields = [
        'nama_kategori'
    ];

    protected $validationRules = [
        'nama_kategori' => 'required|min_length[3]'
    ];
}