mein-sterntours/app/Models/FewoReservation.php
Kevin Adametz c0c2a1822c Fewos in CRM,
Fewo Clients Bookings
create / edit / delelte
via API in DB
2019-03-28 14:53:16 +01:00

55 lines
963 B
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
* @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');
}
}