Fewos in CRM,
Fewo Clients Bookings create / edit / delelte via API in DB
This commit is contained in:
parent
aebfb0586a
commit
c0c2a1822c
55 changed files with 9787 additions and 1486 deletions
55
app/Models/FewoPrice.php
Normal file
55
app/Models/FewoPrice.php
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
<?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
|
||||
* @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');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue