<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class WeatherData extends Model
{
    use HasFactory;
    protected $fillable = ['localtime_epoch', 'city_id', 'current_temperature', 'weather_icon', 'weather_description', 'wind_speed', 'wind_dir'];

    public function city() {
        return $this->belongsTo(City::class);
    }
}
