<?php

namespace App\Models;

use App\Models\BaseModel;

class SupportRequest extends BaseModel
{
    protected $table = 'support_requests';
    public $timestamps = true;

    protected $fillable = [
        'user_id',
        'subject',
        'message',
        'status',
        'created_at',
        'updated_at',
        'semester',
        'school_year',
    ];

    protected $casts = [
        'user_id' => 'integer',
        'created_at' => 'datetime',
        'updated_at' => 'datetime',
    ];

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