Guest User

Untitled

a guest
May 27th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. CREATE TABLE `item_primary` (
  2. `ID` int(11),
  3. `author` varchar(3) DEFAULT NULL COMMENT 'Initials',
  4. `reviewer` varchar(3) DEFAULT NULL COMMENT 'Initials',
  5. `verified` int(1) DEFAULT NULL COMMENT '0: Not Verified, 1: Verified, 2: Error',
  6. `privacy` int(1) DEFAULT NULL COMMENT '0: Not Private; 1: Private (Draft); 2: Private (Private).',
  7. `created` timestamp DEFAULT CURRENT_TIMESTAMP COMMENT 'Created time (GMT). Use offset to determine local time.',
  8. `modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Modified time (GMT).',
  9. `type` varchar(12) DEFAULT NULL COMMENT 'E.g. book, image, etc.',
  10. `slug` varchar(12) DEFAULT NULL COMMENT 'Short name of the object (i.e. the first part in a key:value pair).',
  11. `value` varchar(255) DEFAULT NULL COMMENT 'The nugget we are after. Could be a single value or an array (JSON)',
  12. `title` varchar(255) DEFAULT NULL COMMENT 'Full name of the object',
  13. `summary` tinytext DEFAULT NULL COMMENT 'Short description. Summary. As needed.',
  14. `description` longtext DEFAULT NULL COMMENT 'Long description, as needed.'
  15. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
  16.  
  17.  
  18. ALTER TABLE `item_primary`
  19. ADD PRIMARY KEY (`ID`);
  20.  
  21. ALTER TABLE `item_primary`
  22. MODIFY `ID` int(20) UNSIGNED NOT NULL AUTO_INCREMENT;
Add Comment
Please, Sign In to add comment