<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class TeamWeekBonus extends Model
{
    protected $fillable = [
        'team_id', 'week_id', 'mcm_bonus', 'tyfcb_bonus', 'attendance_bonus',
    ];

    protected $casts = [
        'mcm_bonus' => 'integer',
        'tyfcb_bonus' => 'integer',
        'attendance_bonus' => 'integer',
    ];

    public function team(): BelongsTo
    {
        return $this->belongsTo(Team::class);
    }
}
