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.
46 lines
1.8 KiB
PHP
46 lines
1.8 KiB
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* @property int $id
|
|
* @property int $profile_id
|
|
* @property string|null $acct
|
|
* @property int $followers_count
|
|
* @property int|null $target_profile_id
|
|
* @property \Illuminate\Support\Carbon|null $created_at
|
|
* @property \Illuminate\Support\Carbon|null $updated_at
|
|
* @property-read \App\Models\Profile|null $profile
|
|
* @property-read \App\Models\Profile|null $target
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|ProfileMigration newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|ProfileMigration newQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|ProfileMigration query()
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|ProfileMigration whereAcct($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|ProfileMigration whereCreatedAt($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|ProfileMigration whereFollowersCount($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|ProfileMigration whereId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|ProfileMigration whereProfileId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|ProfileMigration whereTargetProfileId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|ProfileMigration whereUpdatedAt($value)
|
|
* @mixin \Eloquent
|
|
*/
|
|
class ProfileMigration extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $guarded = [];
|
|
|
|
public function profile()
|
|
{
|
|
return $this->belongsTo(Profile::class, 'profile_id');
|
|
}
|
|
|
|
public function target()
|
|
{
|
|
return $this->belongsTo(Profile::class, 'target_profile_id');
|
|
}
|
|
}
|