-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simplify dependendencies, add actions
- Loading branch information
Showing
2 changed files
with
17 additions
and
15 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
glued/Config/Pgsql/20240331214627_valid_response_cache.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |