[游戏管理]玩家钱包流水
This commit is contained in:
41
app/common/model/UserWalletRecord.php
Normal file
41
app/common/model/UserWalletRecord.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\model;
|
||||
|
||||
use support\think\Model;
|
||||
|
||||
/**
|
||||
* 用户钱包流水(原 game_user_wallet_record)
|
||||
*/
|
||||
class UserWalletRecord extends Model
|
||||
{
|
||||
protected $name = 'user_wallet_record';
|
||||
|
||||
protected $autoWriteTimestamp = false;
|
||||
|
||||
protected $createTime = 'create_time';
|
||||
|
||||
protected $updateTime = false;
|
||||
|
||||
protected $type = [
|
||||
'create_time' => 'integer',
|
||||
'amount' => 'string',
|
||||
'balance_before' => 'string',
|
||||
'balance_after' => 'string',
|
||||
];
|
||||
|
||||
public function user(): \think\model\relation\BelongsTo
|
||||
{
|
||||
return $this->belongsTo(User::class, 'user_id', 'id');
|
||||
}
|
||||
|
||||
public function channel(): \think\model\relation\BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Channel::class, 'channel_id', 'id');
|
||||
}
|
||||
|
||||
public function operatorAdmin(): \think\model\relation\BelongsTo
|
||||
{
|
||||
return $this->belongsTo(\app\admin\model\Admin::class, 'operator_admin_id', 'id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user