From bb80471b2a606a86d4a5d408c13c65588fae2e99 Mon Sep 17 00:00:00 2001 From: jos3duardo Date: Sun, 17 Aug 2025 04:30:45 -0400 Subject: [PATCH] Update payments table constraints and remove indexes --- init.sql | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/init.sql b/init.sql index 2dbcee6..923e909 100644 --- a/init.sql +++ b/init.sql @@ -1,9 +1,6 @@ CREATE UNLOGGED TABLE payments ( - correlation_id UUID PRIMARY KEY, + correlation_id UUID UNIQUE NOT NULL, amount DECIMAL(10, 2) NOT NULL, payment_processor VARCHAR(10), created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ); - -CREATE INDEX payments_created_at ON payments (created_at ); -CREATE INDEX payments_correlation_id ON payments (correlation_id); \ No newline at end of file