Created
June 1, 2017 20:36
-
-
Save PEKTOP/faa2270eec380d5995584517faa03c2f to your computer and use it in GitHub Desktop.
coin32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE `users` ( | |
`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, | |
`name` varchar(100) NOT NULL | |
); | |
CREATE TABLE `transactions` ( | |
`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, | |
`user_id` int(11) NOT NULL, | |
`created` datetime NOT NULL, | |
`amount` decimal(8,2) NOT NULL, | |
FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment