<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Service extends Model
{
    use HasFactory;

    protected $fillable = [
        'user_id',
        'jenis_permintaan',
        'tanggal_uji',
        'parameter',
        'pengujian_kualitas_air',
        'total_sampel',
        'jarak_pengambilan_sampel',
        'status',
        'tanggal_selesai_uji',
        'biaya_retribusi_parameter',
        'biaya_retribusi_jarak',
        'biaya_retribusi',
        'file_hasil_uji',
        'keterangan',
    ];

    /**
     * Get the user that owns the service.
     */
    public function user()
    {
        return $this->belongsTo(User::class);
    }
}
