Squarefighter

Create Table Queries Mariadb 11.2.4

Aug 28th, 2024
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.76 KB | None | 0 0
  1. +-----------------------------------+--------------------------------------------------------------------------------------------------
  2. | Table | Create Table
  3. +-----------------------------------+--------------------------------------------------------------------------------------------------
  4. | ehvp_message_conversation_actions | CREATE TABLE `ehvp_message_conversation_actions` (
  5. `id` bigint(10) NOT NULL AUTO_INCREMENT,
  6. `userid` bigint(10) NOT NULL,
  7. `conversationid` bigint(10) NOT NULL,
  8. `action` bigint(10) NOT NULL,
  9. `timecreated` bigint(10) NOT NULL,
  10. PRIMARY KEY (`id`),
  11. KEY `ehvp_messconvacti_use_ix` (`userid`),
  12. KEY `ehvp_messconvacti_con_ix` (`conversationid`)
  13. ) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=COMPRESSED COMMENT='Stores all per-user actions on individual conversations' |
  14. +-----------------------------------+--------------------------------------------------------------------------------------------------
  15.  
  16. +---------------------------+----------------------------------------------------------------------------------------------------------
  17. | Table | Create Table
  18. +---------------------------+----------------------------------------------------------------------------------------------------------
  19. | ehvp_message_user_actions | CREATE TABLE `ehvp_message_user_actions` (
  20. `id` bigint(10) NOT NULL AUTO_INCREMENT,
  21. `userid` bigint(10) NOT NULL,
  22. `messageid` bigint(10) NOT NULL,
  23. `action` bigint(10) NOT NULL,
  24. `timecreated` bigint(10) NOT NULL,
  25. PRIMARY KEY (`id`),
  26. UNIQUE KEY `ehvp_messuseracti_usemesac_uix` (`userid`,`messageid`,`action`),
  27. KEY `ehvp_messuseracti_use_ix` (`userid`),
  28. KEY `ehvp_messuseracti_mes_ix` (`messageid`)
  29. ) ENGINE=InnoDB AUTO_INCREMENT=569800 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=COMPRESSED COMMENT='Stores all per-user actions on individual messages' |
  30. +---------------------------+----------------------------------------------------------------------------------------------------------
  31.  
  32.  
  33. +---------------+----------------------------------------------------------------------------------------------------------------------
  34. | Table | Create Table
  35. +---------------+----------------------------------------------------------------------------------------------------------------------
  36. | ehvp_messages | CREATE TABLE `ehvp_messages` (
  37. `id` bigint(10) NOT NULL AUTO_INCREMENT,
  38. `useridfrom` bigint(10) NOT NULL,
  39. `conversationid` bigint(10) NOT NULL,
  40. `subject` longtext DEFAULT NULL,
  41. `fullmessage` longtext DEFAULT NULL,
  42. `fullmessageformat` tinyint(1) NOT NULL DEFAULT 0,
  43. `fullmessagehtml` longtext DEFAULT NULL,
  44. `smallmessage` longtext DEFAULT NULL,
  45. `timecreated` bigint(10) NOT NULL,
  46. `fullmessagetrust` tinyint(2) NOT NULL DEFAULT 0,
  47. `customdata` longtext DEFAULT NULL,
  48. PRIMARY KEY (`id`),
  49. KEY `ehvp_mess_contim_ix` (`conversationid`,`timecreated`),
  50. KEY `ehvp_mess_use_ix` (`useridfrom`),
  51. KEY `ehvp_mess_con_ix` (`conversationid`)
  52. ) ENGINE=InnoDB AUTO_INCREMENT=9665 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=COMPRESSED COMMENT='Stores all messages' |
  53. +---------------+----------------------------------------------------------------------------------------------------------------------
  54.  
  55.  
  56. +-----------------------------------+--------------------------------------------------------------------------------------------------
  57. | Table | Create Table
  58. +-----------------------------------+--------------------------------------------------------------------------------------------------
  59. | ehvp_message_conversation_members | CREATE TABLE `ehvp_message_conversation_members` (
  60. `id` bigint(10) NOT NULL AUTO_INCREMENT,
  61. `conversationid` bigint(10) NOT NULL,
  62. `userid` bigint(10) NOT NULL,
  63. `timecreated` bigint(10) NOT NULL,
  64. PRIMARY KEY (`id`),
  65. KEY `ehvp_messconvmemb_con_ix` (`conversationid`),
  66. KEY `ehvp_messconvmemb_use_ix` (`userid`)
  67. ) ENGINE=InnoDB AUTO_INCREMENT=105996 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=COMPRESSED COMMENT='Stores all members in a conversations' |
  68. +-----------------------------------+--------------------------------------------------------------------------------------------------
  69.  
  70. +----------------------------+---------------------------------------------------------------------------------------------------------
  71. | Table | Create Table
  72. +----------------------------+---------------------------------------------------------------------------------------------------------
  73. | ehvp_message_conversations | CREATE TABLE `ehvp_message_conversations` (
  74. `id` bigint(10) NOT NULL AUTO_INCREMENT,
  75. `type` bigint(10) NOT NULL DEFAULT 1,
  76. `name` varchar(255) DEFAULT NULL,
  77. `convhash` varchar(40) DEFAULT NULL,
  78. `component` varchar(100) DEFAULT NULL,
  79. `itemtype` varchar(100) DEFAULT NULL,
  80. `itemid` bigint(10) DEFAULT NULL,
  81. `contextid` bigint(10) DEFAULT NULL,
  82. `enabled` tinyint(1) NOT NULL DEFAULT 0,
  83. `timecreated` bigint(10) NOT NULL,
  84. `timemodified` bigint(10) DEFAULT NULL,
  85. PRIMARY KEY (`id`),
  86. KEY `ehvp_messconv_typ_ix` (`type`),
  87. KEY `ehvp_messconv_con_ix` (`convhash`),
  88. KEY `ehvp_messconv_comiteitecon_ix` (`component`,`itemtype`,`itemid`,`contextid`),
  89. KEY `ehvp_messconv_con2_ix` (`contextid`)
  90. ) ENGINE=InnoDB AUTO_INCREMENT=55720 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=COMPRESSED COMMENT='Stores all message conversations' |
  91. +----------------------------+---------------------------------------------------------------------------------------------------------
  92.  
Advertisement
Add Comment
Please, Sign In to add comment