add coverage attributes
This commit is contained in:
parent
9d195c450e
commit
6bfbbea060
8 changed files with 163 additions and 11 deletions
25
app/Models/Coverage.php
Normal file
25
app/Models/Coverage.php
Normal file
|
@ -0,0 +1,25 @@
|
|||
<?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');
|
||||
}
|
||||
}
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue