-
renater.salaun authored
17/12/14: It seems that multiple tokens can be sent to the same admin/SP pair and all of these tokens then can be used. git-svn-id: https://svn.geant.net/GEANT/edugain_testidp_account_manager/trunk@83 047e039d-479c-447e-8a29-aa6bf4a09bab
renater.salaun authored17/12/14: It seems that multiple tokens can be sent to the same admin/SP pair and all of these tokens then can be used. git-svn-id: https://svn.geant.net/GEANT/edugain_testidp_account_manager/trunk@83 047e039d-479c-447e-8a29-aa6bf4a09bab
create-manager-db.sql 1.16 KiB
--
-- Database: `idp_account_manager`
--
-- --------------------------------------------------------
CREATE TABLE `authenticationtokens` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`token` varchar(50) NOT NULL,
`email_address` varchar(200) NOT NULL,
`sp_entityid` varchar(200) NOT NULL,
`creation_date` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `token_2` (`token`),
KEY `token` (`token`),
CONSTRAINT token_email_entity UNIQUE (email_address(50),sp_entityid(50))
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE `serviceproviders` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`entityid` varchar(200) NOT NULL,
`displayname` varchar(500) DEFAULT NULL,
`contacts` varchar(2000) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `entityid` (`entityid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
CREATE TABLE `testaccounts` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_password_hash` varchar(50) NOT NULL,
`creation_date` int(11) DEFAULT NULL,
`expiration_date` int(11) DEFAULT NULL,
`account_profile` varchar(100) NOT NULL,
`sp_entityid` varchar(250) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;