Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Services.OKB.DataAccess/3.3/SQL Scripts/Initialize OKB.sql @ 4390

Last change on this file since 4390 was 4381, checked in by swagner, 14 years ago

Worked on OKB data model and services (#1174).

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