mirror of
https://github.com/jlelse/GoBlog
synced 2024-07-02 03:17:34 +00:00
7 lines
224 B
MySQL
7 lines
224 B
MySQL
|
create table reactions (
|
||
|
path text not null,
|
||
|
reaction text not null,
|
||
|
count integer default 0,
|
||
|
primary key (path, reaction),
|
||
|
foreign key (path) references posts(path) on update cascade on delete cascade
|
||
|
);
|