<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class JaheshOperationHistory extends Model
{
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'user_id',
        'previous_operation_1',
        'previous_operation_2',
        'previous_operation_3',
        'previous_operation_4',
        'previous_operation_5',
        'previous_operation_6',
        'previous_operation_7',
        'previous_operation_8',
        'previous_operation_9',
        'previous_operation_10',
        'previous_operation_11',
        'previous_operation_12'
    ];

    /**
     * The attributes that should be cast to native types.
     *
     * @var array
     */
    protected $casts = [
        'previous_operation_1' => 'array',
        'previous_operation_2' => 'array',
        'previous_operation_3' => 'array',
        'previous_operation_4' => 'array',
        'previous_operation_5' => 'array',
        'previous_operation_6' => 'array',
        'previous_operation_7' => 'array',
        'previous_operation_8' => 'array',
        'previous_operation_9' => 'array',
        'previous_operation_10' => 'array',
        'previous_operation_11' => 'array',
        'previous_operation_12' => 'array'
    ];

    public function jaheshOperation()
    {
        return $this->belongsTo('App\Models\JaheshOperation');
    }
}
