<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Station extends Model
{
    protected $table = 'station';
    protected $primaryKey = 'station_id';

    protected $fillable = [
        'park_id',
        'station_neighbor_station',
        'station_name_ruby',
        'station_route_name',
        'operator_id',
        'station_latitude',   // ← 緯度
        'station_longitude',  // ← 経度
    ];
    public function park()
    {
        return $this->belongsTo(Park::class, 'park_id', 'park_id');
    }

}
