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