Created
July 16, 2012 09:35
-
-
Save repomaa/3121830 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
+-------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |
| Table | Create Table | | |
+-------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |
| food | CREATE TABLE `food` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`name` varchar(100) NOT NULL, | |
`carbs` float NOT NULL, | |
`fat` float NOT NULL, | |
`protein` float NOT NULL, | |
`alcohol` float NOT NULL, | |
`serving` float NOT NULL, | |
`serving_type` int(11) NOT NULL, | |
`api_key` char(23) NOT NULL, | |
`category` int(11) NOT NULL, | |
`hash` char(32) NOT NULL, | |
PRIMARY KEY (`id`), | |
UNIQUE KEY `name` (`name`), | |
UNIQUE KEY `hash` (`hash`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 | | |
+-------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |
1 row in set (0.00 sec) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment