<?php
namespace App\Models;
use CodeIgniter\Model;

class TimeEntryModel extends Model
{
    protected $table          = 'time_entries';
    protected $primaryKey     = 'id';
    protected $useSoftDeletes = false;
    protected $deletedField   = 'deleted_at';
    // cost is GENERATED in DB — never insert it
    protected $allowedFields  = ['company_id','job_id','visit_id','check_in_id','user_id','date','start_time','end_time','duration_mins','billable','rate','approved','approved_by','notes',
        'created_at', 'updated_at', 'deleted_at'];
}
