mirror of
https://github.com/usememos/memos.git
synced 2024-11-18 04:34:19 +08:00
7 lines
175 B
MySQL
7 lines
175 B
MySQL
|
-- memo_relation
|
||
|
CREATE TABLE memo_relation (
|
||
|
memo_id INTEGER NOT NULL,
|
||
|
related_memo_id INTEGER NOT NULL,
|
||
|
type TEXT NOT NULL,
|
||
|
UNIQUE(memo_id, related_memo_id, type)
|
||
|
);
|