CREATE TABLE `editor_background` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `model_mode_id` int(11) DEFAULT NULL,
  `name` text NOT NULL,
  `bgMode` enum('color','texture','skybox') DEFAULT NULL,
  `backgroundColor` text NOT NULL,
  `backgroundTex` text NOT NULL,
  `skyboxTex` text NOT NULL,
  `ground` tinyint(4) NOT NULL,
  `fixedPlaneRot` tinyint(4) NOT NULL,
  `is_default` tinyint(4) NOT NULL,
  `is_active` tinyint(4) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8