Skip to content

Commit

Permalink
simplify dependendencies, add actions
Browse files Browse the repository at this point in the history
  • Loading branch information
killua-eu committed Jul 1, 2024
1 parent b692f0b commit b94b7f8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
15 changes: 0 additions & 15 deletions glued/Config/Pgsql/20240331214627_action_states.sql

This file was deleted.

17 changes: 17 additions & 0 deletions glued/Config/Pgsql/20240331214627_valid_response_cache.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
-- migrate:up

CREATE TABLE glued.if__actions_valid_response_cache (
action_uuid uuid NOT NULL REFERENCES if__actions(uuid) ON DELETE CASCADE, -- message uuid
req_payload jsonb NULL,
req_params jsonb NULL,
req_at TIMESTAMP WITHOUT TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP, -- (last) requested at
res_payload jsonb NULL,
res_at TIMESTAMP WITHOUT TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP, -- issued at
res_replays integer DEFAULT 0,
fid text NOT NULL,
nonce bytea GENERATED ALWAYS AS (decode(md5(action_uuid::text || req_payload || req_params || res_payload || fid), 'hex')) STORED PRIMARY KEY
);

-- migrate:down

DROP TABLE IF EXISTS glued.if__actions_valid_response_cache;

0 comments on commit b94b7f8

Please # to comment.