CREATE TABLE items_mptt (
	node_id		serial,
	item_id		integer DEFAULT NULL,
	mptt_id		integer DEFAULT NULL,
	parent_id	integer DEFAULT NULL,
	pes			integer,
	lft			integer
	rgt			integer,
	CONSTRAINT	items_mptt_node_id_pkey PRIMARY KEY (node_id)
);
CREATE INDEX idx_items_mptt_mptt_id ON items_mptt (mptt_id);
CREATE INDEX idx_items_mptt_item_id ON items_mptt (item_id);
