diff --git a/gemeinsamforschen/src/scripts/dbschema/fltrail.sql b/gemeinsamforschen/src/scripts/dbschema/fltrail.sql index 99abfe1144640d485347d68b4ba1b5624b41d1bb..28f6d3080403bec40088fd1440913b88c6b2610c 100644 --- a/gemeinsamforschen/src/scripts/dbschema/fltrail.sql +++ b/gemeinsamforschen/src/scripts/dbschema/fltrail.sql @@ -108,28 +108,18 @@ CREATE TABLE if not exists projectuser ENGINE = InnoDB DEFAULT CHARSET = utf8; -CREATE TABLE if not exists `annotations` ( - - `id` varchar(120) NOT NULL, - - `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP - ON UPDATE CURRENT_TIMESTAMP, - - `userId` int(11) DEFAULT NULL, - - `targetId` int(11) DEFAULT NULL, - - `body` varchar(280) DEFAULT NULL, - - `startCharacter` int(11) DEFAULT NULL, - - `endCharacter` int(11) DEFAULT NULL, +CREATE TABLE if not exists `annotations` ( + `id` varchar(120) NOT NULL, + `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + `userToken` varchar(120) DEFAULT NULL, + `targetId` int(11) DEFAULT NULL, + `title` varchar(120) DEFAULT NULL, + `comment` varchar(400) DEFAULT NULL, + `startCharacter` int(11) DEFAULT NULL, + `endCharacter` int(11) DEFAULT NULL, PRIMARY KEY (`id`) - -) - ENGINE = InnoDB - DEFAULT CHARSET = utf8; +) ENGINE=InnoDB DEFAULT CHARSET=utf8; alter table users