fix: remove redundant unique constraint from customer_wallets table

This commit is contained in:
Samuel Tariku 2025-05-26 12:48:51 +03:00
parent 61bd5abd00
commit d04198e08a

View File

@ -117,8 +117,7 @@ CREATE TABLE IF NOT EXISTS customer_wallets (
regular_wallet_id BIGINT NOT NULL,
static_wallet_id BIGINT NOT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
UNIQUE (customer_id, company_id)
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
CREATE TABLE IF NOT EXISTS wallet_transfer (
id BIGSERIAL PRIMARY KEY,