2015-02-04 10:46:36 +01:00
|
|
|
# Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+
|
2015-02-03 16:27:59 +01:00
|
|
|
|
2014-10-20 15:37:50 +02:00
|
|
|
CREATE TABLE `icingaweb_group`(
|
|
|
|
`name` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
|
|
|
|
`parent` varchar(64) COLLATE utf8_unicode_ci NULL DEFAULT NULL,
|
|
|
|
`ctime` timestamp NULL DEFAULT NULL,
|
|
|
|
`mtime` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
|
|
|
|
PRIMARY KEY (`name`)
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
|
|
|
|
CREATE TABLE `icingaweb_group_membership`(
|
|
|
|
`group_name` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
|
|
|
|
`username` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
|
|
|
|
`ctime` timestamp NULL DEFAULT NULL,
|
|
|
|
`mtime` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
|
2014-10-20 16:32:31 +02:00
|
|
|
PRIMARY KEY (`group_name`,`username`),
|
|
|
|
CONSTRAINT `fk_icingaweb_group_membership_icingaweb_group` FOREIGN KEY (`group_name`)
|
|
|
|
REFERENCES `icingaweb_group` (`name`)
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
|
|
|
|
CREATE TABLE `icingaweb_user`(
|
|
|
|
`name` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
|
|
|
|
`active` tinyint(1) NOT NULL,
|
|
|
|
`password_hash` varbinary(255) NOT NULL,
|
|
|
|
`ctime` timestamp NULL DEFAULT NULL,
|
|
|
|
`mtime` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
|
|
|
|
PRIMARY KEY (`name`)
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
|
|
|
|
CREATE TABLE `icingaweb_user_preference`(
|
|
|
|
`username` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
|
2014-11-12 10:49:46 +01:00
|
|
|
`section` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
|
2014-10-20 16:32:31 +02:00
|
|
|
`name` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
|
|
|
|
`value` varchar(255) NOT NULL,
|
|
|
|
`ctime` timestamp NULL DEFAULT NULL,
|
|
|
|
`mtime` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
|
2014-11-12 10:49:46 +01:00
|
|
|
PRIMARY KEY (`username`,`section`,`name`)
|
2014-10-20 15:37:50 +02:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|