40 lines
827 B
PHP
40 lines
827 B
PHP
<?php
|
|
namespace app\common\model\store\platformCommission;
|
|
|
|
|
|
use app\common\model\BaseModel;
|
|
use app\common\model\user\User;
|
|
|
|
class PartnerSettlement extends BaseModel{
|
|
public static function tablePk():string{
|
|
return 'id';
|
|
}
|
|
public static function tableName():string{
|
|
return 'platform_commission_partner_settlement';
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Common: 关联用户表
|
|
* Author: wu-hui
|
|
* Time: 2023/12/28 16:41
|
|
* @return mixed
|
|
*/
|
|
public function user(){
|
|
return $this->hasOne(User::class, 'uid', 'uid');
|
|
}
|
|
/**
|
|
* Common: 关联周期表
|
|
* Author: wu-hui
|
|
* Time: 2023/12/28 17:25
|
|
* @return \think\model\relation\HasOne
|
|
*/
|
|
public function cycle(){
|
|
return $this->hasOne(PartnerSettlementCycle::class, 'id', 'cycle_id');
|
|
}
|
|
|
|
}
|