first commit

This commit is contained in:
Kevin Adametz 2021-01-08 17:48:20 +01:00
commit 0baac018a2
1011 changed files with 145854 additions and 0 deletions

View file

@ -0,0 +1,73 @@
<?php
/**
* Created by Reliese Model.
*/
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
/**
* Class CountryPrice
*
* @property int $id
* @property int $country_id
* @property int $product_id
* @property float $c_price
* @property float $c_tax
* @property float $c_price_old
* @property float $c_currency
* @property Carbon $created_at
* @property Carbon $updated_at
* @property Country $country
* @property Product $product
* @package App\Models
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CountryPrice newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CountryPrice newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CountryPrice query()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CountryPrice whereCOwnEur($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CountryPrice whereCPrice($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CountryPrice whereCPriceOld($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CountryPrice whereCTax($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CountryPrice whereCountryId($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CountryPrice whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CountryPrice whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CountryPrice whereProductId($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CountryPrice whereUpdatedAt($value)
* @mixin \Eloquent
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\CountryPrice whereCCurrency($value)
*/
class CountryPrice extends Model
{
protected $table = 'country_prices';
protected $casts = [
'country_id' => 'int',
'product_id' => 'int',
'c_price' => 'float',
'c_tax' => 'float',
'c_price_old' => 'float',
'c_currency' => 'float'
];
protected $fillable = [
'country_id',
'product_id',
'c_price',
'c_tax',
'c_price_old',
'c_currency'
];
public function country()
{
return $this->belongsTo(Country::class);
}
public function product()
{
return $this->belongsTo(Product::class);
}
}