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

43 lines
613 B
PHP

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