<?php

namespace App\Models;

use CodeIgniter\Model;

class ServiceModel extends Model
{
    protected $table            = 'service';
    protected $primaryKey       = 'id';
    protected $useAutoIncrement = true;
    protected $returnType       = 'array';

    protected $allowedFields = [
        'no_transaksi',
        'tanggal_service',
        'pelanggan_id',
        'teknisi_id',
        'nomor_objek',
        'merk_tipe',
        'keterangan',
        'status_service',
        'subtotal_barang',
        'subtotal_jasa',
        'biaya_tambahan',
        'pajak_persen',
        'pajak_nominal',
        'total_service',
        'status_pembayaran',
        'user_id',
    ];

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