<?php

namespace App\Models;

use CodeIgniter\Model;

class RegistrationModel extends Model
{
    protected $table            = 'registrations';
    protected $primaryKey       = 'id';
    protected $useAutoIncrement = true;
    protected $returnType       = 'array';
    protected $useSoftDeletes   = false;
    protected $protectFields    = true;
    protected $allowedFields    = [
        'name', 'email', 'phone', 'password', 'batch', 'course', 'amount', 'status',
        'razorpay_order_id', 'razorpay_payment_id', 'razorpay_signature'
    ];

    // Dates
    protected $useTimestamps = false;
}
