-- A member's connection to Equipo: the device Base signed in on their -- behalf. sealed holds the device's private key, its secret and, once -- connected, the bearer, encrypted under a key derived from -- BASE_INSTANCE_KEY for this member alone. expires_at is when the sign-in -- code expires while pending, and when the bearer expires once connected. CREATE TABLE equipo_links ( member_id text NOT NULL PRIMARY KEY REFERENCES members (id) ON DELETE CASCADE, origin text NOT NULL, state text NOT NULL, device_id text NOT NULL, user_code text NOT NULL DEFAULT '', verification_uri text NOT NULL DEFAULT '', sealed blob NOT NULL, expires_at datetime NOT NULL, revision integer NOT NULL DEFAULT 0, polled_at datetime, updated_at datetime NOT NULL );