48 lines
734 B
PHP
48 lines
734 B
PHP
<?php
|
|
|
|
|
|
|
|
|
|
namespace app\common\model\user;
|
|
|
|
|
|
use app\common\model\BaseModel;
|
|
|
|
/**
|
|
* Common: 用户兑换积分变更记录
|
|
* Author: wu-hui
|
|
* Time: 2024/01/12 17:23
|
|
* Class ExchangeIntegralRecord
|
|
* @package app\common\model\user
|
|
*/
|
|
class ExchangeIntegralRecord 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_integral_record';
|
|
}
|
|
|
|
public function user()
|
|
{
|
|
return $this->hasOne(User::class, 'uid', 'uid');
|
|
}
|
|
|
|
|
|
}
|