removed FK contraint on error_code

This commit is contained in:
GroovieGermanikus 2024-01-27 09:10:36 +01:00
parent 64d607155c
commit 93fa6c48c4
No known key found for this signature in database
GPG Key ID: 5B6EB831A5CD2015
1 changed files with 2 additions and 1 deletions

View File

@ -24,12 +24,13 @@ CREATE TABLE banking_stage_results_2.errors (
CREATE TABLE banking_stage_results_2.transaction_slot (
transaction_id BIGINT,
slot BIGINT,
error_code INT REFERENCES banking_stage_results_2.errors(error_code),
error_code INT,
count INT,
utc_timestamp TIMESTAMP NOT NULL,
PRIMARY KEY (transaction_id, slot, error_code)
);
CREATE INDEX idx_transaction_slot_timestamp ON banking_stage_results_2.transaction_slot(utc_timestamp);
CREATE INDEX idx_transaction_slot_slot ON banking_stage_results_2.transaction_slot(slot);