mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-24 14:11:29 +00:00
Allow comment fetching and receiving
This commit is contained in:
parent
897f709288
commit
44194a05ac
5 changed files with 104 additions and 4 deletions
21
DatabaseMigrations/3.sql
Normal file
21
DatabaseMigrations/3.sql
Normal 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;
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue