sphinx_test.sql 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /*
  2. SQLyog Enterprise - MySQL GUI v5.20
  3. Host - 5.0.27-community-nt : Database - sphinx_test
  4. *********************************************************************
  5. Server version : 5.0.27-community-nt
  6. */
  7. SET NAMES utf8;
  8. SET SQL_MODE='';
  9. CREATE database IF NOT EXISTS `sphinx_test`;
  10. USE `sphinx_test`;
  11. /* Table structure for table `links` */
  12. DROP TABLE IF EXISTS `links`;
  13. CREATE TABLE `links` (
  14. `id` INT(11) NOT NULL auto_increment,
  15. `name` VARCHAR(255) NOT NULL,
  16. `created_at` DATETIME NOT NULL,
  17. `description` TEXT,
  18. `group_id` INT(11) NOT NULL,
  19. `rating` FLOAT NOT NULL,
  20. PRIMARY KEY (`id`)
  21. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  22. /* Table structure for table `tags` */
  23. DROP TABLE IF EXISTS `tags`;
  24. CREATE TABLE `tags` (
  25. `id` INT(11) NOT NULL auto_increment,
  26. `tag` VARCHAR(255) NOT NULL,
  27. PRIMARY KEY (`id`)
  28. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  29. /* Table structure for table `links_tags` */
  30. DROP TABLE IF EXISTS `links_tags`;
  31. CREATE TABLE `links_tags` (
  32. `link_id` INT(11) NOT NULL,
  33. `tag_id` INT(11) NOT NULL,
  34. PRIMARY KEY (`link_id`,`tag_id`)
  35. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  36. /* Table structure for table `links64` */
  37. DROP TABLE IF EXISTS `links64`;
  38. CREATE TABLE `links64` (
  39. `id` BIGINT(11) NOT NULL auto_increment,
  40. `name` VARCHAR(255) NOT NULL,
  41. `created_at` DATETIME NOT NULL,
  42. `description` TEXT,
  43. `group_id` INT(11) NOT NULL,
  44. PRIMARY KEY (`id`)
  45. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  46. /* Data for the table `links` */
  47. INSERT INTO `links`(`id`,`name`,`created_at`,`description`,`group_id`,`rating`) VALUES
  48. (1,'Paint Protects WiFi Network from Hackers','2007-04-04 06:48:10','A company known as SEC Technologies has created a special type of paint that blocks Wi-Fi signals so that you can be sure hackers can ',1,13.32),
  49. (2,'Airplanes To Become WiFi Hotspots','2007-04-04 06:49:15','Airlines will start turning their airplanes into WiFi hotspots beginning early next year, WSJ reports. Here\'s what you need to know...',2,54.85),
  50. (3,'Planet VIP-195 GSM/WiFi Phone With Windows Messanger','2007-04-04 06:50:47','The phone does comply with IEEE 802.11b and IEEE 802.11g to provide phone capability via WiFi. As GSM phone the VIP-195 support 900/1800/1900 band and GPRS too. It comes with simple button to switch between WiFi or GSM mod',1,16.25);
  51. /* Data for the table `tags` */
  52. INSERT INTO `tags`(`id`,`tag`) VALUES
  53. (1, 'tag1'),(2, 'tag2'),(3, 'tag3'),(4, 'tag4'),(5, 'tag5'),
  54. (6, 'tag6'),(7, 'tag7'),(8, 'tag8'),(9, 'tag9'),(10, 'tag5');
  55. /* Data for the table `links_tags` */
  56. INSERT INTO `links_tags`(`link_id`,`tag_id`) VALUES
  57. (1, 1),(1, 2),(1, 3),(1, 4),
  58. (2, 5),(2, 6),(2, 7),(2, 8),
  59. (3, 9),(3, 1),(3, 7),(3, 10);
  60. /* Data for the table `links64` */
  61. INSERT INTO `links64`(`id`,`name`,`created_at`,`description`,`group_id`) VALUES
  62. (4294967297,'Paint Protects WiFi Network from Hackers','2007-04-04 06:48:10','A company known as SEC Technologies has created a special type of paint that blocks Wi-Fi signals so that you can be sure hackers can ',1),
  63. (4294967298,'Airplanes To Become WiFi Hotspots','2007-04-04 06:49:15','Airlines will start turning their airplanes into WiFi hotspots beginning early next year, WSJ reports. Here\'s what you need to know...',2),
  64. (4294967299,'Planet VIP-195 GSM/WiFi Phone With Windows Messanger','2007-04-04 06:50:47','The phone does comply with IEEE 802.11b and IEEE 802.11g to provide phone capability via WiFi. As GSM phone the VIP-195 support 900/1800/1900 band and GPRS too. It comes with simple button to switch between WiFi or GSM mod',1);