tethys/app/Models/Coverage.php
2020-06-10 21:09:16 +02:00

26 lines
486 B
PHP

<?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',
'depth_absolut'
];
public function dataset()
{
return $this->belongsTo(Dataset::class, 'dataset_id', 'id');
}
}