22 lines
359 B
PHP
Raw Permalink Normal View History

2023-07-24 16:37:03 +08:00
<?php
namespace app\common\model\user;
use think\model;
class Withdraw extends Model
{
public function buildOrderSn()
{
return 'TX' . date('YmdHis') . rand(10000, 99999);
}
2023-07-24 17:13:49 +08:00
public function user()
{
2023-09-11 13:57:21 +08:00
return $this->belongsTo(User::class, 'user_id', 'id')->bind(['account', 'nickname', 'avatar', 'company_id']);
2023-07-24 17:13:49 +08:00
}
2023-07-24 16:37:03 +08:00
}