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.
pixelfed/app/Models/StoryView.php

33 lines
1.2 KiB
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
/**
* @property int $id
* @property int $story_id
* @property int $profile_id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\Story|null $story
* @method static \Illuminate\Database\Eloquent\Builder<static>|StoryView newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|StoryView newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|StoryView query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|StoryView whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|StoryView whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|StoryView whereProfileId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|StoryView whereStoryId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|StoryView whereUpdatedAt($value)
* @mixin \Eloquent
*/
class StoryView extends Model
{
public $fillable = ['story_id', 'profile_id'];
public function story()
{
return $this->belongsTo(Story::class);
}
}