2018-10-17 18:21:13 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
2021-09-02 04:46:57 +00:00
|
|
|
use App\HasSnowflakePrimary;
|
2018-10-17 18:21:13 +00:00
|
|
|
|
|
|
|
class CollectionItem extends Model
|
|
|
|
{
|
2019-04-26 01:56:04 +00:00
|
|
|
use HasSnowflakePrimary;
|
|
|
|
|
2019-07-16 05:23:16 +00:00
|
|
|
public $fillable = [
|
|
|
|
'collection_id',
|
|
|
|
'object_type',
|
|
|
|
'object_id',
|
|
|
|
'order'
|
|
|
|
];
|
|
|
|
|
2019-04-26 01:56:04 +00:00
|
|
|
/**
|
|
|
|
* Indicates if the IDs are auto-incrementing.
|
|
|
|
*
|
|
|
|
* @var bool
|
|
|
|
*/
|
|
|
|
public $incrementing = false;
|
|
|
|
|
2019-02-03 21:48:03 +00:00
|
|
|
public function collection()
|
|
|
|
{
|
|
|
|
return $this->belongsTo(Collection::class);
|
|
|
|
}
|
2018-10-17 18:21:13 +00:00
|
|
|
}
|