<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class PostView extends Model
{
    protected $fillable = [
      'ip_address',
      'user_agent',
      'post_id',
    ];
    public function post(): BelongsTo
    {
        return $this->belongsTo(Post::class);
    }
}
