mirror of
https://github.com/usememos/memos.git
synced 2024-11-15 19:26:54 +08:00
95939ebcf1
fix incorrect naming of migration file
9 lines
266 B
SQL
9 lines
266 B
SQL
-- reaction
|
|
CREATE TABLE reaction (
|
|
id SERIAL PRIMARY KEY,
|
|
created_ts BIGINT NOT NULL DEFAULT EXTRACT(EPOCH FROM NOW()),
|
|
creator_id INTEGER NOT NULL,
|
|
content_id TEXT NOT NULL,
|
|
reaction_type TEXT NOT NULL,
|
|
UNIQUE(creator_id, content_id, reaction_type)
|
|
);
|