<?php

namespace App\Models;

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

/**
 * @property int $id
 * @property int $user_id
 * @property int $gitea_number
 * @property string $title
 * @property string $type
 */
class Ticket extends Model
{
    protected $fillable = [
        'user_id',
        'gitea_number',
        'title',
        'type',
    ];

    public function user(): BelongsTo
    {
        return $this->belongsTo(User::class);
    }
}
