<?php
declare(strict_types=1);$_SERVER['HTTP_HOST']='owned-disease.invalid';require __DIR__.'/app.php';$app=coreApp('CONSTRUCTOR_WARM');require_once $root.'/app/api/common.php';$objects=[new \app\api\model\staff\Staff(),new \app\store\model\staff\Staff(),new \app\api\model\user\Disease(),new \app\api\model\user\Bind(),new \app\store\model\habit\Habit(),new \app\api\model\user\OtherInfo(),new \app\api\model\ConfigEnum(),new \app\store\model\ConfigEnum(),new \app\store\service\staff\Habit(),new \app\api\service\user\OtherInfo()];$fields=[];foreach(['user','staff','user_bind','user_disease','habit','user_other_info','config_enum','user_oauth','store','store_setting','upload_file'] as $t){$fields[$t]=\think\facade\Db::connect('mysql')->getFields('yoshop_'.$t);ck(count($fields[$t])>0,'All exact source constructor/meta '.$t);}ck($fields['user_disease']['id']['autoinc']&&$fields['habit']['id']['autoinc'],'True native identities');saveOnce('constructor-warm.json',['fields'=>$fields,'SQL'=>CoreGate::$total,'HTTP'=>0,'DML'=>0]);saveOnce('preflight-ready.json',['SQL'=>count(file($runtime.'/sql-budget.jsonl')),'cap'=>180,'HTTP'=>0,'DML'=>0]);echo json_encode(['lane'=>$lane,'SQL'=>count(file($runtime.'/sql-budget.jsonl')),'all_dependencies_warmed'=>true,'HTTP'=>0,'DML'=>0]),"\n";
