Changeset 12484 for branches/HiveStatistics/sources/HeuristicLab.Services.Hive.DataAccess/3.3/SQL Scripts
- Timestamp:
- 06/19/15 18:06:19 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.DataAccess/3.3/SQL Scripts/Initialize Hive Database.sql
r12477 r12484 202 202 203 203 CREATE TABLE [statistics].[DimTime] ( 204 [Time] DATETIME NOT NULL, 205 [Hour] DATETIME NOT NULL, 206 [Day] DATE NOT NULL, 207 [Month] DATE NOT NULL, 208 [Year] DATE NOT NULL, 204 [Time] DATETIME NOT NULL, 205 [Minute] DATETIME NOT NULL, 206 [Hour] DATETIME NOT NULL, 207 [Day] DATE NOT NULL, 208 [Month] DATE NOT NULL, 209 [Year] DATE NOT NULL, 209 210 CONSTRAINT [PK_DimTime] PRIMARY KEY CLUSTERED ([Time] ASC) 210 211 ); … … 223 224 [JobName] VARCHAR (MAX) NOT NULL, 224 225 [UserName] VARCHAR (MAX) NOT NULL, 225 226 [DateCreated] DATETIME NOT NULL, 226 227 CONSTRAINT [PK_DimJob] PRIMARY KEY CLUSTERED ([JobId] ASC) 227 228 ); … … 252 253 ); 253 254 CREATE TABLE [statistics].[FactTask] ( 254 [TaskId] UNIQUEIDENTIFIER NOT NULL, 255 [TotalRuntime] FLOAT (53) NOT NULL, 256 [TotalWaitingTime] FLOAT (53) NOT NULL, 257 [TotalTransferTime] FLOAT (53) NOT NULL, 258 [NumCalculationRuns] INT NOT NULL, 259 [NumRetries] INT NOT NULL, 260 [CoresRequired] INT NOT NULL, 261 [MemoryRequired] INT NOT NULL, 262 [Priority] INT NOT NULL, 263 [LastClientId] UNIQUEIDENTIFIER NULL, 264 [JobId] UNIQUEIDENTIFIER NOT NULL, 265 [StartTime] DATETIME NOT NULL, 266 [EndTime] DATETIME NULL, 267 [TaskState] VARCHAR (30) NOT NULL, 268 [Exception] VARCHAR (MAX) NULL, 255 [TaskId] UNIQUEIDENTIFIER NOT NULL, 256 [CalculatingTime] FLOAT (53) NOT NULL, 257 [WaitingTime] FLOAT (53) NOT NULL, 258 [TransferTime] FLOAT (53) NOT NULL, 259 [NumCalculationRuns] INT NOT NULL, 260 [NumRetries] INT NOT NULL, 261 [CoresRequired] INT NOT NULL, 262 [MemoryRequired] INT NOT NULL, 263 [Priority] INT NOT NULL, 264 [LastClientId] UNIQUEIDENTIFIER NULL, 265 [JobId] UNIQUEIDENTIFIER NOT NULL, 266 [StartTime] DATETIME NULL, 267 [EndTime] DATETIME NULL, 268 [TaskState] VARCHAR (30) NOT NULL, 269 [Exception] VARCHAR (MAX) NULL, 270 [InitialWaitingTime] FLOAT (53) NULL, 269 271 CONSTRAINT [PK_FactTask] PRIMARY KEY CLUSTERED ([TaskId] ASC), 270 272 CONSTRAINT [FK_FactTask_DimClient] FOREIGN KEY ([LastClientId]) REFERENCES [statistics].[DimClient] ([Id]), 271 CONSTRAINT [FK_FactTask_DimJob] FOREIGN KEY ([JobId]) REFERENCES [statistics].[DimJob] ([JobId]), 272 CONSTRAINT [FK_FactTask_DimTimeStart] FOREIGN KEY ([StartTime]) REFERENCES [statistics].[DimTime] ([Time]), 273 CONSTRAINT [FK_FactTask_DimTimeEnd] FOREIGN KEY ([EndTime]) REFERENCES [statistics].[DimTime] ([Time]) 273 CONSTRAINT [FK_FactTask_DimJob] FOREIGN KEY ([JobId]) REFERENCES [statistics].[DimJob] ([JobId]) 274 274 ); 275 275
Note: See TracChangeset
for help on using the changeset viewer.