97 lines
1.9 KiB
PHP
97 lines
1.9 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Carbon\Carbon;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class TravelBooking extends Model
|
|
{
|
|
protected $connection = 'mysql_stern';
|
|
protected $table = 'travel_booking';
|
|
public $timestamps = false;
|
|
|
|
protected $casts = [
|
|
'salutation_id' => 'int',
|
|
'country_id' => 'int',
|
|
'program_id' => 'int',
|
|
'period_id' => 'int',
|
|
'selected_adults' => 'int',
|
|
'selected_childs' => 'int',
|
|
'participants_total' => 'int',
|
|
'price' => 'float',
|
|
'price_total' => 'float',
|
|
'deposit_total' => 'float',
|
|
'final_payment' => 'float',
|
|
'travel_cancellation' => 'int',
|
|
'accept_legal_rights' => 'bool',
|
|
'selected_travel' => 'array',
|
|
'selected_departure' => 'array',
|
|
'participants' => 'array',
|
|
'drafts' => 'array',
|
|
'service_items' => 'array',
|
|
'arrangements' => 'array',
|
|
'rooms' => 'array',
|
|
'options' => 'array',
|
|
'class_options' => 'array',
|
|
'extra_category' => 'array',
|
|
'insurances' => 'array'
|
|
];
|
|
|
|
protected $dates = [
|
|
'created',
|
|
'selected_start_date',
|
|
'selected_end_date',
|
|
'final_payment_date'
|
|
];
|
|
|
|
protected $fillable = [
|
|
'crm_booking_id',
|
|
'salutation_id',
|
|
'first_name',
|
|
'last_name',
|
|
'street',
|
|
'zipcode',
|
|
'city',
|
|
'country_id',
|
|
'fax',
|
|
'phone',
|
|
'mobile',
|
|
'comments',
|
|
'email',
|
|
'created',
|
|
'selected_start_date',
|
|
'selected_end_date',
|
|
'program_name',
|
|
'selected_travel',
|
|
'selected_departure',
|
|
'program_id',
|
|
'period_id',
|
|
'class',
|
|
'selected_adults',
|
|
'selected_childs',
|
|
'participants_total',
|
|
'participants',
|
|
'drafts',
|
|
'service_items',
|
|
'arrangements',
|
|
'rooms',
|
|
'price',
|
|
'price_total',
|
|
'deposit_total',
|
|
'final_payment',
|
|
'final_payment_date',
|
|
'insurance_name',
|
|
'insurances',
|
|
'travel_cancellation',
|
|
'options',
|
|
'class_options',
|
|
'extra_category',
|
|
'accept_legal_rights',
|
|
'ip'
|
|
];
|
|
}
|