<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class MaxMutuEmas extends Model
{
    protected $table = 'max_mutuemas';
    protected $primaryKey = 'recno';
    public $timestamps = false;
    
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'recno', 'karat', 'keterangan', 'teller', 'pc', 'operasi', 'tarikhupdate'
    ];

    /**
     * The attributes that should be cast to native types.
     *
     * @var array
     */
    protected $casts = [
        'teller' => 'decimal:2',
        'pc' => 'decimal:2',
        'operasi' => 'decimal:2',
        'tarikhupdate' => 'datetime',
    ];

    /**
     * The attributes excluded from the model's JSON form.
     *
     * @var array
     */
    // protected $hidden = [];
}