<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class KasRt extends Model
{
    protected $fillable = [
        'tanggal', 'jenis', 'kategori', 'nominal',
        'keterangan', 'bukti_url', 'user_id'
    ];

    protected $casts = [
        'tanggal' => 'date',
        'nominal' => 'integer',
    ];

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