Free cookie consent management tool by TermsFeed Policy Generator
close Warning: Can't use blame annotator:
svn blame failed on branches/OKB/HeuristicLab.Services.OKB.DataAccess/3.3/SQL Scripts/Initialize OKB.sql: 195004 - Cannot calculate blame information for binary file 'file:///var/www/vhosts/heuristiclab.com/svn/core/branches/OKB/HeuristicLab.Services.OKB.DataAccess/3.3/SQL%20Scripts/Initialize%20OKB.sql'

source: branches/OKB/HeuristicLab.Services.OKB.DataAccess/3.3/SQL Scripts/Initialize OKB.sql @ 5046

Last change on this file since 5046 was 4591, checked in by swagner, 14 years ago

Worked on OKB (#1174)

  • Property svn:mime-type set to application/octet-stream
File size: 91.0 KB
RevLine 
1USE [HeuristicLab.OKB]
2GO
3/****** Object:  Table [dbo].[AlgorithmClass]    Script Date: 09/25/2010 01:33:11 ******/
4SET ANSI_NULLS ON
5GO
6SET QUOTED_IDENTIFIER ON
7GO
8CREATE TABLE [dbo].[AlgorithmClass](
9  [Id] [bigint] IDENTITY(1,1) NOT NULL,
10  [Name] [nvarchar](200) NOT NULL,
11  [Description] [nvarchar](max) NULL,
12 CONSTRAINT [PK_AlgorithmClass_Id] PRIMARY KEY CLUSTERED
13(
14  [Id] ASC
15)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY],
16 CONSTRAINT [UQ_AlgorithmClass_Name] UNIQUE NONCLUSTERED
17(
18  [Name] ASC
19)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
20) ON [PRIMARY]
21GO
22SET IDENTITY_INSERT [dbo].[AlgorithmClass] ON
23INSERT [dbo].[AlgorithmClass] ([Id], [Name], [Description]) VALUES (1, N'Unknown', N'Unknown or undefined algorithm class.')
24SET IDENTITY_INSERT [dbo].[AlgorithmClass] OFF
25/****** Object:  Table [dbo].[Platform]    Script Date: 09/25/2010 01:33:11 ******/
26SET ANSI_NULLS ON
27GO
28SET QUOTED_IDENTIFIER ON
29GO
30CREATE TABLE [dbo].[Platform](
31  [Id] [bigint] IDENTITY(1,1) NOT NULL,
32  [Name] [nvarchar](200) NOT NULL,
33  [Description] [nvarchar](max) NULL,
34 CONSTRAINT [PK_Platform_Id] PRIMARY KEY CLUSTERED
35(
36  [Id] ASC
37)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY],
38 CONSTRAINT [UQ_Platform_Name] UNIQUE NONCLUSTERED
39(
40  [Name] ASC
41)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
42) ON [PRIMARY]
43GO
44SET IDENTITY_INSERT [dbo].[Platform] ON
45INSERT [dbo].[Platform] ([Id], [Name], [Description]) VALUES (1, N'Unknown', N'Unknown or undefined platform.')
46INSERT [dbo].[Platform] ([Id], [Name], [Description]) VALUES (2, N'HeuristicLab 3.3', NULL)
47SET IDENTITY_INSERT [dbo].[Platform] OFF
48/****** Object:  Table [dbo].[ProblemClass]    Script Date: 09/25/2010 01:33:11 ******/
49SET ANSI_NULLS ON
50GO
51SET QUOTED_IDENTIFIER ON
52GO
53CREATE TABLE [dbo].[ProblemClass](
54  [Id] [bigint] IDENTITY(1,1) NOT NULL,
55  [Name] [nvarchar](200) NOT NULL,
56  [Description] [nvarchar](max) NULL,
57 CONSTRAINT [PK_ProblemClass_Id] PRIMARY KEY CLUSTERED
58(
59  [Id] ASC
60)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY],
61 CONSTRAINT [UQ_ProblemClass_Name] UNIQUE NONCLUSTERED
62(
63  [Name] ASC
64)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
65) ON [PRIMARY]
66GO
67SET IDENTITY_INSERT [dbo].[ProblemClass] ON
68INSERT [dbo].[ProblemClass] ([Id], [Name], [Description]) VALUES (1, N'Unknown', N'Unknown or undefined problem class.')
69SET IDENTITY_INSERT [dbo].[ProblemClass] OFF
70/****** Object:  Table [dbo].[Problem]    Script Date: 09/25/2010 01:33:11 ******/
71SET ANSI_NULLS ON
72GO
73SET QUOTED_IDENTIFIER ON
74GO
75CREATE TABLE [dbo].[Problem](
76  [Id] [bigint] IDENTITY(1,1) NOT NULL,
77  [ProblemClassId] [bigint] NOT NULL,
78  [PlatformId] [bigint] NOT NULL,
79  [Name] [nvarchar](200) NOT NULL,
80  [Description] [nvarchar](max) NULL,
81 CONSTRAINT [PK_Problem_Id] PRIMARY KEY CLUSTERED
82(
83  [Id] ASC
84)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY],
85 CONSTRAINT [UQ_Problem_Name_PlattformId] UNIQUE NONCLUSTERED
86(
87  [Name] ASC,
88  [PlatformId] ASC
89)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
90) ON [PRIMARY]
91GO
92/****** Object:  Table [dbo].[DataType]    Script Date: 09/25/2010 01:33:11 ******/
93SET ANSI_NULLS ON
94GO
95SET QUOTED_IDENTIFIER ON
96GO
97CREATE TABLE [dbo].[DataType](
98  [Id] [bigint] IDENTITY(1,1) NOT NULL,
99  [PlatformId] [bigint] NOT NULL,
100  [Name] [nvarchar](max) NOT NULL,
101  [SqlName] [nvarchar](200) NOT NULL,
102 CONSTRAINT [PK_DataType_Id] PRIMARY KEY CLUSTERED
103(
104  [Id] ASC
105)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
106) ON [PRIMARY]
107GO
108/****** Object:  Table [dbo].[Algorithm]    Script Date: 09/25/2010 01:33:11 ******/
109SET ANSI_NULLS ON
110GO
111SET QUOTED_IDENTIFIER ON
112GO
113CREATE TABLE [dbo].[Algorithm](
114  [Id] [bigint] IDENTITY(1,1) NOT NULL,
115  [AlgorithmClassId] [bigint] NOT NULL,
116  [PlatformId] [bigint] NOT NULL,
117  [Name] [nvarchar](200) NOT NULL,
118  [Description] [nvarchar](max) NULL,
119 CONSTRAINT [PK_Algorithm_Id] PRIMARY KEY CLUSTERED
120(
121  [Id] ASC
122)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY],
123 CONSTRAINT [UQ_Algorithm_Name_PlattformId] UNIQUE NONCLUSTERED
124(
125  [Name] ASC,
126  [PlatformId] ASC
127)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
128) ON [PRIMARY]
129GO
130/****** Object:  Table [dbo].[ProblemParameter]    Script Date: 09/25/2010 01:33:11 ******/
131SET ANSI_NULLS ON
132GO
133SET QUOTED_IDENTIFIER ON
134GO
135CREATE TABLE [dbo].[ProblemParameter](
136  [Id] [bigint] IDENTITY(1,1) NOT NULL,
137  [ProblemId] [bigint] NOT NULL,
138  [Name] [nvarchar](200) NOT NULL,
139  [Alias] [nvarchar](200) NULL,
140  [Description] [nvarchar](max) NULL,
141  [DataTypeId] [bigint] NOT NULL,
142 CONSTRAINT [PK_ProblemParameter_Id] PRIMARY KEY CLUSTERED
143(
144  [Id] ASC
145)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY],
146 CONSTRAINT [UQ_ProblemParameter_Name_ProblemId] UNIQUE NONCLUSTERED
147(
148  [Name] ASC,
149  [ProblemId] ASC
150)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
151) ON [PRIMARY]
152GO
153/****** Object:  Table [dbo].[ProblemData]    Script Date: 09/25/2010 01:33:11 ******/
154SET ANSI_NULLS ON
155GO
156SET QUOTED_IDENTIFIER ON
157GO
158SET ANSI_PADDING ON
159GO
160CREATE TABLE [dbo].[ProblemData](
161  [ProblemId] [bigint] NOT NULL,
162  [DataTypeId] [bigint] NOT NULL,
163  [Data] [varbinary](max) NOT NULL,
164 CONSTRAINT [PK_ProblemData_ProblemId] PRIMARY KEY CLUSTERED
165(
166  [ProblemId] ASC
167)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
168) ON [PRIMARY]
169GO
170SET ANSI_PADDING OFF
171GO
172/****** Object:  Table [dbo].[AlgorithmUser]    Script Date: 09/25/2010 01:33:11 ******/
173SET ANSI_NULLS ON
174GO
175SET QUOTED_IDENTIFIER ON
176GO
177CREATE TABLE [dbo].[AlgorithmUser](
178  [AlgorithmId] [bigint] NOT NULL,
179  [UserId] [uniqueidentifier] NOT NULL,
180 CONSTRAINT [PK_AlgorithmUser_AlgorithmId_UserId] PRIMARY KEY CLUSTERED
181(
182  [AlgorithmId] ASC,
183  [UserId] ASC
184)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
185) ON [PRIMARY]
186GO
187/****** Object:  Table [dbo].[Experiment]    Script Date: 09/25/2010 01:33:11 ******/
188SET ANSI_NULLS ON
189GO
190SET QUOTED_IDENTIFIER ON
191GO
192CREATE TABLE [dbo].[Experiment](
193  [Id] [bigint] IDENTITY(1,1) NOT NULL,
194  [AlgorithmId] [bigint] NOT NULL,
195  [ProblemId] [bigint] NOT NULL,
196 CONSTRAINT [PK_Experiment_Id] PRIMARY KEY CLUSTERED
197(
198  [Id] ASC
199)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
200) ON [PRIMARY]
201GO
202CREATE NONCLUSTERED INDEX [IX_Experiment_AlgorithmId_ProblemId] ON [dbo].[Experiment]
203(
204  [AlgorithmId] ASC,
205  [ProblemId] ASC
206)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
207GO
208/****** Object:  Table [dbo].[AlgorithmParameter]    Script Date: 09/25/2010 01:33:11 ******/
209SET ANSI_NULLS ON
210GO
211SET QUOTED_IDENTIFIER ON
212GO
213CREATE TABLE [dbo].[AlgorithmParameter](
214  [Id] [bigint] IDENTITY(1,1) NOT NULL,
215  [AlgorithmId] [bigint] NOT NULL,
216  [Name] [nvarchar](200) NOT NULL,
217  [Alias] [nvarchar](200) NULL,
218  [Description] [nvarchar](max) NULL,
219  [DataTypeId] [bigint] NOT NULL,
220 CONSTRAINT [PK_AlgorithmParameter_Id] PRIMARY KEY CLUSTERED
221(
222  [Id] ASC
223)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY],
224 CONSTRAINT [UQ_AlgorithmParameter_Name_AlgorithmId] UNIQUE NONCLUSTERED
225(
226  [Name] ASC,
227  [AlgorithmId] ASC
228)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
229) ON [PRIMARY]
230GO
231/****** Object:  Table [dbo].[AlgorithmData]    Script Date: 09/25/2010 01:33:11 ******/
232SET ANSI_NULLS ON
233GO
234SET QUOTED_IDENTIFIER ON
235GO
236SET ANSI_PADDING ON
237GO
238CREATE TABLE [dbo].[AlgorithmData](
239  [AlgorithmId] [bigint] NOT NULL,
240  [DataTypeId] [bigint] NOT NULL,
241  [Data] [varbinary](max) NOT NULL,
242 CONSTRAINT [PK_AlgorithmData_AlgorithmId] PRIMARY KEY CLUSTERED
243(
244  [AlgorithmId] ASC
245)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
246) ON [PRIMARY]
247GO
248SET ANSI_PADDING OFF
249GO
250/****** Object:  Table [dbo].[Result]    Script Date: 09/25/2010 01:33:11 ******/
251SET ANSI_NULLS ON
252GO
253SET QUOTED_IDENTIFIER ON
254GO
255CREATE TABLE [dbo].[Result](
256  [Id] [bigint] IDENTITY(1,1) NOT NULL,
257  [AlgorithmId] [bigint] NOT NULL,
258  [Name] [nvarchar](200) NOT NULL,
259  [Alias] [nvarchar](200) NULL,
260  [Description] [nvarchar](max) NULL,
261  [DataTypeId] [bigint] NOT NULL,
262 CONSTRAINT [PK_Result_Id] PRIMARY KEY CLUSTERED
263(
264  [Id] ASC
265)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY],
266 CONSTRAINT [UQ_Result_Name_AlgorithmId] UNIQUE NONCLUSTERED
267(
268  [Name] ASC,
269  [AlgorithmId] ASC
270)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
271) ON [PRIMARY]
272GO
273/****** Object:  Table [dbo].[ProblemUser]    Script Date: 09/25/2010 01:33:11 ******/
274SET ANSI_NULLS ON
275GO
276SET QUOTED_IDENTIFIER ON
277GO
278CREATE TABLE [dbo].[ProblemUser](
279  [ProblemId] [bigint] NOT NULL,
280  [UserId] [uniqueidentifier] NOT NULL,
281 CONSTRAINT [PK_ProblemUser_ProblemId_UserId] PRIMARY KEY CLUSTERED
282(
283  [ProblemId] ASC,
284  [UserId] ASC
285)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
286) ON [PRIMARY]
287GO
288/****** Object:  Table [dbo].[ProblemParameterStringValue]    Script Date: 09/25/2010 01:33:11 ******/
289SET ANSI_NULLS ON
290GO
291SET QUOTED_IDENTIFIER ON
292GO
293CREATE TABLE [dbo].[ProblemParameterStringValue](
294  [ProblemParameterId] [bigint] NOT NULL,
295  [ExperimentId] [bigint] NOT NULL,
296  [DataTypeId] [bigint] NOT NULL,
297  [Value] [nvarchar](max) NOT NULL,
298 CONSTRAINT [PK_ProblemParameterStringValue_ProblemParameterId_ExperimentId] PRIMARY KEY CLUSTERED
299(
300  [ProblemParameterId] ASC,
301  [ExperimentId] ASC
302)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
303) ON [PRIMARY]
304GO
305/****** Object:  Table [dbo].[ProblemParameterIntValue]    Script Date: 09/25/2010 01:33:11 ******/
306SET ANSI_NULLS ON
307GO
308SET QUOTED_IDENTIFIER ON
309GO
310CREATE TABLE [dbo].[ProblemParameterIntValue](
311  [ProblemParameterId] [bigint] NOT NULL,
312  [ExperimentId] [bigint] NOT NULL,
313  [DataTypeId] [bigint] NOT NULL,
314  [Value] [bigint] NOT NULL,
315 CONSTRAINT [PK_ProblemParameterIntValue_ProblemParameterId_ExperimentId] PRIMARY KEY CLUSTERED
316(
317  [ProblemParameterId] ASC,
318  [ExperimentId] ASC
319)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
320) ON [PRIMARY]
321GO
322/****** Object:  Table [dbo].[ProblemParameterFloatValue]    Script Date: 09/25/2010 01:33:11 ******/
323SET ANSI_NULLS ON
324GO
325SET QUOTED_IDENTIFIER ON
326GO
327CREATE TABLE [dbo].[ProblemParameterFloatValue](
328  [ProblemParameterId] [bigint] NOT NULL,
329  [ExperimentId] [bigint] NOT NULL,
330  [DataTypeId] [bigint] NOT NULL,
331  [Value] [float] NOT NULL,
332 CONSTRAINT [PK_ProblemParameterFloatValue_ProblemParameterId_ExperimentId] PRIMARY KEY CLUSTERED
333(
334  [ProblemParameterId] ASC,
335  [ExperimentId] ASC
336)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
337) ON [PRIMARY]
338GO
339/****** Object:  Table [dbo].[ProblemParameterBoolValue]    Script Date: 09/25/2010 01:33:11 ******/
340SET ANSI_NULLS ON
341GO
342SET QUOTED_IDENTIFIER ON
343GO
344CREATE TABLE [dbo].[ProblemParameterBoolValue](
345  [ProblemParameterId] [bigint] NOT NULL,
346  [ExperimentId] [bigint] NOT NULL,
347  [DataTypeId] [bigint] NOT NULL,
348  [Value] [bit] NOT NULL,
349 CONSTRAINT [PK_ProblemParameterBoolValue_ProblemParameterId_ExperimentId] PRIMARY KEY CLUSTERED
350(
351  [ProblemParameterId] ASC,
352  [ExperimentId] ASC
353)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
354) ON [PRIMARY]
355GO
356/****** Object:  Table [dbo].[ProblemParameterBlobValue]    Script Date: 09/25/2010 01:33:11 ******/
357SET ANSI_NULLS ON
358GO
359SET QUOTED_IDENTIFIER ON
360GO
361SET ANSI_PADDING ON
362GO
363CREATE TABLE [dbo].[ProblemParameterBlobValue](
364  [ProblemParameterId] [bigint] NOT NULL,
365  [ExperimentId] [bigint] NOT NULL,
366  [DataTypeId] [bigint] NOT NULL,
367  [Value] [varbinary](max) NOT NULL,
368 CONSTRAINT [PK_ProblemParameterBlobValue_ProblemParameterId_ExperimentId] PRIMARY KEY CLUSTERED
369(
370  [ProblemParameterId] ASC,
371  [ExperimentId] ASC
372)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
373) ON [PRIMARY]
374GO
375SET ANSI_PADDING OFF
376GO
377/****** Object:  Table [dbo].[AlgorithmParameterStringValue]    Script Date: 09/25/2010 01:33:11 ******/
378SET ANSI_NULLS ON
379GO
380SET QUOTED_IDENTIFIER ON
381GO
382CREATE TABLE [dbo].[AlgorithmParameterStringValue](
383  [AlgorithmParameterId] [bigint] NOT NULL,
384  [ExperimentId] [bigint] NOT NULL,
385  [DataTypeId] [bigint] NOT NULL,
386  [Value] [nvarchar](max) NOT NULL,
387 CONSTRAINT [PK_AlgorithmParameterStringValue_ParameterId_ExperimentId] PRIMARY KEY CLUSTERED
388(
389  [AlgorithmParameterId] ASC,
390  [ExperimentId] ASC
391)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
392) ON [PRIMARY]
393GO
394/****** Object:  Table [dbo].[AlgorithmParameterIntValue]    Script Date: 09/25/2010 01:33:11 ******/
395SET ANSI_NULLS ON
396GO
397SET QUOTED_IDENTIFIER ON
398GO
399CREATE TABLE [dbo].[AlgorithmParameterIntValue](
400  [AlgorithmParameterId] [bigint] NOT NULL,
401  [ExperimentId] [bigint] NOT NULL,
402  [DataTypeId] [bigint] NOT NULL,
403  [Value] [bigint] NOT NULL,
404 CONSTRAINT [PK_AlgorithmParameterIntValue_AlgorithmParameterId_ExperimentId] PRIMARY KEY CLUSTERED
405(
406  [AlgorithmParameterId] ASC,
407  [ExperimentId] ASC
408)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
409) ON [PRIMARY]
410GO
411/****** Object:  Table [dbo].[AlgorithmParameterFloatValue]    Script Date: 09/25/2010 01:33:11 ******/
412SET ANSI_NULLS ON
413GO
414SET QUOTED_IDENTIFIER ON
415GO
416CREATE TABLE [dbo].[AlgorithmParameterFloatValue](
417  [AlgorithmParameterId] [bigint] NOT NULL,
418  [ExperimentId] [bigint] NOT NULL,
419  [DataTypeId] [bigint] NOT NULL,
420  [Value] [float] NOT NULL,
421 CONSTRAINT [PK_AlgorithmParameterFloatValue_AlgorithmParameterId_ExperimentId] PRIMARY KEY CLUSTERED
422(
423  [AlgorithmParameterId] ASC,
424  [ExperimentId] ASC
425)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
426) ON [PRIMARY]
427GO
428/****** Object:  Table [dbo].[AlgorithmParameterBoolValue]    Script Date: 09/25/2010 01:33:11 ******/
429SET ANSI_NULLS ON
430GO
431SET QUOTED_IDENTIFIER ON
432GO
433CREATE TABLE [dbo].[AlgorithmParameterBoolValue](
434  [AlgorithmParameterId] [bigint] NOT NULL,
435  [ExperimentId] [bigint] NOT NULL,
436  [DataTypeId] [bigint] NOT NULL,
437  [Value] [bit] NOT NULL,
438 CONSTRAINT [PK_AlgorithmParameterBoolValue_AlgorithmParameterId_ExperimentId] PRIMARY KEY CLUSTERED
439(
440  [AlgorithmParameterId] ASC,
441  [ExperimentId] ASC
442)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
443) ON [PRIMARY]
444GO
445/****** Object:  Table [dbo].[AlgorithmParameterBlobValue]    Script Date: 09/25/2010 01:33:11 ******/
446SET ANSI_NULLS ON
447GO
448SET QUOTED_IDENTIFIER ON
449GO
450SET ANSI_PADDING ON
451GO
452CREATE TABLE [dbo].[AlgorithmParameterBlobValue](
453  [AlgorithmParameterId] [bigint] NOT NULL,
454  [ExperimentId] [bigint] NOT NULL,
455  [DataTypeId] [bigint] NOT NULL,
456  [Value] [varbinary](max) NOT NULL,
457 CONSTRAINT [PK_AlgorithmParameterBlobValue_AlgorithmParameterId_ExperimentId] PRIMARY KEY CLUSTERED
458(
459  [AlgorithmParameterId] ASC,
460  [ExperimentId] ASC
461)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
462) ON [PRIMARY]
463GO
464SET ANSI_PADDING OFF
465GO
466/****** Object:  Table [dbo].[Run]    Script Date: 09/25/2010 01:33:11 ******/
467SET ANSI_NULLS ON
468GO
469SET QUOTED_IDENTIFIER ON
470GO
471CREATE TABLE [dbo].[Run](
472  [Id] [bigint] IDENTITY(1,1) NOT NULL,
473  [ExperimentId] [bigint] NOT NULL,
474  [RandomSeed] [int] NOT NULL,
475  [FinishedDate] [datetime2](7) NULL,
476  [UserId] [uniqueidentifier] NOT NULL,
477  [ClientId] [uniqueidentifier] NOT NULL,
478 CONSTRAINT [PK_Run_Id] PRIMARY KEY CLUSTERED
479(
480  [Id] ASC
481)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
482) ON [PRIMARY]
483GO
484CREATE NONCLUSTERED INDEX [IX_Run_ExperimentId] ON [dbo].[Run]
485(
486  [ExperimentId] ASC
487)
488INCLUDE ( [Id],
489[FinishedDate],
490[UserId],
491[ClientId]) WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
492GO
493/****** Object:  Table [dbo].[ResultStringValue]    Script Date: 09/25/2010 01:33:11 ******/
494SET ANSI_NULLS ON
495GO
496SET QUOTED_IDENTIFIER ON
497GO
498CREATE TABLE [dbo].[ResultStringValue](
499  [ResultId] [bigint] NOT NULL,
500  [RunId] [bigint] NOT NULL,
501  [DataTypeId] [bigint] NOT NULL,
502  [Value] [nvarchar](max) NOT NULL,
503 CONSTRAINT [PK_ResultStringValue_ResultId_RunId] PRIMARY KEY CLUSTERED
504(
505  [ResultId] ASC,
506  [RunId] ASC
507)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
508) ON [PRIMARY]
509GO
510/****** Object:  Table [dbo].[ResultIntValue]    Script Date: 09/25/2010 01:33:11 ******/
511SET ANSI_NULLS ON
512GO
513SET QUOTED_IDENTIFIER ON
514GO
515CREATE TABLE [dbo].[ResultIntValue](
516  [ResultId] [bigint] NOT NULL,
517  [RunId] [bigint] NOT NULL,
518  [DataTypeId] [bigint] NOT NULL,
519  [Value] [bigint] NOT NULL,
520 CONSTRAINT [PK_ResultIntValue_ResultId_RunId] PRIMARY KEY CLUSTERED
521(
522  [ResultId] ASC,
523  [RunId] ASC
524)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
525) ON [PRIMARY]
526GO
527/****** Object:  Table [dbo].[ResultFloatValue]    Script Date: 09/25/2010 01:33:11 ******/
528SET ANSI_NULLS ON
529GO
530SET QUOTED_IDENTIFIER ON
531GO
532CREATE TABLE [dbo].[ResultFloatValue](
533  [ResultId] [bigint] NOT NULL,
534  [RunId] [bigint] NOT NULL,
535  [DataTypeId] [bigint] NOT NULL,
536  [Value] [float] NOT NULL,
537 CONSTRAINT [PK_ResultFloatValue_ResultId_RunId] PRIMARY KEY CLUSTERED
538(
539  [ResultId] ASC,
540  [RunId] ASC
541)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
542) ON [PRIMARY]
543GO
544/****** Object:  Table [dbo].[ResultBoolValue]    Script Date: 09/25/2010 01:33:11 ******/
545SET ANSI_NULLS ON
546GO
547SET QUOTED_IDENTIFIER ON
548GO
549CREATE TABLE [dbo].[ResultBoolValue](
550  [ResultId] [bigint] NOT NULL,
551  [RunId] [bigint] NOT NULL,
552  [DataTypeId] [bigint] NOT NULL,
553  [Value] [bit] NOT NULL,
554 CONSTRAINT [PK_ResultBoolValue_ResultId_RunId] PRIMARY KEY CLUSTERED
555(
556  [ResultId] ASC,
557  [RunId] ASC
558)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
559) ON [PRIMARY]
560GO
561/****** Object:  Table [dbo].[ResultBlobValue]    Script Date: 09/25/2010 01:33:11 ******/
562SET ANSI_NULLS ON
563GO
564SET QUOTED_IDENTIFIER ON
565GO
566SET ANSI_PADDING ON
567GO
568CREATE TABLE [dbo].[ResultBlobValue](
569  [ResultId] [bigint] NOT NULL,
570  [RunId] [bigint] NOT NULL,
571  [DataTypeId] [bigint] NOT NULL,
572  [Value] [varbinary](max) NOT NULL,
573 CONSTRAINT [PK_ResultBlobValue_ResultId_RunId] PRIMARY KEY CLUSTERED
574(
575  [ResultId] ASC,
576  [RunId] ASC
577)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
578) ON [PRIMARY]
579GO
580SET ANSI_PADDING OFF
581GO
582/****** Object:  Check [CK_DataType_SqlName]    Script Date: 09/25/2010 01:33:11 ******/
583ALTER TABLE [dbo].[DataType]  WITH CHECK ADD  CONSTRAINT [CK_DataType_SqlName] CHECK  (([SqlName]='bigint' OR [SqlName]='bit' OR [SqlName]='float' OR [SqlName]='nvarchar' OR [SqlName]='varbinary'))
584GO
585ALTER TABLE [dbo].[DataType] CHECK CONSTRAINT [CK_DataType_SqlName]
586GO
587/****** Object:  ForeignKey [FK_AlgorithmClass_Algorithm]    Script Date: 09/25/2010 01:33:11 ******/
588ALTER TABLE [dbo].[Algorithm]  WITH CHECK ADD  CONSTRAINT [FK_AlgorithmClass_Algorithm] FOREIGN KEY([AlgorithmClassId])
589REFERENCES [dbo].[AlgorithmClass] ([Id])
590GO
591ALTER TABLE [dbo].[Algorithm] CHECK CONSTRAINT [FK_AlgorithmClass_Algorithm]
592GO
593/****** Object:  ForeignKey [FK_Platform_Algorithm]    Script Date: 09/25/2010 01:33:11 ******/
594ALTER TABLE [dbo].[Algorithm]  WITH CHECK ADD  CONSTRAINT [FK_Platform_Algorithm] FOREIGN KEY([PlatformId])
595REFERENCES [dbo].[Platform] ([Id])
596GO
597ALTER TABLE [dbo].[Algorithm] CHECK CONSTRAINT [FK_Platform_Algorithm]
598GO
599/****** Object:  ForeignKey [FK_Algorithm_AlgorithmData]    Script Date: 09/25/2010 01:33:11 ******/
600ALTER TABLE [dbo].[AlgorithmData]  WITH CHECK ADD  CONSTRAINT [FK_Algorithm_AlgorithmData] FOREIGN KEY([AlgorithmId])
601REFERENCES [dbo].[Algorithm] ([Id])
602ON UPDATE CASCADE
603ON DELETE CASCADE
604GO
605ALTER TABLE [dbo].[AlgorithmData] CHECK CONSTRAINT [FK_Algorithm_AlgorithmData]
606GO
607/****** Object:  ForeignKey [FK_DataType_AlgorithmData]    Script Date: 09/25/2010 01:33:11 ******/
608ALTER TABLE [dbo].[AlgorithmData]  WITH CHECK ADD  CONSTRAINT [FK_DataType_AlgorithmData] FOREIGN KEY([DataTypeId])
609REFERENCES [dbo].[DataType] ([Id])
610GO
611ALTER TABLE [dbo].[AlgorithmData] CHECK CONSTRAINT [FK_DataType_AlgorithmData]
612GO
613/****** Object:  ForeignKey [FK_Algorithm_AlgorithmParameter]    Script Date: 09/25/2010 01:33:11 ******/
614ALTER TABLE [dbo].[AlgorithmParameter]  WITH CHECK ADD  CONSTRAINT [FK_Algorithm_AlgorithmParameter] FOREIGN KEY([AlgorithmId])
615REFERENCES [dbo].[Algorithm] ([Id])
616GO
617ALTER TABLE [dbo].[AlgorithmParameter] CHECK CONSTRAINT [FK_Algorithm_AlgorithmParameter]
618GO
619/****** Object:  ForeignKey [FK_DataType_AlgorithmParameter]    Script Date: 09/25/2010 01:33:11 ******/
620ALTER TABLE [dbo].[AlgorithmParameter]  WITH CHECK ADD  CONSTRAINT [FK_DataType_AlgorithmParameter] FOREIGN KEY([DataTypeId])
621REFERENCES [dbo].[DataType] ([Id])
622GO
623ALTER TABLE [dbo].[AlgorithmParameter] CHECK CONSTRAINT [FK_DataType_AlgorithmParameter]
624GO
625/****** Object:  ForeignKey [FK_AlgorithmParameter_AlgorithmParameterBlobValue]    Script Date: 09/25/2010 01:33:11 ******/
626ALTER TABLE [dbo].[AlgorithmParameterBlobValue]  WITH CHECK ADD  CONSTRAINT [FK_AlgorithmParameter_AlgorithmParameterBlobValue] FOREIGN KEY([AlgorithmParameterId])
627REFERENCES [dbo].[AlgorithmParameter] ([Id])
628GO
629ALTER TABLE [dbo].[AlgorithmParameterBlobValue] CHECK CONSTRAINT [FK_AlgorithmParameter_AlgorithmParameterBlobValue]
630GO
631/****** Object:  ForeignKey [FK_DataType_AlgorithmParameterBlobValue]    Script Date: 09/25/2010 01:33:11 ******/
632ALTER TABLE [dbo].[AlgorithmParameterBlobValue]  WITH CHECK ADD  CONSTRAINT [FK_DataType_AlgorithmParameterBlobValue] FOREIGN KEY([DataTypeId])
633REFERENCES [dbo].[DataType] ([Id])
634GO
635ALTER TABLE [dbo].[AlgorithmParameterBlobValue] CHECK CONSTRAINT [FK_DataType_AlgorithmParameterBlobValue]
636GO
637/****** Object:  ForeignKey [FK_Experiment_AlgorithmParameterBlobValue]    Script Date: 09/25/2010 01:33:11 ******/
638ALTER TABLE [dbo].[AlgorithmParameterBlobValue]  WITH CHECK ADD  CONSTRAINT [FK_Experiment_AlgorithmParameterBlobValue] FOREIGN KEY([ExperimentId])
639REFERENCES [dbo].[Experiment] ([Id])
640GO
641ALTER TABLE [dbo].[AlgorithmParameterBlobValue] CHECK CONSTRAINT [FK_Experiment_AlgorithmParameterBlobValue]
642GO
643/****** Object:  ForeignKey [FK_AlgorithmParameter_AlgorithmParameterBoolValue]    Script Date: 09/25/2010 01:33:11 ******/
644ALTER TABLE [dbo].[AlgorithmParameterBoolValue]  WITH CHECK ADD  CONSTRAINT [FK_AlgorithmParameter_AlgorithmParameterBoolValue] FOREIGN KEY([AlgorithmParameterId])
645REFERENCES [dbo].[AlgorithmParameter] ([Id])
646GO
647ALTER TABLE [dbo].[AlgorithmParameterBoolValue] CHECK CONSTRAINT [FK_AlgorithmParameter_AlgorithmParameterBoolValue]
648GO
649/****** Object:  ForeignKey [FK_DataType_AlgorithmParameterBoolValue]    Script Date: 09/25/2010 01:33:11 ******/
650ALTER TABLE [dbo].[AlgorithmParameterBoolValue]  WITH CHECK ADD  CONSTRAINT [FK_DataType_AlgorithmParameterBoolValue] FOREIGN KEY([DataTypeId])
651REFERENCES [dbo].[DataType] ([Id])
652GO
653ALTER TABLE [dbo].[AlgorithmParameterBoolValue] CHECK CONSTRAINT [FK_DataType_AlgorithmParameterBoolValue]
654GO
655/****** Object:  ForeignKey [FK_Experiment_AlgorithmParameterBoolValue]    Script Date: 09/25/2010 01:33:11 ******/
656ALTER TABLE [dbo].[AlgorithmParameterBoolValue]  WITH CHECK ADD  CONSTRAINT [FK_Experiment_AlgorithmParameterBoolValue] FOREIGN KEY([ExperimentId])
657REFERENCES [dbo].[Experiment] ([Id])
658GO
659ALTER TABLE [dbo].[AlgorithmParameterBoolValue] CHECK CONSTRAINT [FK_Experiment_AlgorithmParameterBoolValue]
660GO
661/****** Object:  ForeignKey [FK_AlgorithmParameter_AlgorithmParameterFloatValue]    Script Date: 09/25/2010 01:33:11 ******/
662ALTER TABLE [dbo].[AlgorithmParameterFloatValue]  WITH CHECK ADD  CONSTRAINT [FK_AlgorithmParameter_AlgorithmParameterFloatValue] FOREIGN KEY([AlgorithmParameterId])
663REFERENCES [dbo].[AlgorithmParameter] ([Id])
664GO
665ALTER TABLE [dbo].[AlgorithmParameterFloatValue] CHECK CONSTRAINT [FK_AlgorithmParameter_AlgorithmParameterFloatValue]
666GO
667/****** Object:  ForeignKey [FK_DataType_AlgorithmParameterFloatValue]    Script Date: 09/25/2010 01:33:11 ******/
668ALTER TABLE [dbo].[AlgorithmParameterFloatValue]  WITH CHECK ADD  CONSTRAINT [FK_DataType_AlgorithmParameterFloatValue] FOREIGN KEY([DataTypeId])
669REFERENCES [dbo].[DataType] ([Id])
670GO
671ALTER TABLE [dbo].[AlgorithmParameterFloatValue] CHECK CONSTRAINT [FK_DataType_AlgorithmParameterFloatValue]
672GO
673/****** Object:  ForeignKey [FK_Experiment_AlgorithmParameterFloatValue]    Script Date: 09/25/2010 01:33:11 ******/
674ALTER TABLE [dbo].[AlgorithmParameterFloatValue]  WITH CHECK ADD  CONSTRAINT [FK_Experiment_AlgorithmParameterFloatValue] FOREIGN KEY([ExperimentId])
675REFERENCES [dbo].[Experiment] ([Id])
676GO
677ALTER TABLE [dbo].[AlgorithmParameterFloatValue] CHECK CONSTRAINT [FK_Experiment_AlgorithmParameterFloatValue]
678GO
679/****** Object:  ForeignKey [FK_AlgorithmParameter_AlgorithmParameterIntValue]    Script Date: 09/25/2010 01:33:11 ******/
680ALTER TABLE [dbo].[AlgorithmParameterIntValue]  WITH CHECK ADD  CONSTRAINT [FK_AlgorithmParameter_AlgorithmParameterIntValue] FOREIGN KEY([AlgorithmParameterId])
681REFERENCES [dbo].[AlgorithmParameter] ([Id])
682GO
683ALTER TABLE [dbo].[AlgorithmParameterIntValue] CHECK CONSTRAINT [FK_AlgorithmParameter_AlgorithmParameterIntValue]
684GO
685/****** Object:  ForeignKey [FK_DataType_AlgorithmParameterIntValue]    Script Date: 09/25/2010 01:33:11 ******/
686ALTER TABLE [dbo].[AlgorithmParameterIntValue]  WITH CHECK ADD  CONSTRAINT [FK_DataType_AlgorithmParameterIntValue] FOREIGN KEY([DataTypeId])
687REFERENCES [dbo].[DataType] ([Id])
688GO
689ALTER TABLE [dbo].[AlgorithmParameterIntValue] CHECK CONSTRAINT [FK_DataType_AlgorithmParameterIntValue]
690GO
691/****** Object:  ForeignKey [FK_Experiment_AlgorithmParameterIntValue]    Script Date: 09/25/2010 01:33:11 ******/
692ALTER TABLE [dbo].[AlgorithmParameterIntValue]  WITH CHECK ADD  CONSTRAINT [FK_Experiment_AlgorithmParameterIntValue] FOREIGN KEY([ExperimentId])
693REFERENCES [dbo].[Experiment] ([Id])
694GO
695ALTER TABLE [dbo].[AlgorithmParameterIntValue] CHECK CONSTRAINT [FK_Experiment_AlgorithmParameterIntValue]
696GO
697/****** Object:  ForeignKey [FK_AlgorithmParameter_AlgorithmParameterStringValue]    Script Date: 09/25/2010 01:33:11 ******/
698ALTER TABLE [dbo].[AlgorithmParameterStringValue]  WITH CHECK ADD  CONSTRAINT [FK_AlgorithmParameter_AlgorithmParameterStringValue] FOREIGN KEY([AlgorithmParameterId])
699REFERENCES [dbo].[AlgorithmParameter] ([Id])
700GO
701ALTER TABLE [dbo].[AlgorithmParameterStringValue] CHECK CONSTRAINT [FK_AlgorithmParameter_AlgorithmParameterStringValue]
702GO
703/****** Object:  ForeignKey [FK_DataType_AlgorithmParameterStringValue]    Script Date: 09/25/2010 01:33:11 ******/
704ALTER TABLE [dbo].[AlgorithmParameterStringValue]  WITH CHECK ADD  CONSTRAINT [FK_DataType_AlgorithmParameterStringValue] FOREIGN KEY([DataTypeId])
705REFERENCES [dbo].[DataType] ([Id])
706GO
707ALTER TABLE [dbo].[AlgorithmParameterStringValue] CHECK CONSTRAINT [FK_DataType_AlgorithmParameterStringValue]
708GO
709/****** Object:  ForeignKey [FK_Experiment_AlgorithmParameterStringValue]    Script Date: 09/25/2010 01:33:11 ******/
710ALTER TABLE [dbo].[AlgorithmParameterStringValue]  WITH CHECK ADD  CONSTRAINT [FK_Experiment_AlgorithmParameterStringValue] FOREIGN KEY([ExperimentId])
711REFERENCES [dbo].[Experiment] ([Id])
712GO
713ALTER TABLE [dbo].[AlgorithmParameterStringValue] CHECK CONSTRAINT [FK_Experiment_AlgorithmParameterStringValue]
714GO
715/****** Object:  ForeignKey [FK_Algorithm_AlgorithmUser]    Script Date: 09/25/2010 01:33:11 ******/
716ALTER TABLE [dbo].[AlgorithmUser]  WITH CHECK ADD  CONSTRAINT [FK_Algorithm_AlgorithmUser] FOREIGN KEY([AlgorithmId])
717REFERENCES [dbo].[Algorithm] ([Id])
718ON UPDATE CASCADE
719ON DELETE CASCADE
720GO
721ALTER TABLE [dbo].[AlgorithmUser] CHECK CONSTRAINT [FK_Algorithm_AlgorithmUser]
722GO
723/****** Object:  ForeignKey [FK_Platform_DataType]    Script Date: 09/25/2010 01:33:11 ******/
724ALTER TABLE [dbo].[DataType]  WITH CHECK ADD  CONSTRAINT [FK_Platform_DataType] FOREIGN KEY([PlatformId])
725REFERENCES [dbo].[Platform] ([Id])
726GO
727ALTER TABLE [dbo].[DataType] CHECK CONSTRAINT [FK_Platform_DataType]
728GO
729/****** Object:  ForeignKey [FK_Algorithm_Experiment]    Script Date: 09/25/2010 01:33:11 ******/
730ALTER TABLE [dbo].[Experiment]  WITH CHECK ADD  CONSTRAINT [FK_Algorithm_Experiment] FOREIGN KEY([AlgorithmId])
731REFERENCES [dbo].[Algorithm] ([Id])
732GO
733ALTER TABLE [dbo].[Experiment] CHECK CONSTRAINT [FK_Algorithm_Experiment]
734GO
735/****** Object:  ForeignKey [FK_Problem_Experiment]    Script Date: 09/25/2010 01:33:11 ******/
736ALTER TABLE [dbo].[Experiment]  WITH CHECK ADD  CONSTRAINT [FK_Problem_Experiment] FOREIGN KEY([ProblemId])
737REFERENCES [dbo].[Problem] ([Id])
738GO
739ALTER TABLE [dbo].[Experiment] CHECK CONSTRAINT [FK_Problem_Experiment]
740GO
741/****** Object:  ForeignKey [FK_Platform_Problem]    Script Date: 09/25/2010 01:33:11 ******/
742ALTER TABLE [dbo].[Problem]  WITH CHECK ADD  CONSTRAINT [FK_Platform_Problem] FOREIGN KEY([PlatformId])
743REFERENCES [dbo].[Platform] ([Id])
744GO
745ALTER TABLE [dbo].[Problem] CHECK CONSTRAINT [FK_Platform_Problem]
746GO
747/****** Object:  ForeignKey [FK_ProblemClass_Problem]    Script Date: 09/25/2010 01:33:11 ******/
748ALTER TABLE [dbo].[Problem]  WITH CHECK ADD  CONSTRAINT [FK_ProblemClass_Problem] FOREIGN KEY([ProblemClassId])
749REFERENCES [dbo].[ProblemClass] ([Id])
750GO
751ALTER TABLE [dbo].[Problem] CHECK CONSTRAINT [FK_ProblemClass_Problem]
752GO
753/****** Object:  ForeignKey [FK_DataType_ProblemData]    Script Date: 09/25/2010 01:33:11 ******/
754ALTER TABLE [dbo].[ProblemData]  WITH CHECK ADD  CONSTRAINT [FK_DataType_ProblemData] FOREIGN KEY([DataTypeId])
755REFERENCES [dbo].[DataType] ([Id])
756GO
757ALTER TABLE [dbo].[ProblemData] CHECK CONSTRAINT [FK_DataType_ProblemData]
758GO
759/****** Object:  ForeignKey [FK_Problem_ProblemData]    Script Date: 09/25/2010 01:33:11 ******/
760ALTER TABLE [dbo].[ProblemData]  WITH CHECK ADD  CONSTRAINT [FK_Problem_ProblemData] FOREIGN KEY([ProblemId])
761REFERENCES [dbo].[Problem] ([Id])
762ON UPDATE CASCADE
763ON DELETE CASCADE
764GO
765ALTER TABLE [dbo].[ProblemData] CHECK CONSTRAINT [FK_Problem_ProblemData]
766GO
767/****** Object:  ForeignKey [FK_DataType_ProblemParameter]    Script Date: 09/25/2010 01:33:11 ******/
768ALTER TABLE [dbo].[ProblemParameter]  WITH CHECK ADD  CONSTRAINT [FK_DataType_ProblemParameter] FOREIGN KEY([DataTypeId])
769REFERENCES [dbo].[DataType] ([Id])
770GO
771ALTER TABLE [dbo].[ProblemParameter] CHECK CONSTRAINT [FK_DataType_ProblemParameter]
772GO
773/****** Object:  ForeignKey [FK_Problem_ProblemParameter]    Script Date: 09/25/2010 01:33:11 ******/
774ALTER TABLE [dbo].[ProblemParameter]  WITH CHECK ADD  CONSTRAINT [FK_Problem_ProblemParameter] FOREIGN KEY([ProblemId])
775REFERENCES [dbo].[Problem] ([Id])
776GO
777ALTER TABLE [dbo].[ProblemParameter] CHECK CONSTRAINT [FK_Problem_ProblemParameter]
778GO
779/****** Object:  ForeignKey [FK_DataType_ProblemParameterBlobValue]    Script Date: 09/25/2010 01:33:11 ******/
780ALTER TABLE [dbo].[ProblemParameterBlobValue]  WITH CHECK ADD  CONSTRAINT [FK_DataType_ProblemParameterBlobValue] FOREIGN KEY([DataTypeId])
781REFERENCES [dbo].[DataType] ([Id])
782GO
783ALTER TABLE [dbo].[ProblemParameterBlobValue] CHECK CONSTRAINT [FK_DataType_ProblemParameterBlobValue]
784GO
785/****** Object:  ForeignKey [FK_Experiment_ProblemParameterBlobValue]    Script Date: 09/25/2010 01:33:11 ******/
786ALTER TABLE [dbo].[ProblemParameterBlobValue]  WITH CHECK ADD  CONSTRAINT [FK_Experiment_ProblemParameterBlobValue] FOREIGN KEY([ExperimentId])
787REFERENCES [dbo].[Experiment] ([Id])
788GO
789ALTER TABLE [dbo].[ProblemParameterBlobValue] CHECK CONSTRAINT [FK_Experiment_ProblemParameterBlobValue]
790GO
791/****** Object:  ForeignKey [FK_ProblemParameter_ProblemParameterBlobValue]    Script Date: 09/25/2010 01:33:11 ******/
792ALTER TABLE [dbo].[ProblemParameterBlobValue]  WITH CHECK ADD  CONSTRAINT [FK_ProblemParameter_ProblemParameterBlobValue] FOREIGN KEY([ProblemParameterId])
793REFERENCES [dbo].[ProblemParameter] ([Id])
794GO
795ALTER TABLE [dbo].[ProblemParameterBlobValue] CHECK CONSTRAINT [FK_ProblemParameter_ProblemParameterBlobValue]
796GO
797/****** Object:  ForeignKey [FK_DataType_ProblemParameterBoolValue]    Script Date: 09/25/2010 01:33:11 ******/
798ALTER TABLE [dbo].[ProblemParameterBoolValue]  WITH CHECK ADD  CONSTRAINT [FK_DataType_ProblemParameterBoolValue] FOREIGN KEY([DataTypeId])
799REFERENCES [dbo].[DataType] ([Id])
800GO
801ALTER TABLE [dbo].[ProblemParameterBoolValue] CHECK CONSTRAINT [FK_DataType_ProblemParameterBoolValue]
802GO
803/****** Object:  ForeignKey [FK_Experiment_ProblemParameterBoolValue]    Script Date: 09/25/2010 01:33:11 ******/
804ALTER TABLE [dbo].[ProblemParameterBoolValue]  WITH CHECK ADD  CONSTRAINT [FK_Experiment_ProblemParameterBoolValue] FOREIGN KEY([ExperimentId])
805REFERENCES [dbo].[Experiment] ([Id])
806GO
807ALTER TABLE [dbo].[ProblemParameterBoolValue] CHECK CONSTRAINT [FK_Experiment_ProblemParameterBoolValue]
808GO
809/****** Object:  ForeignKey [FK_ProblemParameter_ProblemParameterBoolValue]    Script Date: 09/25/2010 01:33:11 ******/
810ALTER TABLE [dbo].[ProblemParameterBoolValue]  WITH CHECK ADD  CONSTRAINT [FK_ProblemParameter_ProblemParameterBoolValue] FOREIGN KEY([ProblemParameterId])
811REFERENCES [dbo].[ProblemParameter] ([Id])
812GO
813ALTER TABLE [dbo].[ProblemParameterBoolValue] CHECK CONSTRAINT [FK_ProblemParameter_ProblemParameterBoolValue]
814GO
815/****** Object:  ForeignKey [FK_DataType_ProblemParameterFloatValue]    Script Date: 09/25/2010 01:33:11 ******/
816ALTER TABLE [dbo].[ProblemParameterFloatValue]  WITH CHECK ADD  CONSTRAINT [FK_DataType_ProblemParameterFloatValue] FOREIGN KEY([DataTypeId])
817REFERENCES [dbo].[DataType] ([Id])
818GO
819ALTER TABLE [dbo].[ProblemParameterFloatValue] CHECK CONSTRAINT [FK_DataType_ProblemParameterFloatValue]
820GO
821/****** Object:  ForeignKey [FK_Experiment_ProblemParameterFloatValue]    Script Date: 09/25/2010 01:33:11 ******/
822ALTER TABLE [dbo].[ProblemParameterFloatValue]  WITH CHECK ADD  CONSTRAINT [FK_Experiment_ProblemParameterFloatValue] FOREIGN KEY([ExperimentId])
823REFERENCES [dbo].[Experiment] ([Id])
824GO
825ALTER TABLE [dbo].[ProblemParameterFloatValue] CHECK CONSTRAINT [FK_Experiment_ProblemParameterFloatValue]
826GO
827/****** Object:  ForeignKey [FK_ProblemParameter_ProblemParameterFloatValue]    Script Date: 09/25/2010 01:33:11 ******/
828ALTER TABLE [dbo].[ProblemParameterFloatValue]  WITH CHECK ADD  CONSTRAINT [FK_ProblemParameter_ProblemParameterFloatValue] FOREIGN KEY([ProblemParameterId])
829REFERENCES [dbo].[ProblemParameter] ([Id])
830GO
831ALTER TABLE [dbo].[ProblemParameterFloatValue] CHECK CONSTRAINT [FK_ProblemParameter_ProblemParameterFloatValue]
832GO
833/****** Object:  ForeignKey [FK_DataType_ProblemParameterIntValue]    Script Date: 09/25/2010 01:33:11 ******/
834ALTER TABLE [dbo].[ProblemParameterIntValue]  WITH CHECK ADD  CONSTRAINT [FK_DataType_ProblemParameterIntValue] FOREIGN KEY([DataTypeId])
835REFERENCES [dbo].[DataType] ([Id])
836GO
837ALTER TABLE [dbo].[ProblemParameterIntValue] CHECK CONSTRAINT [FK_DataType_ProblemParameterIntValue]
838GO
839/****** Object:  ForeignKey [FK_Experiment_ProblemParameterIntValue]    Script Date: 09/25/2010 01:33:11 ******/
840ALTER TABLE [dbo].[ProblemParameterIntValue]  WITH CHECK ADD  CONSTRAINT [FK_Experiment_ProblemParameterIntValue] FOREIGN KEY([ExperimentId])
841REFERENCES [dbo].[Experiment] ([Id])
842GO
843ALTER TABLE [dbo].[ProblemParameterIntValue] CHECK CONSTRAINT [FK_Experiment_ProblemParameterIntValue]
844GO
845/****** Object:  ForeignKey [FK_ProblemParameter_ProblemParameterIntValue]    Script Date: 09/25/2010 01:33:11 ******/
846ALTER TABLE [dbo].[ProblemParameterIntValue]  WITH CHECK ADD  CONSTRAINT [FK_ProblemParameter_ProblemParameterIntValue] FOREIGN KEY([ProblemParameterId])
847REFERENCES [dbo].[ProblemParameter] ([Id])
848GO
849ALTER TABLE [dbo].[ProblemParameterIntValue] CHECK CONSTRAINT [FK_ProblemParameter_ProblemParameterIntValue]
850GO
851/****** Object:  ForeignKey [FK_DataType_ProblemParameterStringValue]    Script Date: 09/25/2010 01:33:11 ******/
852ALTER TABLE [dbo].[ProblemParameterStringValue]  WITH CHECK ADD  CONSTRAINT [FK_DataType_ProblemParameterStringValue] FOREIGN KEY([DataTypeId])
853REFERENCES [dbo].[DataType] ([Id])
854GO
855ALTER TABLE [dbo].[ProblemParameterStringValue] CHECK CONSTRAINT [FK_DataType_ProblemParameterStringValue]
856GO
857/****** Object:  ForeignKey [FK_Experiment_ProblemParameterStringValue]    Script Date: 09/25/2010 01:33:11 ******/
858ALTER TABLE [dbo].[ProblemParameterStringValue]  WITH CHECK ADD  CONSTRAINT [FK_Experiment_ProblemParameterStringValue] FOREIGN KEY([ExperimentId])
859REFERENCES [dbo].[Experiment] ([Id])
860GO
861ALTER TABLE [dbo].[ProblemParameterStringValue] CHECK CONSTRAINT [FK_Experiment_ProblemParameterStringValue]
862GO
863/****** Object:  ForeignKey [FK_ProblemParameter_ProblemParameterStringValue]    Script Date: 09/25/2010 01:33:11 ******/
864ALTER TABLE [dbo].[ProblemParameterStringValue]  WITH CHECK ADD  CONSTRAINT [FK_ProblemParameter_ProblemParameterStringValue] FOREIGN KEY([ProblemParameterId])
865REFERENCES [dbo].[ProblemParameter] ([Id])
866GO
867ALTER TABLE [dbo].[ProblemParameterStringValue] CHECK CONSTRAINT [FK_ProblemParameter_ProblemParameterStringValue]
868GO
869/****** Object:  ForeignKey [FK_Problem_ProblemUser]    Script Date: 09/25/2010 01:33:11 ******/
870ALTER TABLE [dbo].[ProblemUser]  WITH CHECK ADD  CONSTRAINT [FK_Problem_ProblemUser] FOREIGN KEY([ProblemId])
871REFERENCES [dbo].[Problem] ([Id])
872ON UPDATE CASCADE
873ON DELETE CASCADE
874GO
875ALTER TABLE [dbo].[ProblemUser] CHECK CONSTRAINT [FK_Problem_ProblemUser]
876GO
877/****** Object:  ForeignKey [FK_Algorithm_Result]    Script Date: 09/25/2010 01:33:11 ******/
878ALTER TABLE [dbo].[Result]  WITH CHECK ADD  CONSTRAINT [FK_Algorithm_Result] FOREIGN KEY([AlgorithmId])
879REFERENCES [dbo].[Algorithm] ([Id])
880GO
881ALTER TABLE [dbo].[Result] CHECK CONSTRAINT [FK_Algorithm_Result]
882GO
883/****** Object:  ForeignKey [FK_DataType_Result]    Script Date: 09/25/2010 01:33:11 ******/
884ALTER TABLE [dbo].[Result]  WITH CHECK ADD  CONSTRAINT [FK_DataType_Result] FOREIGN KEY([DataTypeId])
885REFERENCES [dbo].[DataType] ([Id])
886GO
887ALTER TABLE [dbo].[Result] CHECK CONSTRAINT [FK_DataType_Result]
888GO
889/****** Object:  ForeignKey [FK_DataType_ResultBlobValue]    Script Date: 09/25/2010 01:33:11 ******/
890ALTER TABLE [dbo].[ResultBlobValue]  WITH CHECK ADD  CONSTRAINT [FK_DataType_ResultBlobValue] FOREIGN KEY([DataTypeId])
891REFERENCES [dbo].[DataType] ([Id])
892GO
893ALTER TABLE [dbo].[ResultBlobValue] CHECK CONSTRAINT [FK_DataType_ResultBlobValue]
894GO
895/****** Object:  ForeignKey [FK_Result_ResultBlobValue]    Script Date: 09/25/2010 01:33:11 ******/
896ALTER TABLE [dbo].[ResultBlobValue]  WITH CHECK ADD  CONSTRAINT [FK_Result_ResultBlobValue] FOREIGN KEY([ResultId])
897REFERENCES [dbo].[Result] ([Id])
898GO
899ALTER TABLE [dbo].[ResultBlobValue] CHECK CONSTRAINT [FK_Result_ResultBlobValue]
900GO
901/****** Object:  ForeignKey [FK_Run_ResultBlobValue]    Script Date: 09/25/2010 01:33:11 ******/
902ALTER TABLE [dbo].[ResultBlobValue]  WITH CHECK ADD  CONSTRAINT [FK_Run_ResultBlobValue] FOREIGN KEY([RunId])
903REFERENCES [dbo].[Run] ([Id])
904GO
905ALTER TABLE [dbo].[ResultBlobValue] CHECK CONSTRAINT [FK_Run_ResultBlobValue]
906GO
907/****** Object:  ForeignKey [FK_DataType_ResultBoolValue]    Script Date: 09/25/2010 01:33:11 ******/
908ALTER TABLE [dbo].[ResultBoolValue]  WITH CHECK ADD  CONSTRAINT [FK_DataType_ResultBoolValue] FOREIGN KEY([DataTypeId])
909REFERENCES [dbo].[DataType] ([Id])
910GO
911ALTER TABLE [dbo].[ResultBoolValue] CHECK CONSTRAINT [FK_DataType_ResultBoolValue]
912GO
913/****** Object:  ForeignKey [FK_Result_ResultBoolValue]    Script Date: 09/25/2010 01:33:11 ******/
914ALTER TABLE [dbo].[ResultBoolValue]  WITH CHECK ADD  CONSTRAINT [FK_Result_ResultBoolValue] FOREIGN KEY([ResultId])
915REFERENCES [dbo].[Result] ([Id])
916GO
917ALTER TABLE [dbo].[ResultBoolValue] CHECK CONSTRAINT [FK_Result_ResultBoolValue]
918GO
919/****** Object:  ForeignKey [FK_Run_ResultBoolValue]    Script Date: 09/25/2010 01:33:11 ******/
920ALTER TABLE [dbo].[ResultBoolValue]  WITH CHECK ADD  CONSTRAINT [FK_Run_ResultBoolValue] FOREIGN KEY([RunId])
921REFERENCES [dbo].[Run] ([Id])
922GO
923ALTER TABLE [dbo].[ResultBoolValue] CHECK CONSTRAINT [FK_Run_ResultBoolValue]
924GO
925/****** Object:  ForeignKey [FK_DataType_ResultFloatValue]    Script Date: 09/25/2010 01:33:11 ******/
926ALTER TABLE [dbo].[ResultFloatValue]  WITH CHECK ADD  CONSTRAINT [FK_DataType_ResultFloatValue] FOREIGN KEY([DataTypeId])
927REFERENCES [dbo].[DataType] ([Id])
928GO
929ALTER TABLE [dbo].[ResultFloatValue] CHECK CONSTRAINT [FK_DataType_ResultFloatValue]
930GO
931/****** Object:  ForeignKey [FK_Result_ResultFloatValue]    Script Date: 09/25/2010 01:33:11 ******/
932ALTER TABLE [dbo].[ResultFloatValue]  WITH CHECK ADD  CONSTRAINT [FK_Result_ResultFloatValue] FOREIGN KEY([ResultId])
933REFERENCES [dbo].[Result] ([Id])
934GO
935ALTER TABLE [dbo].[ResultFloatValue] CHECK CONSTRAINT [FK_Result_ResultFloatValue]
936GO
937/****** Object:  ForeignKey [FK_Run_ResultFloatValue]    Script Date: 09/25/2010 01:33:11 ******/
938ALTER TABLE [dbo].[ResultFloatValue]  WITH CHECK ADD  CONSTRAINT [FK_Run_ResultFloatValue] FOREIGN KEY([RunId])
939REFERENCES [dbo].[Run] ([Id])
940GO
941ALTER TABLE [dbo].[ResultFloatValue] CHECK CONSTRAINT [FK_Run_ResultFloatValue]
942GO
943/****** Object:  ForeignKey [FK_DataType_ResultIntValue]    Script Date: 09/25/2010 01:33:11 ******/
944ALTER TABLE [dbo].[ResultIntValue]  WITH CHECK ADD  CONSTRAINT [FK_DataType_ResultIntValue] FOREIGN KEY([DataTypeId])
945REFERENCES [dbo].[DataType] ([Id])
946GO
947ALTER TABLE [dbo].[ResultIntValue] CHECK CONSTRAINT [FK_DataType_ResultIntValue]
948GO
949/****** Object:  ForeignKey [FK_Result_ResultIntValue]    Script Date: 09/25/2010 01:33:11 ******/
950ALTER TABLE [dbo].[ResultIntValue]  WITH CHECK ADD  CONSTRAINT [FK_Result_ResultIntValue] FOREIGN KEY([ResultId])
951REFERENCES [dbo].[Result] ([Id])
952GO
953ALTER TABLE [dbo].[ResultIntValue] CHECK CONSTRAINT [FK_Result_ResultIntValue]
954GO
955/****** Object:  ForeignKey [FK_Run_ResultIntValue]    Script Date: 09/25/2010 01:33:11 ******/
956ALTER TABLE [dbo].[ResultIntValue]  WITH CHECK ADD  CONSTRAINT [FK_Run_ResultIntValue] FOREIGN KEY([RunId])
957REFERENCES [dbo].[Run] ([Id])
958GO
959ALTER TABLE [dbo].[ResultIntValue] CHECK CONSTRAINT [FK_Run_ResultIntValue]
960GO
961/****** Object:  ForeignKey [FK_DataType_ResultStringValue]    Script Date: 09/25/2010 01:33:11 ******/
962ALTER TABLE [dbo].[ResultStringValue]  WITH CHECK ADD  CONSTRAINT [FK_DataType_ResultStringValue] FOREIGN KEY([DataTypeId])
963REFERENCES [dbo].[DataType] ([Id])
964GO
965ALTER TABLE [dbo].[ResultStringValue] CHECK CONSTRAINT [FK_DataType_ResultStringValue]
966GO
967/****** Object:  ForeignKey [FK_Result_ResultStringValue]    Script Date: 09/25/2010 01:33:11 ******/
968ALTER TABLE [dbo].[ResultStringValue]  WITH CHECK ADD  CONSTRAINT [FK_Result_ResultStringValue] FOREIGN KEY([ResultId])
969REFERENCES [dbo].[Result] ([Id])
970GO
971ALTER TABLE [dbo].[ResultStringValue] CHECK CONSTRAINT [FK_Result_ResultStringValue]
972GO
973/****** Object:  ForeignKey [FK_Run_ResultStringValue]    Script Date: 09/25/2010 01:33:11 ******/
974ALTER TABLE [dbo].[ResultStringValue]  WITH CHECK ADD  CONSTRAINT [FK_Run_ResultStringValue] FOREIGN KEY([RunId])
975REFERENCES [dbo].[Run] ([Id])
976GO
977ALTER TABLE [dbo].[ResultStringValue] CHECK CONSTRAINT [FK_Run_ResultStringValue]
978GO
979/****** Object:  ForeignKey [FK_Experiment_Run]    Script Date: 09/25/2010 01:33:11 ******/
980ALTER TABLE [dbo].[Run]  WITH CHECK ADD  CONSTRAINT [FK_Experiment_Run] FOREIGN KEY([ExperimentId])
981REFERENCES [dbo].[Experiment] ([Id])
982GO
983ALTER TABLE [dbo].[Run] CHECK CONSTRAINT [FK_Experiment_Run]
984GO
Note: See TracBrowser for help on using the repository browser.