<?php

namespace App\Models;

use CodeIgniter\Model;

class SchoolYearClosingBatchModel extends Model
{
    protected $table = 'school_year_closing_batches';
    protected $primaryKey = 'id';
    protected $returnType = 'array';
    protected $useTimestamps = true;

    protected $allowedFields = [
        'source_school_year_id',
        'target_school_year_id',
        'status',
        'preview_hash',
        'total_families',
        'total_positive_balance',
        'total_credit_balance',
        'started_by',
        'completed_by',
        'started_at',
        'completed_at',
        'failed_at',
        'failure_message',
    ];
}
