BrainMinder/assets/migrations/000008_create_bm_item_relations_table.up.sql
2024-08-22 10:13:16 +02:00

8 lines
260 B
SQL

CREATE TABLE "bm_item_relations" (
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
"item_id" INTEGER NOT NULL,
"related_item_id" INTEGER NOT NULL,
"active" INTEGER NOT NULL DEFAULT 1,
"relation_type" TEXT DEFAULT '',
UNIQUE("item_id","related_item_id")
);