Skip to content
Snippets Groups Projects
Commit 94a569cf authored by Martin Stähr's avatar Martin Stähr
Browse files

#40 fix: dummmy user creation

parent c1ac569c
No related branches found
No related tags found
No related merge requests found
drop TABLE `users`; drop TABLE `users`;
CREATE TABLE `users` ( CREATE TABLE if not exists `users` (
`name` varchar(400) NOT NULL, `name` varchar(100) NOT NULL,
`password` varchar(200) NOT NULL, `password` varchar(200) NOT NULL,
`email` varchar(400) NOT NULL, `email` varchar(255) NOT NULL,
`token` varchar(800) NOT NULL `token` varchar(800) NOT NULL,
) ENGINE=InnoDB DEFAULT CHARSET=utf8; `rocketChatId` varchar(400) NOT NULL,
`rocketChatAuthToken` varchar(800) NOT NULL,
UNIQUE (email)
)ENGINE = InnoDB DEFAULT CHARSET = utf8;
INSERT INTO `users` (`name`, `password`, `email`, `token`) VALUES
('teststudent1', 'egal', 'test1@uni.de', 'test1');
INSERT INTO `users` (`name`, `password`, `email`, `token`) VALUES INSERT INTO `users` (`name`, `password`, `email`, `token`, `rocketChatId`, `rocketChatAuthToken`) VALUES
('teststudent1', 'egal', 'test1@uni.de', 'test1'); ('teststudent1', 'egal', 'test1@uni.de', 'test1','1','abc');
INSERT INTO `users` (`name`, `password`, `email`, `token`) VALUES INSERT INTO `users` (`name`, `password`, `email`, `token`, `rocketChatId`, `rocketChatAuthToken`) VALUES
('teststudent2', 'egal', 'test2@uni.de', 'test2'); ('teststudent1', 'egal', 'test2@uni.de', 'test1','1','abc');
INSERT INTO `users` (`name`, `password`, `email`, `token`) VALUES INSERT INTO `users` (`name`, `password`, `email`, `token`, `rocketChatId`, `rocketChatAuthToken`) VALUES
('teststudent3', 'egal', 'test3@uni.de', 'test3'); ('teststudent1', 'egal', 'test3@uni.de', 'test1','1','abc');
INSERT INTO `users` (`name`, `password`, `email`, `token`) VALUES INSERT INTO `users` (`name`, `password`, `email`, `token`, `rocketChatId`, `rocketChatAuthToken`) VALUES
('teststudent4', 'egal', 'test4@uni.de', 'test4'); ('teststudent1', 'egal', 'test4@uni.de', 'test1','1','abc');
\ No newline at end of file
INSERT INTO `users` (`name`, `password`, `email`, `token`) VALUES
('teststudent5', 'egal', 'test5@uni.de', 'test5');
INSERT INTO `users` (`name`, `password`, `email`, `token`) VALUES
('teststudent6', 'egal', 'test6@uni.de', 'test6');
INSERT INTO `users` (`name`, `password`, `email`, `token`) VALUES
('teststudent7', 'egal', 'test7@uni.de', 'test7');
...@@ -74,25 +74,16 @@ CREATE TABLE if not exists `tags` ( ...@@ -74,25 +74,16 @@ CREATE TABLE if not exists `tags` (
DEFAULT CHARSET = utf8; DEFAULT CHARSET = utf8;
CREATE TABLE if not exists `users` ( CREATE TABLE if not exists `users` (
`name` varchar(100) NOT NULL, `name` varchar(100) NOT NULL,
`password` varchar(200) NOT NULL, `password` varchar(200) NOT NULL,
`email` varchar(255) NOT NULL, `email` varchar(255) NOT NULL,
`token` varchar(800) NOT NULL, `token` varchar(800) NOT NULL,
`rocketChatId` varchar(400) NOT NULL, `rocketChatId` varchar(400) NOT NULL,
`rocketChatAuthToken` varchar(800) NOT NULL, `rocketChatAuthToken` varchar(800) NOT NULL,
UNIQUE (email) UNIQUE (email)
) )
ENGINE = InnoDB ENGINE = InnoDB
DEFAULT CHARSET = utf8; DEFAULT CHARSET = utf8;
CREATE TABLE if not exists projectuser CREATE TABLE if not exists projectuser
...@@ -110,16 +101,19 @@ CREATE TABLE if not exists projectuser ...@@ -110,16 +101,19 @@ CREATE TABLE if not exists projectuser
DEFAULT CHARSET = utf8; DEFAULT CHARSET = utf8;
CREATE TABLE if not exists `annotations` ( CREATE TABLE if not exists `annotations` (
`id` varchar(120) NOT NULL, `id` varchar(120) NOT NULL,
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
`userToken` varchar(120) DEFAULT NULL, ON UPDATE CURRENT_TIMESTAMP,
`targetId` int(11) DEFAULT NULL, `userToken` varchar(120) DEFAULT NULL,
`title` varchar(120) DEFAULT NULL, `targetId` int(11) DEFAULT NULL,
`comment` varchar(400) DEFAULT NULL, `title` varchar(120) DEFAULT NULL,
`startCharacter` int(11) DEFAULT NULL, `comment` varchar(400) DEFAULT NULL,
`endCharacter` int(11) DEFAULT NULL, `startCharacter` int(11) DEFAULT NULL,
`endCharacter` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8; )
ENGINE = InnoDB
DEFAULT CHARSET = utf8;
alter table users alter table users
...@@ -164,29 +158,29 @@ CREATE TABLE if not exists tasks ...@@ -164,29 +158,29 @@ CREATE TABLE if not exists tasks
CREATE TABLE if not exists phasesSelected ( CREATE TABLE if not exists phasesSelected (
`projectId` varchar(100) NOT NULL, `projectId` varchar(100) NOT NULL,
phaseSelected varchar(200) NOT NULL phaseSelected varchar(200) NOT NULL
) )
ENGINE = InnoDB ENGINE = InnoDB
DEFAULT CHARSET = utf8; DEFAULT CHARSET = utf8;
CREATE TABLE if not exists categoriesSelected ( CREATE TABLE if not exists categoriesSelected (
`projectId` varchar(100) NOT NULL, `projectId` varchar(100) NOT NULL,
categorySelected varchar(200) NOT NULL categorySelected varchar(200) NOT NULL
) )
ENGINE = InnoDB ENGINE = InnoDB
DEFAULT CHARSET = utf8; DEFAULT CHARSET = utf8;
CREATE TABLE if not exists groupfindingMechanismSelected ( CREATE TABLE if not exists groupfindingMechanismSelected (
`projectId` varchar(100) NOT NULL, `projectId` varchar(100) NOT NULL,
gfmSelected varchar(200) NOT NULL gfmSelected varchar(200) NOT NULL
) )
ENGINE = InnoDB ENGINE = InnoDB
DEFAULT CHARSET = utf8; DEFAULT CHARSET = utf8;
CREATE TABLE if not exists assessmentMechanismSelected ( CREATE TABLE if not exists assessmentMechanismSelected (
`projectId` varchar(100) NOT NULL, `projectId` varchar(100) NOT NULL,
amSelected varchar(200) NOT NULL amSelected varchar(200) NOT NULL
) )
ENGINE = InnoDB ENGINE = InnoDB
DEFAULT CHARSET = utf8; DEFAULT CHARSET = utf8;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment