<?php

namespace App\Models;

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

class HasilPrediksi extends Model
{
    use HasFactory;

    protected $table = 'hasil_prediksi';

    protected $fillable = [
        'user_id',
        'tanggal',
        'estimasi',
        'batas_atas',
        'batas_bawah',
    ];

    public function user()
    {
        return $this->belongsTo(User::class);
    }
}