googlemapsearch.sql 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. CREATE TABLE `shop_list2` (
  2. `id` int NOT NULL AUTO_INCREMENT,
  3. `unique_id` VARCHAR(20),
  4. `name` VARCHAR(100),
  5. `lon` DOUBLE,
  6. `lat` DOUBLE,
  7. `city` VARCHAR(10),
  8. `area` VARCHAR(10),
  9. `rating` DOUBLE,
  10. `user_ratings_total` DOUBLE,
  11. `category` VARCHAR(20),
  12. `price_level` VARCHAR(10),
  13. `addr` VARCHAR(100),
  14. `tel` VARCHAR(20),
  15. `services` JSON ,
  16. `products` JSON ,
  17. `choices` JSON ,
  18. `facilities` JSON ,
  19. `groups` JSON ,
  20. `plans` JSON ,
  21. `payments` JSON ,
  22. `safeties` JSON ,
  23. `specials` JSON ,
  24. `barrierlevels` JSON ,
  25. `items` JSON ,
  26. `open_now` VARCHAR(10),
  27. `periods` JSON,
  28. `weekday_text` JSON,
  29. `reviews` JSON,
  30. `shop_photo` JSON,
  31. `menu_photo` JSON,
  32. `google_url` text,
  33. `item_url` text,
  34. `keyword` VARCHAR(20),
  35. `crawler_date` char(20) NOT NULL,
  36. PRIMARY KEY (`id`),
  37. UNIQUE KEY (`unique_id`)
  38. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  39. CREATE TABLE `shop_item_list` (
  40. `id` int NOT NULL AUTO_INCREMENT,
  41. `name` VARCHAR(100),
  42. `lon` DOUBLE,
  43. `lat` DOUBLE,
  44. `keyword` VARCHAR(20),
  45. `item_url` VARCHAR(200),
  46. `crawler_date` char(20) NOT NULL,
  47. PRIMARY KEY (`id`),
  48. UNIQUE KEY (`item_url`)
  49. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  50. CREATE TABLE `error_list2` (
  51. `id` int NOT NULL AUTO_INCREMENT,
  52. `name` VARCHAR(100),
  53. `lon` DOUBLE,
  54. `lat` DOUBLE,
  55. `keyword` VARCHAR(20),
  56. `item_url` VARCHAR(200),
  57. `crawler_date` char(20) NOT NULL,
  58. PRIMARY KEY (`id`),
  59. UNIQUE KEY (`item_url`)
  60. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  61. CREATE TABLE `shop_time_list` (
  62. `id` int NOT NULL AUTO_INCREMENT,
  63. `google_url` VARCHAR(200),
  64. `open_now` VARCHAR(20),
  65. `day` int,
  66. `open` VARCHAR(20),
  67. `close` VARCHAR(20),
  68. `crawler_date` char(20) NOT NULL,
  69. PRIMARY KEY (`id`),
  70. UNIQUE KEY (`google_url`,`day`)
  71. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  72. CREATE TABLE `shop_reviews_list` (
  73. `id` VARCHAR(30),
  74. `google_url` VARCHAR(200),
  75. `author_name` VARCHAR(20),
  76. `profile_photo_url` VARCHAR(200),
  77. `rating` int,
  78. `text` VARCHAR(500),
  79. `created_at` VARCHAR(20),
  80. `crawler_date` char(20) NOT NULL,
  81. UNIQUE KEY (`id`,`google_url`)
  82. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  83. CREATE TABLE `shop_reviews_photo_list` (
  84. `id` VARCHAR(30),
  85. `google_url` VARCHAR(200),
  86. `path` VARCHAR(200),
  87. `crawler_date` char(20) NOT NULL,
  88. PRIMARY KEY (`id`),
  89. UNIQUE KEY (`id`,`google_url`)
  90. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;