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.

mysql.initial.sql 739B

12345678910111213141516
  1. CREATE TABLE `collected_contacts` (
  2. `contact_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  3. `changed` datetime NOT NULL DEFAULT '1000-01-01 00:00:00',
  4. `del` tinyint(1) NOT NULL DEFAULT '0',
  5. `name` varchar(128) NOT NULL DEFAULT '',
  6. `email` text NOT NULL,
  7. `firstname` varchar(128) NOT NULL DEFAULT '',
  8. `surname` varchar(128) NOT NULL DEFAULT '',
  9. `vcard` longtext NULL,
  10. `words` text NULL,
  11. `user_id` int(10) UNSIGNED NOT NULL,
  12. PRIMARY KEY(`contact_id`),
  13. CONSTRAINT `user_id_fk_collected_contacts` FOREIGN KEY (`user_id`)
  14. REFERENCES `users`(`user_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  15. INDEX `user_collected_contacts_index` (`user_id`,`del`)
  16. ) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */;