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
65 lines
2 KiB
PHP
65 lines
2 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
* Date: Thu, 21 Mar 2019 13:40:10 +0100.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Class FewoSeason
|
|
*
|
|
* @property int $id
|
|
* @property string $name
|
|
* @property \Carbon\Carbon $from_date
|
|
* @property \Carbon\Carbon $to_date
|
|
* @property int $minimum_stay
|
|
* @property string $description
|
|
* @property int $only_weekday
|
|
* @property \Illuminate\Database\Eloquent\Collection $fewo_prices
|
|
* @package App\Models
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoSeason newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoSeason newQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoSeason query()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoSeason whereDescription($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoSeason whereFromDate($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoSeason whereId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoSeason whereMinimumStay($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoSeason whereName($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoSeason whereOnlyWeekday($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoSeason whereToDate($value)
|
|
* @property-read int|null $fewo_prices_count
|
|
* @mixin \Eloquent
|
|
*/
|
|
class FewoSeason extends Model
|
|
{
|
|
protected $connection = 'mysql_stern';
|
|
|
|
protected $table = 'fewo_season';
|
|
public $timestamps = false;
|
|
|
|
protected $casts = [
|
|
'minimum_stay' => 'int',
|
|
'only_weekday' => 'int',
|
|
'from_date' => 'datetime',
|
|
'to_date' => 'datetime',
|
|
];
|
|
|
|
|
|
protected $fillable = [
|
|
'name',
|
|
'from_date',
|
|
'to_date',
|
|
'minimum_stay',
|
|
'description',
|
|
'only_weekday'
|
|
];
|
|
|
|
public function fewo_prices()
|
|
{
|
|
return $this->hasMany(\App\Models\FewoPrice::class, 'season_id');
|
|
}
|
|
}
|