emails.sql 611 B

1234567891011121314151617181920212223242526
  1. -- --------------------------------------------------------
  2. --
  3. -- Table structure for table `emails`
  4. --
  5. -- Creation: Aug 21, 2015 at 06:53 PM
  6. --
  7. DROP TABLE IF EXISTS `emails`;
  8. CREATE TABLE IF NOT EXISTS `emails` (
  9. `u_id` int(10) NOT NULL,
  10. `subject` varchar(77) COLLATE utf8_bin NOT NULL,
  11. `body` text COLLATE utf8_bin NOT NULL,
  12. `date_created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
  13. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
  14. --
  15. -- RELATIONS FOR TABLE `emails`:
  16. --
  17. --
  18. -- Indexes for table `emails`
  19. --
  20. ALTER TABLE `emails`
  21. ADD KEY `u_id` (`u_id`),
  22. ADD KEY `date` (`date_created`);