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

38 lines
624 B
PHP

<?php
namespace App\Models;
use App\Enums\DealerWalletAction;
use Illuminate\Database\Eloquent\Model;
class DealerWalletLog extends Model
{
/**
* @var array
*/
protected $casts = [
'action' => DealerWalletAction::class,
];
/**
* @var array
*/
protected $fillable = [
'user_id',
'loggable_id',
'loggable_type',
'action',
'before_balance',
'change_balance',
'remarks',
];
/**
* 此余额日志关联的用户
*/
public function user()
{
return $this->belongsTo(User::class);
}
}