6
0
Fork 0
jiqu-library-server/app/Models/DealerWallet.php

37 lines
580 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class DealerWallet extends Model
{
/**
* @var array
*/
protected $attributes = [
'balance' => 0,
'total_revenue' => 0,
'total_expenses' => 0,
'withdrawable' => true,
];
/**
* @var array
*/
protected $casts = [
'withdrawable' => 'bool',
];
/**
* @var array
*/
protected $fillable = [
'user_id',
'balance',
'total_expenses',
'total_revenue',
'withdrawable',
];
}