Free cookie consent management tool by TermsFeed Policy Generator

source: branches/OKB (trunk integration)/HeuristicLab.Services.OKB.DataAccess/3.3/SQL Scripts/Initialize OKB.sql @ 5304

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