<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class QueueCounter extends Model
{
    protected $fillable = [
        'organization_id', 'queue_scope_key', 'queue_date', 'last_allocated_token', 'current_served_token',
    ];

    protected function casts(): array
    {
        return [
            'queue_date' => 'date',
            'last_allocated_token' => 'integer',
            'current_served_token' => 'integer',
        ];
    }
}
