1 | USE [HeuristicLab.OKB]
|
---|
2 | GO
|
---|
3 | /****** Object: Table [dbo].[ValueName] Script Date: 01/31/2011 02:17:22 ******/
|
---|
4 | SET ANSI_NULLS ON
|
---|
5 | GO
|
---|
6 | SET QUOTED_IDENTIFIER ON
|
---|
7 | GO
|
---|
8 | CREATE TABLE [dbo].[ValueName](
|
---|
9 | [Id] [bigint] IDENTITY(1,1) NOT NULL,
|
---|
10 | [Name] [nvarchar](200) NOT NULL,
|
---|
11 | [Category] [tinyint] NOT NULL,
|
---|
12 | [Type] [tinyint] NOT NULL,
|
---|
13 | CONSTRAINT [PK_ValueName_Id] PRIMARY KEY CLUSTERED
|
---|
14 | (
|
---|
15 | [Id] ASC
|
---|
16 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
---|
17 | ) ON [PRIMARY]
|
---|
18 | GO
|
---|
19 | /****** Object: Table [dbo].[ProblemClass] Script Date: 01/31/2011 02:17:22 ******/
|
---|
20 | SET ANSI_NULLS ON
|
---|
21 | GO
|
---|
22 | SET QUOTED_IDENTIFIER ON
|
---|
23 | GO
|
---|
24 | CREATE TABLE [dbo].[ProblemClass](
|
---|
25 | [Id] [bigint] IDENTITY(1,1) NOT NULL,
|
---|
26 | [Name] [nvarchar](200) NOT NULL,
|
---|
27 | [Description] [nvarchar](max) NULL,
|
---|
28 | CONSTRAINT [PK_ProblemClass_Id] PRIMARY KEY CLUSTERED
|
---|
29 | (
|
---|
30 | [Id] ASC
|
---|
31 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY],
|
---|
32 | CONSTRAINT [UQ_ProblemClass_Name] UNIQUE NONCLUSTERED
|
---|
33 | (
|
---|
34 | [Name] ASC
|
---|
35 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
---|
36 | ) ON [PRIMARY]
|
---|
37 | GO
|
---|
38 | SET IDENTITY_INSERT [dbo].[ProblemClass] ON
|
---|
39 | INSERT [dbo].[ProblemClass] ([Id], [Name], [Description]) VALUES (1, N'Unknown', N'Unknown or undefined problem class.')
|
---|
40 | SET IDENTITY_INSERT [dbo].[ProblemClass] OFF
|
---|
41 | /****** Object: Table [dbo].[Characteristic] Script Date: 01/31/2011 02:17:22 ******/
|
---|
42 | SET ANSI_NULLS ON
|
---|
43 | GO
|
---|
44 | SET QUOTED_IDENTIFIER ON
|
---|
45 | GO
|
---|
46 | CREATE TABLE [dbo].[Characteristic](
|
---|
47 | [Id] [bigint] IDENTITY(1,1) NOT NULL,
|
---|
48 | [Name] [nvarchar](200) NOT NULL,
|
---|
49 | [Type] [tinyint] NOT NULL,
|
---|
50 | CONSTRAINT [PK_Characteristic_Id] PRIMARY KEY CLUSTERED
|
---|
51 | (
|
---|
52 | [Id] ASC
|
---|
53 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
---|
54 | ) ON [PRIMARY]
|
---|
55 | GO
|
---|
56 | /****** Object: Table [dbo].[BinaryData] Script Date: 01/31/2011 02:17:22 ******/
|
---|
57 | SET ARITHABORT ON
|
---|
58 | GO
|
---|
59 | SET CONCAT_NULL_YIELDS_NULL ON
|
---|
60 | GO
|
---|
61 | SET ANSI_NULLS ON
|
---|
62 | GO
|
---|
63 | SET ANSI_PADDING ON
|
---|
64 | GO
|
---|
65 | SET ANSI_WARNINGS ON
|
---|
66 | GO
|
---|
67 | SET NUMERIC_ROUNDABORT OFF
|
---|
68 | GO
|
---|
69 | SET ANSI_NULLS ON
|
---|
70 | GO
|
---|
71 | SET QUOTED_IDENTIFIER ON
|
---|
72 | GO
|
---|
73 | SET ANSI_PADDING ON
|
---|
74 | GO
|
---|
75 | SET ARITHABORT ON
|
---|
76 | GO
|
---|
77 | CREATE TABLE [dbo].[BinaryData](
|
---|
78 | [Id] [bigint] IDENTITY(1,1) NOT NULL,
|
---|
79 | [Data] [varbinary](max) NOT NULL,
|
---|
80 | [Hash] AS (CONVERT([varbinary](20),hashbytes('SHA1',[Data]),(0))) PERSISTED,
|
---|
81 | CONSTRAINT [PK_BinaryData_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_BinaryData_Hash] UNIQUE NONCLUSTERED
|
---|
86 | (
|
---|
87 | [Hash] ASC
|
---|
88 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
---|
89 | ) ON [PRIMARY]
|
---|
90 | GO
|
---|
91 | SET ANSI_PADDING OFF
|
---|
92 | GO
|
---|
93 | /****** Object: Table [dbo].[AlgorithmClass] Script Date: 01/31/2011 02:17:22 ******/
|
---|
94 | SET ANSI_NULLS ON
|
---|
95 | GO
|
---|
96 | SET QUOTED_IDENTIFIER ON
|
---|
97 | GO
|
---|
98 | CREATE TABLE [dbo].[AlgorithmClass](
|
---|
99 | [Id] [bigint] IDENTITY(1,1) NOT NULL,
|
---|
100 | [Name] [nvarchar](200) NOT NULL,
|
---|
101 | [Description] [nvarchar](max) NULL,
|
---|
102 | CONSTRAINT [PK_AlgorithmClass_Id] PRIMARY KEY CLUSTERED
|
---|
103 | (
|
---|
104 | [Id] ASC
|
---|
105 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY],
|
---|
106 | CONSTRAINT [UQ_AlgorithmClass_Name] UNIQUE NONCLUSTERED
|
---|
107 | (
|
---|
108 | [Name] ASC
|
---|
109 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
---|
110 | ) ON [PRIMARY]
|
---|
111 | GO
|
---|
112 | SET IDENTITY_INSERT [dbo].[AlgorithmClass] ON
|
---|
113 | INSERT [dbo].[AlgorithmClass] ([Id], [Name], [Description]) VALUES (1, N'Unknown', N'Unknown or undefined algorithm class.')
|
---|
114 | SET IDENTITY_INSERT [dbo].[AlgorithmClass] OFF
|
---|
115 | /****** Object: Table [dbo].[Platform] Script Date: 01/31/2011 02:17:22 ******/
|
---|
116 | SET ANSI_NULLS ON
|
---|
117 | GO
|
---|
118 | SET QUOTED_IDENTIFIER ON
|
---|
119 | GO
|
---|
120 | CREATE TABLE [dbo].[Platform](
|
---|
121 | [Id] [bigint] IDENTITY(1,1) NOT NULL,
|
---|
122 | [Name] [nvarchar](200) NOT NULL,
|
---|
123 | [Description] [nvarchar](max) NULL,
|
---|
124 | CONSTRAINT [PK_Platform_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_Platform_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]
|
---|
133 | GO
|
---|
134 | SET IDENTITY_INSERT [dbo].[Platform] ON
|
---|
135 | INSERT [dbo].[Platform] ([Id], [Name], [Description]) VALUES (1, N'Unknown', N'Unknown or undefined platform.')
|
---|
136 | INSERT [dbo].[Platform] ([Id], [Name], [Description]) VALUES (2, N'HeuristicLab 3.3', NULL)
|
---|
137 | SET IDENTITY_INSERT [dbo].[Platform] OFF
|
---|
138 | /****** Object: Table [dbo].[DataType] Script Date: 01/31/2011 02:17:22 ******/
|
---|
139 | SET ANSI_NULLS ON
|
---|
140 | GO
|
---|
141 | SET QUOTED_IDENTIFIER ON
|
---|
142 | GO
|
---|
143 | CREATE TABLE [dbo].[DataType](
|
---|
144 | [Id] [bigint] IDENTITY(1,1) NOT NULL,
|
---|
145 | [PlatformId] [bigint] NOT NULL,
|
---|
146 | [Name] [nvarchar](200) NOT NULL,
|
---|
147 | [TypeName] [nvarchar](max) NOT NULL,
|
---|
148 | CONSTRAINT [PK_DataType_Id] PRIMARY KEY CLUSTERED
|
---|
149 | (
|
---|
150 | [Id] 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]
|
---|
153 | GO
|
---|
154 | /****** Object: Table [dbo].[Problem] Script Date: 01/31/2011 02:17:22 ******/
|
---|
155 | SET ANSI_NULLS ON
|
---|
156 | GO
|
---|
157 | SET QUOTED_IDENTIFIER ON
|
---|
158 | GO
|
---|
159 | CREATE TABLE [dbo].[Problem](
|
---|
160 | [Id] [bigint] IDENTITY(1,1) NOT NULL,
|
---|
161 | [ProblemClassId] [bigint] NOT NULL,
|
---|
162 | [PlatformId] [bigint] NOT NULL,
|
---|
163 | [DataTypeId] [bigint] NOT NULL,
|
---|
164 | [BinaryDataId] [bigint] NOT NULL,
|
---|
165 | [Name] [nvarchar](200) NOT NULL,
|
---|
166 | [Description] [nvarchar](max) NULL,
|
---|
167 | CONSTRAINT [PK_Problem_Id] PRIMARY KEY CLUSTERED
|
---|
168 | (
|
---|
169 | [Id] ASC
|
---|
170 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY],
|
---|
171 | CONSTRAINT [UQ_Problem_Name_PlatformId] UNIQUE NONCLUSTERED
|
---|
172 | (
|
---|
173 | [Name] ASC,
|
---|
174 | [PlatformId] ASC
|
---|
175 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
---|
176 | ) ON [PRIMARY]
|
---|
177 | GO
|
---|
178 | /****** Object: Table [dbo].[Algorithm] Script Date: 01/31/2011 02:17:22 ******/
|
---|
179 | SET ANSI_NULLS ON
|
---|
180 | GO
|
---|
181 | SET QUOTED_IDENTIFIER ON
|
---|
182 | GO
|
---|
183 | CREATE TABLE [dbo].[Algorithm](
|
---|
184 | [Id] [bigint] IDENTITY(1,1) NOT NULL,
|
---|
185 | [AlgorithmClassId] [bigint] NOT NULL,
|
---|
186 | [PlatformId] [bigint] NOT NULL,
|
---|
187 | [DataTypeId] [bigint] NOT NULL,
|
---|
188 | [BinaryDataId] [bigint] NOT NULL,
|
---|
189 | [Name] [nvarchar](200) NOT NULL,
|
---|
190 | [Description] [nvarchar](max) NULL,
|
---|
191 | CONSTRAINT [PK_Algorithm_Id] PRIMARY KEY CLUSTERED
|
---|
192 | (
|
---|
193 | [Id] ASC
|
---|
194 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY],
|
---|
195 | CONSTRAINT [UQ_Algorithm_Name_PlatformId] UNIQUE NONCLUSTERED
|
---|
196 | (
|
---|
197 | [Name] ASC,
|
---|
198 | [PlatformId] ASC
|
---|
199 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
---|
200 | ) ON [PRIMARY]
|
---|
201 | GO
|
---|
202 | /****** Object: Table [dbo].[CharacteristicValue] Script Date: 01/31/2011 02:17:22 ******/
|
---|
203 | SET ANSI_NULLS ON
|
---|
204 | GO
|
---|
205 | SET QUOTED_IDENTIFIER ON
|
---|
206 | GO
|
---|
207 | CREATE TABLE [dbo].[CharacteristicValue](
|
---|
208 | [Id] [bigint] IDENTITY(1,1) NOT NULL,
|
---|
209 | [ProblemId] [bigint] NOT NULL,
|
---|
210 | [CharacteristicId] [bigint] NOT NULL,
|
---|
211 | [DataTypeId] [bigint] NOT NULL,
|
---|
212 | [BoolValue] [bit] SPARSE NULL,
|
---|
213 | [IntValue] [int] SPARSE NULL,
|
---|
214 | [LongValue] [bigint] SPARSE NULL,
|
---|
215 | [FloatValue] [real] SPARSE NULL,
|
---|
216 | [DoubleValue] [float] SPARSE NULL,
|
---|
217 | [StringValue] [nvarchar](max) SPARSE NULL,
|
---|
218 | CONSTRAINT [PK_CharacteristicValue_Id] PRIMARY KEY CLUSTERED
|
---|
219 | (
|
---|
220 | [Id] ASC
|
---|
221 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
---|
222 | ) ON [PRIMARY]
|
---|
223 | GO
|
---|
224 | /****** Object: Table [dbo].[AlgorithmUser] Script Date: 01/31/2011 02:17:22 ******/
|
---|
225 | SET ANSI_NULLS ON
|
---|
226 | GO
|
---|
227 | SET QUOTED_IDENTIFIER ON
|
---|
228 | GO
|
---|
229 | CREATE TABLE [dbo].[AlgorithmUser](
|
---|
230 | [AlgorithmId] [bigint] NOT NULL,
|
---|
231 | [UserId] [uniqueidentifier] NOT NULL,
|
---|
232 | CONSTRAINT [PK_AlgorithmUser_AlgorithmId_UserId] PRIMARY KEY CLUSTERED
|
---|
233 | (
|
---|
234 | [AlgorithmId] ASC,
|
---|
235 | [UserId] ASC
|
---|
236 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
---|
237 | ) ON [PRIMARY]
|
---|
238 | GO
|
---|
239 | /****** Object: Table [dbo].[Run] Script Date: 01/31/2011 02:17:22 ******/
|
---|
240 | SET ANSI_NULLS ON
|
---|
241 | GO
|
---|
242 | SET QUOTED_IDENTIFIER ON
|
---|
243 | GO
|
---|
244 | CREATE TABLE [dbo].[Run](
|
---|
245 | [Id] [bigint] IDENTITY(1,1) NOT NULL,
|
---|
246 | [AlgorithmId] [bigint] NOT NULL,
|
---|
247 | [ProblemId] [bigint] NOT NULL,
|
---|
248 | [RandomSeed] [int] NOT NULL,
|
---|
249 | [CreatedDate] [datetime2](7) NOT NULL,
|
---|
250 | [UserId] [uniqueidentifier] NOT NULL,
|
---|
251 | [ClientId] [uniqueidentifier] NOT NULL,
|
---|
252 | CONSTRAINT [PK_Run_Id] PRIMARY KEY CLUSTERED
|
---|
253 | (
|
---|
254 | [Id] ASC
|
---|
255 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
---|
256 | ) ON [PRIMARY]
|
---|
257 | GO
|
---|
258 | /****** Object: Table [dbo].[ProblemUser] Script Date: 01/31/2011 02:17:22 ******/
|
---|
259 | SET ANSI_NULLS ON
|
---|
260 | GO
|
---|
261 | SET QUOTED_IDENTIFIER ON
|
---|
262 | GO
|
---|
263 | CREATE TABLE [dbo].[ProblemUser](
|
---|
264 | [ProblemId] [bigint] NOT NULL,
|
---|
265 | [UserId] [uniqueidentifier] NOT NULL,
|
---|
266 | CONSTRAINT [PK_ProblemUser_ProblemId_UserId] PRIMARY KEY CLUSTERED
|
---|
267 | (
|
---|
268 | [ProblemId] ASC,
|
---|
269 | [UserId] ASC
|
---|
270 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
---|
271 | ) ON [PRIMARY]
|
---|
272 | GO
|
---|
273 | /****** Object: Table [dbo].[Value] Script Date: 01/31/2011 02:17:22 ******/
|
---|
274 | SET ANSI_NULLS ON
|
---|
275 | GO
|
---|
276 | SET QUOTED_IDENTIFIER ON
|
---|
277 | GO
|
---|
278 | CREATE TABLE [dbo].[Value](
|
---|
279 | [Id] [bigint] IDENTITY(1,1) NOT NULL,
|
---|
280 | [RunId] [bigint] NOT NULL,
|
---|
281 | [ValueNameId] [bigint] NOT NULL,
|
---|
282 | [DataTypeId] [bigint] NOT NULL,
|
---|
283 | [BoolValue] [bit] SPARSE NULL,
|
---|
284 | [IntValue] [int] SPARSE NULL,
|
---|
285 | [LongValue] [bigint] SPARSE NULL,
|
---|
286 | [FloatValue] [real] SPARSE NULL,
|
---|
287 | [DoubleValue] [float] SPARSE NULL,
|
---|
288 | [StringValue] [nvarchar](max) SPARSE NULL,
|
---|
289 | [BinaryDataId] [bigint] SPARSE NULL,
|
---|
290 | CONSTRAINT [PK_Value_Id] PRIMARY KEY CLUSTERED
|
---|
291 | (
|
---|
292 | [Id] ASC
|
---|
293 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
---|
294 | ) ON [PRIMARY]
|
---|
295 | GO
|
---|
296 | /****** Object: ForeignKey [FK_AlgorithmClass_Algorithm] Script Date: 01/31/2011 02:17:22 ******/
|
---|
297 | ALTER TABLE [dbo].[Algorithm] WITH CHECK ADD CONSTRAINT [FK_AlgorithmClass_Algorithm] FOREIGN KEY([AlgorithmClassId])
|
---|
298 | REFERENCES [dbo].[AlgorithmClass] ([Id])
|
---|
299 | GO
|
---|
300 | ALTER TABLE [dbo].[Algorithm] CHECK CONSTRAINT [FK_AlgorithmClass_Algorithm]
|
---|
301 | GO
|
---|
302 | /****** Object: ForeignKey [FK_BinaryData_Algorithm] Script Date: 01/31/2011 02:17:22 ******/
|
---|
303 | ALTER TABLE [dbo].[Algorithm] WITH CHECK ADD CONSTRAINT [FK_BinaryData_Algorithm] FOREIGN KEY([BinaryDataId])
|
---|
304 | REFERENCES [dbo].[BinaryData] ([Id])
|
---|
305 | GO
|
---|
306 | ALTER TABLE [dbo].[Algorithm] CHECK CONSTRAINT [FK_BinaryData_Algorithm]
|
---|
307 | GO
|
---|
308 | /****** Object: ForeignKey [FK_DataType_Algorithm] Script Date: 01/31/2011 02:17:22 ******/
|
---|
309 | ALTER TABLE [dbo].[Algorithm] WITH CHECK ADD CONSTRAINT [FK_DataType_Algorithm] FOREIGN KEY([DataTypeId])
|
---|
310 | REFERENCES [dbo].[DataType] ([Id])
|
---|
311 | GO
|
---|
312 | ALTER TABLE [dbo].[Algorithm] CHECK CONSTRAINT [FK_DataType_Algorithm]
|
---|
313 | GO
|
---|
314 | /****** Object: ForeignKey [FK_Platform_Algorithm] Script Date: 01/31/2011 02:17:22 ******/
|
---|
315 | ALTER TABLE [dbo].[Algorithm] WITH CHECK ADD CONSTRAINT [FK_Platform_Algorithm] FOREIGN KEY([PlatformId])
|
---|
316 | REFERENCES [dbo].[Platform] ([Id])
|
---|
317 | GO
|
---|
318 | ALTER TABLE [dbo].[Algorithm] CHECK CONSTRAINT [FK_Platform_Algorithm]
|
---|
319 | GO
|
---|
320 | /****** Object: ForeignKey [FK_Algorithm_AlgorithmUser] Script Date: 01/31/2011 02:17:22 ******/
|
---|
321 | ALTER TABLE [dbo].[AlgorithmUser] WITH CHECK ADD CONSTRAINT [FK_Algorithm_AlgorithmUser] FOREIGN KEY([AlgorithmId])
|
---|
322 | REFERENCES [dbo].[Algorithm] ([Id])
|
---|
323 | ON UPDATE CASCADE
|
---|
324 | ON DELETE CASCADE
|
---|
325 | GO
|
---|
326 | ALTER TABLE [dbo].[AlgorithmUser] CHECK CONSTRAINT [FK_Algorithm_AlgorithmUser]
|
---|
327 | GO
|
---|
328 | /****** Object: ForeignKey [FK_Characteristic_CharacteristicValue] Script Date: 01/31/2011 02:17:22 ******/
|
---|
329 | ALTER TABLE [dbo].[CharacteristicValue] WITH CHECK ADD CONSTRAINT [FK_Characteristic_CharacteristicValue] FOREIGN KEY([CharacteristicId])
|
---|
330 | REFERENCES [dbo].[Characteristic] ([Id])
|
---|
331 | GO
|
---|
332 | ALTER TABLE [dbo].[CharacteristicValue] CHECK CONSTRAINT [FK_Characteristic_CharacteristicValue]
|
---|
333 | GO
|
---|
334 | /****** Object: ForeignKey [FK_DataType_CharacteristicValue] Script Date: 01/31/2011 02:17:22 ******/
|
---|
335 | ALTER TABLE [dbo].[CharacteristicValue] WITH CHECK ADD CONSTRAINT [FK_DataType_CharacteristicValue] FOREIGN KEY([DataTypeId])
|
---|
336 | REFERENCES [dbo].[DataType] ([Id])
|
---|
337 | GO
|
---|
338 | ALTER TABLE [dbo].[CharacteristicValue] CHECK CONSTRAINT [FK_DataType_CharacteristicValue]
|
---|
339 | GO
|
---|
340 | /****** Object: ForeignKey [FK_Problem_CharacteristicValue] Script Date: 01/31/2011 02:17:22 ******/
|
---|
341 | ALTER TABLE [dbo].[CharacteristicValue] WITH CHECK ADD CONSTRAINT [FK_Problem_CharacteristicValue] FOREIGN KEY([ProblemId])
|
---|
342 | REFERENCES [dbo].[Problem] ([Id])
|
---|
343 | GO
|
---|
344 | ALTER TABLE [dbo].[CharacteristicValue] CHECK CONSTRAINT [FK_Problem_CharacteristicValue]
|
---|
345 | GO
|
---|
346 | /****** Object: ForeignKey [FK_Platform_DataType] Script Date: 01/31/2011 02:17:22 ******/
|
---|
347 | ALTER TABLE [dbo].[DataType] WITH CHECK ADD CONSTRAINT [FK_Platform_DataType] FOREIGN KEY([PlatformId])
|
---|
348 | REFERENCES [dbo].[Platform] ([Id])
|
---|
349 | GO
|
---|
350 | ALTER TABLE [dbo].[DataType] CHECK CONSTRAINT [FK_Platform_DataType]
|
---|
351 | GO
|
---|
352 | /****** Object: ForeignKey [FK_BinaryData_Problem] Script Date: 01/31/2011 02:17:22 ******/
|
---|
353 | ALTER TABLE [dbo].[Problem] WITH CHECK ADD CONSTRAINT [FK_BinaryData_Problem] FOREIGN KEY([BinaryDataId])
|
---|
354 | REFERENCES [dbo].[BinaryData] ([Id])
|
---|
355 | GO
|
---|
356 | ALTER TABLE [dbo].[Problem] CHECK CONSTRAINT [FK_BinaryData_Problem]
|
---|
357 | GO
|
---|
358 | /****** Object: ForeignKey [FK_DataType_Problem] Script Date: 01/31/2011 02:17:22 ******/
|
---|
359 | ALTER TABLE [dbo].[Problem] WITH CHECK ADD CONSTRAINT [FK_DataType_Problem] FOREIGN KEY([DataTypeId])
|
---|
360 | REFERENCES [dbo].[DataType] ([Id])
|
---|
361 | GO
|
---|
362 | ALTER TABLE [dbo].[Problem] CHECK CONSTRAINT [FK_DataType_Problem]
|
---|
363 | GO
|
---|
364 | /****** Object: ForeignKey [FK_Platform_Problem] Script Date: 01/31/2011 02:17:22 ******/
|
---|
365 | ALTER TABLE [dbo].[Problem] WITH CHECK ADD CONSTRAINT [FK_Platform_Problem] FOREIGN KEY([PlatformId])
|
---|
366 | REFERENCES [dbo].[Platform] ([Id])
|
---|
367 | GO
|
---|
368 | ALTER TABLE [dbo].[Problem] CHECK CONSTRAINT [FK_Platform_Problem]
|
---|
369 | GO
|
---|
370 | /****** Object: ForeignKey [FK_ProblemClass_Problem] Script Date: 01/31/2011 02:17:22 ******/
|
---|
371 | ALTER TABLE [dbo].[Problem] WITH CHECK ADD CONSTRAINT [FK_ProblemClass_Problem] FOREIGN KEY([ProblemClassId])
|
---|
372 | REFERENCES [dbo].[ProblemClass] ([Id])
|
---|
373 | GO
|
---|
374 | ALTER TABLE [dbo].[Problem] CHECK CONSTRAINT [FK_ProblemClass_Problem]
|
---|
375 | GO
|
---|
376 | /****** Object: ForeignKey [FK_Problem_ProblemUser] Script Date: 01/31/2011 02:17:22 ******/
|
---|
377 | ALTER TABLE [dbo].[ProblemUser] WITH CHECK ADD CONSTRAINT [FK_Problem_ProblemUser] FOREIGN KEY([ProblemId])
|
---|
378 | REFERENCES [dbo].[Problem] ([Id])
|
---|
379 | ON UPDATE CASCADE
|
---|
380 | ON DELETE CASCADE
|
---|
381 | GO
|
---|
382 | ALTER TABLE [dbo].[ProblemUser] CHECK CONSTRAINT [FK_Problem_ProblemUser]
|
---|
383 | GO
|
---|
384 | /****** Object: ForeignKey [FK_Algorithm_Run] Script Date: 01/31/2011 02:17:22 ******/
|
---|
385 | ALTER TABLE [dbo].[Run] WITH CHECK ADD CONSTRAINT [FK_Algorithm_Run] FOREIGN KEY([AlgorithmId])
|
---|
386 | REFERENCES [dbo].[Algorithm] ([Id])
|
---|
387 | GO
|
---|
388 | ALTER TABLE [dbo].[Run] CHECK CONSTRAINT [FK_Algorithm_Run]
|
---|
389 | GO
|
---|
390 | /****** Object: ForeignKey [FK_Problem_Run] Script Date: 01/31/2011 02:17:22 ******/
|
---|
391 | ALTER TABLE [dbo].[Run] WITH CHECK ADD CONSTRAINT [FK_Problem_Run] FOREIGN KEY([ProblemId])
|
---|
392 | REFERENCES [dbo].[Problem] ([Id])
|
---|
393 | GO
|
---|
394 | ALTER TABLE [dbo].[Run] CHECK CONSTRAINT [FK_Problem_Run]
|
---|
395 | GO
|
---|
396 | /****** Object: ForeignKey [FK_BinaryData_Value] Script Date: 01/31/2011 02:17:22 ******/
|
---|
397 | ALTER TABLE [dbo].[Value] WITH CHECK ADD CONSTRAINT [FK_BinaryData_Value] FOREIGN KEY([BinaryDataId])
|
---|
398 | REFERENCES [dbo].[BinaryData] ([Id])
|
---|
399 | GO
|
---|
400 | ALTER TABLE [dbo].[Value] CHECK CONSTRAINT [FK_BinaryData_Value]
|
---|
401 | GO
|
---|
402 | /****** Object: ForeignKey [FK_DataType_Value] Script Date: 01/31/2011 02:17:22 ******/
|
---|
403 | ALTER TABLE [dbo].[Value] WITH CHECK ADD CONSTRAINT [FK_DataType_Value] FOREIGN KEY([DataTypeId])
|
---|
404 | REFERENCES [dbo].[DataType] ([Id])
|
---|
405 | GO
|
---|
406 | ALTER TABLE [dbo].[Value] CHECK CONSTRAINT [FK_DataType_Value]
|
---|
407 | GO
|
---|
408 | /****** Object: ForeignKey [FK_Run_Value] Script Date: 01/31/2011 02:17:22 ******/
|
---|
409 | ALTER TABLE [dbo].[Value] WITH CHECK ADD CONSTRAINT [FK_Run_Value] FOREIGN KEY([RunId])
|
---|
410 | REFERENCES [dbo].[Run] ([Id])
|
---|
411 | GO
|
---|
412 | ALTER TABLE [dbo].[Value] CHECK CONSTRAINT [FK_Run_Value]
|
---|
413 | GO
|
---|
414 | /****** Object: ForeignKey [FK_ValueName_Value] Script Date: 01/31/2011 02:17:22 ******/
|
---|
415 | ALTER TABLE [dbo].[Value] WITH CHECK ADD CONSTRAINT [FK_ValueName_Value] FOREIGN KEY([ValueNameId])
|
---|
416 | REFERENCES [dbo].[ValueName] ([Id])
|
---|
417 | GO
|
---|
418 | ALTER TABLE [dbo].[Value] CHECK CONSTRAINT [FK_ValueName_Value]
|
---|
419 | GO
|
---|