|
@@ -3,9 +3,19 @@
|
|
|
namespace App;
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
+use Pixelfed\Snowflake\HasSnowflakePrimary;
|
|
|
|
|
|
class CollectionItem extends Model
|
|
|
{
|
|
|
+ use HasSnowflakePrimary;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Indicates if the IDs are auto-incrementing.
|
|
|
+ *
|
|
|
+ * @var bool
|
|
|
+ */
|
|
|
+ public $incrementing = false;
|
|
|
+
|
|
|
public function collection()
|
|
|
{
|
|
|
return $this->belongsTo(Collection::class);
|