Update payments table constraints and remove indexes

This commit is contained in:
Jose Eduardo 2025-08-17 04:30:45 -04:00
parent 95af8deae8
commit bb80471b2a

View File

@ -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);