33 lines
772 B
PHP
33 lines
772 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\HasOne;
|
|
|
|
class MsKioskVisitType extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
/**
|
|
* Get the user associated with the MsKioskVisitType
|
|
*
|
|
* @return \Illuminate\Database\Eloquent\Relations\HasOne
|
|
*/
|
|
public function msKiosk(): HasOne
|
|
{
|
|
return $this->hasOne(MsKiosk::class, 'foreign_key', 'local_key');
|
|
}
|
|
|
|
/**
|
|
* Get the user associated with the MsKioskVisitType
|
|
*
|
|
* @return \Illuminate\Database\Eloquent\Relations\HasOne
|
|
*/
|
|
public function refVisitType(): HasOne
|
|
{
|
|
return $this->hasOne(RefVisitType::class, 'foreign_key', 'local_key');
|
|
}
|
|
}
|