27 lines
586 B
PHP
Executable File
27 lines
586 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Models\OLDLMS;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class AppointmentDetail extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
const CREATED_AT = 'dCreateOn';
|
|
const UPDATED_AT = 'dUpdateOn';
|
|
const DELETED_AT = 'dDeleteOn';
|
|
|
|
protected $connection = 'oldlms';
|
|
|
|
protected $table = 'tx_appointment_detail';
|
|
protected $casts = [
|
|
'sPaymentDetails' => 'array',
|
|
];
|
|
public function appointment()
|
|
{
|
|
return $this->belongsTo(Appointment::class, 'nIDAppointment', 'nID');
|
|
}
|
|
}
|