Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- For each agent ID and signing key: the latest expiry of a record that the
-- directory took, and the latest expiry at the last revocation. A record
-- that does not expire after `revoked_through` was public before the
-- revocation, so anyone could send it again; the directory refuses it.
CREATE TABLE directory_record_marks (
agent_id TEXT NOT NULL,
signing_key BLOB NOT NULL,
latest_expires_at INTEGER NOT NULL,
revoked_through INTEGER,
PRIMARY KEY(agent_id, signing_key)
);
9 changes: 9 additions & 0 deletions crates/aether-store/migrations/node/018_task_caller_ids.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- The caller chooses the task ID and the request ID, and `tasks.id` and
-- `tasks.request_id` are unique for the whole table. When another endpoint
-- already has a row with one of them, the new row gets IDs that the node
-- makes, and these columns keep the IDs that the caller sent. NULL: the row
-- has the caller's IDs.
ALTER TABLE tasks ADD COLUMN caller_task_id TEXT;
ALTER TABLE tasks ADD COLUMN caller_request_id TEXT;

CREATE INDEX tasks_caller_task_index ON tasks(caller_endpoint_id, caller_task_id);
Loading
Loading