<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

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

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

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