Index: build/DatabaseStructure.sql
===================================================================
diff -u -r873bd2b6b7b9d0737dde2ed16ff5d10a66795a2f -r40793165416093e9d2fefb6b12acf82fbd8a84c2
--- build/DatabaseStructure.sql	(.../DatabaseStructure.sql)	(revision 873bd2b6b7b9d0737dde2ed16ff5d10a66795a2f)
+++ build/DatabaseStructure.sql	(.../DatabaseStructure.sql)	(revision 40793165416093e9d2fefb6b12acf82fbd8a84c2)
@@ -1,6 +1,6 @@
 /* ---------------------------------------------------- */
 /*  Generated by Enterprise Architect Version 12.0 		*/
-/*  Created On : 07-mrt-2017 08:22:26 				*/
+/*  Created On : 09-Mar-2017 11:11:11 				*/
 /*  DBMS       : SQLite 								*/
 /* ---------------------------------------------------- */
 
@@ -204,9 +204,12 @@
 DROP TABLE IF EXISTS 'DuneLocationOutputEntity'
 ;
 
-DROP TABLE IF EXISTS 'BackgroundMapDataEntity'
+DROP TABLE IF EXISTS 'BackgroundDataEntity'
 ;
 
+DROP TABLE IF EXISTS 'BackgroundDataMetaEntity'
+;
+
 /* Create Tables with Primary and Foreign Keys, Check and Unique Constraints */
 
 CREATE TABLE 'VersionEntity'
@@ -1336,20 +1339,30 @@
 )
 ;
 
-CREATE TABLE 'BackgroundMapDataEntity'
+CREATE TABLE 'BackgroundDataEntity'
 (
-	'BackgroundMapDataEntityId' INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
+	'BackgroundDataEntityId' INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
 	'AssessmentSectionEntityId' INTEGER NOT NULL,
 	'Name' TEXT NOT NULL,
-	'SourceCapabilitiesUrl' TEXT,
-	'SelectedCapabilityName' TEXT,
-	'PreferredFormat' VARCHAR (255),
 	'IsVisible' TINYINT (1) NOT NULL, -- true or false
 	'Transparency' REAL NOT NULL,
+	'IsConfigured' TINYINT (1) NOT NULL, -- true or false
+	'BackgroundDataType' TINYINT (1) NOT NULL, -- Enum: 0 = Wmts, 1 = WellKnown
 	CONSTRAINT 'FK_WmtsMapDataEntity_AssessmentSectionEntity' FOREIGN KEY ('AssessmentSectionEntityId') REFERENCES 'AssessmentSectionEntity' ('AssessmentSectionEntityId') ON DELETE Cascade ON UPDATE Cascade
 )
 ;
 
+CREATE TABLE 'BackgroundDataMetaEntity'
+(
+	'BackgroundDataMetaEntityId' INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
+	'BackgroundDataEntityId' INTEGER NOT NULL,
+	'Key' TEXT NOT NULL,
+	'Value' TEXT NOT NULL,
+	CONSTRAINT 'FK_BackgroundDataMetaEntity_BackgroundDataEntity' FOREIGN KEY ('BackgroundDataEntityId') REFERENCES 'BackgroundDataEntity' ('BackgroundDataEntityId') ON DELETE Cascade ON UPDATE Cascade,
+	CONSTRAINT 'U_BackgroundDataEntityId_Key' UNIQUE ('BackgroundDataEntityId','Key')
+)
+;
+
 /* Create Indexes and Triggers */
 
 CREATE INDEX 'IXFK_GrassCoverErosionInwardsDikeHeightOutputEntity_GrassCoverErosionInwardsOutputEntity'
@@ -1705,5 +1718,9 @@
 ;
 
 CREATE INDEX 'IXFK_WmtsMapDataEntity_AssessmentSectionEntity'
- ON 'BackgroundMapDataEntity' ('AssessmentSectionEntityId' ASC)
+ ON 'BackgroundDataEntity' ('AssessmentSectionEntityId' ASC)
 ;
+
+CREATE INDEX 'IXFK_BackgroundDataMetaEntity_BackgroundDataEntity'
+ ON 'BackgroundDataMetaEntity' ('BackgroundDataEntityId' ASC)
+;
