mirror of https://github.com/pixelfed/pixelfed
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.3 KiB
PHP
42 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Support\Carbon;
|
|
|
|
/**
|
|
* @property int $id
|
|
* @property int $status_id
|
|
* @property int $profile_id
|
|
* @property Carbon|null $created_at
|
|
* @property Carbon|null $updated_at
|
|
* @property-read Profile|null $profile
|
|
* @property-read Status|null $status
|
|
*
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Bookmark newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Bookmark newQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Bookmark query()
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Bookmark whereCreatedAt($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Bookmark whereId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Bookmark whereProfileId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Bookmark whereStatusId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Bookmark whereUpdatedAt($value)
|
|
*
|
|
* @mixin \Eloquent
|
|
*/
|
|
class Bookmark extends Model
|
|
{
|
|
protected $guarded = [];
|
|
|
|
public function status()
|
|
{
|
|
return $this->belongsTo(Status::class);
|
|
}
|
|
|
|
public function profile()
|
|
{
|
|
return $this->belongsTo(Profile::class);
|
|
}
|
|
}
|