1 | <?xml version="1.0" encoding="utf-8"?><Database Name="HeuristicLab.Hive" Class="HiveDataContext" xmlns="http://schemas.microsoft.com/linqtosql/dbml/2007">
|
---|
2 | <Connection Mode="AppSettings" ConnectionString="Data Source=localhost;Initial Catalog=HeuristicLab.Hive-3.4;Integrated Security=True" SettingsObjectName="HeuristicLab.Services.Hive.DataAccess.Properties.Settings" SettingsPropertyName="HeuristicLab_Hive_LinqConnectionString" Provider="System.Data.SqlClient" />
|
---|
3 | <Table Name="dbo.AssignedResources" Member="AssignedResources">
|
---|
4 | <Type Name="AssignedResource">
|
---|
5 | <Column Name="ResourceId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" CanBeNull="false" />
|
---|
6 | <Column Name="JobId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" CanBeNull="false" />
|
---|
7 | <Column Name="AssignedRessourcesId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" />
|
---|
8 | <Association Name="Resource_AssignedResource" Member="Resource" ThisKey="ResourceId" OtherKey="ResourceId" Type="Resource" IsForeignKey="true" DeleteRule="CASCADE" />
|
---|
9 | <Association Name="Job_AssignedResource" Member="Job" ThisKey="JobId" OtherKey="JobId" Type="Job" IsForeignKey="true" DeleteRule="CASCADE" />
|
---|
10 | </Type>
|
---|
11 | </Table>
|
---|
12 | <Table Name="dbo.Plugin" Member="Plugins">
|
---|
13 | <Type Name="Plugin">
|
---|
14 | <Column Name="PluginId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" />
|
---|
15 | <Column Name="Name" Type="System.String" DbType="VarChar(MAX)" CanBeNull="false" />
|
---|
16 | <Column Name="Version" Type="System.String" DbType="VarChar(MAX)" CanBeNull="false" />
|
---|
17 | <Column Name="UserId" Type="System.Guid" DbType="UniqueIdentifier" CanBeNull="false" />
|
---|
18 | <Column Name="DateCreated" Type="System.DateTime" DbType="DateTime" CanBeNull="false" />
|
---|
19 | <Column Name="Hash" Type="System.Byte[]" DbType="VarBinary(20) NOT NULL" CanBeNull="false" />
|
---|
20 | <Association Name="Plugin_RequiredPlugin" Member="RequiredPlugins" ThisKey="PluginId" OtherKey="PluginId" Type="RequiredPlugin" />
|
---|
21 | <Association Name="Plugin_PluginData" Member="PluginData" ThisKey="PluginId" OtherKey="PluginId" Type="PluginData" />
|
---|
22 | </Type>
|
---|
23 | </Table>
|
---|
24 | <Table Name="dbo.RequiredPlugins" Member="RequiredPlugins">
|
---|
25 | <Type Name="RequiredPlugin">
|
---|
26 | <Column Name="RequiredPluginId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" UpdateCheck="Never" />
|
---|
27 | <Column Name="JobId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" CanBeNull="false" />
|
---|
28 | <Column Name="PluginId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" CanBeNull="false" />
|
---|
29 | <Association Name="Plugin_RequiredPlugin" Member="Plugin" Storage="_PluginInfo" ThisKey="PluginId" OtherKey="PluginId" Type="Plugin" IsForeignKey="true" DeleteRule="CASCADE" />
|
---|
30 | <Association Name="Job_RequiredPlugin" Member="Job" ThisKey="JobId" OtherKey="JobId" Type="Job" IsForeignKey="true" />
|
---|
31 | </Type>
|
---|
32 | </Table>
|
---|
33 | <Table Name="dbo.Resource" Member="Resources">
|
---|
34 | <Type Name="Resource" InheritanceCode="RESOURCE">
|
---|
35 | <Column Name="ResourceId" AutoSync="OnInsert" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
|
---|
36 | <Column Name="Name" Type="System.String" DbType="VarChar(MAX)" CanBeNull="false" />
|
---|
37 | <Column Name="ResourceType" Type="System.String" CanBeNull="false" IsDiscriminator="true" />
|
---|
38 | <Column Name="ParentResourceId" Type="System.Guid" DbType="UniqueIdentifier" CanBeNull="true" />
|
---|
39 | <Association Name="Resource_AssignedResource" Member="AssignedResources" ThisKey="ResourceId" OtherKey="ResourceId" Type="AssignedResource" />
|
---|
40 | <Association Name="Resource_Resource" Member="ChildResources" ThisKey="ResourceId" OtherKey="ParentResourceId" Type="Resource" />
|
---|
41 | <Association Name="Resource_Downtime" Member="Downtimes" Storage="_UptimeCalendars" ThisKey="ResourceId" OtherKey="ResourceId" Type="Downtime" />
|
---|
42 | <Association Name="Resource_StateLog" Member="StateLogs" ThisKey="ResourceId" OtherKey="SlaveId" Type="StateLog" />
|
---|
43 | <Association Name="Resource_Resource" Member="ParentResource" ThisKey="ParentResourceId" OtherKey="ResourceId" Type="Resource" IsForeignKey="true" />
|
---|
44 | <Type Name="Slave" InheritanceCode="Slave" IsInheritanceDefault="true">
|
---|
45 | <Column Name="CpuSpeed" Storage="_CPUSpeed" Type="System.Int32" DbType="Int" CanBeNull="true" />
|
---|
46 | <Column Name="Memory" Type="System.Int32" DbType="Int" CanBeNull="true" />
|
---|
47 | <Column Name="Login" Type="System.DateTime" DbType="DateTime" CanBeNull="true" />
|
---|
48 | <Column Name="SlaveState" Storage="_Status" Type="global::HeuristicLab.Services.Hive.Common.DataTransfer.SlaveState" DbType="VarChar(15)" CanBeNull="true" />
|
---|
49 | <Column Name="Cores" Storage="_NumberOfCores" Type="System.Int32" DbType="Int" CanBeNull="true" />
|
---|
50 | <Column Name="FreeCores" Storage="_NumberOfFreeCores" Type="System.Int32" DbType="Int" CanBeNull="true" />
|
---|
51 | <Column Name="FreeMemory" Type="System.Int32" DbType="Int" CanBeNull="true" />
|
---|
52 | <Column Name="IsAllowedToCalculate" Type="System.Boolean" DbType="Bit" CanBeNull="false" />
|
---|
53 | <Column Name="CpuArchitecture" Type="global::HeuristicLab.Services.Hive.Common.DataTransfer.CpuArchitecture" DbType="VarChar(3)" CanBeNull="false" />
|
---|
54 | <Column Name="OperatingSystem" Type="System.String" DbType="VarChar(MAX)" CanBeNull="false" UpdateCheck="Never" />
|
---|
55 | <Column Name="LastHeartbeat" Type="System.DateTime" DbType="DateTime" CanBeNull="true" />
|
---|
56 | <Column Name="CpuUtilization" Type="System.Double" DbType="float" CanBeNull="false" />
|
---|
57 | </Type>
|
---|
58 | <Type Name="SlaveGroup" InheritanceCode="GROUP" />
|
---|
59 | </Type>
|
---|
60 | </Table>
|
---|
61 | <Table Name="dbo.Job" Member="Jobs">
|
---|
62 | <Type Name="Job">
|
---|
63 | <Column Name="JobId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" />
|
---|
64 | <Column Name="JobState" Member="State" Type="global::HeuristicLab.Services.Hive.Common.DataTransfer.JobState" DbType="VarChar(30)" CanBeNull="false" />
|
---|
65 | <Column Name="ExecutionTimeMs" Storage="_ExecutionTime" Type="System.Double" DbType="float" CanBeNull="false" />
|
---|
66 | <Column Name="LastHeartbeat" Type="System.DateTime" DbType="DateTime" CanBeNull="true" />
|
---|
67 | <Column Name="ParentJobId" Type="System.Guid" DbType="UniqueIdentifier" CanBeNull="true" />
|
---|
68 | <Column Name="Priority" Type="System.Int32" DbType="Int NOT NULL" CanBeNull="false" />
|
---|
69 | <Column Name="CoresNeeded" Type="System.Int32" DbType="Int NOT NULL" CanBeNull="false" />
|
---|
70 | <Column Name="MemoryNeeded" Type="System.Int32" DbType="Int NOT NULL" CanBeNull="false" />
|
---|
71 | <Column Name="IsParentJob" Type="System.Boolean" DbType="Bit" CanBeNull="false" />
|
---|
72 | <Column Name="FinishWhenChildJobsFinished" Type="System.Boolean" DbType="Bit" CanBeNull="false" />
|
---|
73 | <Column Name="Command" Type="global::HeuristicLab.Services.Hive.Common.DataTransfer.Command?" DbType="VarChar(30)" CanBeNull="true" />
|
---|
74 | <Column Name="HiveExperimentId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" CanBeNull="false" />
|
---|
75 | <Column Name="IsPrivileged" Type="System.Boolean" DbType="Bit" CanBeNull="false" />
|
---|
76 | <Association Name="Job_AssignedResource" Member="AssignedResources" ThisKey="JobId" OtherKey="JobId" Type="AssignedResource" />
|
---|
77 | <Association Name="Job_RequiredPlugin" Member="RequiredPlugins" ThisKey="JobId" OtherKey="JobId" Type="RequiredPlugin" />
|
---|
78 | <Association Name="Job_Job" Member="ChildJobs" Storage="_Jobs" ThisKey="JobId" OtherKey="ParentJobId" Type="Job" />
|
---|
79 | <Association Name="Job_JobData" Member="JobData" ThisKey="JobId" OtherKey="JobId" Type="JobData" Cardinality="One" />
|
---|
80 | <Association Name="Job_StateLog" Member="StateLogs" ThisKey="JobId" OtherKey="JobId" Type="StateLog" />
|
---|
81 | <Association Name="Job_Job" Member="ParentJob" Storage="_Job1" ThisKey="ParentJobId" OtherKey="JobId" Type="Job" IsForeignKey="true" />
|
---|
82 | <Association Name="HiveExperiment_Job" Member="HiveExperiment" ThisKey="HiveExperimentId" OtherKey="HiveExperimentId" Type="HiveExperiment" IsForeignKey="true" />
|
---|
83 | </Type>
|
---|
84 | </Table>
|
---|
85 | <Table Name="dbo.Downtime" Member="Downtimes">
|
---|
86 | <Type Name="Downtime">
|
---|
87 | <Column Name="DowntimeId" Storage="_UptimeCalendarId" Type="System.Guid" DbType="UniqueIdentifier" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" />
|
---|
88 | <Column Name="ResourceId" Type="System.Guid" DbType="UniqueIdentifier" CanBeNull="false" />
|
---|
89 | <Column Name="StartDate" Type="System.DateTime" DbType="DateTime" CanBeNull="false" />
|
---|
90 | <Column Name="EndDate" Type="System.DateTime" DbType="DateTime" CanBeNull="false" />
|
---|
91 | <Column Name="AllDayEvent" Type="System.Boolean" DbType="Bit" CanBeNull="false" />
|
---|
92 | <Column Name="Recurring" Type="System.Boolean" DbType="Bit" CanBeNull="false" />
|
---|
93 | <Column Name="RecurringId" Type="System.Guid" DbType="UniqueIdentifier" CanBeNull="false" />
|
---|
94 | <Association Name="Resource_Downtime" Member="Resource" ThisKey="ResourceId" OtherKey="ResourceId" Type="Resource" IsForeignKey="true" DeleteRule="CASCADE" />
|
---|
95 | </Type>
|
---|
96 | </Table>
|
---|
97 | <Table Name="dbo.HiveExperiment" Member="HiveExperiments">
|
---|
98 | <Type Name="HiveExperiment">
|
---|
99 | <Column Name="HiveExperimentId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" />
|
---|
100 | <Column Name="Name" Type="System.String" DbType="VarChar(MAX)" CanBeNull="false" />
|
---|
101 | <Column Name="Description" Type="System.String" DbType="VarChar(MAX)" CanBeNull="true" />
|
---|
102 | <Column Name="ResourceIds" Type="System.String" DbType="VarChar(MAX)" CanBeNull="true" />
|
---|
103 | <Column Name="OwnerUserId" Storage="_UserId" Type="System.Guid" DbType="UniqueIdentifier" CanBeNull="false" />
|
---|
104 | <Column Name="DateCreated" Type="System.DateTime" DbType="DateTime" CanBeNull="false" />
|
---|
105 | <Column Name="LastAccessed" Type="System.DateTime" DbType="DateTime" CanBeNull="true" />
|
---|
106 | <Column Name="IsHiveEngine" Type="System.Boolean" DbType="Bit" CanBeNull="false" />
|
---|
107 | <Association Name="HiveExperiment_Job" Member="Jobs" ThisKey="HiveExperimentId" OtherKey="HiveExperimentId" Type="Job" />
|
---|
108 | <Association Name="HiveExperiment_HiveExperimentPermission" Member="HiveExperimentPermissions" ThisKey="HiveExperimentId" OtherKey="HiveExperimentId" Type="HiveExperimentPermission" />
|
---|
109 | </Type>
|
---|
110 | </Table>
|
---|
111 | <Table Name="dbo.JobData" Member="JobDatas">
|
---|
112 | <Type Name="JobData">
|
---|
113 | <Column Name="JobId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
|
---|
114 | <Column Name="Data" Type="System.Data.Linq.Binary" DbType="VarBinary(MAX)" CanBeNull="false" UpdateCheck="Never" />
|
---|
115 | <Column Name="LastUpdate" Type="System.DateTime" DbType="DateTime" CanBeNull="false" />
|
---|
116 | <Association Name="Job_JobData" Member="Job" ThisKey="JobId" OtherKey="JobId" Type="Job" IsForeignKey="true" />
|
---|
117 | </Type>
|
---|
118 | </Table>
|
---|
119 | <Table Name="dbo.PluginData" Member="PluginDatas">
|
---|
120 | <Type Name="PluginData">
|
---|
121 | <Column Name="PluginDataId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" />
|
---|
122 | <Column Name="PluginId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" CanBeNull="false" />
|
---|
123 | <Column Name="Data" Type="System.Data.Linq.Binary" DbType="VarBinary(MAX) NOT NULL" CanBeNull="false" UpdateCheck="Never" />
|
---|
124 | <Column Name="FileName" Type="System.String" DbType="VarChar(MAX)" CanBeNull="false" />
|
---|
125 | <Association Name="Plugin_PluginData" Member="Plugin" ThisKey="PluginId" OtherKey="PluginId" Type="Plugin" IsForeignKey="true" />
|
---|
126 | </Type>
|
---|
127 | </Table>
|
---|
128 | <Table Name="dbo.StateLog" Member="StateLogs">
|
---|
129 | <Type Name="StateLog">
|
---|
130 | <Column Name="StateLogId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" />
|
---|
131 | <Column Name="State" Type="global::HeuristicLab.Services.Hive.Common.DataTransfer.JobState" DbType="VarChar(30) NOT NULL" CanBeNull="false" />
|
---|
132 | <Column Name="DateTime" Type="System.DateTime" DbType="DateTime NOT NULL" CanBeNull="false" />
|
---|
133 | <Column Name="JobId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" CanBeNull="false" />
|
---|
134 | <Column Name="UserId" Type="System.Guid" DbType="UniqueIdentifier" CanBeNull="true" />
|
---|
135 | <Column Name="SlaveId" Type="System.Guid" DbType="UniqueIdentifier" CanBeNull="true" />
|
---|
136 | <Column Name="Exception" Type="System.String" DbType="VarChar(MAX)" CanBeNull="false" />
|
---|
137 | <Association Name="Job_StateLog" Member="Job" ThisKey="JobId" OtherKey="JobId" Type="Job" IsForeignKey="true" />
|
---|
138 | <Association Name="Resource_StateLog" Member="Resource" ThisKey="SlaveId" OtherKey="ResourceId" Type="Resource" IsForeignKey="true" />
|
---|
139 | </Type>
|
---|
140 | </Table>
|
---|
141 | <Table Name="dbo.HiveExperimentPermission" Member="HiveExperimentPermissions">
|
---|
142 | <Type Name="HiveExperimentPermission">
|
---|
143 | <Column Name="HiveExperimentId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
|
---|
144 | <Column Name="GrantedUserId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
|
---|
145 | <Column Name="GrantedByUserId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" CanBeNull="false" />
|
---|
146 | <Column Name="Permission" Type="global::HeuristicLab.Services.Hive.Common.DataTransfer.Permission" DbType="VarChar(15) NOT NULL" CanBeNull="false" />
|
---|
147 | <Association Name="HiveExperiment_HiveExperimentPermission" Member="HiveExperiment" ThisKey="HiveExperimentId" OtherKey="HiveExperimentId" Type="HiveExperiment" IsForeignKey="true" />
|
---|
148 | </Type>
|
---|
149 | </Table>
|
---|
150 | <Table Name="" Member="Lifecycles">
|
---|
151 | <Type Name="Lifecycle">
|
---|
152 | <Column Name="LifecycleId" Type="System.Int32" DbType="Int" IsPrimaryKey="true" CanBeNull="false" />
|
---|
153 | <Column Name="LastCleanup" Type="System.DateTime" DbType="DateTime" CanBeNull="false" />
|
---|
154 | </Type>
|
---|
155 | </Table>
|
---|
156 | <Table Name="" Member="DeletedJobStatistics">
|
---|
157 | <Type Name="DeletedJobStatistics">
|
---|
158 | <Column Name="UserId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" CanBeNull="false" />
|
---|
159 | <Column Name="ExecutionTimeMs" Storage="_ExecutionTime" Type="System.Double" DbType="float NOT NULL" CanBeNull="false" />
|
---|
160 | <Column Name="ExecutionTimeMsFinishedJobs" Storage="_ExecutionTimeFinishedJobs" Type="System.Double" DbType="float NOT NULL" CanBeNull="false" />
|
---|
161 | <Column Name="StartToEndTimeMs" Storage="_StartToEndTime" Type="System.Double" DbType="float NOT NULL" CanBeNull="false" />
|
---|
162 | <Column Name="DeletedJobStatisticsId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" />
|
---|
163 | </Type>
|
---|
164 | </Table>
|
---|
165 | <Table Name="" Member="UserStatistics">
|
---|
166 | <Type Name="UserStatistics">
|
---|
167 | <Column Name="StatisticsId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
|
---|
168 | <Column Name="UserId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
|
---|
169 | <Column Name="ExecutionTimeMs" Storage="_ExecutionTime" Type="System.Double" DbType="float NOT NULL" CanBeNull="false" />
|
---|
170 | <Column Name="UsedCores" Storage="_CoresUsed" Type="System.Int32" DbType="Int NOT NULL" CanBeNull="false" />
|
---|
171 | <Column Name="ExecutionTimeMsFinishedJobs" Storage="_ExecutionTimeFinishedJobs" Type="System.Double" DbType="float NOT NULL" CanBeNull="false" />
|
---|
172 | <Column Name="StartToEndTimeMs" Storage="_StartToEndTime" Type="System.Double" DbType="float NOT NULL" CanBeNull="false" />
|
---|
173 | <Association Name="Statistics_UserStatistics" Member="Statistics" ThisKey="StatisticsId" OtherKey="StatisticsId" Type="Statistics" IsForeignKey="true" />
|
---|
174 | </Type>
|
---|
175 | </Table>
|
---|
176 | <Table Name="" Member="SlaveStatistics">
|
---|
177 | <Type Name="SlaveStatistics">
|
---|
178 | <Column Name="StatisticsId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
|
---|
179 | <Column Name="SlaveId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
|
---|
180 | <Column Name="Cores" Type="System.Int32" DbType="Int NOT NULL" CanBeNull="false" />
|
---|
181 | <Column Name="FreeCores" Type="System.Int32" DbType="Int NOT NULL" CanBeNull="false" />
|
---|
182 | <Column Name="CpuUtilization" Type="System.Double" DbType="float NOT NULL" CanBeNull="false" />
|
---|
183 | <Column Name="Memory" Type="System.Int32" DbType="Int NOT NULL" CanBeNull="false" />
|
---|
184 | <Column Name="FreeMemory" Type="System.Int32" DbType="Int NOT NULL" CanBeNull="false" />
|
---|
185 | <Association Name="Statistics_SlaveStatistics" Member="Statistics" ThisKey="StatisticsId" OtherKey="StatisticsId" Type="Statistics" IsForeignKey="true" />
|
---|
186 | </Type>
|
---|
187 | </Table>
|
---|
188 | <Table Name="" Member="Statistics">
|
---|
189 | <Type Name="Statistics">
|
---|
190 | <Column Name="StatisticsId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" />
|
---|
191 | <Column Name="Timestamp" Type="System.DateTime" CanBeNull="false" />
|
---|
192 | <Association Name="Statistics_UserStatistics" Member="UserStatistics" ThisKey="StatisticsId" OtherKey="StatisticsId" Type="UserStatistics" />
|
---|
193 | <Association Name="Statistics_SlaveStatistics" Member="SlaveStatistics" ThisKey="StatisticsId" OtherKey="StatisticsId" Type="SlaveStatistics" />
|
---|
194 | </Type>
|
---|
195 | </Table>
|
---|
196 | </Database> |
---|