<?php

namespace App\Models;

use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\TravelProgramCountry
 *
 * @property int|null $program_id
 * @property int|null $country_id
 * @property-read \App\Models\TravelCountry|null $travel_country
 * @property-read \App\Models\TravelProgram|null $travel_program
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelProgramCountry whereCountryId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\TravelProgramCountry whereProgramId($value)
 * @mixin \Eloquent
 */
class TravelProgramCountry extends Model
{
    //use the connection to sec. Datebase sterntours
    protected $connection = 'mysql_stern';

    protected $table = 'travel_program_country';


    protected $fillable = [
        'program_id',
        'country_id',
    ];

    public $timestamps = false;

    public function travel_program()
    {
        return $this->belongsTo('App\Models\TravelProgram', 'program_id');
    }

    public function travel_country()
    {
        return $this->belongsTo('App\Models\TravelCountry', 'country_id');
    }

}
