CREATE TABLE `editor` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) NOT NULL,
  `url` varchar(255) NOT NULL,
  `is_default` tinyint(1) NOT NULL,
  `is_default_gui_type` tinyint(1) NOT NULL,
  `auth_hash_url` varchar(255) NOT NULL,
  `auth_redirect_url` varchar(255) NOT NULL,
  `auth_login_url` varchar(255) NOT NULL,
  `auth_user_id` int(11) NOT NULL,
  `auth_is_hide_my_object` tinyint(1) NOT NULL,
  `auth_is_force_log_in` tinyint(1) NOT NULL,
  `gui_id` tinyint(2) NOT NULL DEFAULT '1' COMMENT '1 - Advanced, 2 - Customizer, 3 - Webshop',
  `gui_is_header` tinyint(1) NOT NULL,
  `gui_is_powered` tinyint(1) NOT NULL,
  `gui_is_view_cube` tinyint(1) NOT NULL,
  `background_bgMode` enum('color','texture','skybox') DEFAULT NULL,
  `background_backgroundColor` text CHARACTER SET utf8 NOT NULL,
  `background_backgroundTex` text CHARACTER SET utf8 NOT NULL,
  `background_skyboxTex` text CHARACTER SET utf8 NOT NULL,
  `background_ground` tinyint(4) NOT NULL,
  `background_fixedPlaneRot` tinyint(4) NOT NULL,
  `background_is_default` tinyint(1) NOT NULL,
  `essi_is_export_obj` tinyint(1) NOT NULL,
  `essi_is_export_stl` tinyint(1) NOT NULL,
  `essi_is_share` tinyint(1) NOT NULL,
  `essi_is_save` tinyint(1) NOT NULL,
  `essi_is_import` tinyint(1) NOT NULL,
  `essi_is_print` tinyint(1) NOT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1