<?php

namespace App\Models;

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

class InvoiceReport extends Model
{
    use HasFactory;

    protected $fillable = [
        'customer_id',
        'date_start',
        'date_end',
        'filter_paid',
        'subtotal',
        'pst',
        'gst',
        'total',
    ];

    public function customer(): BelongsTo
    {
        return $this->belongsTo(Customer::class);
    }
}
