1 | USE [HeuristicLab.OKB]
|
---|
2 | GO
|
---|
3 | /****** Object: Table [dbo].[ValueName] Script Date: 01/26/2011 01:50:39 ******/
|
---|
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/26/2011 01:50:39 ******/
|
---|
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].[BinaryData] Script Date: 01/26/2011 01:50:39 ******/
|
---|
42 | SET ARITHABORT ON
|
---|
43 | GO
|
---|
44 | SET CONCAT_NULL_YIELDS_NULL ON
|
---|
45 | GO
|
---|
46 | SET ANSI_NULLS ON
|
---|
47 | GO
|
---|
48 | SET ANSI_PADDING ON
|
---|
49 | GO
|
---|
50 | SET ANSI_WARNINGS ON
|
---|
51 | GO
|
---|
52 | SET NUMERIC_ROUNDABORT OFF
|
---|
53 | GO
|
---|
54 | SET ANSI_NULLS ON
|
---|
55 | GO
|
---|
56 | SET QUOTED_IDENTIFIER ON
|
---|
57 | GO
|
---|
58 | SET ANSI_PADDING ON
|
---|
59 | GO
|
---|
60 | SET ARITHABORT ON
|
---|
61 | GO
|
---|
62 | CREATE TABLE [dbo].[BinaryData](
|
---|
63 | [Id] [bigint] IDENTITY(1,1) NOT NULL,
|
---|
64 | [Data] [varbinary](max) NOT NULL,
|
---|
65 | [Hash] AS (CONVERT([varbinary](20),hashbytes('SHA1',[Data]),(0))) PERSISTED,
|
---|
66 | CONSTRAINT [PK_BinaryData_Id] PRIMARY KEY CLUSTERED
|
---|
67 | (
|
---|
68 | [Id] ASC
|
---|
69 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY],
|
---|
70 | CONSTRAINT [UQ_BinaryData_Hash] UNIQUE NONCLUSTERED
|
---|
71 | (
|
---|
72 | [Hash] ASC
|
---|
73 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
---|
74 | ) ON [PRIMARY]
|
---|
75 | GO
|
---|
76 | SET ANSI_PADDING OFF
|
---|
77 | GO
|
---|
78 | /****** Object: Table [dbo].[AlgorithmClass] Script Date: 01/26/2011 01:50:39 ******/
|
---|
79 | SET ANSI_NULLS ON
|
---|
80 | GO
|
---|
81 | SET QUOTED_IDENTIFIER ON
|
---|
82 | GO
|
---|
83 | CREATE TABLE [dbo].[AlgorithmClass](
|
---|
84 | [Id] [bigint] IDENTITY(1,1) NOT NULL,
|
---|
85 | [Name] [nvarchar](200) NOT NULL,
|
---|
86 | [Description] [nvarchar](max) NULL,
|
---|
87 | CONSTRAINT [PK_AlgorithmClass_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 | CONSTRAINT [UQ_AlgorithmClass_Name] UNIQUE NONCLUSTERED
|
---|
92 | (
|
---|
93 | [Name] ASC
|
---|
94 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
---|
95 | ) ON [PRIMARY]
|
---|
96 | GO
|
---|
97 | SET IDENTITY_INSERT [dbo].[AlgorithmClass] ON
|
---|
98 | INSERT [dbo].[AlgorithmClass] ([Id], [Name], [Description]) VALUES (1, N'Unknown', N'Unknown or undefined algorithm class.')
|
---|
99 | SET IDENTITY_INSERT [dbo].[AlgorithmClass] OFF
|
---|
100 | /****** Object: Table [dbo].[Platform] Script Date: 01/26/2011 01:50:39 ******/
|
---|
101 | SET ANSI_NULLS ON
|
---|
102 | GO
|
---|
103 | SET QUOTED_IDENTIFIER ON
|
---|
104 | GO
|
---|
105 | CREATE TABLE [dbo].[Platform](
|
---|
106 | [Id] [bigint] IDENTITY(1,1) NOT NULL,
|
---|
107 | [Name] [nvarchar](200) NOT NULL,
|
---|
108 | [Description] [nvarchar](max) NULL,
|
---|
109 | CONSTRAINT [PK_Platform_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 | CONSTRAINT [UQ_Platform_Name] UNIQUE NONCLUSTERED
|
---|
114 | (
|
---|
115 | [Name] ASC
|
---|
116 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
---|
117 | ) ON [PRIMARY]
|
---|
118 | GO
|
---|
119 | SET IDENTITY_INSERT [dbo].[Platform] ON
|
---|
120 | INSERT [dbo].[Platform] ([Id], [Name], [Description]) VALUES (1, N'Unknown', N'Unknown or undefined platform.')
|
---|
121 | INSERT [dbo].[Platform] ([Id], [Name], [Description]) VALUES (2, N'HeuristicLab 3.3', NULL)
|
---|
122 | SET IDENTITY_INSERT [dbo].[Platform] OFF
|
---|
123 | /****** Object: Table [dbo].[DataType] Script Date: 01/26/2011 01:50:39 ******/
|
---|
124 | SET ANSI_NULLS ON
|
---|
125 | GO
|
---|
126 | SET QUOTED_IDENTIFIER ON
|
---|
127 | GO
|
---|
128 | CREATE TABLE [dbo].[DataType](
|
---|
129 | [Id] [bigint] IDENTITY(1,1) NOT NULL,
|
---|
130 | [PlatformId] [bigint] NOT NULL,
|
---|
131 | [Name] [nvarchar](200) NOT NULL,
|
---|
132 | [TypeName] [nvarchar](max) NOT NULL,
|
---|
133 | CONSTRAINT [PK_DataType_Id] PRIMARY KEY CLUSTERED
|
---|
134 | (
|
---|
135 | [Id] ASC
|
---|
136 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
---|
137 | ) ON [PRIMARY]
|
---|
138 | GO
|
---|
139 | /****** Object: Table [dbo].[Problem] Script Date: 01/26/2011 01:50:39 ******/
|
---|
140 | SET ANSI_NULLS ON
|
---|
141 | GO
|
---|
142 | SET QUOTED_IDENTIFIER ON
|
---|
143 | GO
|
---|
144 | CREATE TABLE [dbo].[Problem](
|
---|
145 | [Id] [bigint] IDENTITY(1,1) NOT NULL,
|
---|
146 | [ProblemClassId] [bigint] NOT NULL,
|
---|
147 | [PlatformId] [bigint] NOT NULL,
|
---|
148 | [DataTypeId] [bigint] NOT NULL,
|
---|
149 | [BinaryDataId] [bigint] NOT NULL,
|
---|
150 | [Name] [nvarchar](200) NOT NULL,
|
---|
151 | [Description] [nvarchar](max) NULL,
|
---|
152 | CONSTRAINT [PK_Problem_Id] PRIMARY KEY CLUSTERED
|
---|
153 | (
|
---|
154 | [Id] ASC
|
---|
155 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY],
|
---|
156 | CONSTRAINT [UQ_Problem_Name_PlatformId] UNIQUE NONCLUSTERED
|
---|
157 | (
|
---|
158 | [Name] ASC,
|
---|
159 | [PlatformId] ASC
|
---|
160 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
---|
161 | ) ON [PRIMARY]
|
---|
162 | GO
|
---|
163 | /****** Object: Table [dbo].[Algorithm] Script Date: 01/26/2011 01:50:39 ******/
|
---|
164 | SET ANSI_NULLS ON
|
---|
165 | GO
|
---|
166 | SET QUOTED_IDENTIFIER ON
|
---|
167 | GO
|
---|
168 | CREATE TABLE [dbo].[Algorithm](
|
---|
169 | [Id] [bigint] IDENTITY(1,1) NOT NULL,
|
---|
170 | [AlgorithmClassId] [bigint] NOT NULL,
|
---|
171 | [PlatformId] [bigint] NOT NULL,
|
---|
172 | [DataTypeId] [bigint] NOT NULL,
|
---|
173 | [BinaryDataId] [bigint] NOT NULL,
|
---|
174 | [Name] [nvarchar](200) NOT NULL,
|
---|
175 | [Description] [nvarchar](max) NULL,
|
---|
176 | CONSTRAINT [PK_Algorithm_Id] PRIMARY KEY CLUSTERED
|
---|
177 | (
|
---|
178 | [Id] ASC
|
---|
179 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY],
|
---|
180 | CONSTRAINT [UQ_Algorithm_Name_PlatformId] UNIQUE NONCLUSTERED
|
---|
181 | (
|
---|
182 | [Name] ASC,
|
---|
183 | [PlatformId] ASC
|
---|
184 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
---|
185 | ) ON [PRIMARY]
|
---|
186 | GO
|
---|
187 | /****** Object: Table [dbo].[AlgorithmUser] Script Date: 01/26/2011 01:50:39 ******/
|
---|
188 | SET ANSI_NULLS ON
|
---|
189 | GO
|
---|
190 | SET QUOTED_IDENTIFIER ON
|
---|
191 | GO
|
---|
192 | CREATE TABLE [dbo].[AlgorithmUser](
|
---|
193 | [AlgorithmId] [bigint] NOT NULL,
|
---|
194 | [UserId] [uniqueidentifier] NOT NULL,
|
---|
195 | CONSTRAINT [PK_AlgorithmUser_AlgorithmId_UserId] PRIMARY KEY CLUSTERED
|
---|
196 | (
|
---|
197 | [AlgorithmId] ASC,
|
---|
198 | [UserId] 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].[Run] Script Date: 01/26/2011 01:50:39 ******/
|
---|
203 | SET ANSI_NULLS ON
|
---|
204 | GO
|
---|
205 | SET QUOTED_IDENTIFIER ON
|
---|
206 | GO
|
---|
207 | CREATE TABLE [dbo].[Run](
|
---|
208 | [Id] [bigint] IDENTITY(1,1) NOT NULL,
|
---|
209 | [AlgorithmId] [bigint] NOT NULL,
|
---|
210 | [ProblemId] [bigint] NOT NULL,
|
---|
211 | [RandomSeed] [int] NOT NULL,
|
---|
212 | [CreatedDate] [datetime2](7) NOT NULL,
|
---|
213 | [UserId] [uniqueidentifier] NOT NULL,
|
---|
214 | [ClientId] [uniqueidentifier] NOT NULL,
|
---|
215 | CONSTRAINT [PK_Run_Id] PRIMARY KEY CLUSTERED
|
---|
216 | (
|
---|
217 | [Id] ASC
|
---|
218 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
---|
219 | ) ON [PRIMARY]
|
---|
220 | GO
|
---|
221 | /****** Object: Table [dbo].[ProblemUser] Script Date: 01/26/2011 01:50:39 ******/
|
---|
222 | SET ANSI_NULLS ON
|
---|
223 | GO
|
---|
224 | SET QUOTED_IDENTIFIER ON
|
---|
225 | GO
|
---|
226 | CREATE TABLE [dbo].[ProblemUser](
|
---|
227 | [ProblemId] [bigint] NOT NULL,
|
---|
228 | [UserId] [uniqueidentifier] NOT NULL,
|
---|
229 | CONSTRAINT [PK_ProblemUser_ProblemId_UserId] PRIMARY KEY CLUSTERED
|
---|
230 | (
|
---|
231 | [ProblemId] ASC,
|
---|
232 | [UserId] ASC
|
---|
233 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
---|
234 | ) ON [PRIMARY]
|
---|
235 | GO
|
---|
236 | /****** Object: Table [dbo].[Value] Script Date: 01/26/2011 01:50:39 ******/
|
---|
237 | SET ANSI_NULLS ON
|
---|
238 | GO
|
---|
239 | SET QUOTED_IDENTIFIER ON
|
---|
240 | GO
|
---|
241 | CREATE TABLE [dbo].[Value](
|
---|
242 | [Id] [bigint] IDENTITY(1,1) NOT NULL,
|
---|
243 | [RunId] [bigint] NOT NULL,
|
---|
244 | [ValueNameId] [bigint] NOT NULL,
|
---|
245 | [DataTypeId] [bigint] NOT NULL,
|
---|
246 | [BoolValue] [bit] SPARSE NULL,
|
---|
247 | [IntValue] [int] SPARSE NULL,
|
---|
248 | [LongValue] [bigint] SPARSE NULL,
|
---|
249 | [FloatValue] [real] SPARSE NULL,
|
---|
250 | [DoubleValue] [float] SPARSE NULL,
|
---|
251 | [StringValue] [nvarchar](max) SPARSE NULL,
|
---|
252 | [BinaryDataId] [bigint] SPARSE NULL,
|
---|
253 | CONSTRAINT [PK_Value_Id] PRIMARY KEY CLUSTERED
|
---|
254 | (
|
---|
255 | [Id] ASC
|
---|
256 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
---|
257 | ) ON [PRIMARY]
|
---|
258 | GO
|
---|
259 | /****** Object: ForeignKey [FK_AlgorithmClass_Algorithm] Script Date: 01/26/2011 01:50:39 ******/
|
---|
260 | ALTER TABLE [dbo].[Algorithm] WITH CHECK ADD CONSTRAINT [FK_AlgorithmClass_Algorithm] FOREIGN KEY([AlgorithmClassId])
|
---|
261 | REFERENCES [dbo].[AlgorithmClass] ([Id])
|
---|
262 | GO
|
---|
263 | ALTER TABLE [dbo].[Algorithm] CHECK CONSTRAINT [FK_AlgorithmClass_Algorithm]
|
---|
264 | GO
|
---|
265 | /****** Object: ForeignKey [FK_BinaryData_Algorithm] Script Date: 01/26/2011 01:50:39 ******/
|
---|
266 | ALTER TABLE [dbo].[Algorithm] WITH CHECK ADD CONSTRAINT [FK_BinaryData_Algorithm] FOREIGN KEY([BinaryDataId])
|
---|
267 | REFERENCES [dbo].[BinaryData] ([Id])
|
---|
268 | GO
|
---|
269 | ALTER TABLE [dbo].[Algorithm] CHECK CONSTRAINT [FK_BinaryData_Algorithm]
|
---|
270 | GO
|
---|
271 | /****** Object: ForeignKey [FK_DataType_Algorithm] Script Date: 01/26/2011 01:50:39 ******/
|
---|
272 | ALTER TABLE [dbo].[Algorithm] WITH CHECK ADD CONSTRAINT [FK_DataType_Algorithm] FOREIGN KEY([DataTypeId])
|
---|
273 | REFERENCES [dbo].[DataType] ([Id])
|
---|
274 | GO
|
---|
275 | ALTER TABLE [dbo].[Algorithm] CHECK CONSTRAINT [FK_DataType_Algorithm]
|
---|
276 | GO
|
---|
277 | /****** Object: ForeignKey [FK_Platform_Algorithm] Script Date: 01/26/2011 01:50:39 ******/
|
---|
278 | ALTER TABLE [dbo].[Algorithm] WITH CHECK ADD CONSTRAINT [FK_Platform_Algorithm] FOREIGN KEY([PlatformId])
|
---|
279 | REFERENCES [dbo].[Platform] ([Id])
|
---|
280 | GO
|
---|
281 | ALTER TABLE [dbo].[Algorithm] CHECK CONSTRAINT [FK_Platform_Algorithm]
|
---|
282 | GO
|
---|
283 | /****** Object: ForeignKey [FK_Algorithm_AlgorithmUser] Script Date: 01/26/2011 01:50:39 ******/
|
---|
284 | ALTER TABLE [dbo].[AlgorithmUser] WITH CHECK ADD CONSTRAINT [FK_Algorithm_AlgorithmUser] FOREIGN KEY([AlgorithmId])
|
---|
285 | REFERENCES [dbo].[Algorithm] ([Id])
|
---|
286 | ON UPDATE CASCADE
|
---|
287 | ON DELETE CASCADE
|
---|
288 | GO
|
---|
289 | ALTER TABLE [dbo].[AlgorithmUser] CHECK CONSTRAINT [FK_Algorithm_AlgorithmUser]
|
---|
290 | GO
|
---|
291 | /****** Object: ForeignKey [FK_Platform_DataType] Script Date: 01/26/2011 01:50:39 ******/
|
---|
292 | ALTER TABLE [dbo].[DataType] WITH CHECK ADD CONSTRAINT [FK_Platform_DataType] FOREIGN KEY([PlatformId])
|
---|
293 | REFERENCES [dbo].[Platform] ([Id])
|
---|
294 | GO
|
---|
295 | ALTER TABLE [dbo].[DataType] CHECK CONSTRAINT [FK_Platform_DataType]
|
---|
296 | GO
|
---|
297 | /****** Object: ForeignKey [FK_BinaryData_Problem] Script Date: 01/26/2011 01:50:39 ******/
|
---|
298 | ALTER TABLE [dbo].[Problem] WITH CHECK ADD CONSTRAINT [FK_BinaryData_Problem] FOREIGN KEY([BinaryDataId])
|
---|
299 | REFERENCES [dbo].[BinaryData] ([Id])
|
---|
300 | GO
|
---|
301 | ALTER TABLE [dbo].[Problem] CHECK CONSTRAINT [FK_BinaryData_Problem]
|
---|
302 | GO
|
---|
303 | /****** Object: ForeignKey [FK_DataType_Problem] Script Date: 01/26/2011 01:50:39 ******/
|
---|
304 | ALTER TABLE [dbo].[Problem] WITH CHECK ADD CONSTRAINT [FK_DataType_Problem] FOREIGN KEY([DataTypeId])
|
---|
305 | REFERENCES [dbo].[DataType] ([Id])
|
---|
306 | GO
|
---|
307 | ALTER TABLE [dbo].[Problem] CHECK CONSTRAINT [FK_DataType_Problem]
|
---|
308 | GO
|
---|
309 | /****** Object: ForeignKey [FK_Platform_Problem] Script Date: 01/26/2011 01:50:39 ******/
|
---|
310 | ALTER TABLE [dbo].[Problem] WITH CHECK ADD CONSTRAINT [FK_Platform_Problem] FOREIGN KEY([PlatformId])
|
---|
311 | REFERENCES [dbo].[Platform] ([Id])
|
---|
312 | GO
|
---|
313 | ALTER TABLE [dbo].[Problem] CHECK CONSTRAINT [FK_Platform_Problem]
|
---|
314 | GO
|
---|
315 | /****** Object: ForeignKey [FK_ProblemClass_Problem] Script Date: 01/26/2011 01:50:39 ******/
|
---|
316 | ALTER TABLE [dbo].[Problem] WITH CHECK ADD CONSTRAINT [FK_ProblemClass_Problem] FOREIGN KEY([ProblemClassId])
|
---|
317 | REFERENCES [dbo].[ProblemClass] ([Id])
|
---|
318 | GO
|
---|
319 | ALTER TABLE [dbo].[Problem] CHECK CONSTRAINT [FK_ProblemClass_Problem]
|
---|
320 | GO
|
---|
321 | /****** Object: ForeignKey [FK_Problem_ProblemUser] Script Date: 01/26/2011 01:50:39 ******/
|
---|
322 | ALTER TABLE [dbo].[ProblemUser] WITH CHECK ADD CONSTRAINT [FK_Problem_ProblemUser] FOREIGN KEY([ProblemId])
|
---|
323 | REFERENCES [dbo].[Problem] ([Id])
|
---|
324 | ON UPDATE CASCADE
|
---|
325 | ON DELETE CASCADE
|
---|
326 | GO
|
---|
327 | ALTER TABLE [dbo].[ProblemUser] CHECK CONSTRAINT [FK_Problem_ProblemUser]
|
---|
328 | GO
|
---|
329 | /****** Object: ForeignKey [FK_Algorithm_Run] Script Date: 01/26/2011 01:50:39 ******/
|
---|
330 | ALTER TABLE [dbo].[Run] WITH CHECK ADD CONSTRAINT [FK_Algorithm_Run] FOREIGN KEY([AlgorithmId])
|
---|
331 | REFERENCES [dbo].[Algorithm] ([Id])
|
---|
332 | GO
|
---|
333 | ALTER TABLE [dbo].[Run] CHECK CONSTRAINT [FK_Algorithm_Run]
|
---|
334 | GO
|
---|
335 | /****** Object: ForeignKey [FK_Problem_Run] Script Date: 01/26/2011 01:50:39 ******/
|
---|
336 | ALTER TABLE [dbo].[Run] WITH CHECK ADD CONSTRAINT [FK_Problem_Run] FOREIGN KEY([ProblemId])
|
---|
337 | REFERENCES [dbo].[Problem] ([Id])
|
---|
338 | GO
|
---|
339 | ALTER TABLE [dbo].[Run] CHECK CONSTRAINT [FK_Problem_Run]
|
---|
340 | GO
|
---|
341 | /****** Object: ForeignKey [FK_BinaryData_Value] Script Date: 01/26/2011 01:50:39 ******/
|
---|
342 | ALTER TABLE [dbo].[Value] WITH CHECK ADD CONSTRAINT [FK_BinaryData_Value] FOREIGN KEY([BinaryDataId])
|
---|
343 | REFERENCES [dbo].[BinaryData] ([Id])
|
---|
344 | GO
|
---|
345 | ALTER TABLE [dbo].[Value] CHECK CONSTRAINT [FK_BinaryData_Value]
|
---|
346 | GO
|
---|
347 | /****** Object: ForeignKey [FK_DataType_Value] Script Date: 01/26/2011 01:50:39 ******/
|
---|
348 | ALTER TABLE [dbo].[Value] WITH CHECK ADD CONSTRAINT [FK_DataType_Value] FOREIGN KEY([DataTypeId])
|
---|
349 | REFERENCES [dbo].[DataType] ([Id])
|
---|
350 | GO
|
---|
351 | ALTER TABLE [dbo].[Value] CHECK CONSTRAINT [FK_DataType_Value]
|
---|
352 | GO
|
---|
353 | /****** Object: ForeignKey [FK_Run_Value] Script Date: 01/26/2011 01:50:39 ******/
|
---|
354 | ALTER TABLE [dbo].[Value] WITH CHECK ADD CONSTRAINT [FK_Run_Value] FOREIGN KEY([RunId])
|
---|
355 | REFERENCES [dbo].[Run] ([Id])
|
---|
356 | GO
|
---|
357 | ALTER TABLE [dbo].[Value] CHECK CONSTRAINT [FK_Run_Value]
|
---|
358 | GO
|
---|
359 | /****** Object: ForeignKey [FK_ValueName_Value] Script Date: 01/26/2011 01:50:39 ******/
|
---|
360 | ALTER TABLE [dbo].[Value] WITH CHECK ADD CONSTRAINT [FK_ValueName_Value] FOREIGN KEY([ValueNameId])
|
---|
361 | REFERENCES [dbo].[ValueName] ([Id])
|
---|
362 | GO
|
---|
363 | ALTER TABLE [dbo].[Value] CHECK CONSTRAINT [FK_ValueName_Value]
|
---|
364 | GO
|
---|