28 lines
583 B
PHP
28 lines
583 B
PHP
<?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');
|
|
}
|
|
}
|
|
|