From 0f9c0fdb1bd3eb9a1493a6e481ebf3f947f9c41b Mon Sep 17 00:00:00 2001 From: Mystikfluu Date: Thu, 1 Dec 2022 13:58:48 +0100 Subject: [PATCH] update create statements --- createSchema.sql | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/createSchema.sql b/createSchema.sql index 8ec54bb..4fa11bf 100644 --- a/createSchema.sql +++ b/createSchema.sql @@ -12,8 +12,6 @@ CREATE TABLE `users` ( `User_LastIP` varchar(45) NOT NULL DEFAULT 'None', `User_Bio` varchar(100) DEFAULT 'wow such empty', `User_Avatar` varchar(100) DEFAULT NULL, - `User_PublicKey` varchar(830) DEFAULT NULL, - `User_PrivateKey` text, `User_Settings` json NOT NULL, PRIMARY KEY (`User_ID`,`User_Name`), UNIQUE KEY `User_Name_UNIQUE` (`User_Name`) @@ -28,9 +26,13 @@ CREATE TABLE `posts` ( `post_time` bigint NOT NULL, `post_special_text` varchar(100) DEFAULT NULL, `post_receiver_name` varchar(100) DEFAULT NULL, - `post_is_private` tinyint DEFAULT '0', `post_from_bot` tinyint DEFAULT '0', `post_reply_id` bigint unsigned DEFAULT NULL, + `file_0` varchar(52) DEFAULT NULL, + `file_1` varchar(52) DEFAULT NULL, + `file_2` varchar(52) DEFAULT NULL, + `file_3` varchar(52) DEFAULT NULL, + `file_4` varchar(52) DEFAULT NULL, PRIMARY KEY (`post_id`) ); @@ -41,7 +43,6 @@ CREATE TABLE `dms` ( `dms_time` bigint NOT NULL, `dms_special_text` varchar(100) DEFAULT NULL, `dms_receiver` varchar(100) DEFAULT NULL, - `dms_is_encrypted` tinyint DEFAULT '0', `dms_from_bot` tinyint DEFAULT '0', `dms_reply_id` bigint unsigned DEFAULT NULL, PRIMARY KEY (`dms_id`)