65 lines
1.8 KiB
PHP
65 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'
|
|
];
|
|
|
|
protected $dates = [
|
|
'from_date',
|
|
'to_date'
|
|
];
|
|
|
|
protected $fillable = [
|
|
'lodging_id',
|
|
'from_date',
|
|
'to_date',
|
|
'status',
|
|
'type'
|
|
];
|
|
|
|
public function fewo_lodging()
|
|
{
|
|
return $this->belongsTo(\App\Models\FewoLodging::class, 'lodging_id');
|
|
}
|
|
|
|
}
|