Create TABLE catalog (
 id_photo INT(11) NOT null auto_increment,
name TINYTEXT NOT NULL,
description TINYTEXT NOT NULL,
pos SMALLINT(3) NOT NULL default '0',
hide ENUM('show','hide') NOT NULL DEFAULT 'show',
id_parent INT(11) NOT NULL DEFAULT '0',
PRIMARY KEY (id_catalog)
KEY id_parent (id_parent)
) TYPE=MyISAM;