Enth\u00e4lt gemischt: Laravel-10-Upgrade + Phase 1 (Contacts-Modul, Duplicats-Commands, Soft-Delete+Merge-Fields) + Phase 2 Code-Umstellungen (inquiry_id, $table='contacts'/'inquiries') + Offers-Modul (Migrationen, Models, offer_id in Booking, offer-Disk in filesystems.php). Phase 2 + Offers werden im folgenden Commit nach dev/backups/phase2-offers-2026-04-17/ verschoben, damit der Workspace auf Phase-1-only (= Test-System-Stand) reduziert ist und direkt auf Live deploybar wird. Tarball-Backup zus\u00e4tzlich unter: ../backups-safety/workspace-pre-phase1-rollback-2026-04-17.tar.gz Made-with: Cursor
193 lines
8 KiB
PHP
193 lines
8 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Carbon\Carbon;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* App\Models\TravelBooking
|
|
*
|
|
* @property int $id
|
|
* @property int|null $crm_booking_id
|
|
* @property int|null $salutation_id
|
|
* @property string|null $first_name
|
|
* @property string|null $last_name
|
|
* @property string|null $street
|
|
* @property string|null $zipcode
|
|
* @property string|null $city
|
|
* @property int|null $country_id
|
|
* @property string|null $fax
|
|
* @property string|null $phone
|
|
* @property string|null $mobile
|
|
* @property string|null $email
|
|
* @property string|null $comments
|
|
* @property \Illuminate\Support\Carbon|null $created
|
|
* @property \Illuminate\Support\Carbon|null $selected_start_date
|
|
* @property \Illuminate\Support\Carbon|null $selected_end_date
|
|
* @property string|null $program_name
|
|
* @property array|null $selected_travel
|
|
* @property array|null $selected_departure
|
|
* @property int|null $program_id
|
|
* @property int|null $period_id
|
|
* @property string|null $class
|
|
* @property int|null $selected_adults
|
|
* @property int|null $selected_childs
|
|
* @property int|null $participants_total
|
|
* @property array|null $participants
|
|
* @property array|null $drafts
|
|
* @property array|null $service_items
|
|
* @property array|null $arrangements
|
|
* @property array|null $rooms
|
|
* @property float|null $price
|
|
* @property float|null $price_total
|
|
* @property float|null $deposit_total
|
|
* @property float|null $final_payment
|
|
* @property \Illuminate\Support\Carbon|null $final_payment_date
|
|
* @property string|null $insurance_name
|
|
* @property array|null $insurances
|
|
* @property int|null $insurance_offer
|
|
* @property int|null $travel_cancellation
|
|
* @property array|null $options
|
|
* @property array $class_options
|
|
* @property array $extra_category
|
|
* @property bool|null $accept_legal_rights
|
|
* @property string|null $ip
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking newQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking query()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereAcceptLegalRights($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereArrangements($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereCity($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereClass($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereClassOptions($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereComments($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereCountryId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereCreated($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereCrmBookingId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereDepositTotal($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereDrafts($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereEmail($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereExtraCategory($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereFax($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereFinalPayment($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereFinalPaymentDate($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereFirstName($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereInsuranceName($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereInsuranceOffer($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereInsurances($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereIp($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereLastName($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereMobile($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereOptions($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereParticipants($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereParticipantsTotal($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking wherePeriodId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking wherePhone($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking wherePrice($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking wherePriceTotal($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereProgramId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereProgramName($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereRooms($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereSalutationId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereSelectedAdults($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereSelectedChilds($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereSelectedDeparture($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereSelectedEndDate($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereSelectedStartDate($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereSelectedTravel($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereServiceItems($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereStreet($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereTravelCancellation($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|TravelBooking whereZipcode($value)
|
|
* @mixin \Eloquent
|
|
*/
|
|
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',
|
|
'created' => 'datetime',
|
|
'selected_start_date' => 'datetime',
|
|
'selected_end_date' => 'datetime',
|
|
'final_payment_date' => 'datetime',
|
|
];
|
|
|
|
|
|
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'
|
|
];
|
|
}
|