published database structure
This commit is contained in:
parent
2ec2e2f6dc
commit
d8cb0d2c0a
3 changed files with 155 additions and 0 deletions
51
smz_messages_data.sql
Normal file
51
smz_messages_data.sql
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
-- phpMyAdmin SQL Dump
|
||||||
|
-- version 5.2.1
|
||||||
|
-- https://www.phpmyadmin.net/
|
||||||
|
--
|
||||||
|
-- Host: localhost
|
||||||
|
-- Erstellungszeit: 21. Apr 2025 um 16:36
|
||||||
|
-- Server-Version: 10.4.32-MariaDB
|
||||||
|
-- PHP-Version: 8.2.12
|
||||||
|
|
||||||
|
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||||
|
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 */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Datenbank: `dbs14118198`
|
||||||
|
--
|
||||||
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Tabellenstruktur für Tabelle `smz_messages_data`
|
||||||
|
--
|
||||||
|
|
||||||
|
CREATE TABLE `smz_messages_data` (
|
||||||
|
`message_id` varchar(13) NOT NULL,
|
||||||
|
`message_body` text NOT NULL,
|
||||||
|
`iv` text NOT NULL,
|
||||||
|
`internal_key` text NOT NULL,
|
||||||
|
`external_key` text NOT NULL
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Indizes der exportierten Tabellen
|
||||||
|
--
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Indizes für die Tabelle `smz_messages_data`
|
||||||
|
--
|
||||||
|
ALTER TABLE `smz_messages_data`
|
||||||
|
ADD PRIMARY KEY (`message_id`);
|
||||||
|
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 */;
|
52
smz_messages_metadata.sql
Normal file
52
smz_messages_metadata.sql
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
-- phpMyAdmin SQL Dump
|
||||||
|
-- version 5.2.1
|
||||||
|
-- https://www.phpmyadmin.net/
|
||||||
|
--
|
||||||
|
-- Host: localhost
|
||||||
|
-- Erstellungszeit: 21. Apr 2025 um 16:35
|
||||||
|
-- Server-Version: 10.4.32-MariaDB
|
||||||
|
-- PHP-Version: 8.2.12
|
||||||
|
|
||||||
|
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||||
|
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 */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Datenbank: `dbs14118198`
|
||||||
|
--
|
||||||
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Tabellenstruktur für Tabelle `smz_messages_metadata`
|
||||||
|
--
|
||||||
|
|
||||||
|
CREATE TABLE `smz_messages_metadata` (
|
||||||
|
`message` varchar(13) NOT NULL,
|
||||||
|
`datetime` datetime NOT NULL DEFAULT current_timestamp(),
|
||||||
|
`sender` varchar(128) NOT NULL,
|
||||||
|
`receiver` varchar(128) NOT NULL,
|
||||||
|
`sender_info` text NOT NULL,
|
||||||
|
`color` varchar(16) DEFAULT NULL
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Indizes der exportierten Tabellen
|
||||||
|
--
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Indizes für die Tabelle `smz_messages_metadata`
|
||||||
|
--
|
||||||
|
ALTER TABLE `smz_messages_metadata`
|
||||||
|
ADD PRIMARY KEY (`message`);
|
||||||
|
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 */;
|
52
smz_messages_users.sql
Normal file
52
smz_messages_users.sql
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
-- phpMyAdmin SQL Dump
|
||||||
|
-- version 5.2.1
|
||||||
|
-- https://www.phpmyadmin.net/
|
||||||
|
--
|
||||||
|
-- Host: localhost
|
||||||
|
-- Erstellungszeit: 21. Apr 2025 um 16:35
|
||||||
|
-- Server-Version: 10.4.32-MariaDB
|
||||||
|
-- PHP-Version: 8.2.12
|
||||||
|
|
||||||
|
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||||
|
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 */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Datenbank: `dbs14118198`
|
||||||
|
--
|
||||||
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Tabellenstruktur für Tabelle `smz_messages_users`
|
||||||
|
--
|
||||||
|
|
||||||
|
CREATE TABLE `smz_messages_users` (
|
||||||
|
`uid` varchar(128) NOT NULL,
|
||||||
|
`username` tinytext NOT NULL,
|
||||||
|
`publicKey` text NOT NULL,
|
||||||
|
`privateKey` text NOT NULL,
|
||||||
|
`iv` varchar(128) NOT NULL,
|
||||||
|
`init_date` timestamp NOT NULL DEFAULT current_timestamp()
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Indizes der exportierten Tabellen
|
||||||
|
--
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Indizes für die Tabelle `smz_messages_users`
|
||||||
|
--
|
||||||
|
ALTER TABLE `smz_messages_users`
|
||||||
|
ADD PRIMARY KEY (`uid`);
|
||||||
|
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 */;
|
Loading…
Add table
Reference in a new issue