67 lines
2 KiB
PHP
67 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'
|
|
];
|
|
|
|
protected $dates = [
|
|
'from_date',
|
|
'to_date'
|
|
];
|
|
|
|
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');
|
|
}
|
|
}
|