Fix data types for some things in database

This commit is contained in:
2025-08-27 01:03:57 -07:00
parent 7823652c5d
commit b79b2e54b8

View File

@@ -3,7 +3,7 @@
-- https://www.phpmyadmin.net/ -- https://www.phpmyadmin.net/
-- --
-- Host: 127.0.0.1:3306 -- Host: 127.0.0.1:3306
-- Generation Time: Aug 26, 2025 at 06:09 AM -- Generation Time: Aug 27, 2025 at 10:03 AM
-- Server version: 11.8.3-MariaDB-ubu2404 -- Server version: 11.8.3-MariaDB-ubu2404
-- PHP Version: 8.1.33 -- PHP Version: 8.1.33
@@ -31,7 +31,7 @@ CREATE TABLE `chatroom_reports` (
`id` int(11) NOT NULL, `id` int(11) NOT NULL,
`chatId` int(11) NOT NULL, `chatId` int(11) NOT NULL,
`userId` int(11) NOT NULL, `userId` int(11) NOT NULL,
`reason` text NOT NULL, `reason` longtext NOT NULL,
`timestamp` bigint(20) NOT NULL `timestamp` bigint(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=COMPRESSED; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=COMPRESSED;
@@ -44,7 +44,7 @@ CREATE TABLE `chatroom_reports` (
CREATE TABLE `chats` ( CREATE TABLE `chats` (
`id` int(11) NOT NULL, `id` int(11) NOT NULL,
`userId` int(11) NOT NULL, `userId` int(11) NOT NULL,
`content` text NOT NULL, `content` longtext NOT NULL,
`timestamp` bigint(20) NOT NULL, `timestamp` bigint(20) NOT NULL,
`deleted_at` bigint(1) NOT NULL DEFAULT 0 `deleted_at` bigint(1) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=COMPRESSED; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=COMPRESSED;
@@ -75,8 +75,8 @@ CREATE TABLE `marketplaceicons` (
`id` int(11) NOT NULL, `id` int(11) NOT NULL,
`uuid` text DEFAULT NULL, `uuid` text DEFAULT NULL,
`userId` int(11) NOT NULL, `userId` int(11) NOT NULL,
`data` text NOT NULL, `data` longtext NOT NULL,
`hash` text NOT NULL, `hash` varchar(128) NOT NULL,
`timestamp` bigint(20) NOT NULL, `timestamp` bigint(20) NOT NULL,
`state` tinyint(1) NOT NULL DEFAULT 0, `state` tinyint(1) NOT NULL DEFAULT 0,
`price` int(11) NOT NULL DEFAULT 0, `price` int(11) NOT NULL DEFAULT 0,
@@ -99,7 +99,7 @@ CREATE TABLE `users` (
`register_time` int(11) DEFAULT NULL, `register_time` int(11) DEFAULT NULL,
`banned` tinyint(1) NOT NULL DEFAULT 0, `banned` tinyint(1) NOT NULL DEFAULT 0,
`leaderboardsBanned` tinyint(1) NOT NULL DEFAULT 0, `leaderboardsBanned` tinyint(1) NOT NULL DEFAULT 0,
`save_data` text NOT NULL DEFAULT '{}' `save_data` longtext NOT NULL DEFAULT '\'{}\''
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=COMPRESSED; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=COMPRESSED;
-- --