Create Job.php
This commit is contained in:
43
app/Models/Job.php
Normal file
43
app/Models/Job.php
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class Job extends Model
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* The table associated with the model.
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
protected $table = 'jobs';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The attributes that are mass assignable.
|
||||||
|
*
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
|
protected $fillable = [
|
||||||
|
'queue',
|
||||||
|
'payload',
|
||||||
|
'attempts',
|
||||||
|
'reserved_at',
|
||||||
|
'available_at',
|
||||||
|
'created_at',
|
||||||
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The attributes that should be cast to native types.
|
||||||
|
*
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
|
protected $casts = [
|
||||||
|
'attempts' => 'integer',
|
||||||
|
'reserved_at' => 'integer',
|
||||||
|
'available_at' => 'integer',
|
||||||
|
'created_at' => 'integer',
|
||||||
|
];
|
||||||
|
|
||||||
|
// Relationships, accessors, mutators and other model methods can be added here
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user