21 lines
723 B
PHP
21 lines
723 B
PHP
<?php
|
|
namespace App\Models;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* نموذج هدايا السائق (DriverGift Model)
|
|
*
|
|
* الغرض من الملف:
|
|
* تتبع الهدايا أو المكافآت التي يحصل عليها السائقون.
|
|
*
|
|
* كيفية العمل:
|
|
* 1. يرتبط بجدول (driver_gifts) في قاعدة البيانات الأساسية.
|
|
* 2. يخزن وصف الهدية، تاريخها، وما إذا تم استلامها أم لا.
|
|
*/
|
|
class DriverGift extends Model {
|
|
protected $connection = 'primary';
|
|
protected $table = 'driver_gifts';
|
|
public $timestamps = false;
|
|
protected $fillable = ['driver_id', 'gift_description', 'gift_date', 'is_claimed'];
|
|
}
|