Skip to content
Snippets Groups Projects
Commit be5e4395 authored by Sven Kästle's avatar Sven Kästle
Browse files

refactor: Switch from simple body to new AnnotationBody

parent 9e7292db
No related branches found
No related tags found
No related merge requests found
...@@ -104,25 +104,21 @@ CREATE TABLE if not exists projectuser ...@@ -104,25 +104,21 @@ CREATE TABLE if not exists projectuser
ENGINE = InnoDB ENGINE = InnoDB
DEFAULT CHARSET = utf8;CREATE TABLE if not exists `annotations` ( DEFAULT CHARSET = utf8;
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 ON UPDATE CURRENT_TIMESTAMP,
`userToken` varchar(120) DEFAULT NULL,
`userId` int(11) DEFAULT NULL,
`targetId` int(11) DEFAULT NULL, `targetId` int(11) DEFAULT NULL,
`title` varchar(120) DEFAULT NULL,
`body` varchar(280) DEFAULT NULL, `comment` varchar(400) DEFAULT NULL,
`startCharacter` int(11) DEFAULT NULL, `startCharacter` int(11) DEFAULT NULL,
`endCharacter` 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
add isStudent tinyint(1) default '1' null; add isStudent tinyint(1) default '1' null;
CREATE TABLE if not exists quiz CREATE TABLE if not exists quiz
......
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