32 lines
602 B
PHP
Executable File
32 lines
602 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class FeXsdCode extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'fe_xsd_codes';
|
|
|
|
protected $fillable = [
|
|
'domain_id',
|
|
'code',
|
|
'label',
|
|
'documentation',
|
|
'sort_order',
|
|
];
|
|
|
|
protected $casts = [
|
|
'sort_order' => 'integer',
|
|
];
|
|
|
|
public function domain(): BelongsTo
|
|
{
|
|
return $this->belongsTo(FeXsdCodeDomain::class, 'domain_id');
|
|
}
|
|
}
|