<?php

namespace App\Models;

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

class ThirdPartyReceipts extends Model
{
    use HasFactory;

    protected $table = 'thirdparty_outdoor_receipts';

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