Skip to content

Commit

Permalink
Migration to create users wallet table
Browse files Browse the repository at this point in the history
  • Loading branch information
I-Lima committed Mar 21, 2024
1 parent 0a13e76 commit 9550c47
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/resources/db/migration/V10__create-user-wallet-table.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
CREATE TABLE users_wallet (
id VARCHAR(255) PRIMARY KEY UNIQUE NOT NULL,
user_id VARCHAR(255),
type_investment_id VARCHAR(255),
symbol VARCHAR(255),
amount INTEGER,
price DOUBLE PRECISION,
FOREIGN KEY (user_id) REFERENCES users(id),
FOREIGN KEY (type_investment_id) REFERENCES types_investments(id)
);

0 comments on commit 9550c47

Please sign in to comment.