<?php

namespace App\Modules\HR\Core\Models;

use App\Modules\PLATFORM\Settings\Models\Branch;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;

class BloodGroup extends Model
{
    use HasFactory;

    protected $table = 'blood_groups';

    protected $fillable = [
        'branch_id',
        'name',
        'status',
    ];

    protected $casts = [
        'status' => 'boolean',
    ];

    /* ================= Relationships ================= */

    public function branch()
    {
        return $this->belongsTo(Branch::class);
    }
}
