51 lines
865 B
PHP
51 lines
865 B
PHP
<?php
|
|
|
|
|
|
|
|
|
|
namespace app\common\model\user;
|
|
|
|
|
|
use app\common\model\BaseModel;
|
|
use app\common\model\system\merchant\Merchant;
|
|
|
|
/**
|
|
* Common: 酒卡额度变更记录
|
|
* Author: wu-hui
|
|
* Time: 2024/01/10 16:45
|
|
* Class ExchangeQuotaRecord
|
|
* @package app\common\model\user
|
|
*/
|
|
class ExchangeQuotaRecord extends BaseModel
|
|
{
|
|
|
|
/**
|
|
* @return string
|
|
* @author xaboy
|
|
* @day 2020-03-30
|
|
*/
|
|
public static function tablePk(): string
|
|
{
|
|
return 'id';
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
* @author xaboy
|
|
* @day 2020-03-30
|
|
*/
|
|
public static function tableName(): string
|
|
{
|
|
return 'exchange_quota_record';
|
|
}
|
|
|
|
public function user()
|
|
{
|
|
return $this->hasOne(User::class, 'uid', 'uid');
|
|
}
|
|
public function mer(){
|
|
return $this->hasOne(Merchant::class, 'mer_id', 'mer_id');
|
|
}
|
|
|
|
}
|