<?php

namespace App\Models;

use CodeIgniter\Model;

class DonationContributionModel extends Model
{
    protected $table            = 'donation_contributions';
    protected $primaryKey       = 'id';
    protected $useAutoIncrement = true;
    protected $returnType       = 'array';
    protected $useSoftDeletes   = false;
    protected $useTimestamps    = true;
    protected $createdField     = 'created_at';
    protected $updatedField     = 'updated_at';

    protected $allowedFields = [
        'donation_request_id', 'user_id', 'member_id', 'family_unit_id',
        'amount', 'note', 'church_id',
    ];
}
