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

feat: Add sql statement to create annotations table

parent a8707245
No related branches found
No related tags found
No related merge requests found
...@@ -35,7 +35,18 @@ CREATE TABLE projectuser ...@@ -35,7 +35,18 @@ CREATE TABLE projectuser
( (
projectId varchar(400) NOT NULL, projectId varchar(400) NOT NULL,
userId varchar(400) NOT NULL userId varchar(400) NOT NULL
); ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `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,
PRIMARY KEY (`id`)
) 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;
......
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