<?php

namespace App\Models;

use CodeIgniter\Model;

class CompetitionClassWinnerModel extends Model
{
    protected $table      = 'competition_class_winners';
    protected $primaryKey = 'id';

    protected $allowedFields = [
        'competition_id',
        'class_section_id',
        'winners_override',
        'question_count',
        'prize_1',
        'prize_2',
        'prize_3',
        'prize_4',
        'prize_5',
        'prize_6',
    ];

    protected $useTimestamps = true;
    protected $createdField  = 'created_at';
    protected $updatedField  = 'updated_at';
}
