From b235cb9a1580ad4ec2324c365b2f61868ac171e5 Mon Sep 17 00:00:00 2001 From: Axel <wiepke@uni-potsdam.de> Date: Tue, 20 Mar 2018 12:45:50 +0100 Subject: [PATCH] dbscheme is added --- dbschema/fltrail(1).sql | 43 +++++++++++++++++++++++++++++++++ studentview/.idea/workspace.xml | 6 ++--- 2 files changed, 46 insertions(+), 3 deletions(-) create mode 100644 dbschema/fltrail(1).sql diff --git a/dbschema/fltrail(1).sql b/dbschema/fltrail(1).sql new file mode 100644 index 00000000..cc3cb5e1 --- /dev/null +++ b/dbschema/fltrail(1).sql @@ -0,0 +1,43 @@ +SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; +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 */; + +CREATE DATABASE IF NOT EXISTS `fltrail` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; +USE `fltrail`; + +CREATE TABLE `projects` ( + `id` varchar(400) NOT NULL, + `password` varchar(400) NOT NULL, + `activ` tinyint(1) NOT NULL, + `timecreated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + `author` varchar(400) NOT NULL, + `adminpassword` varchar(400) NOT NULL, + `token` varchar(400) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +CREATE TABLE `tags` ( + `projectId` varchar(400) NOT NULL, + `tag` varchar(400) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +CREATE TABLE `users` ( + `name` varchar(400) NOT NULL, + `password` varchar(200) NOT NULL, + `email` varchar(400) NOT NULL, + `token` varchar(800) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +INSERT INTO `users` (`name`, `password`, `email`, `token`) VALUES +('Axel Wiepke', 'password', 'wiepke@uni.de', '5ab0f28f75d23'); + + +ALTER TABLE `users` + ADD UNIQUE KEY `password` (`password`); + +/*!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 */; diff --git a/studentview/.idea/workspace.xml b/studentview/.idea/workspace.xml index 1448f04b..53ce0c3f 100644 --- a/studentview/.idea/workspace.xml +++ b/studentview/.idea/workspace.xml @@ -508,15 +508,15 @@ <workItem from="1521190416377" duration="1355000" /> <workItem from="1521440534915" duration="760000" /> <workItem from="1521447873243" duration="9916000" /> - <workItem from="1521528114036" duration="10928000" /> + <workItem from="1521528114036" duration="11345000" /> </task> <servers /> </component> <component name="TimeTrackingManager"> - <option name="totallyTimeSpent" value="137543000" /> + <option name="totallyTimeSpent" value="137960000" /> </component> <component name="ToolWindowManager"> - <frame x="-359" y="-1449" width="2578" height="1458" extended-state="7" /> + <frame x="-359" y="-1449" width="2578" height="1458" extended-state="6" /> <editor active="true" /> <layout> <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.19765624" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" /> -- GitLab