Viewing File: /home/assersoft/public_html/doctor-assistant/app/Models/AppointmentsModel.php
<?php
namespace App\Models;
use CodeIgniter\Model;
class AppointmentsModel extends Model
{
protected $table = 'Appointments';
protected $primaryKey = 'appointment_id';
protected $useAutoIncrement = true;
protected $returnType = 'array';
protected $useSoftDeletes = false;
protected $allowedFields = ['appointment_date', 'appointment_time', 'session_time', 'appointment_status', 'appointment_type', 'doctor_remarks', 'treatment_id', 'appointment_fees', 'patient_id', 'doctor_id', 'receptionist_id', 'clinic_id'];
protected bool $allowEmptyInserts = false;
protected bool $updateOnlyChanged = true;
protected $useTimestamps = true;
protected $dateFormat = 'datetime';
protected $createdField = 'created_at';
protected $updatedField = 'updated_at';
protected $validationRules = [];
protected $validationMessages = [];
}
Back to Directory
File Manager