Created
October 15, 2016 13:31
-
-
Save gabidavila/c8b3b02199b63c90cea167f9af8c6fca to your computer and use it in GitHub Desktop.
This file contains 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 `orders_items` ( | |
`id` int(10) unsigned NOT NULL AUTO_INCREMENT, | |
`order_id` int(10) unsigned NOT NULL, | |
`product_id` int(10) unsigned NOT NULL, | |
`product_price` decimal(10,2) unsigned NOT NULL DEFAULT '0.00', | |
`quantity` int(10) unsigned NOT NULL DEFAULT 1, | |
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | |
`updated_at` varchar(45) NOT NULL DEFAULT 'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP', | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment