mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-06 06:44:50 +00:00
24 lines
432 B
PHP
24 lines
432 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use App\Status;
|
|
|
|
class ImportPost extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $casts = [
|
|
'media' => 'array',
|
|
'creation_date' => 'datetime',
|
|
'metadata' => 'json'
|
|
];
|
|
|
|
public function status()
|
|
{
|
|
return $this->hasOne(Status::class, 'id', 'status_id');
|
|
}
|
|
}
|