<?php

namespace App\Models;

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

/**
 * @property int $id
 * @property string $description
 * @property bool $active
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @property \Illuminate\Support\Carbon|null $deleted_at
 * @method static \Illuminate\Database\Eloquent\Builder<static>|Speciality newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder<static>|Speciality newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder<static>|Speciality onlyTrashed()
 * @method static \Illuminate\Database\Eloquent\Builder<static>|Speciality query()
 * @method static \Illuminate\Database\Eloquent\Builder<static>|Speciality whereActive($value)
 * @method static \Illuminate\Database\Eloquent\Builder<static>|Speciality whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder<static>|Speciality whereDeletedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder<static>|Speciality whereDescription($value)
 * @method static \Illuminate\Database\Eloquent\Builder<static>|Speciality whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder<static>|Speciality whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder<static>|Speciality withTrashed(bool $withTrashed = true)
 * @method static \Illuminate\Database\Eloquent\Builder<static>|Speciality withoutTrashed()
 * @mixin \Eloquent
 */
class Speciality extends Model
{
    use HasFactory, SoftDeletes;

    protected $table = 'specialities';

    protected $guarded = [
        'id',
    ];

    protected $casts = [
        'created_at' => 'datetime',
        'updated_at' => 'datetime',
        'deleted_at' => 'datetime',
        'active'     => 'boolean',
    ];

    protected $fillable = [
        'description',
        'active',
    ];
}
