<?php

namespace App\Models;

use CodeIgniter\Model;

class JenisKainModel extends Model
{
    protected $table            = 'tabel_jenis_kain';
    protected $primaryKey       = 'kode_jenis_kain';
    protected $useAutoIncrement = true;
    protected $returnType       = 'object';
    protected $allowedFields    = ['nama_jenis_kain', 'warna', 'harga_per_meter', 'foto_jenis_kain'];

    protected $useTimestamps = true;
    protected $createdField  = 'created_at';
    protected $updatedField  = 'updated_at';
}
