c082b4bc60
- add seeder for collections - coverage x_min, x_max, y_min, y_max - SitelinkController db-independent
30 lines
594 B
PHP
30 lines
594 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',
|
|
'time_min',
|
|
'time_max',
|
|
'time_absolut',
|
|
'x_min', 'x_max', 'y_min', 'y_max'
|
|
];
|
|
|
|
public function dataset()
|
|
{
|
|
return $this->belongsTo(Dataset::class, 'dataset_id', 'id');
|
|
}
|
|
}
|