<?php

namespace App\Models;

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

class Perhitungan extends Model
{
    use HasFactory;

    protected $fillable = [
        'session_id',
        'nama_pewaris',
        'harta_total',
        'input_ahli_waris',
        'hasil',
        'asal_masalah',
        'kondisi',
        'ip_address',
    ];

    protected $casts = [
        'input_ahli_waris' => 'array',
        'hasil'            => 'array',
        'harta_total'      => 'integer',
        'asal_masalah'     => 'integer',
    ];
}
