<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Advertisement extends Model
{
    public $incrementing = false; // Disable auto-incrementing
    
    protected $primaryKey = ['id']; //define primeryKey
    
    //set primary key as string
    protected $casts = [
        'id' => 'string',
    ];
    
    //fills that we can insert
    protected $fillable = 
    [
        'titulo',
        'url',
        'multimedia',
        'fecha_activacion',
        'fecha_fin',
        'fecha_publicacion',
        'id_administrador'
    ];
        

}
