<?php

namespace App\Models;

use CodeIgniter\Model;

class SupplierModel extends Model
{
    protected $table            = 'suppliers';
    protected $primaryKey       = 'id_supplier';
    protected $allowedFields    = ['nama_supplier', 'kontak', 'alamat'];

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