mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-23 18:15:03 +02:00
12 lines
317 B
SQL
12 lines
317 B
SQL
CREATE TABLE IF NOT EXISTS reaction
|
|
(
|
|
message_id INT8 NOT NULL,
|
|
reaction INTEGER NOT NULL,
|
|
creator VARCHAR(255) NOT NULL,
|
|
created TIMESTAMP NOT NULL,
|
|
|
|
PRIMARY KEY (message_id, creator, reaction)
|
|
);
|
|
|
|
CREATE INDEX IF NOT EXISTS reaction_message_idx ON reaction (message_id);
|