21 lines
740 B
PHP
21 lines
740 B
PHP
<?php
|
|
namespace App\Models;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* نموذج طلبات السائق (DriverOrder Model)
|
|
*
|
|
* الغرض من الملف:
|
|
* تسجيل الطلبات (الرحلات) التي تم إرسالها لسائق معين وحالتها (قبول/رفض).
|
|
*
|
|
* كيفية العمل:
|
|
* 1. يرتبط بجدول (driver_orders) في قاعدة البيانات الأساسية.
|
|
* 2. يربط بين السائق (driver_id) ومعرف الرحلة (order_id).
|
|
*/
|
|
class DriverOrder extends Model {
|
|
protected $connection = 'primary';
|
|
protected $table = 'driver_orders';
|
|
public $timestamps = false;
|
|
protected $fillable = ['driver_id', 'order_id', 'notes', 'created_at', 'status'];
|
|
}
|