| 12345678910111213141516171819202122232425262728293031 |
- <?php
- declare(strict_types=1);
- namespace App\Model;
- use Hyperf\DbConnection\Model\Model;
- /**
- */
- class SectorComponent extends Model
- {
- /**
- * The table associated with the model.
- */
- protected ?string $table = 'sector_component';
- /**
- * The attributes that are mass assignable.
- */
- protected array $fillable = [];
- /**
- * The attributes that should be cast to native types.
- */
- protected array $casts = [];
- public function component()
- {
- return $this->hasOne(Component::class, 'component_type', 'component_id');
- }
- }
|