From 9135d69c4b047cb88adeede5c905d233b7df616c Mon Sep 17 00:00:00 2001 From: hjhsalo Date: Mon, 19 Sep 2016 17:49:30 +0300 Subject: [PATCH] Deleted obsolete files --- .../doc/database/MyDataAccount-DBinit_5-6.sql | 387 ------------------ 1 file changed, 387 deletions(-) delete mode 100644 Account/doc/database/MyDataAccount-DBinit_5-6.sql diff --git a/Account/doc/database/MyDataAccount-DBinit_5-6.sql b/Account/doc/database/MyDataAccount-DBinit_5-6.sql deleted file mode 100644 index af50665..0000000 --- a/Account/doc/database/MyDataAccount-DBinit_5-6.sql +++ /dev/null @@ -1,387 +0,0 @@ --- MySQL Script generated by MySQL Workbench --- ma 29. elokuuta 2016 17.37.32 --- Model: New Model Version: 1.0 --- MySQL Workbench Forward Engineering - -SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; -SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; -SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; - --- ----------------------------------------------------- --- Schema MyDataAccount --- ----------------------------------------------------- - --- ----------------------------------------------------- --- Schema MyDataAccount --- ----------------------------------------------------- -CREATE SCHEMA IF NOT EXISTS `MyDataAccount` DEFAULT CHARACTER SET utf8 ; -USE `MyDataAccount` ; - --- ----------------------------------------------------- --- Table `MyDataAccount`.`Accounts` --- ----------------------------------------------------- -DROP TABLE IF EXISTS `MyDataAccount`.`Accounts` ; - -CREATE TABLE IF NOT EXISTS `MyDataAccount`.`Accounts` ( - `id` INT NOT NULL AUTO_INCREMENT, - `globalIdenttifyer` VARCHAR(1024) NOT NULL, - `activated` TINYINT(1) NOT NULL DEFAULT 0, - PRIMARY KEY (`id`), - UNIQUE INDEX `globalIdenttifyer_UNIQUE` (`globalIdenttifyer` ASC)) -ENGINE = InnoDB; - - --- ----------------------------------------------------- --- Table `MyDataAccount`.`Particulars` --- ----------------------------------------------------- -DROP TABLE IF EXISTS `MyDataAccount`.`Particulars` ; - -CREATE TABLE IF NOT EXISTS `MyDataAccount`.`Particulars` ( - `id` INT NOT NULL AUTO_INCREMENT, - `firstname` VARCHAR(255) NOT NULL, - `lastname` VARCHAR(255) NOT NULL, - `dateOfBirth` DATE NULL, - `img_url` VARCHAR(1024) NULL, - `Accounts_id` INT NOT NULL, - PRIMARY KEY (`id`), - INDEX `fk_Particulars_Accounts1_idx` (`Accounts_id` ASC), - CONSTRAINT `fk_Particulars_Accounts1` - FOREIGN KEY (`Accounts_id`) - REFERENCES `MyDataAccount`.`Accounts` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION) -ENGINE = InnoDB; - - --- ----------------------------------------------------- --- Table `MyDataAccount`.`ServiceLinkRecords` --- ----------------------------------------------------- -DROP TABLE IF EXISTS `MyDataAccount`.`ServiceLinkRecords` ; - -CREATE TABLE IF NOT EXISTS `MyDataAccount`.`ServiceLinkRecords` ( - `id` INT NOT NULL AUTO_INCREMENT, - `serviceLinkRecord` BLOB NOT NULL, - `Accounts_id` INT NOT NULL, - `serviceLinkRecordId` VARCHAR(1024) NOT NULL, - `serviceId` VARCHAR(1024) NOT NULL, - `surrogateId` VARCHAR(1024) NOT NULL, - `operatorId` VARCHAR(1024) NOT NULL, - PRIMARY KEY (`id`), - INDEX `fk_ServiceLinkRecords_Accounts1_idx` (`Accounts_id` ASC), - UNIQUE INDEX `serviceLinkRecordId_UNIQUE` (`serviceLinkRecordId` ASC), - CONSTRAINT `fk_ServiceLinkRecords_Accounts1` - FOREIGN KEY (`Accounts_id`) - REFERENCES `MyDataAccount`.`Accounts` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION) -ENGINE = InnoDB; - - --- ----------------------------------------------------- --- Table `MyDataAccount`.`ConsentRecords` --- ----------------------------------------------------- -DROP TABLE IF EXISTS `MyDataAccount`.`ConsentRecords` ; - -CREATE TABLE IF NOT EXISTS `MyDataAccount`.`ConsentRecords` ( - `id` INT NOT NULL AUTO_INCREMENT, - `consentRecord` BLOB NOT NULL, - `ServiceLinkRecords_id` INT NOT NULL, - `surrogateId` VARCHAR(1024) NOT NULL, - `consentRecordId` VARCHAR(1024) NOT NULL, - `ResourceSetId` VARCHAR(1024) NOT NULL, - `serviceLinkRecordId` VARCHAR(1024) NOT NULL, - `subjectId` VARCHAR(1024) NOT NULL, - `role` VARCHAR(1024) NOT NULL, - PRIMARY KEY (`id`), - INDEX `fk_ConsentRecords_ServiceLinkRecords1_idx` (`ServiceLinkRecords_id` ASC), - UNIQUE INDEX `ConsentRecordId_UNIQUE` (`consentRecordId` ASC), - UNIQUE INDEX `serviceLinkRecordId_UNIQUE` (`serviceLinkRecordId` ASC), - CONSTRAINT `fk_ConsentRecords_ServiceLinkRecords1` - FOREIGN KEY (`ServiceLinkRecords_id`) - REFERENCES `MyDataAccount`.`ServiceLinkRecords` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION) -ENGINE = InnoDB; - - --- ----------------------------------------------------- --- Table `MyDataAccount`.`LocalIdentityPWDs` --- ----------------------------------------------------- -DROP TABLE IF EXISTS `MyDataAccount`.`LocalIdentityPWDs` ; - -CREATE TABLE IF NOT EXISTS `MyDataAccount`.`LocalIdentityPWDs` ( - `id` INT NOT NULL AUTO_INCREMENT, - `password` VARCHAR(1024) NULL, - PRIMARY KEY (`id`)) -ENGINE = InnoDB; - - --- ----------------------------------------------------- --- Table `MyDataAccount`.`LocalIdentities` --- ----------------------------------------------------- -DROP TABLE IF EXISTS `MyDataAccount`.`LocalIdentities` ; - -CREATE TABLE IF NOT EXISTS `MyDataAccount`.`LocalIdentities` ( - `id` INT NOT NULL AUTO_INCREMENT, - `username` VARCHAR(255) NOT NULL, - `LocalIdentityPWDs_id` INT NOT NULL, - `Accounts_id` INT NOT NULL, - PRIMARY KEY (`id`), - UNIQUE INDEX `username_UNIQUE` (`username` ASC), - INDEX `fk_LocalIdentities_LocalIdentityPWDs1_idx` (`LocalIdentityPWDs_id` ASC), - INDEX `fk_LocalIdentities_Accounts1_idx` (`Accounts_id` ASC), - CONSTRAINT `fk_LocalIdentities_LocalIdentityPWDs1` - FOREIGN KEY (`LocalIdentityPWDs_id`) - REFERENCES `MyDataAccount`.`LocalIdentityPWDs` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION, - CONSTRAINT `fk_LocalIdentities_Accounts1` - FOREIGN KEY (`Accounts_id`) - REFERENCES `MyDataAccount`.`Accounts` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION) -ENGINE = InnoDB; - - --- ----------------------------------------------------- --- Table `MyDataAccount`.`RemoteIdentityProviders` --- ----------------------------------------------------- -DROP TABLE IF EXISTS `MyDataAccount`.`RemoteIdentityProviders` ; - -CREATE TABLE IF NOT EXISTS `MyDataAccount`.`RemoteIdentityProviders` ( - `id` INT NOT NULL AUTO_INCREMENT, - `name` VARCHAR(255) NOT NULL, - PRIMARY KEY (`id`)) -ENGINE = InnoDB; - - --- ----------------------------------------------------- --- Table `MyDataAccount`.`RemoteIdentities` --- ----------------------------------------------------- -DROP TABLE IF EXISTS `MyDataAccount`.`RemoteIdentities` ; - -CREATE TABLE IF NOT EXISTS `MyDataAccount`.`RemoteIdentities` ( - `id` INT NOT NULL AUTO_INCREMENT, - `remoteUniqueId` VARCHAR(255) NOT NULL, - `Accounts_id` INT NOT NULL, - `RemoteIdentityProviders_id` INT NOT NULL, - PRIMARY KEY (`id`), - UNIQUE INDEX `opdenIdIdentifyer_UNIQUE` (`remoteUniqueId` ASC), - INDEX `fk_RemoteIdentities_Accounts1_idx` (`Accounts_id` ASC), - INDEX `fk_RemoteIdentities_RemoteIdentityProviders1_idx` (`RemoteIdentityProviders_id` ASC), - CONSTRAINT `fk_RemoteIdentities_Accounts1` - FOREIGN KEY (`Accounts_id`) - REFERENCES `MyDataAccount`.`Accounts` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION, - CONSTRAINT `fk_RemoteIdentities_RemoteIdentityProviders1` - FOREIGN KEY (`RemoteIdentityProviders_id`) - REFERENCES `MyDataAccount`.`RemoteIdentityProviders` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION) -ENGINE = InnoDB; - - --- ----------------------------------------------------- --- Table `MyDataAccount`.`Salts` --- ----------------------------------------------------- -DROP TABLE IF EXISTS `MyDataAccount`.`Salts` ; - -CREATE TABLE IF NOT EXISTS `MyDataAccount`.`Salts` ( - `id` INT NOT NULL AUTO_INCREMENT, - `salt` VARCHAR(255) NOT NULL, - `LocalIdentities_id` INT NOT NULL, - PRIMARY KEY (`id`), - UNIQUE INDEX `hash_UNIQUE` (`salt` ASC), - INDEX `fk_Salts_LocalIdentities1_idx` (`LocalIdentities_id` ASC), - CONSTRAINT `fk_Salts_LocalIdentities1` - FOREIGN KEY (`LocalIdentities_id`) - REFERENCES `MyDataAccount`.`LocalIdentities` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION) -ENGINE = InnoDB; - - --- ----------------------------------------------------- --- Table `MyDataAccount`.`OneTimeCookies` --- ----------------------------------------------------- -DROP TABLE IF EXISTS `MyDataAccount`.`OneTimeCookies` ; - -CREATE TABLE IF NOT EXISTS `MyDataAccount`.`OneTimeCookies` ( - `id` INT NOT NULL AUTO_INCREMENT, - `oneTimeCookie` VARCHAR(255) NOT NULL, - `used` TINYINT(1) NOT NULL DEFAULT 0, - `created` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, - `updated` TIMESTAMP NOT NULL ON UPDATE CURRENT_TIMESTAMP, - `LocalIdentities_id` INT NOT NULL, - PRIMARY KEY (`id`), - UNIQUE INDEX `oneTimeCookie_UNIQUE` (`oneTimeCookie` ASC), - INDEX `fk_OneTimeCookies_LocalIdentities1_idx` (`LocalIdentities_id` ASC), - CONSTRAINT `fk_OneTimeCookies_LocalIdentities1` - FOREIGN KEY (`LocalIdentities_id`) - REFERENCES `MyDataAccount`.`LocalIdentities` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION) -ENGINE = InnoDB; - - --- ----------------------------------------------------- --- Table `MyDataAccount`.`Settings` --- ----------------------------------------------------- -DROP TABLE IF EXISTS `MyDataAccount`.`Settings` ; - -CREATE TABLE IF NOT EXISTS `MyDataAccount`.`Settings` ( - `id` INT NOT NULL AUTO_INCREMENT, - `key` VARCHAR(255) NOT NULL, - `value` VARCHAR(255) NOT NULL, - `Accounts_id` INT NOT NULL, - PRIMARY KEY (`id`), - INDEX `fk_Settings_Accounts1_idx` (`Accounts_id` ASC), - CONSTRAINT `fk_Settings_Accounts1` - FOREIGN KEY (`Accounts_id`) - REFERENCES `MyDataAccount`.`Accounts` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION) -ENGINE = InnoDB; - - --- ----------------------------------------------------- --- Table `MyDataAccount`.`Contacts` --- ----------------------------------------------------- -DROP TABLE IF EXISTS `MyDataAccount`.`Contacts` ; - -CREATE TABLE IF NOT EXISTS `MyDataAccount`.`Contacts` ( - `id` INT NOT NULL AUTO_INCREMENT, - `address1` VARCHAR(255) NULL, - `address2` VARCHAR(255) NULL, - `postalCode` VARCHAR(255) NULL, - `city` VARCHAR(255) NULL, - `state` VARCHAR(255) NULL, - `country` VARCHAR(255) NULL, - `typeEnum` ENUM('Personal', 'Work', 'School', 'Other') NOT NULL, - `prime` TINYINT(1) NOT NULL DEFAULT 0, - `Accounts_id` INT NOT NULL, - PRIMARY KEY (`id`), - INDEX `fk_Contacts_Accounts1_idx` (`Accounts_id` ASC), - CONSTRAINT `fk_Contacts_Accounts1` - FOREIGN KEY (`Accounts_id`) - REFERENCES `MyDataAccount`.`Accounts` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION) -ENGINE = InnoDB; - - --- ----------------------------------------------------- --- Table `MyDataAccount`.`ConsentStatusRecords` --- ----------------------------------------------------- -DROP TABLE IF EXISTS `MyDataAccount`.`ConsentStatusRecords` ; - -CREATE TABLE IF NOT EXISTS `MyDataAccount`.`ConsentStatusRecords` ( - `id` INT NOT NULL AUTO_INCREMENT, - `consentStatus` ENUM('Active', 'Paused', 'Withdrawn', 'NoSLR') NOT NULL, - `consentStatusRecord` BLOB NOT NULL, - `ConsentRecords_id` INT NOT NULL, - `consentRecordId` VARCHAR(1024) NOT NULL, - `issued_at` VARCHAR(1024) NOT NULL, - `prevRecordId` VARCHAR(1024) NOT NULL, - PRIMARY KEY (`id`), - INDEX `fk_ConsentStatusRecords_ConsentRecords1_idx` (`ConsentRecords_id` ASC), - CONSTRAINT `fk_ConsentStatusRecords_ConsentRecords1` - FOREIGN KEY (`ConsentRecords_id`) - REFERENCES `MyDataAccount`.`ConsentRecords` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION) -ENGINE = InnoDB; - - --- ----------------------------------------------------- --- Table `MyDataAccount`.`ServiceLinkStatusRecords` --- ----------------------------------------------------- -DROP TABLE IF EXISTS `MyDataAccount`.`ServiceLinkStatusRecords` ; - -CREATE TABLE IF NOT EXISTS `MyDataAccount`.`ServiceLinkStatusRecords` ( - `id` INT NOT NULL AUTO_INCREMENT, - `serviceLinkStatus` VARCHAR(1024) NOT NULL, - `serviceLinkStatusRecord` BLOB NOT NULL, - `ServiceLinkRecords_id` INT NOT NULL, - `serviceLinkRecordId` VARCHAR(1024) NOT NULL, - `issued_at` VARCHAR(1024) NOT NULL, - `prevRecordId` VARCHAR(1024) NOT NULL, - `serviceLinkStatusRecordId` VARCHAR(1024) NOT NULL, - PRIMARY KEY (`id`), - INDEX `fk_ServiceLinkStatusRecords_ServiceLinkRecords1_idx` (`ServiceLinkRecords_id` ASC), - UNIQUE INDEX `serviceLinkStatusRecordId_UNIQUE` (`serviceLinkStatusRecordId` ASC), - CONSTRAINT `fk_ServiceLinkStatusRecords_ServiceLinkRecords1` - FOREIGN KEY (`ServiceLinkRecords_id`) - REFERENCES `MyDataAccount`.`ServiceLinkRecords` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION) -ENGINE = InnoDB; - - --- ----------------------------------------------------- --- Table `MyDataAccount`.`EventLogs` --- ----------------------------------------------------- -DROP TABLE IF EXISTS `MyDataAccount`.`EventLogs` ; - -CREATE TABLE IF NOT EXISTS `MyDataAccount`.`EventLogs` ( - `id` INT NOT NULL AUTO_INCREMENT, - `actor` ENUM('User', 'Operator', 'Service') NOT NULL, - `event` JSON NOT NULL, - `created` TIMESTAMP NOT NULL, - `Accounts_id` INT NOT NULL, - PRIMARY KEY (`id`), - INDEX `fk_EventLogs_Accounts1_idx` (`Accounts_id` ASC), - CONSTRAINT `fk_EventLogs_Accounts1` - FOREIGN KEY (`Accounts_id`) - REFERENCES `MyDataAccount`.`Accounts` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION) -ENGINE = InnoDB; - - --- ----------------------------------------------------- --- Table `MyDataAccount`.`Emails` --- ----------------------------------------------------- -DROP TABLE IF EXISTS `MyDataAccount`.`Emails` ; - -CREATE TABLE IF NOT EXISTS `MyDataAccount`.`Emails` ( - `id` INT NOT NULL AUTO_INCREMENT, - `email` VARCHAR(255) NULL, - `typeEnum` ENUM('Personal', 'Work', 'School', 'Other') NOT NULL, - `prime` TINYINT(1) NOT NULL DEFAULT 0, - `Accounts_id` INT NOT NULL, - PRIMARY KEY (`id`), - INDEX `fk_Emails_Accounts1_idx` (`Accounts_id` ASC), - CONSTRAINT `fk_Emails_Accounts1` - FOREIGN KEY (`Accounts_id`) - REFERENCES `MyDataAccount`.`Accounts` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION) -ENGINE = InnoDB; - - --- ----------------------------------------------------- --- Table `MyDataAccount`.`Telephones` --- ----------------------------------------------------- -DROP TABLE IF EXISTS `MyDataAccount`.`Telephones` ; - -CREATE TABLE IF NOT EXISTS `MyDataAccount`.`Telephones` ( - `id` INT NOT NULL AUTO_INCREMENT, - `tel` VARCHAR(255) NULL, - `typeEnum` ENUM('Personal', 'Work', 'School', 'Other') NOT NULL, - `prime` TINYINT(1) NOT NULL DEFAULT 0, - `Accounts_id` INT NOT NULL, - PRIMARY KEY (`id`), - INDEX `fk_Telephones_Accounts1_idx` (`Accounts_id` ASC), - CONSTRAINT `fk_Telephones_Accounts1` - FOREIGN KEY (`Accounts_id`) - REFERENCES `MyDataAccount`.`Accounts` (`id`) - ON DELETE NO ACTION - ON UPDATE NO ACTION) -ENGINE = InnoDB; - - -SET SQL_MODE=@OLD_SQL_MODE; -SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS; -SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;