mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
31 lines
508 B
PHP
31 lines
508 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Pixelfed\Snowflake\HasSnowflakePrimary;
|
|
|
|
class CollectionItem extends Model
|
|
{
|
|
use HasSnowflakePrimary;
|
|
|
|
public $fillable = [
|
|
'collection_id',
|
|
'object_type',
|
|
'object_id',
|
|
'order'
|
|
];
|
|
|
|
/**
|
|
* Indicates if the IDs are auto-incrementing.
|
|
*
|
|
* @var bool
|
|
*/
|
|
public $incrementing = false;
|
|
|
|
public function collection()
|
|
{
|
|
return $this->belongsTo(Collection::class);
|
|
}
|
|
}
|