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
63 lines
1.8 KiB
PHP
63 lines
1.8 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
* Date: Thu, 21 Mar 2019 13:40:09 +0100.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Class FewoReservation
|
|
*
|
|
* @property int $id
|
|
* @property int $lodging_id
|
|
* @property \Carbon\Carbon $from_date
|
|
* @property \Carbon\Carbon $to_date
|
|
* @property int $status
|
|
* @property int $type
|
|
* @property \App\Models\FewoLodging $fewo_lodging
|
|
* @package App\Models
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoReservation newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoReservation newQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoReservation query()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoReservation whereFromDate($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoReservation whereId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoReservation whereLodgingId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoReservation whereStatus($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoReservation whereToDate($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoReservation whereType($value)
|
|
* @mixin \Eloquent
|
|
*/
|
|
class FewoReservation extends Model
|
|
{
|
|
protected $connection = 'mysql_stern';
|
|
|
|
protected $table = 'fewo_reservation';
|
|
public $timestamps = false;
|
|
|
|
protected $casts = [
|
|
'lodging_id' => 'int',
|
|
'status' => 'int',
|
|
'type' => 'int',
|
|
'from_date' => 'datetime',
|
|
'to_date' => 'datetime',
|
|
];
|
|
|
|
|
|
protected $fillable = [
|
|
'lodging_id',
|
|
'from_date',
|
|
'to_date',
|
|
'status',
|
|
'type'
|
|
];
|
|
|
|
public function fewo_lodging()
|
|
{
|
|
return $this->belongsTo(\App\Models\FewoLodging::class, 'lodging_id');
|
|
}
|
|
|
|
}
|