Skip to content

Commit 31f8d13

Browse files
committed
reactions sql change
1 parent 312b750 commit 31f8d13

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/db_schema.sql

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@ CREATE TABLE IF NOT EXISTS `messages` (
2525
PRIMARY KEY (`chat`,`message`)
2626
);
2727

28+
CREATE TABLE IF NOT EXISTS `reactions` (
29+
`chat` bigint NOT NULL,
30+
`message` int NOT NULL,
31+
`user` bigint NOT NULL,
32+
`executor` bigint NOT NULL,
33+
`isspam` int NOT NULL,
34+
`username` varchar(64) NOT NULL,
35+
PRIMARY KEY (`chat`,`user`)
36+
);
37+
2838
CREATE TABLE IF NOT EXISTS `users` (
2939
`id` bigint NOT NULL,
3040
`appearance` bigint NOT NULL,

0 commit comments

Comments
 (0)