mein-sterntours/app/Models/FewoPrice.php
2025-04-01 10:40:14 +02:00

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 FewoPrice
*
* @property int $id
* @property int $lodging_id
* @property int $season_id
* @property float $per_night
* @property float $flat_price
* @property \App\Models\FewoSeason $fewo_season
* @property \App\Models\FewoLodging $fewo_lodging
* @package App\Models
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoPrice newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoPrice newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoPrice query()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoPrice whereFlatPrice($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoPrice whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoPrice whereLodgingId($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoPrice wherePerNight($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\FewoPrice whereSeasonId($value)
* @mixin \Eloquent
*/
class FewoPrice extends Model
{
protected $connection = 'mysql_stern';
protected $table = 'fewo_price';
public $timestamps = false;
protected $casts = [
'lodging_id' => 'int',
'season_id' => 'int',
'per_night' => 'float',
'flat_price' => 'float'
];
protected $fillable = [
'lodging_id',
'season_id',
'per_night',
'flat_price'
];
public function fewo_season()
{
return $this->belongsTo(\App\Models\FewoSeason::class, 'season_id');
}
public function fewo_lodging()
{
return $this->belongsTo(\App\Models\FewoLodging::class, 'lodging_id');
}
}