DROP TABLE IF EXISTS `#@_menu`;
CREATE TABLE `#@_menu` (
  `id` smallint(4) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `_parentId` smallint(4) NOT NULL DEFAULT '0' COMMENT '上级ID',
  `deep` tinyint(1) NOT NULL DEFAULT '0' COMMENT '深度',
  `code` char(20) NOT NULL DEFAULT '' COMMENT '识别码',
  `text` char(35) NOT NULL DEFAULT '' COMMENT '名称',
  `url` varchar(100) NOT NULL DEFAULT '' COMMENT '连接',
  `iconCls` char(50) DEFAULT NULL COMMENT '标题图片',
  `status` tinyint(1) NOT NULL DEFAULT '1',
  `state` char(6) NOT NULL DEFAULT 'open' COMMENT '状态',
  `mode` tinyint(1) NOT NULL DEFAULT '1',
  `type` char(5) NOT NULL DEFAULT '' COMMENT '类型',
  `level` char(15) NOT NULL DEFAULT '10' COMMENT '权限',
  `view` text NOT NULL COMMENT '开放用户',
  `sort` smallint(4) NOT NULL DEFAULT '50' COMMENT '排序',
  PRIMARY KEY (`id`),
  KEY `code` (`code`),
  KEY `mode` (`mode`),
  KEY `states` (`state`,`status`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='菜单';
REPLACE INTO `#@_menu` VALUES ('1','0','0','','系统管理','','icon-setting','1','open','1','>=','999','','99');
REPLACE INTO `#@_menu` VALUES ('2','1','1','','基础设置','','','1','open','1','>=','999','','1');
REPLACE INTO `#@_menu` VALUES ('3','2','2','User','用户管理','/index.php?&m=user&a=index','','1','open','1','>=','999','','2');
REPLACE INTO `#@_menu` VALUES ('4','1','1','','系统设置','','','1','open','1','>=','999','','2');
REPLACE INTO `#@_menu` VALUES ('5','2','2','Group','角色管理','/index.php?&m=group&a=index','','1','open','1','>=','999','','3');
REPLACE INTO `#@_menu` VALUES ('6','2','2','Comy','公司管理','/index.php?&m=comy&a=index','','1','open','1','>=','999','','4');
REPLACE INTO `#@_menu` VALUES ('7','2','2','Linkage','联动管理','/index.php?&m=linkage&a=index','','1','open','1','>=','999','','7');
REPLACE INTO `#@_menu` VALUES ('8','2','2','Part','部门管理','/index.php?&m=part&a=index','','1','open','1','>=','999','','6');
REPLACE INTO `#@_menu` VALUES ('9','4','2','Setting','参数设置','/index.php?&m=setting&a=index','','1','open','1','>=','999','','1');
REPLACE INTO `#@_menu` VALUES ('10','4','2','Menu','菜单设置','/index.php?&m=menu&a=index','','1','open','1','>=','9999','','2');
REPLACE INTO `#@_menu` VALUES ('11','1','1','','系统工具','','','1','open','1','>=','9999','','3');
REPLACE INTO `#@_menu` VALUES ('12','11','2','Backup','数据备份','/index.php?&m=backup&a=index','','1','open','1','>=','9999','','1');
