<?php

namespace App\Models;

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

class VetDoctor extends Model
{
    protected $table = 'vet_doctors';

    protected $primaryKey = 'VD_Id';

    public $incrementing = true;

    protected $keyType = 'int';

    protected $fillable = [
        'Doctor_Name','Clinic_Name','Mobile','Email','Clinic_Address',
        'Area_Id','License_Number','Qualification','Experience_Years',
        'License_Valid_From','License_Valid_To','Documents','Status'
    ];

    protected $casts = [
        'Documents' => 'array' // ✅ AUTO JSON CONVERT
    ];
}
