Guest User

Untitled

a guest
Dec 10th, 2013
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. -- Adminer 3.7.1 MySQL dump
  2.  
  3. SET NAMES utf8;
  4. SET foreign_key_checks = 0;
  5. SET time_zone = '+01:00';
  6. SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
  7.  
  8. DROP TABLE IF EXISTS `articles`;
  9. CREATE TABLE `articles` (
  10. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  11. `title` char(30) COLLATE utf8_slovak_ci NOT NULL,
  12. `text` text COLLATE utf8_slovak_ci NOT NULL,
  13. `author_id` int(10) unsigned NOT NULL,
  14. `date_created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  15. PRIMARY KEY (`id`),
  16. KEY `author_id` (`author_id`),
  17. CONSTRAINT `articles_ibfk_1` FOREIGN KEY (`author_id`) REFERENCES `users` (`id`)
  18. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_slovak_ci;
  19.  
  20. INSERT INTO `articles` (`id`, `title`, `text`, `author_id`, `date_created`) VALUES
  21. (1, 'TEST', 'My money\'s in that office, right? If she start giving me some bullshit about it ain\'t there, and we got to go someplace else and get it, I\'m gonna shoot you in the head then and there. Then I\'m gonna shoot that bitch in the kneecaps, find out where my goddamn money is. She gonna tell me too. Hey, look at me when I\'m talking to you, motherfucker. You listen: we go in there, and that nigga Winston or anybody else is in there, you the first motherfucker to get shot. You understand?\r\n', 1, '2013-12-08 15:17:31');
  22.  
  23. DROP TABLE IF EXISTS `users`;
  24. CREATE TABLE `users` (
  25. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  26. `username` varchar(15) COLLATE utf8_slovak_ci NOT NULL,
  27. `password` char(40) COLLATE utf8_slovak_ci NOT NULL,
  28. `role` varchar(10) COLLATE utf8_slovak_ci NOT NULL,
  29. `register_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  30. PRIMARY KEY (`id`)
  31. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_slovak_ci;
  32.  
  33. INSERT INTO `users` (`id`, `username`, `password`, `role`, `register_date`) VALUES
  34. (1, 'lime', 'fde955e73998719e0a85a07ce0f9f08f59a3a8a1', 'member', '2013-12-08 13:49:03'),
  35. (2, 'honza', 'd00a5d0fb8d645369cbe7829d818d4ed7dbc53e0', 'member', '2013-12-10 09:55:01');
  36.  
  37. -- 2013-12-10 16:28:51
Advertisement
Add Comment
Please, Sign In to add comment