[7620] | 1 | USE [HeuristicLab.AccessService]
|
---|
| 2 | GO
|
---|
| 3 |
|
---|
| 4 | /****** Object: Table [dbo].[ClientConfiguration] Script Date: 09/27/2011 17:05:22 ******/
|
---|
| 5 | SET ANSI_NULLS ON
|
---|
| 6 | GO
|
---|
| 7 |
|
---|
| 8 | SET QUOTED_IDENTIFIER ON
|
---|
| 9 | GO
|
---|
| 10 |
|
---|
| 11 | CREATE TABLE [dbo].[ClientConfiguration](
|
---|
| 12 | [Id] [uniqueidentifier] NOT NULL,
|
---|
| 13 | [Hash] [nvarchar](max) NOT NULL,
|
---|
| 14 | [Description] [nvarchar](max) NULL,
|
---|
| 15 | CONSTRAINT [PK_ClientConfiguration] PRIMARY KEY CLUSTERED
|
---|
| 16 | (
|
---|
| 17 | [Id] ASC
|
---|
| 18 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
---|
| 19 | ) ON [PRIMARY]
|
---|
| 20 |
|
---|
| 21 | GO
|
---|
| 22 |
|
---|
| 23 | ALTER TABLE [dbo].[ClientConfiguration] ADD CONSTRAINT [DF_ClientConfiguration_Id] DEFAULT (newsequentialid()) FOR [Id]
|
---|
| 24 | GO
|
---|
| 25 |
|
---|
| 26 | USE [HeuristicLab.AccessService]
|
---|
| 27 | GO
|
---|
| 28 |
|
---|
| 29 | /****** Object: Table [dbo].[ClientType] Script Date: 09/27/2011 17:06:09 ******/
|
---|
| 30 | SET ANSI_NULLS ON
|
---|
| 31 | GO
|
---|
| 32 |
|
---|
| 33 | SET QUOTED_IDENTIFIER ON
|
---|
| 34 | GO
|
---|
| 35 |
|
---|
| 36 | CREATE TABLE [dbo].[ClientType](
|
---|
| 37 | [Id] [uniqueidentifier] NOT NULL,
|
---|
| 38 | [Name] [nvarchar](max) NOT NULL,
|
---|
| 39 | CONSTRAINT [PK_ClientType] PRIMARY KEY CLUSTERED
|
---|
| 40 | (
|
---|
| 41 | [Id] ASC
|
---|
| 42 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
---|
| 43 | ) ON [PRIMARY]
|
---|
| 44 |
|
---|
| 45 | GO
|
---|
| 46 |
|
---|
| 47 | ALTER TABLE [dbo].[ClientType] ADD CONSTRAINT [DF_ClientType_Id] DEFAULT (newsequentialid()) FOR [Id]
|
---|
| 48 | GO
|
---|
| 49 |
|
---|
| 50 | USE [HeuristicLab.AccessService]
|
---|
| 51 | GO
|
---|
| 52 |
|
---|
| 53 | /****** Object: Table [dbo].[Country] Script Date: 09/27/2011 17:06:21 ******/
|
---|
| 54 | SET ANSI_NULLS ON
|
---|
| 55 | GO
|
---|
| 56 |
|
---|
| 57 | SET QUOTED_IDENTIFIER ON
|
---|
| 58 | GO
|
---|
| 59 |
|
---|
| 60 | CREATE TABLE [dbo].[Country](
|
---|
| 61 | [Id] [uniqueidentifier] NOT NULL,
|
---|
| 62 | [Name] [nvarchar](max) NOT NULL,
|
---|
| 63 | CONSTRAINT [PK_Country] PRIMARY KEY CLUSTERED
|
---|
| 64 | (
|
---|
| 65 | [Id] ASC
|
---|
| 66 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
---|
| 67 | ) ON [PRIMARY]
|
---|
| 68 |
|
---|
| 69 | GO
|
---|
| 70 |
|
---|
| 71 | ALTER TABLE [dbo].[Country] ADD CONSTRAINT [DF_Country_Id] DEFAULT (newsequentialid()) FOR [Id]
|
---|
| 72 | GO
|
---|
| 73 |
|
---|
| 74 | USE [HeuristicLab.AccessService]
|
---|
| 75 | GO
|
---|
| 76 |
|
---|
| 77 | /****** Object: Table [dbo].[OperatingSystem] Script Date: 09/27/2011 17:06:31 ******/
|
---|
| 78 | SET ANSI_NULLS ON
|
---|
| 79 | GO
|
---|
| 80 |
|
---|
| 81 | SET QUOTED_IDENTIFIER ON
|
---|
| 82 | GO
|
---|
| 83 |
|
---|
| 84 | CREATE TABLE [dbo].[OperatingSystem](
|
---|
| 85 | [Id] [uniqueidentifier] NOT NULL,
|
---|
| 86 | [Name] [nvarchar](max) NOT NULL,
|
---|
| 87 | CONSTRAINT [PK_OperatingSystem] 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]
|
---|
| 92 |
|
---|
| 93 | GO
|
---|
| 94 |
|
---|
| 95 | ALTER TABLE [dbo].[OperatingSystem] ADD CONSTRAINT [DF_OperatingSystem_Id] DEFAULT (newsequentialid()) FOR [Id]
|
---|
| 96 | GO
|
---|
| 97 |
|
---|
| 98 | USE [HeuristicLab.AccessService]
|
---|
| 99 | GO
|
---|
| 100 |
|
---|
| 101 | /****** Object: Table [dbo].[Plugin] Script Date: 09/27/2011 17:06:39 ******/
|
---|
| 102 | SET ANSI_NULLS ON
|
---|
| 103 | GO
|
---|
| 104 |
|
---|
| 105 | SET QUOTED_IDENTIFIER ON
|
---|
| 106 | GO
|
---|
| 107 |
|
---|
| 108 | CREATE TABLE [dbo].[Plugin](
|
---|
| 109 | [Id] [uniqueidentifier] NOT NULL,
|
---|
| 110 | [Name] [nvarchar](max) NOT NULL,
|
---|
| 111 | [StrongName] [nvarchar](max) NULL,
|
---|
| 112 | [Version] [nvarchar](20) NOT NULL,
|
---|
| 113 | CONSTRAINT [PK_Plugin] PRIMARY KEY CLUSTERED
|
---|
| 114 | (
|
---|
| 115 | [Id] 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 |
|
---|
| 119 | GO
|
---|
| 120 |
|
---|
| 121 | ALTER TABLE [dbo].[Plugin] ADD CONSTRAINT [DF_Plugin_Id] DEFAULT (newsequentialid()) FOR [Id]
|
---|
| 122 | GO
|
---|
| 123 |
|
---|
| 124 | USE [HeuristicLab.AccessService]
|
---|
| 125 | GO
|
---|
| 126 |
|
---|
| 127 | /****** Object: Table [dbo].[Resource] Script Date: 09/27/2011 17:07:15 ******/
|
---|
| 128 | SET ANSI_NULLS ON
|
---|
| 129 | GO
|
---|
| 130 |
|
---|
| 131 | SET QUOTED_IDENTIFIER ON
|
---|
| 132 | GO
|
---|
| 133 |
|
---|
| 134 | CREATE TABLE [dbo].[Resource](
|
---|
| 135 | [Id] [uniqueidentifier] NOT NULL,
|
---|
| 136 | [Name] [nvarchar](max) NOT NULL,
|
---|
| 137 | [Description] [nvarchar](max) NULL,
|
---|
| 138 | [Type] [nvarchar](max) NOT NULL,
|
---|
| 139 | [ProcessorType] [nvarchar](max) NULL,
|
---|
| 140 | [NumberOfCores] [int] NULL,
|
---|
| 141 | [MemorySize] [int] NULL,
|
---|
| 142 | [OperatingSystemId] [uniqueidentifier] NULL,
|
---|
| 143 | [CountryId] [uniqueidentifier] NULL,
|
---|
| 144 | [HeuristicLabVersion] [nvarchar](max) NULL,
|
---|
| 145 | [ClientTypeId] [uniqueidentifier] NULL,
|
---|
| 146 | [ClientConfigurationId] [uniqueidentifier] NULL,
|
---|
| 147 | [Timestamp] [datetime] NULL,
|
---|
| 148 | [PerformanceValue] [real] NULL,
|
---|
| 149 | CONSTRAINT [PK_Resource] PRIMARY KEY CLUSTERED
|
---|
| 150 | (
|
---|
| 151 | [Id] ASC
|
---|
| 152 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
---|
| 153 | ) ON [PRIMARY]
|
---|
| 154 |
|
---|
| 155 | GO
|
---|
| 156 |
|
---|
| 157 | ALTER TABLE [dbo].[Resource] WITH CHECK ADD CONSTRAINT [FK_Resource_ClientConfiguration] FOREIGN KEY([ClientConfigurationId])
|
---|
| 158 | REFERENCES [dbo].[ClientConfiguration] ([Id])
|
---|
| 159 | GO
|
---|
| 160 |
|
---|
| 161 | ALTER TABLE [dbo].[Resource] CHECK CONSTRAINT [FK_Resource_ClientConfiguration]
|
---|
| 162 | GO
|
---|
| 163 |
|
---|
| 164 | ALTER TABLE [dbo].[Resource] WITH CHECK ADD CONSTRAINT [FK_Resource_ClientType] FOREIGN KEY([ClientTypeId])
|
---|
| 165 | REFERENCES [dbo].[ClientType] ([Id])
|
---|
| 166 | GO
|
---|
| 167 |
|
---|
| 168 | ALTER TABLE [dbo].[Resource] CHECK CONSTRAINT [FK_Resource_ClientType]
|
---|
| 169 | GO
|
---|
| 170 |
|
---|
| 171 | ALTER TABLE [dbo].[Resource] WITH CHECK ADD CONSTRAINT [FK_Resource_Country] FOREIGN KEY([CountryId])
|
---|
| 172 | REFERENCES [dbo].[Country] ([Id])
|
---|
| 173 | GO
|
---|
| 174 |
|
---|
| 175 | ALTER TABLE [dbo].[Resource] CHECK CONSTRAINT [FK_Resource_Country]
|
---|
| 176 | GO
|
---|
| 177 |
|
---|
| 178 | ALTER TABLE [dbo].[Resource] WITH CHECK ADD CONSTRAINT [FK_Resource_OperatingSystem] FOREIGN KEY([OperatingSystemId])
|
---|
| 179 | REFERENCES [dbo].[OperatingSystem] ([Id])
|
---|
| 180 | GO
|
---|
| 181 |
|
---|
| 182 | ALTER TABLE [dbo].[Resource] CHECK CONSTRAINT [FK_Resource_OperatingSystem]
|
---|
| 183 | GO
|
---|
| 184 |
|
---|
| 185 | ALTER TABLE [dbo].[Resource] ADD CONSTRAINT [DF_Resource_Id] DEFAULT (newsequentialid()) FOR [Id]
|
---|
| 186 | GO
|
---|
| 187 |
|
---|
| 188 | USE [HeuristicLab.AccessService]
|
---|
| 189 | GO
|
---|
| 190 |
|
---|
| 191 | /****** Object: Table [dbo].[ResourceResourceGroup] Script Date: 09/27/2011 17:07:08 ******/
|
---|
| 192 | SET ANSI_NULLS ON
|
---|
| 193 | GO
|
---|
| 194 |
|
---|
| 195 | SET QUOTED_IDENTIFIER ON
|
---|
| 196 | GO
|
---|
| 197 |
|
---|
| 198 | CREATE TABLE [dbo].[ResourceResourceGroup](
|
---|
| 199 | [ResourceId] [uniqueidentifier] NOT NULL,
|
---|
| 200 | [ResourceGroupId] [uniqueidentifier] NOT NULL,
|
---|
| 201 | CONSTRAINT [PK_ResourceResourceGroup_Id] PRIMARY KEY CLUSTERED
|
---|
| 202 | (
|
---|
| 203 | [ResourceId] ASC,
|
---|
| 204 | [ResourceGroupId] ASC
|
---|
| 205 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
---|
| 206 | ) ON [PRIMARY]
|
---|
| 207 |
|
---|
| 208 | GO
|
---|
| 209 |
|
---|
| 210 | ALTER TABLE [dbo].[ResourceResourceGroup] WITH CHECK ADD CONSTRAINT [FK_ResourceResourceGroup_ResourceGroupId] FOREIGN KEY([ResourceGroupId])
|
---|
| 211 | REFERENCES [dbo].[Resource] ([Id])
|
---|
| 212 | GO
|
---|
| 213 |
|
---|
| 214 | ALTER TABLE [dbo].[ResourceResourceGroup] CHECK CONSTRAINT [FK_ResourceResourceGroup_ResourceGroupId]
|
---|
| 215 | GO
|
---|
| 216 |
|
---|
| 217 | ALTER TABLE [dbo].[ResourceResourceGroup] WITH CHECK ADD CONSTRAINT [FK_ResourceResourceGroup_ResourceId] FOREIGN KEY([ResourceId])
|
---|
| 218 | REFERENCES [dbo].[Resource] ([Id])
|
---|
| 219 | GO
|
---|
| 220 |
|
---|
| 221 | ALTER TABLE [dbo].[ResourceResourceGroup] CHECK CONSTRAINT [FK_ResourceResourceGroup_ResourceId]
|
---|
| 222 | GO
|
---|
| 223 |
|
---|
| 224 | USE [HeuristicLab.AccessService]
|
---|
| 225 | GO
|
---|
| 226 |
|
---|
| 227 | /****** Object: Table [dbo].[ResourcePlugin] Script Date: 09/27/2011 17:07:01 ******/
|
---|
| 228 | SET ANSI_NULLS ON
|
---|
| 229 | GO
|
---|
| 230 |
|
---|
| 231 | SET QUOTED_IDENTIFIER ON
|
---|
| 232 | GO
|
---|
| 233 |
|
---|
| 234 | CREATE TABLE [dbo].[ResourcePlugin](
|
---|
| 235 | [ResourceId] [uniqueidentifier] NOT NULL,
|
---|
| 236 | [PluginId] [uniqueidentifier] NOT NULL,
|
---|
| 237 | CONSTRAINT [PK_ResourcePlugin] PRIMARY KEY CLUSTERED
|
---|
| 238 | (
|
---|
| 239 | [ResourceId] ASC,
|
---|
| 240 | [PluginId] ASC
|
---|
| 241 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
---|
| 242 | ) ON [PRIMARY]
|
---|
| 243 |
|
---|
| 244 | GO
|
---|
| 245 |
|
---|
| 246 | ALTER TABLE [dbo].[ResourcePlugin] WITH CHECK ADD CONSTRAINT [FK_ResourcePlugin_Plugin] FOREIGN KEY([PluginId])
|
---|
| 247 | REFERENCES [dbo].[Plugin] ([Id])
|
---|
| 248 | GO
|
---|
| 249 |
|
---|
| 250 | ALTER TABLE [dbo].[ResourcePlugin] CHECK CONSTRAINT [FK_ResourcePlugin_Plugin]
|
---|
| 251 | GO
|
---|
| 252 |
|
---|
| 253 | ALTER TABLE [dbo].[ResourcePlugin] WITH CHECK ADD CONSTRAINT [FK_ResourcePlugin_Resource] FOREIGN KEY([ResourceId])
|
---|
| 254 | REFERENCES [dbo].[Resource] ([Id])
|
---|
| 255 | GO
|
---|
| 256 |
|
---|
| 257 | ALTER TABLE [dbo].[ResourcePlugin] CHECK CONSTRAINT [FK_ResourcePlugin_Resource]
|
---|
| 258 | GO
|
---|
| 259 |
|
---|
| 260 | USE [HeuristicLab.AccessService]
|
---|
| 261 | GO
|
---|
| 262 |
|
---|
| 263 | /****** Object: Table [dbo].[UserGroup] Script Date: 09/27/2011 17:07:23 ******/
|
---|
| 264 | SET ANSI_NULLS ON
|
---|
| 265 | GO
|
---|
| 266 |
|
---|
| 267 | SET QUOTED_IDENTIFIER ON
|
---|
| 268 | GO
|
---|
| 269 |
|
---|
| 270 | CREATE TABLE [dbo].[UserGroup](
|
---|
| 271 | [Id] [uniqueidentifier] NOT NULL,
|
---|
| 272 | [FullName] [nvarchar](max) NULL,
|
---|
| 273 | [Name] [nvarchar](max) NULL,
|
---|
| 274 | [Type] [nvarchar](10) NOT NULL,
|
---|
| 275 | CONSTRAINT [PK_UserGroup] PRIMARY KEY CLUSTERED
|
---|
| 276 | (
|
---|
| 277 | [Id] ASC
|
---|
| 278 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
---|
| 279 | ) ON [PRIMARY]
|
---|
| 280 |
|
---|
| 281 | GO
|
---|
| 282 |
|
---|
| 283 | USE [HeuristicLab.AccessService]
|
---|
| 284 | GO
|
---|
| 285 |
|
---|
| 286 | /****** Object: Table [dbo].[UserGroupUserGroup] Script Date: 09/27/2011 17:07:30 ******/
|
---|
| 287 | SET ANSI_NULLS ON
|
---|
| 288 | GO
|
---|
| 289 |
|
---|
| 290 | SET QUOTED_IDENTIFIER ON
|
---|
| 291 | GO
|
---|
| 292 |
|
---|
| 293 | CREATE TABLE [dbo].[UserGroupUserGroup](
|
---|
| 294 | [UserGroupId] [uniqueidentifier] NOT NULL,
|
---|
| 295 | [UserGroupUserGroupId] [uniqueidentifier] NOT NULL,
|
---|
| 296 | CONSTRAINT [PK_UserGroupUserGroup] PRIMARY KEY CLUSTERED
|
---|
| 297 | (
|
---|
| 298 | [UserGroupId] ASC,
|
---|
| 299 | [UserGroupUserGroupId] ASC
|
---|
| 300 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
---|
| 301 | ) ON [PRIMARY]
|
---|
| 302 |
|
---|
| 303 | GO
|
---|
| 304 |
|
---|
| 305 | ALTER TABLE [dbo].[UserGroupUserGroup] WITH CHECK ADD CONSTRAINT [FK_UserGroupUserGroup_UserGroup] FOREIGN KEY([UserGroupId])
|
---|
| 306 | REFERENCES [dbo].[UserGroup] ([Id])
|
---|
| 307 | GO
|
---|
| 308 |
|
---|
| 309 | ALTER TABLE [dbo].[UserGroupUserGroup] CHECK CONSTRAINT [FK_UserGroupUserGroup_UserGroup]
|
---|
| 310 | GO
|
---|
| 311 |
|
---|
| 312 | ALTER TABLE [dbo].[UserGroupUserGroup] WITH CHECK ADD CONSTRAINT [FK_UserGroupUserGroup_UserGroup1] FOREIGN KEY([UserGroupUserGroupId])
|
---|
| 313 | REFERENCES [dbo].[UserGroup] ([Id])
|
---|
| 314 | GO
|
---|
| 315 |
|
---|
| 316 | ALTER TABLE [dbo].[UserGroupUserGroup] CHECK CONSTRAINT [FK_UserGroupUserGroup_UserGroup1]
|
---|
| 317 | GO
|
---|
| 318 |
|
---|
| 319 |
|
---|
| 320 | USE [HeuristicLab.AccessService]
|
---|
| 321 | GO
|
---|
| 322 |
|
---|
| 323 | /****** Object: Table [dbo].[ClientError] Script Date: 09/27/2011 17:05:38 ******/
|
---|
| 324 | SET ANSI_NULLS ON
|
---|
| 325 | GO
|
---|
| 326 |
|
---|
| 327 | SET QUOTED_IDENTIFIER ON
|
---|
| 328 | GO
|
---|
| 329 |
|
---|
| 330 | CREATE TABLE [dbo].[ClientError](
|
---|
| 331 | [Id] [uniqueidentifier] NOT NULL,
|
---|
| 332 | [Timestamp] [datetime] NOT NULL,
|
---|
| 333 | [Exception] [nvarchar](max) NULL,
|
---|
| 334 | [UserComment] [nvarchar](max) NULL,
|
---|
| 335 | [ConfigDump] [nvarchar](max) NULL,
|
---|
| 336 | [ClientId] [uniqueidentifier] NULL,
|
---|
| 337 | [UserId] [uniqueidentifier] NULL,
|
---|
| 338 | CONSTRAINT [PK_ClientError] PRIMARY KEY CLUSTERED
|
---|
| 339 | (
|
---|
| 340 | [Id] ASC
|
---|
| 341 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
---|
| 342 | ) ON [PRIMARY]
|
---|
| 343 |
|
---|
| 344 | GO
|
---|
| 345 |
|
---|
| 346 | ALTER TABLE [dbo].[ClientError] WITH CHECK ADD CONSTRAINT [FK_ClientError_Resource] FOREIGN KEY([ClientId])
|
---|
| 347 | REFERENCES [dbo].[Resource] ([Id])
|
---|
| 348 | GO
|
---|
| 349 |
|
---|
| 350 | ALTER TABLE [dbo].[ClientError] CHECK CONSTRAINT [FK_ClientError_Resource]
|
---|
| 351 | GO
|
---|
| 352 |
|
---|
| 353 | ALTER TABLE [dbo].[ClientError] WITH CHECK ADD CONSTRAINT [FK_ClientError_UserGroup] FOREIGN KEY([UserId])
|
---|
| 354 | REFERENCES [dbo].[UserGroup] ([Id])
|
---|
| 355 | GO
|
---|
| 356 |
|
---|
| 357 | ALTER TABLE [dbo].[ClientError] CHECK CONSTRAINT [FK_ClientError_UserGroup]
|
---|
| 358 | GO
|
---|
| 359 |
|
---|
| 360 | ALTER TABLE [dbo].[ClientError] ADD CONSTRAINT [DF_ClientError_Id] DEFAULT (newsequentialid()) FOR [Id]
|
---|
| 361 | GO
|
---|
| 362 |
|
---|
| 363 | USE [HeuristicLab.AccessService]
|
---|
| 364 | GO
|
---|
| 365 |
|
---|
| 366 | /****** Object: Table [dbo].[ClientLog] Script Date: 09/27/2011 17:05:50 ******/
|
---|
| 367 | SET ANSI_NULLS ON
|
---|
| 368 | GO
|
---|
| 369 |
|
---|
| 370 | SET QUOTED_IDENTIFIER ON
|
---|
| 371 | GO
|
---|
| 372 |
|
---|
| 373 | CREATE TABLE [dbo].[ClientLog](
|
---|
| 374 | [Timestamp] [datetime] NOT NULL,
|
---|
| 375 | [ResourceId] [uniqueidentifier] NOT NULL,
|
---|
| 376 | [Message] [nvarchar](max) NULL,
|
---|
| 377 | CONSTRAINT [PK_ClientLog] PRIMARY KEY CLUSTERED
|
---|
| 378 | (
|
---|
| 379 | [Timestamp] ASC,
|
---|
| 380 | [ResourceId] ASC
|
---|
| 381 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
---|
| 382 | ) ON [PRIMARY]
|
---|
| 383 |
|
---|
| 384 | GO
|
---|
| 385 |
|
---|
| 386 | ALTER TABLE [dbo].[ClientLog] WITH CHECK ADD CONSTRAINT [FK_ClientLog_Resource] FOREIGN KEY([ResourceId])
|
---|
| 387 | REFERENCES [dbo].[Resource] ([Id])
|
---|
| 388 | GO
|
---|
| 389 |
|
---|
| 390 | ALTER TABLE [dbo].[ClientLog] CHECK CONSTRAINT [FK_ClientLog_Resource]
|
---|
| 391 | GO
|
---|
| 392 |
|
---|
| 393 |
|
---|
| 394 |
|
---|
| 395 |
|
---|
| 396 |
|
---|
| 397 |
|
---|