2018-12-17 16:10:17 +00:00
|
|
|
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
use App\Models\Dataset;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
2022-08-10 09:18:10 +00:00
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
2018-12-17 16:10:17 +00:00
|
|
|
|
|
|
|
class GeolocationBox extends Model
|
|
|
|
{
|
2022-08-10 09:18:10 +00:00
|
|
|
use HasFactory;
|
2018-12-17 16:10:17 +00:00
|
|
|
protected $table = 'geolocation_box';
|
|
|
|
public $timestamps = false;
|
|
|
|
|
|
|
|
protected $fillable = ['xmin', 'xmax', 'ymin', 'ymax'];
|
|
|
|
|
|
|
|
protected $casts = [
|
|
|
|
'xmin' => 'float',
|
|
|
|
'xmax' => 'float',
|
|
|
|
'ymin' => 'float',
|
2019-01-07 10:16:18 +00:00
|
|
|
'ymax' => 'float',
|
2018-12-17 16:10:17 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
public function dataset()
|
|
|
|
{
|
|
|
|
return $this->belongsTo(Dataset::class, 'dataset_id', 'id');
|
|
|
|
}
|
|
|
|
}
|