Early version of multiplayer
This commit is contained in:
2 files changed
+353
-9
No files matched your search
@@ -3,7 +3,7 @@
|
||||
-- https://www.phpmyadmin.net/
|
||||
--
|
||||
-- Host: localhost
|
||||
-- Generation Time: Feb 21, 2026 at 09:07 PM
|
||||
-- Generation Time: Mar 05, 2026 at 05:31 AM
|
||||
-- Server version: 11.8.6-MariaDB-log
|
||||
-- PHP Version: 8.5.3
|
||||
|
||||
@@ -70,6 +70,20 @@ CREATE TABLE `marketplaceicons` (
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `multiplayer_player_joins_and_leaves`
|
||||
--
|
||||
|
||||
CREATE TABLE `multiplayer_player_joins_and_leaves` (
|
||||
`id` bigint(20) NOT NULL,
|
||||
`wsId` varchar(32) NOT NULL,
|
||||
`pubId` varchar(32) NOT NULL,
|
||||
`type` enum('Join','Leave') NOT NULL,
|
||||
`timestamp` bigint(20) NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=COMPRESSED;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `splashtexts`
|
||||
--
|
||||
@@ -119,7 +133,7 @@ CREATE TABLE `userposts` (
|
||||
--
|
||||
ALTER TABLE `chatroom_reports`
|
||||
ADD PRIMARY KEY (`id`),
|
||||
ADD KEY `chatId` (`chatId`);
|
||||
ADD KEY `chatroom_reports?chatId` (`chatId`);
|
||||
|
||||
--
|
||||
-- Indexes for table `chats`
|
||||
@@ -133,6 +147,12 @@ ALTER TABLE `chats`
|
||||
ALTER TABLE `marketplaceicons`
|
||||
ADD PRIMARY KEY (`place`);
|
||||
|
||||
--
|
||||
-- Indexes for table `multiplayer_player_joins_and_leaves`
|
||||
--
|
||||
ALTER TABLE `multiplayer_player_joins_and_leaves`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
--
|
||||
-- Indexes for table `splashtexts`
|
||||
--
|
||||
@@ -173,6 +193,12 @@ ALTER TABLE `chats`
|
||||
ALTER TABLE `marketplaceicons`
|
||||
MODIFY `place` bigint(20) NOT NULL AUTO_INCREMENT;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `multiplayer_player_joins_and_leaves`
|
||||
--
|
||||
ALTER TABLE `multiplayer_player_joins_and_leaves`
|
||||
MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `splashtexts`
|
||||
--
|
||||
@@ -199,7 +225,7 @@ ALTER TABLE `userposts`
|
||||
-- Constraints for table `chatroom_reports`
|
||||
--
|
||||
ALTER TABLE `chatroom_reports`
|
||||
ADD CONSTRAINT `chatId` FOREIGN KEY (`chatId`) REFERENCES `chats` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
ADD CONSTRAINT `chatroom_reports?chatId` FOREIGN KEY (`chatId`) REFERENCES `chats` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
COMMIT;
|
||||
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
|
||||
Reference in new issue
Block a user