32 lines
655 B
PHP
32 lines
655 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
class Internment extends Model
|
|
{
|
|
use HasFactory, SoftDeletes;
|
|
|
|
protected $table = 'internment';
|
|
protected $primaryKey = 'internment_id';
|
|
|
|
protected $fillable = [
|
|
'person_id',
|
|
'corps_issued',
|
|
'interned_in',
|
|
'sent_to',
|
|
'internee_occupation',
|
|
'internee_address',
|
|
'cav',
|
|
];
|
|
|
|
// Relationship
|
|
public function person()
|
|
{
|
|
return $this->belongsTo(Person::class, 'person_id');
|
|
}
|
|
}
|