<?php

namespace App\Models;

use CodeIgniter\Model;

class DetailKainModel extends Model
{
    protected $table            = 'tabel_detail_kain';
    protected $primaryKey       = 'kode_detail_kain';
    protected $useAutoIncrement = true;
    protected $returnType       = 'object';
    protected $allowedFields    = ['id_detail_order', 'kode_jenis_kain', 'meter_pemakaian', 'harga_per_meter', 'subtotal_detail_kain', 'additional_fabrics'];

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