// +---------------------------------------------------------------------- namespace app\common\model\user; use app\common\model\BaseModel; class UserAssetsLog extends BaseModel { public static function tablePk(): ?string { return 'id'; } public static function tableName(): string { return 'user_assets_log'; } public function user() { return $this->hasOne(User::class, 'uid', 'uid'); } }