CREATE TABLE IF NOT EXISTS `items_mptt` (
	`node_id` int(10) NOT NULL AUTO_INCREMENT,
	`item_id` int(10) DEFAULT NULL,
	`mptt_id` int(10) DEFAULT NULL,
	`parent_id` int(10) DEFAULT NULL,
	`pes` int(2) DEFAULT NULL,
	`lft` int(10) DEFAULT 0,
	`rgt` int(10) DEFAULT 0,
	PRIMARY KEY (`node_id`),
	KEY `idx_items_mptt_item_id` (`item_id`),
	KEY `idx_items_mptt_mptt_id` (`mptt_id`),
	KEY `idx_items_mptt_lft` (`lft`),
	KEY `idx_items_mptt_rgt` (`rgt`),
	KEY `idx_items_mptt_parent_id` (`parent_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;