<?php
/**
 * Model object generated by: Skipper (http://www.skipper18.com)
 * Do not modify this file manually.
 */

namespace App\Models\AbstractModels;

abstract class AbstractPrenotazioneRisposta extends \Illuminate\Foundation\Auth\User
{
    /**  
     * The table associated with the model.
     * 
     * @var string
     */
    protected $table = 'prenotazione_risposta';
    
    /**  
     * Primary key type.
     * 
     * @var string
     */
    protected $keyType = 'bigInteger';
    
    /**  
     * The model's default values for attributes.
     * 
     * @var array
     */
    // protected $attributes = ['is_gruppo' => 0];
    
    /**  
     * The attributes that should be cast to native types.
     * 
     * @var array
     */
    protected $casts = [
        'id' => 'integer',
        'prenotazione_id' => 'integer',
        'evento_form_id' => 'integer',
        'risposta' => 'string',
        'remote_id' => 'integer',
        'costo' => 'decimal:2',
        'created_at' => 'datetime',
        'updated_at' => 'datetime'
   
    ];
    
    /**  
     * The attributes that are mass assignable.
     * 
     * @var array
     */
    protected $fillable = [
        'id',
        'prenotazione_id',
        'evento_form_id',
        'risposta',
        'remote_id',
        'costo',
        'created_at',
        'updated_at'
    ];
    
    public function prenotazione()
    {
        return $this->belongsTo('\App\Models\Prenotazione', 'prenotazione_id', 'id');
    }
    
    public function evento_form()
    {
        return $this->belongsTo('\App\Models\EventoForm', 'evento_form_id', 'id');
    }
    



}
