Files
BetiX/app/Models/UserFeedback.php
Dolo 0280278978
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (8.4) (push) Has been cancelled
tests / ci (8.5) (push) Has been cancelled
Initialer Laravel Commit für BetiX
2026-04-04 18:01:50 +02:00

33 lines
804 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class UserFeedback extends Model
{
protected $table = 'user_feedback';
protected $fillable = [
'user_id', 'category',
'overall_rating', 'ux_rating', 'comfort_rating', 'mobile_rating',
'uses_mobile', 'nps_score',
'ux_comment', 'mobile_comment', 'feature_request', 'improvements', 'general_comment',
'status', 'admin_note',
];
protected $casts = [
'uses_mobile' => 'boolean',
'overall_rating' => 'integer',
'ux_rating' => 'integer',
'comfort_rating' => 'integer',
'mobile_rating' => 'integer',
'nps_score' => 'integer',
];
public function user()
{
return $this->belongsTo(User::class);
}
}