优化数据归属问题

This commit is contained in:
2026-04-23 15:08:37 +08:00
parent 378be9909d
commit 0373234750
29 changed files with 1993 additions and 75 deletions

View File

@@ -0,0 +1,27 @@
<?php
namespace app\common\model;
use support\think\Model;
class AdminWallet extends Model
{
protected $name = 'admin_wallet';
protected $autoWriteTimestamp = true;
protected $type = [
'create_time' => 'integer',
'update_time' => 'integer',
'balance' => 'string',
'frozen_balance' => 'string',
'total_income' => 'string',
'total_withdraw' => 'string',
];
public function admin(): \think\model\relation\BelongsTo
{
return $this->belongsTo(\app\admin\model\Admin::class, 'admin_id', 'id');
}
}