tethys/app/Models/Coverage.php

30 lines
590 B
PHP
Raw Normal View History

2019-03-20 17:40:14 +00:00
<?php
namespace App\Models;
use App\Models\Dataset;
use Illuminate\Database\Eloquent\Model;
class Coverage extends Model
{
protected $table = 'coverage';
public $timestamps = true;
protected $fillable = [
'elevation_min',
'elevation_max',
'elevation_absolut',
'depth_min',
'depth_max',
2019-03-29 17:29:20 +00:00
'depth_absolut',
'time_min',
'time_max',
'time_absolut',
'xmin', 'xmax', 'ymin', 'ymax'
2019-03-20 17:40:14 +00:00
];
public function dataset()
{
return $this->belongsTo(Dataset::class, 'dataset_id', 'id');
}
}