mirror of
https://github.com/saltbo/agent-kanban.git
synced 2026-09-19 09:01:47 +08:00
a2fa54a729
Replace the v1 Agent/Machine runtime and CLI architecture with the v2 Resource Server, AMA-backed projections, task lifecycle, session observation, BDD specifications, and a single-package layered codebase. BREAKING CHANGE: remove the v1 CLI, internal Agent/Machine runtime entities, workspace layout, and legacy runtime coordination APIs.
18 lines
546 B
SQL
18 lines
546 B
SQL
CREATE TABLE resource_idempotency_records (
|
|
owner_id TEXT NOT NULL,
|
|
actor_id TEXT NOT NULL,
|
|
api_version TEXT NOT NULL,
|
|
idempotency_key TEXT NOT NULL,
|
|
method TEXT NOT NULL,
|
|
path TEXT NOT NULL,
|
|
request_hash TEXT NOT NULL,
|
|
resource_kind TEXT NOT NULL,
|
|
resource_id TEXT NOT NULL,
|
|
expires_at TEXT NOT NULL,
|
|
created_at TEXT NOT NULL DEFAULT (datetime('now')),
|
|
PRIMARY KEY (owner_id, actor_id, api_version, idempotency_key)
|
|
);
|
|
|
|
CREATE INDEX idx_resource_idempotency_records_created
|
|
ON resource_idempotency_records(expires_at);
|