8 lines
260 B
MySQL
8 lines
260 B
MySQL
|
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")
|
||
|
);
|