Guest User

Untitled

a guest
Oct 18th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1.  
  2. # Dump of table people
  3. # ------------------------------------------------------------
  4.  
  5. CREATE TABLE `people` (
  6. `id` int(10) NOT NULL AUTO_INCREMENT,
  7. `first_name` varchar(30) NOT NULL,
  8. `last_name` varchar(30) NOT NULL,
  9. `city_id` int(10) DEFAULT NULL,
  10. `state_id` int(10) DEFAULT NULL,
  11. `country_id` int(10) DEFAULT NULL,
  12. `dob` date DEFAULT NULL,
  13. `date_created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  14. `active` enum('yes','no') DEFAULT NULL,
  15. `zip_code` varchar(5) DEFAULT NULL,
  16. PRIMARY KEY (`id`),
  17. KEY `city_id_idxfk` (`city_id`),
  18. KEY `state_id_idxfk_1` (`state_id`),
  19. KEY `country_id_idxfk` (`country_id`),
  20. CONSTRAINT `people_ibfk_1` FOREIGN KEY (`city_id`) REFERENCES `cities` (`id`),
  21. CONSTRAINT `people_ibfk_2` FOREIGN KEY (`state_id`) REFERENCES `states` (`id`),
  22. CONSTRAINT `people_ibfk_3` FOREIGN KEY (`country_id`) REFERENCES `countries` (`id`)
  23. ) ENGINE=InnoDB AUTO_INCREMENT=3001 DEFAULT CHARSET=latin1;
  24.  
  25.  
  26.  
  27. # Dump of table posts
  28. # ------------------------------------------------------------
  29.  
  30. CREATE TABLE `posts` (
  31. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  32. `title` varchar(30) DEFAULT NULL,
  33. PRIMARY KEY (`id`)
  34. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
Add Comment
Please, Sign In to add comment