<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * App\CostPrice
 *
 * @property int $id
 * @property int $user_id
 * @property int $country_id
 * @property string $data
 * @property \Carbon\Carbon $created_at
 * @property \Carbon\Carbon $updated_at
 * @property float $price
 * @property-read \App\User $user
 * @method static \Illuminate\Database\Query\Builder|\App\CostPrice whereCountryId($value)
 * @method static \Illuminate\Database\Query\Builder|\App\CostPrice whereCreatedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\CostPrice whereData($value)
 * @method static \Illuminate\Database\Query\Builder|\App\CostPrice whereId($value)
 * @method static \Illuminate\Database\Query\Builder|\App\CostPrice wherePrice($value)
 * @method static \Illuminate\Database\Query\Builder|\App\CostPrice whereUpdatedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\CostPrice whereUserId($value)
 * @mixin \Eloquent
 */
class CostPrice extends Model
{
    //use SoftDeletes;
    protected $primaryKey = 'id';

    protected $fillable = ['country_id', 'user_id', 'data', 'price'];

    public function user() {
        return $this->belongsTo('App\User');
    }

    protected $table = 'cost_prices';
}
