RoundCube Webmail
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
618 B

  1. CREATE TABLE `responses` (
  2. `response_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  3. `user_id` int(10) UNSIGNED NOT NULL,
  4. `name` varchar(255) NOT NULL,
  5. `data` longtext NOT NULL,
  6. `is_html` tinyint(1) NOT NULL DEFAULT '0',
  7. `changed` datetime NOT NULL DEFAULT '1000-01-01 00:00:00',
  8. `del` tinyint(1) NOT NULL DEFAULT '0',
  9. PRIMARY KEY (`response_id`),
  10. CONSTRAINT `user_id_fk_responses` FOREIGN KEY (`user_id`)
  11. REFERENCES `users` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  12. INDEX `user_responses_index` (`user_id`, `del`)
  13. ) ROW_FORMAT=DYNAMIC ENGINE=INNODB CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;