<?php

namespace App\Models;

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

class FirstPartyTemporaryReceipts extends Model
{
    use HasFactory;

    protected $table = 'first_party_temporary_ads_receipts';

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