<?php

namespace App\Models\Dsar;

use App\Models\Claim\Claim;
use App\Trait\HasSlug;
use Illuminate\Database\Eloquent\Model;

class DsarTranche extends Model
{
    public $fillable = [
        'claim_id',
        'status'
    ];

    use HasSlug;

    public function dsars() {
        return $this->hasMany(Dsar::class, 'tranche_id');
    }

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