<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class MatchModel extends Model
{
    protected $table = 'matches';
    protected $primaryKey = 'match_id';
    public $incrementing = true;
    public $timestamps = true;

    protected $fillable = [
        'home_team',
        'home_team_flag',
        'away_team',
        'away_team_flag',
        'match_date',
        'stadium',
        'ordinary_amount',
        'vip_amount',
        'total_ticket_number',
    ];

    protected $casts = [
        'match_date' => 'datetime',
    ];
}