Skip to content
Dev.to

Design a Reliable Wallet Transfer System with...

Durability – ensures that once a transaction is successfully committed, its changes are permanently stored in the database, even in case of system failures. the accounts table: CREATE TABLE accounts ( id SERIAL PRIMARY KEY, name TEXT NOT NULL, balance INT NOT NULL CHECK (balance >= 0), last_updated TIMESTAMP DEFAULT CURRENT_TIMESTAMP ); the accounts table is created successfully Then the dummy data is added to the table INSERT INTO accounts (name, balance) VALUES ('Alice', 1000), ('Bob', 500); N
Read original on dev.to
0
0

Comment

Sign in to join the discussion.

Loading comments…

Related

Liked this? Start your own feed.

Your own feed is waiting.
0
0