<?php

namespace App\Models;

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

class JobModel extends Model
{
    protected $dates = [];

    
     /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'jobs';
    
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'id',
        'queue',
        'payload',
        'attempts',
        'reserved_at',
        'available_at',
        'created_at',
    ];
    
    
    // Override the toArray method to prevent formatting of dates
    public function getCreatedAtAttribute()
    {
        return $this->getRawOriginal('created_at');
    }
}