<?php

namespace App\Models;

use App\Models\Concerns\BelongsToUser;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Depense extends Model
{
    use BelongsToUser, HasFactory, SoftDeletes;

    protected $fillable = ['reference', 'libelle', 'categorie', 'montant', 'date_depense', 'user_id'];

    protected $casts = [
        'date_depense' => 'date',
        'montant' => 'decimal:0',
    ];
}
