mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 19:14:23 +00:00
058192c22b
* test: fix log headers * ensure just public types are tested * fix(postgres): proper statements for setup step 7 --------- Co-authored-by: adlerhurst <silvan.reusser@gmail.com>
15 lines
499 B
SQL
15 lines
499 B
SQL
CREATE TABLE IF NOT EXISTS logstore.access (
|
|
log_date TIMESTAMPTZ NOT NULL
|
|
, protocol INT NOT NULL
|
|
, request_url TEXT NOT NULL
|
|
, response_status INT NOT NULL
|
|
, request_headers JSONB
|
|
, response_headers JSONB
|
|
, instance_id TEXT NOT NULL
|
|
, project_id TEXT NOT NULL
|
|
, requested_domain TEXT
|
|
, requested_host TEXT
|
|
);
|
|
|
|
CREATE INDEX protocol_date_desc ON logstore.access (instance_id, protocol, log_date DESC) INCLUDE (request_url, response_status, request_headers);
|