chore: establish local platform baseline

This commit is contained in:
Codex Local
2026-08-26 06:41:54 +08:00
commit 29bdf4900f
575 changed files with 95644 additions and 0 deletions
@@ -0,0 +1,13 @@
BEGIN;
ALTER TABLE firmware_release
DROP CONSTRAINT firmware_release_version_key;
CREATE UNIQUE INDEX firmware_release_active_version_key
ON firmware_release (tenant_id, model, COALESCE(hardware_revision, ''), version)
WHERE status <> 'RETIRED';
COMMENT ON INDEX firmware_release_active_version_key IS
'Prevents duplicate active firmware manifests while allowing a corrected artifact to reuse the business version after an incomplete release is retired.';
COMMIT;