<?php

namespace App\Models;

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

class SmallFormatReceipts extends Model
{
    use HasFactory;

    protected $table = 'small_format_receipts';

    protected $fillable = [
        'small_format_ads_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 smallFormatAds() {
        return $this->belongsTo(SmallFormatAds::class);
    }
}
