<?php

namespace App\Models;

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

class OnpremiseReceipts extends Model
{
    use HasFactory;

    protected $table = 'onpremise_receipts';

    protected $fillable = [
        'onpremise_id',
        'link',
        'type',
    ];
    
    // protected $casts = [
    //     'number_of_sign' => 'integer',
    //     'sign_to_remove' => 'integer',
    //     'sign_to_add' => 'integer',
    //     'rate' => 'float',
    //     'product_on_sign' => 'boolean',
    //     'previous_rate' => 'float'
    // ];

    public function onpremise() {
        return $this->belongsTo(onpremise::class, 'onpremise_id');
    }
}
