Allow comment fetching and receiving

This commit is contained in:
jvyden 2021-10-07 00:59:55 -04:00
parent 897f709288
commit 44194a05ac
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278
5 changed files with 104 additions and 4 deletions

21
DatabaseMigrations/3.sql Normal file
View file

@ -0,0 +1,21 @@
create table Comments
(
CommentId int,
PosterUserId int not null,
TargetUserId int not null,
Timestamp bigint not null,
ThumbsUp int default 0 not null,
ThumbsDown int default 0 not null,
Message longtext not null
);
create unique index Comments_CommentId_uindex
on Comments (CommentId);
alter table Comments
add constraint Comments_pk
primary key (CommentId);
alter table Comments
modify CommentId int auto_increment;