Squarefighter

Create Table Queries Mariadb 10.4.2

Aug 28th, 2024 (edited)
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.24 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=568128 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=COMPRESSED COMMENT='Stores all per-user actions on individual messages' |
  30. +---------------------------+----------------------------------------------------------------------------------------------------------
  31.  
  32. +---------------+----------------------------------------------------------------------------------------------------------------------
  33. | Table | Create Table
  34. +---------------+----------------------------------------------------------------------------------------------------------------------
  35. | ehvp_messages | CREATE TABLE `ehvp_messages` (
  36. `id` bigint(10) NOT NULL AUTO_INCREMENT,
  37. `useridfrom` bigint(10) NOT NULL,
  38. `conversationid` bigint(10) NOT NULL,
  39. `subject` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  40. `fullmessage` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  41. `fullmessageformat` tinyint(1) NOT NULL DEFAULT 0,
  42. `fullmessagehtml` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  43. `smallmessage` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  44. `timecreated` bigint(10) NOT NULL,
  45. `fullmessagetrust` tinyint(2) NOT NULL DEFAULT 0,
  46. `customdata` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  47. PRIMARY KEY (`id`),
  48. KEY `ehvp_mess_contim_ix` (`conversationid`,`timecreated`),
  49. KEY `ehvp_mess_use_ix` (`useridfrom`),
  50. KEY `ehvp_mess_con_ix` (`conversationid`)
  51. ) ENGINE=InnoDB AUTO_INCREMENT=5795 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=COMPRESSED COMMENT='Stores all messages' |
  52. +---------------+----------------------------------------------------------------------------------------------------------------------
  53.  
  54.  
  55. +-----------------------------------+--------------------------------------------------------------------------------------------------
  56. | Table | Create Table
  57. +-----------------------------------+--------------------------------------------------------------------------------------------------
  58. | ehvp_message_conversation_members | CREATE TABLE `ehvp_message_conversation_members` (
  59. `id` bigint(10) NOT NULL AUTO_INCREMENT,
  60. `conversationid` bigint(10) NOT NULL,
  61. `userid` bigint(10) NOT NULL,
  62. `timecreated` bigint(10) NOT NULL,
  63. PRIMARY KEY (`id`),
  64. KEY `ehvp_messconvmemb_con_ix` (`conversationid`),
  65. KEY `ehvp_messconvmemb_use_ix` (`userid`)
  66. ) ENGINE=InnoDB AUTO_INCREMENT=103180 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=COMPRESSED COMMENT='Stores all members in a conversations' |
  67. +-----------------------------------+--------------------------------------------------------------------------------------------------
  68.  
  69. +----------------------------+---------------------------------------------------------------------------------------------------------
  70. | Table | Create Table
  71. +----------------------------+---------------------------------------------------------------------------------------------------------
  72. | ehvp_message_conversations | CREATE TABLE `ehvp_message_conversations` (
  73. `id` bigint(10) NOT NULL AUTO_INCREMENT,
  74. `type` bigint(10) NOT NULL DEFAULT 1,
  75. `name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  76. `convhash` varchar(40) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  77. `component` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  78. `itemtype` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  79. `itemid` bigint(10) DEFAULT NULL,
  80. `contextid` bigint(10) DEFAULT NULL,
  81. `enabled` tinyint(1) NOT NULL DEFAULT 0,
  82. `timecreated` bigint(10) NOT NULL,
  83. `timemodified` bigint(10) DEFAULT NULL,
  84. PRIMARY KEY (`id`),
  85. KEY `ehvp_messconv_typ_ix` (`type`),
  86. KEY `ehvp_messconv_con_ix` (`convhash`),
  87. KEY `ehvp_messconv_comiteitecon_ix` (`component`,`itemtype`,`itemid`,`contextid`),
  88. KEY `ehvp_messconv_con2_ix` (`contextid`)
  89. ) ENGINE=InnoDB AUTO_INCREMENT=54205 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=COMPRESSED COMMENT='Stores all message conversations' |
  90. +----------------------------+---------------------------------------------------------------------------------------------------------
  91.  
  92.  
Advertisement
Add Comment
Please, Sign In to add comment