CREATE TABLE `app_template_object` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `object_id` bigint(20) NOT NULL,
  `app_slug` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `objectname` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `app_template_id` int(11) DEFAULT NULL,
  `type` varchar(20) NOT NULL DEFAULT 'local',
  PRIMARY KEY (`id`),
  KEY `object_id` (`object_id`),
  KEY `app_template_id` (`app_template_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1