Update payments table constraints and remove indexes
This commit is contained in:
parent
95af8deae8
commit
bb80471b2a
5
init.sql
5
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);
|
||||
Loading…
x
Reference in New Issue
Block a user