Add cache for all stadia requests
This commit is contained in:
parent
9ef6aaa406
commit
c393f6fd81
10 changed files with 647 additions and 6 deletions
12
db/migrations/00126_stadia.sql
Normal file
12
db/migrations/00126_stadia.sql
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
-- +goose Up
|
||||
CREATE SCHEMA stadia;
|
||||
CREATE TABLE stadia.api_request (
|
||||
id BIGSERIAL,
|
||||
request TEXT NOT NULL UNIQUE, -- hash or identifier
|
||||
response JSONB NOT NULL,
|
||||
created_at TIMESTAMP WITHOUT TIME ZONE NOT NULL,
|
||||
PRIMARY KEY(id)
|
||||
);
|
||||
-- +goose Down
|
||||
DROP TABLE stadia.api_request;
|
||||
DROP SCHEMA stadia;
|
||||
Loading…
Add table
Add a link
Reference in a new issue