INSERT INTO `module` (`module_id`, `is_configurable`, `name`, `title`, `description`, `admin_uri`, `icon`, `maintainers`, `version`, `license`, `state`) VALUES ({SGL_NEXT_ID}, 1, 'stereomicroscope', 'StereoMicroscope', 'Generated by ModuleGenerationMgr', '', '48/module_default.png', 'Alouicious Bird', NULL, 'NULL', 'NULL');

SELECT @moduleId := MAX(module_id) FROM module;

INSERT INTO permission VALUES ({SGL_NEXT_ID}, 'adminstereomicroscopemgr', '', @moduleId);
INSERT INTO permission VALUES ({SGL_NEXT_ID}, 'adminstereomicroscopemgr_cmd_view', '', @moduleId);
INSERT INTO permission VALUES ({SGL_NEXT_ID}, 'adminstereomicroscopemgr_cmd_addview', '', @moduleId);
INSERT INTO permission VALUES ({SGL_NEXT_ID}, 'adminstereomicroscopemgr_cmd_add', '', @moduleId);
INSERT INTO permission VALUES ({SGL_NEXT_ID}, 'adminstereomicroscopemgr_cmd_editview', '', @moduleId);
INSERT INTO permission VALUES ({SGL_NEXT_ID}, 'adminstereomicroscopemgr_cmd_edit', '', @moduleId);
INSERT INTO permission VALUES ({SGL_NEXT_ID}, 'adminstereomicroscopemgr_cmd_delete', '', @moduleId);

INSERT INTO permission VALUES ({SGL_NEXT_ID}, 'adminstereomicroscopetypemgr', '', @moduleId);
INSERT INTO permission VALUES ({SGL_NEXT_ID}, 'adminstereomicroscopetypemgr_cmd_view', '', @moduleId);
INSERT INTO permission VALUES ({SGL_NEXT_ID}, 'adminstereomicroscopetypemgr_cmd_addview', '', @moduleId);
INSERT INTO permission VALUES ({SGL_NEXT_ID}, 'adminstereomicroscopetypemgr_cmd_add', '', @moduleId);
INSERT INTO permission VALUES ({SGL_NEXT_ID}, 'adminstereomicroscopetypemgr_cmd_editview', '', @moduleId);
INSERT INTO permission VALUES ({SGL_NEXT_ID}, 'adminstereomicroscopetypemgr_cmd_edit', '', @moduleId);
INSERT INTO permission VALUES ({SGL_NEXT_ID}, 'adminstereomicroscopetypemgr_cmd_delete', '', @moduleId);

INSERT INTO permission VALUES ({SGL_NEXT_ID}, 'stereomicroscopeViewmgr', '', @moduleId);
INSERT INTO permission VALUES ({SGL_NEXT_ID}, 'stereomicroscopeViewmgr_cmd_viewarticle', '', @moduleId);
INSERT INTO permission VALUES ({SGL_NEXT_ID}, 'stereomicroscopeViewmgr_cmd_viewarticletype', '', @moduleId);
INSERT INTO permission VALUES ({SGL_NEXT_ID}, 'stereomicroscopeViewmgr_cmd_viewarticlealltype', '', @moduleId);
