<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Models\Cashtransaction;

class VatEntry extends Model
{
    use HasFactory;

    protected $table = 'vat_entries';

    protected $guarded = [];

    protected $casts = [
        'date' => 'date',
    ];

    public function cashtransactions()
    {
        return $this->hasMany(Cashtransaction::class, 'vat_entry_id');
    }
}
