36 lines
600 B
PHP
36 lines
600 B
PHP
<?php
|
|
|
|
namespace app\common\model\user;
|
|
|
|
|
|
use app\common\model\BaseModel;
|
|
|
|
|
|
class ExchangePickupRecord extends BaseModel
|
|
{
|
|
|
|
public static function tablePk(): string{
|
|
return 'id';
|
|
}
|
|
|
|
|
|
public static function tableName(): string{
|
|
return 'exchange_pickup_record';
|
|
}
|
|
|
|
|
|
public function point(){
|
|
return $this->hasOne(ExchangePickupPoint::class,'id','point_id');
|
|
}
|
|
|
|
public function user(){
|
|
return $this->hasOne(User::class, 'uid', 'uid');
|
|
}
|
|
|
|
public function staff(){
|
|
return $this->hasOne(User::class, 'uid', 'staff_uid');
|
|
}
|
|
|
|
|
|
}
|