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