<?php

namespace App\Models;

use CodeIgniter\Model;

class PredictionModel extends Model
{
    protected $table      = 'tip_predictions';
    protected $primaryKey = 'id';

    protected $allowedFields = [
        'tip_id', 
        'author', 
        'match_data', 
        'prediction_outcome', 
        'match_date',
        'actual_score',
        'ht_score',
        'ft_score'
    ];

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