<?php

namespace App\Models;

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

class ClientContractSkip extends Model
{
    use HasFactory;

    protected $fillable = [
        'client_id', 'contract_id', 'skipped_at', 'skipped_until',
        'ip_address', 'user_agent',
    ];

    protected $casts = [
        'skipped_at' => 'datetime',
        'skipped_until' => 'datetime',
    ];

    public function client()
    {
        return $this->belongsTo(Client::class);
    }

    public function contract()
    {
        return $this->belongsTo(Contract::class);
    }
}
