-- Ported from the SQLite migration of the same number. -- Other llmgw clusters this one federates with (`llmgw ctl federation add`): -- each peer's address, the file on the control plane holding the key this -- cluster uses there, whether requests sent to it carry tags naming who sent -- them, the peer's own cluster id, and the models it last offered. -- -- The models are kept, not only fetched, so a catalog that names one of them -- as a fallback is whole at startup, before the peer has been asked again: -- a local model falling back to a peer's would otherwise be skipped as -- naming a model that is not there. Stored as JSON for the same reason a -- runtime model's definition is: a list of what the peer says about each, -- which grows. CREATE TABLE federation_peers ( name TEXT PRIMARY KEY, url TEXT NOT NULL, key_file TEXT NOT NULL DEFAULT '', send_tags BIGINT NOT NULL DEFAULT 0, cluster TEXT NOT NULL DEFAULT '', models TEXT NOT NULL DEFAULT '[]', synced_at BIGINT NOT NULL DEFAULT 0, created_at BIGINT NOT NULL, created_by TEXT NOT NULL DEFAULT '' );