2019-01-22 17:24:18 +00:00
|
|
|
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
use App\Models\Dataset;
|
2022-08-10 09:18:10 +00:00
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
2019-01-22 17:24:18 +00:00
|
|
|
|
|
|
|
class Description extends Model
|
|
|
|
{
|
2022-08-10 09:18:10 +00:00
|
|
|
use HasFactory;
|
2019-01-22 17:24:18 +00:00
|
|
|
protected $table = 'dataset_abstracts';
|
|
|
|
public $timestamps = false;
|
|
|
|
|
|
|
|
|
|
|
|
protected $fillable = [
|
2019-01-24 16:33:04 +00:00
|
|
|
'value',
|
|
|
|
'type',
|
|
|
|
'language'
|
2019-01-22 17:24:18 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
public function dataset()
|
|
|
|
{
|
|
|
|
return $this->belongsTo(Dataset::class, 'document_id', 'id');
|
|
|
|
}
|
|
|
|
}
|