<?php

namespace App\Modules\HR\Core\Models;

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

class DynamicAttribute extends Model
{
    use BranchScoped;
     protected $fillable = [
        'branch_id',
        'entity_type',
        'name',
        'data_type',
        'mandatory',
        'validation_rule',
        'status',
    ];

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