add coverage attributes
This commit is contained in:
parent
9d195c450e
commit
6bfbbea060
8 changed files with 163 additions and 11 deletions
|
@ -15,6 +15,7 @@ use App\Models\File;
|
|||
use Illuminate\Database\Eloquent\Model;
|
||||
use Carbon\Carbon;
|
||||
use App\Models\GeolocationBox;
|
||||
use App\Models\Coverage;
|
||||
|
||||
class Dataset extends Model
|
||||
{
|
||||
|
@ -69,7 +70,13 @@ class Dataset extends Model
|
|||
return $this->hasOne(GeolocationBox::class, 'dataset_id', 'id');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the coverage that owns the dataset.
|
||||
*/
|
||||
public function coverage()
|
||||
{
|
||||
return $this->hasOne(Coverage::class, 'dataset_id', 'id');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the project that the dataset belongs to.
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue