Files
intaleq_v2/app/Models/RatingDriver.php
2026-04-22 23:16:23 +03:00

21 lines
776 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
/**
* نموذج تقييم السائق (RatingDriver Model)
*
* الغرض من الملف:
* تخزين التقييمات والتعليقات التي يتركها الركاب للسائقين بعد انتهاء الرحلة.
*
* كيفية العمل:
* 1. يرتبط بجدول (ratingDriver) في قاعدة البيانات الأساسية.
* 2. يربط التقييم بالراكب والسائق والرحلة المعنية.
*/
class RatingDriver extends Model {
protected $connection = 'primary';
protected $table = 'ratingDriver';
public $timestamps = false;
protected $fillable = ['passenger_id', 'driver_id', 'ride_id', 'rating', 'comment', 'created_at'];
}