fix(#24): Implement idempotency protection for critical write operations
Some checks are pending
Docker Test / test (push) Waiting to run
Some checks are pending
Docker Test / test (push) Waiting to run
This commit is contained in:
parent
6c25464369
commit
b44e7bf46c
6 changed files with 281 additions and 4 deletions
9
backend/migrations/002_idempotency_table.sql
Normal file
9
backend/migrations/002_idempotency_table.sql
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
-- Migration: 002_idempotency_table
|
||||
-- Description: Add idempotency_keys table for handling idempotent requests
|
||||
|
||||
CREATE TABLE IF NOT EXISTS idempotency_keys (
|
||||
id BIGINT PRIMARY KEY AUTO_INCREMENT,
|
||||
key VARCHAR(255) NOT NULL UNIQUE,
|
||||
response_body TEXT NULL,
|
||||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue