mirror of
https://github.com/usememos/memos.git
synced 2025-02-25 07:37:55 +01:00
10 lines
279 B
MySQL
10 lines
279 B
MySQL
|
-- reaction
|
||
|
CREATE TABLE reaction (
|
||
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||
|
created_ts BIGINT NOT NULL DEFAULT (strftime('%s', 'now')),
|
||
|
creator_id INTEGER NOT NULL,
|
||
|
content_id TEXT NOT NULL,
|
||
|
reaction_type TEXT NOT NULL,
|
||
|
UNIQUE(creator_id, content_id, reaction_type)
|
||
|
);
|