googlemapsearch.sql 2.0 KB

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