$ErrorActionPreference = "Stop"
$ProjectRoot = Split-Path -Parent $PSScriptRoot
Push-Location (Join-Path $ProjectRoot "backend")
try {
    uv run python -m zbt.commands.seed
    if ($LASTEXITCODE -ne 0) { throw "种子数据写入失败。" }
}
finally {
    Pop-Location
}
