47 lines
834 B
PHP
47 lines
834 B
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Carbon\Carbon;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Class BookingPassenger
|
|
*
|
|
* @property int $id
|
|
* @property int $booking_id
|
|
* @property string $first_name
|
|
* @property string $last_name
|
|
* @property string $national_code
|
|
* @property int $passenger_type
|
|
* @property Carbon $birth_date
|
|
* @property Carbon $created_at
|
|
* @property Carbon $updated_at
|
|
*
|
|
* @package App\Models
|
|
*/
|
|
class BookingPassenger extends Model
|
|
{
|
|
protected $table = 'booking_passengers';
|
|
public static $snakeAttributes = false;
|
|
|
|
protected $casts = [
|
|
'booking_id' => 'int',
|
|
'passenger_type' => 'int',
|
|
'birth_date' => 'datetime'
|
|
];
|
|
|
|
protected $fillable = [
|
|
'booking_id',
|
|
'first_name',
|
|
'last_name',
|
|
'national_code',
|
|
'passenger_type',
|
|
'birth_date'
|
|
];
|
|
}
|