statuses.sql 689 B

12345678910111213141516171819202122232425262728293031
  1. -- --------------------------------------------------------
  2. --
  3. -- Table structure for table `statuses`
  4. --
  5. -- Creation: Aug 20, 2015 at 12:10 AM
  6. --
  7. DROP TABLE IF EXISTS `statuses`;
  8. CREATE TABLE IF NOT EXISTS `statuses` (
  9. `id` int(10) NOT NULL,
  10. `name` varchar(50) COLLATE utf8_bin NOT NULL,
  11. `open` tinyint(1) NOT NULL DEFAULT '1'
  12. ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
  13. --
  14. -- RELATIONS FOR TABLE `statuses`:
  15. --
  16. --
  17. -- Indexes for table `statuses`
  18. --
  19. ALTER TABLE `statuses`
  20. ADD PRIMARY KEY (`id`),
  21. ADD UNIQUE KEY `name` (`name`);
  22. --
  23. -- AUTO_INCREMENT for table `statuses`
  24. --
  25. ALTER TABLE `statuses`
  26. MODIFY `id` int(10) NOT NULL AUTO_INCREMENT;