<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class UserWallet extends Model
{
    use SoftDeletes;
    
    //
    // To enable store array values in json type fields
    protected $casts = [
        'meta' => 'array'
    ];

    /**
     * Field should be saved
     */
    protected $fillable = [
        'user_id',
        'amount',
        'description',
        'meta'
    ];
}
