<?php

declare(strict_types=1);

namespace Plugins\Demo\HelloWorld\Models;

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

/**
 * 演示模型：插件自带迁移创建的表。
 */
class HelloWorldLog extends Model
{
    protected $fillable = ['comment_id', 'note'];

    public function comment(): BelongsTo
    {
        return $this->belongsTo(\App\Models\Comment::class);
    }
}
