Initialer Laravel Commit für BetiX
This commit is contained in:
32
app/Models/UserFeedback.php
Normal file
32
app/Models/UserFeedback.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user