Skip to content

Instantly share code, notes, and snippets.

@DeadAlready
Created January 26, 2018 15:42
Show Gist options
  • Save DeadAlready/9936d3ac5dacaca87671e4f391ed2ff7 to your computer and use it in GitHub Desktop.
Save DeadAlready/9936d3ac5dacaca87671e4f391ed2ff7 to your computer and use it in GitHub Desktop.
A setup for transactions
CREATE TABLE transactions
(
id INT(11) PRIMARY KEY NOT NULL AUTO_INCREMENT,
accountId INT(11) NOT NULL,
amount DECIMAL(10,2) NOT NULL
);
INSERT INTO transactions (accountId, amount) VALUES (1, 10);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment