mirror of
https://github.com/usememos/memos.git
synced 2024-11-18 04:34:19 +08:00
5121e9f954
Move migration and seed code into driver
7 lines
No EOL
175 B
SQL
7 lines
No EOL
175 B
SQL
-- 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)
|
|
); |