Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.00 KB | None | 0 0
  1. CREATE TABLE `st_mobile_push_subscribe_day_general` (
  2. `field` int(10) unsigned NOT NULL DEFAULT '0',
  3. `month` tinyint(3) unsigned NOT NULL DEFAULT '0',
  4. `day` tinyint(3) unsigned NOT NULL DEFAULT '0',
  5. `hour` tinyint(3) unsigned NOT NULL DEFAULT '0',
  6. `vendor` tinyint unsigned NOT NULL DEFAULT 0,
  7. `fs_activity_group` tinyint unsigned NOT NULL DEFAULT 0,
  8. `gender` tinyint unsigned NOT NULL DEFAULT 0,
  9. `age_group` tinyint unsigned NOT NULL DEFAULT 0,
  10. `is_app_user` tinyint unsigned NOT NULL DEFAULT 0,
  11. `fs_pay_group` tinyint unsigned NOT NULL DEFAULT 0,
  12. `mobile_activity_group` tinyint unsigned NOT NULL DEFAULT 0,
  13. `count` bigint(10) unsigned NOT NULL DEFAULT '0',
  14. `unique_month` mediumint(8) unsigned NOT NULL DEFAULT '0',
  15. `unique_day` mediumint(8) unsigned NOT NULL DEFAULT '0',
  16. `unique_hour` mediumint(8) unsigned NOT NULL DEFAULT '0',
  17. PRIMARY KEY (`field`,`month`,`day`,`hour`,`vendor`,`fs_activity_group`,`gender`,`age_group`,`is_app_user`,`fs_pay_group`,`mobile_activity_group`),
  18. KEY `clean` (`month`,`day`)
  19. ) ENGINE=InnoDB DEFAULT CHARSET=cp1251
  20. /*!50100 PARTITION BY KEY */ /*!50611 ALGORITHM = 1 */ /*!50100 (`month`)
  21. PARTITIONS 12 */;
  22.  
  23. CREATE TABLE `st_mobile_push_subscribe_month_general` (
  24. `field` int(10) unsigned NOT NULL DEFAULT '0',
  25. `month` tinyint(3) unsigned NOT NULL DEFAULT '0',
  26. `day` tinyint(3) unsigned NOT NULL DEFAULT '0',
  27. `vendor` tinyint unsigned NOT NULL DEFAULT 0,
  28. `fs_activity_group` tinyint unsigned NOT NULL DEFAULT 0,
  29. `gender` tinyint unsigned NOT NULL DEFAULT 0,
  30. `age_group` tinyint unsigned NOT NULL DEFAULT 0,
  31. `is_app_user` tinyint unsigned NOT NULL DEFAULT 0,
  32. `fs_pay_group` tinyint unsigned NOT NULL DEFAULT 0,
  33. `mobile_activity_group` tinyint unsigned NOT NULL DEFAULT 0,
  34. `count` bigint(10) unsigned NOT NULL DEFAULT '0',
  35. `unique_month` mediumint(8) unsigned NOT NULL DEFAULT '0',
  36. `unique_day` mediumint(8) unsigned NOT NULL DEFAULT '0',
  37. PRIMARY KEY (`field`,`month`,`day`,`vendor`,`fs_activity_group`,`gender`,`age_group`,`is_app_user`,`fs_pay_group`,`mobile_activity_group`)
  38. ) ENGINE=InnoDB DEFAULT CHARSET=cp1251
  39. /*!50100 PARTITION BY KEY */ /*!50611 ALGORITHM = 1 */ /*!50100 (`month`)
  40. PARTITIONS 12 */;
  41.  
  42. CREATE TABLE `st_mobile_push_subscribe_all_general` (
  43. `field` int(10) unsigned NOT NULL DEFAULT '0',
  44. `month` tinyint(3) unsigned NOT NULL DEFAULT '0',
  45. `vendor` tinyint unsigned NOT NULL DEFAULT 0,
  46. `fs_activity_group` tinyint unsigned NOT NULL DEFAULT 0,
  47. `gender` tinyint unsigned NOT NULL DEFAULT 0,
  48. `age_group` tinyint unsigned NOT NULL DEFAULT 0,
  49. `is_app_user` tinyint unsigned NOT NULL DEFAULT 0,
  50. `fs_pay_group` tinyint unsigned NOT NULL DEFAULT 0,
  51. `mobile_activity_group` tinyint unsigned NOT NULL DEFAULT 0,
  52. `count` bigint(10) unsigned NOT NULL DEFAULT '0',
  53. `unique_month` mediumint(8) unsigned NOT NULL DEFAULT '0',
  54. PRIMARY KEY (`field`,`month`,`vendor`,`fs_activity_group`,`gender`,`age_group`,`is_app_user`,`fs_pay_group`,`mobile_activity_group`)
  55. ) ENGINE=InnoDB DEFAULT CHARSET=cp1251;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement