feat: complete device onboarding and mobile binding workflows
ci / verify (push) Canceled after 0s

This commit is contained in:
Codex Local
2026-09-12 08:57:29 +08:00
parent 7846f30d0b
commit 98fb2965d0
116 changed files with 15669 additions and 64 deletions
+6
View File
@@ -143,6 +143,12 @@ VALUES (
ON CONFLICT (device_id) DO UPDATE SET desired_config = EXCLUDED.desired_config,
capabilities = EXCLUDED.capabilities, updated_at = now();
-- This unbound terminal predates lifecycle migration 50. Seeding happens after
-- migrations, so establish its actual lifecycle explicitly for repeatable tests.
UPDATE device SET activation_state='CLAIMABLE'
WHERE id='10000000-0000-0000-0000-000000000502'::uuid
AND enrollment_mode='legacy' AND NOT EXISTS(SELECT 1 FROM device_binding WHERE device_id=device.id AND unbound_at IS NULL);
INSERT INTO device_claim (
id, public_id, tenant_id, device_id, token_digest, expires_at
)