2019-07-09 22:03:54 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
class QueueItem extends Model
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The attributes that are mass assignable.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $fillable = [
|
|
|
|
'batch_reference',
|
|
|
|
'action_type',
|
|
|
|
'album_id',
|
|
|
|
'photo_id',
|
2019-07-10 14:31:04 +01:00
|
|
|
'queued_at',
|
|
|
|
'user_id'
|
2019-07-09 22:03:54 +01:00
|
|
|
];
|
2019-07-10 14:31:04 +01:00
|
|
|
|
|
|
|
public function album()
|
|
|
|
{
|
|
|
|
return $this->belongsTo(Album::class);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function photo()
|
|
|
|
{
|
|
|
|
return $this->belongsTo(Photo::class);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function user()
|
|
|
|
{
|
|
|
|
return $this->belongsTo(User::class);
|
|
|
|
}
|
2019-07-09 22:03:54 +01:00
|
|
|
}
|