mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-30 11:49:42 +02:00
12 lines
331 B
SQL
12 lines
331 B
SQL
CREATE TABLE IF NOT EXISTS reaction
|
|
(
|
|
message_id INT8 NOT NULL,
|
|
reaction INTEGER NOT NULL,
|
|
creator VARCHAR(255) NOT NULL,
|
|
created TIMESTAMPTZ NOT NULL DEFAULT now(),
|
|
|
|
PRIMARY KEY (message_id, creator, reaction)
|
|
);
|
|
|
|
CREATE INDEX IF NOT EXISTS reaction_message_idx ON reaction (message_id);
|