Skip to content

Commit

Permalink
Remove unique from account_number in account.transactions table def
Browse files Browse the repository at this point in the history
  • Loading branch information
pflooky committed Jul 9, 2024
1 parent 42ed765 commit a54c144
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/src/test/resources/sample/sql/postgres/customer.sql
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,11 @@ CREATE TABLE IF NOT EXISTS account.balances

CREATE TABLE IF NOT EXISTS account.transactions
(
account_number VARCHAR(20) UNIQUE NOT NULL,
account_number VARCHAR(20) NOT NULL REFERENCES account.balances (account_number),
create_time TIMESTAMP,
transaction_id VARCHAR(20),
amount DOUBLE PRECISION,
PRIMARY KEY (account_number, create_time, transaction_id),
CONSTRAINT fk_txn_account_number FOREIGN KEY (account_number) REFERENCES account.balances (account_number)
PRIMARY KEY (account_number, create_time, transaction_id)
);

CREATE TABLE IF NOT EXISTS account.mapping
Expand Down

0 comments on commit a54c144

Please sign in to comment.