Skip to content

Commit b94b7f8

Browse files
committed
simplify dependendencies, add actions
1 parent b692f0b commit b94b7f8

File tree

2 files changed

+17
-15
lines changed

2 files changed

+17
-15
lines changed

glued/Config/Pgsql/20240331214627_action_states.sql

-15
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
-- migrate:up
2+
3+
CREATE TABLE glued.if__actions_valid_response_cache (
4+
action_uuid uuid NOT NULL REFERENCES if__actions(uuid) ON DELETE CASCADE, -- message uuid
5+
req_payload jsonb NULL,
6+
req_params jsonb NULL,
7+
req_at TIMESTAMP WITHOUT TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP, -- (last) requested at
8+
res_payload jsonb NULL,
9+
res_at TIMESTAMP WITHOUT TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP, -- issued at
10+
res_replays integer DEFAULT 0,
11+
fid text NOT NULL,
12+
nonce bytea GENERATED ALWAYS AS (decode(md5(action_uuid::text || req_payload || req_params || res_payload || fid), 'hex')) STORED PRIMARY KEY
13+
);
14+
15+
-- migrate:down
16+
17+
DROP TABLE IF EXISTS glued.if__actions_valid_response_cache;

0 commit comments

Comments
 (0)