SQL File Encrypted Messenger PHP
SQL File
Encrypted Messenger PHP
Create a file named encrypted-messenger.sql
Import the file into your database
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
-- --------------------------------------------------------
--
-- Table structure for table `pms`
--
CREATE TABLE `pms` (
`id` bigint(20) UNSIGNED NOT NULL,
`sender` varchar(3000) CHARACTER SET utf8 NOT NULL,
`taker` varchar(3000) CHARACTER SET utf8 NOT NULL,
`subject` varchar(3000) CHARACTER SET utf8 NOT NULL,
`text` varchar(3000) CHARACTER SET utf8 NOT NULL,
`time` varchar(777) CHARACTER SET utf8 NOT NULL,
`xsender` varchar(3000) CHARACTER SET utf8 NOT NULL,
`xtaker` varchar(3000) CHARACTER SET utf8 NOT NULL,
`delete_sender` tinyint(1) NOT NULL,
`delete_taker` tinyint(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` bigint(20) UNSIGNED NOT NULL,
`user` varchar(3000) CHARACTER SET utf8 NOT NULL,
`pass` varchar(3000) CHARACTER SET utf8 NOT NULL,
`email` varchar(3000) CHARACTER SET utf8 NOT NULL,
`xuser` varchar(3000) CHARACTER SET utf8 NOT NULL,
`pass1` varchar(3000) CHARACTER SET utf8 NOT NULL,
`pass2` varchar(3000) CHARACTER SET utf8 NOT NULL,
`pass3` varchar(3000) CHARACTER SET utf8 NOT NULL,
`time` varchar(777) CHARACTER SET utf8 NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `pms`
--
ALTER TABLE `pms`
ADD PRIMARY KEY (`id`),
ADD KEY `sender` (`sender`(255)),
ADD KEY `taker` (`taker`(255)),
ADD KEY `id` (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD KEY `user` (`user`(255)),
ADD KEY `pass` (`pass`(255));
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `pms`
--
ALTER TABLE `pms`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Full structure is available at Encrypted Messenger PHP