33 lines
804 B
PHP
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);
|
|
}
|
|
}
|