<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

/**
 * App\UserNetwork
 *
 * @property int $id
 * @property int $user_id
 * @property int $network_id
 * @property int $country_id
 * @property float $sms_price
 * @property \Carbon\Carbon $created_at
 * @property \Carbon\Carbon $updated_at
 * @property-read \App\Country $country
 * @property-read \App\Network $network
 * @property-read \App\User $user
 * @method static \Illuminate\Database\Query\Builder|\App\UserNetwork whereCountryId($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserNetwork whereCreatedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserNetwork whereId($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserNetwork whereNetworkId($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserNetwork whereSmsPrice($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserNetwork whereUpdatedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\UserNetwork whereUserId($value)
 * @mixin \Eloquent
 */
class UserNetwork extends Model
{
    protected $fillable = ['user_id', 'network_id', 'country_id', 'sms_price'];

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

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

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