<?php

namespace App\Models\Claim;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class CaseProgression extends Model {
    protected $fillable = [
        'claim_id',
        'aml_checks',
        'id_certified',
        'bank_statement',
        'supporting_statement',
        'initial_registration',
        'dsars_sent_out',
        'supplementary_statement',
        'submitted',
    ];

    protected $casts = [
        'aml_checks' => 'boolean',
        'id_certified' => 'boolean',
        'bank_statement' => 'boolean',
        'supporting_statement' => 'boolean',
        'initial_registration' => 'boolean',
        'dsars_sent_out' => 'boolean',
        'supplementary_statement' => 'boolean',
        'submitted' => 'boolean',
    ];

    public function claim(): BelongsTo {
        return $this->belongsTo(Claim::class);
    }
}
