<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Noticia extends Model
{
    protected $table = 'noticias';
    protected $primaryKey = 'id';
    public $timestamps = false;

    protected $fillable = [
        'titulo',
        'contenido',
        'imagen',
        'fecha',
        'id_torneo',
        'categoria',
    ];

    protected $casts = [
        'id' => 'integer',
        'fecha' => 'datetime',
    ];
}
