activities.sql 621 B

123456789101112131415161718192021222324252627
  1. -- --------------------------------------------------------
  2. --
  3. -- Table structure for table `activities`
  4. --
  5. -- Creation: Aug 21, 2015 at 06:53 PM
  6. --
  7. DROP TABLE IF EXISTS `activities`;
  8. CREATE TABLE IF NOT EXISTS `activities` (
  9. `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  10. `a_id` int(10) NOT NULL,
  11. `data` varchar(4000) COLLATE utf8_bin DEFAULT NULL
  12. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
  13. --
  14. -- RELATIONS FOR TABLE `activities`:
  15. -- `a_id`
  16. -- `actions` -> `id`
  17. --
  18. --
  19. -- Indexes for table `activities`
  20. --
  21. ALTER TABLE `activities`
  22. ADD PRIMARY KEY (`date`),
  23. ADD KEY `a_id` (`a_id`);