<?php
define('ACC_BASE_PATH', __DIR__);
require __DIR__ . '/standalone/bootstrap.php';
require_once ACC_PATH . 'includes/helpers/melk-investor.php';
global $wpdb;
$uid = (int) $wpdb->get_var("SELECT ID FROM {$wpdb->users} WHERE user_login='melk_investor_demo'");
echo json_encode([
    'uid' => $uid,
    'can' => Melk_Investor::can_investor($uid),
    'matches' => count(Melk_Investor::list_matches($uid)),
    'experts' => count(Melk_Investor::list_experts()),
    'criteria' => count(Melk_Investor::list_criteria($uid)),
], JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT);
