Changeset 6820 for branches/ClientUserManagement/HeuristicLab.Services.Access.DataAccess/3.3/SQL Scripts
- Timestamp:
- 09/22/11 13:06:02 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ClientUserManagement/HeuristicLab.Services.Access.DataAccess/3.3/SQL Scripts/Initialize ClientManagement.sql
r6815 r6820 2 2 GO 3 3 4 /****** Object: Table [dbo].[Resource] Script Date: 09/ 19/2011 13:24:05******/4 /****** Object: Table [dbo].[Resource] Script Date: 09/22/2011 12:53:30 ******/ 5 5 SET ANSI_NULLS ON 6 6 GO … … 15 15 [Type] [nvarchar](max) NOT NULL, 16 16 [ProcessorType] [nvarchar](max) NULL, 17 [NumberOfCores] [int] (max)NULL,17 [NumberOfCores] [int] NULL, 18 18 [IPAddress] [nvarchar](max) NULL, 19 [MemorySize] [int] (max)NULL,19 [MemorySize] [int] NULL, 20 20 [OperatingSystem] [nvarchar](max) NULL, 21 21 [Country] [nvarchar](max) NULL, 22 22 [HeuristicLabVersion] [nvarchar](max) NULL, 23 [ClientType] [nvarchar](max) NULL, 23 24 CONSTRAINT [PK_Resource] PRIMARY KEY CLUSTERED 24 25 ( … … 28 29 29 30 GO 30 31 /****** Object: Table [dbo].[ResourceResourceGroup] Script Date: 09/19/2011 13:24:08 ******/ 31 /****** Object: Table [dbo].[ResourceResourceGroup] Script Date: 09/22/2011 12:53:47 ******/ 32 32 SET ANSI_NULLS ON 33 33 GO … … 60 60 61 61 ALTER TABLE [dbo].[ResourceResourceGroup] CHECK CONSTRAINT [FK_ResourceResourceGroup_ResourceId] 62 GO63 62 64 /****** Object: Table [dbo].[ClientLog] Script Date: 09/ 19/2011 13:24:11******/63 /****** Object: Table [dbo].[ClientLog] Script Date: 09/22/2011 12:54:07 ******/ 65 64 SET ANSI_NULLS ON 66 65 GO … … 90 89 GO 91 90 91 /****** Object: Table [dbo].[User] Script Date: 09/22/2011 12:54:23 ******/ 92 SET ANSI_NULLS ON 93 GO 92 94 95 SET QUOTED_IDENTIFIER ON 96 GO 93 97 98 CREATE TABLE [dbo].[User]( 99 [Id] [uniqueidentifier] NOT NULL, 100 [FullName] [nvarchar](max) NULL, 101 CONSTRAINT [PK_User] PRIMARY KEY CLUSTERED 102 ( 103 [Id] ASC 104 )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] 105 ) ON [PRIMARY] 94 106 107 GO 95 108 109 /****** Object: Table [dbo].[UserGroup] Script Date: 09/22/2011 12:54:35 ******/ 110 SET ANSI_NULLS ON 111 GO 96 112 113 SET QUOTED_IDENTIFIER ON 114 GO 115 116 CREATE TABLE [dbo].[UserGroup]( 117 [Id] [uniqueidentifier] NOT NULL, 118 [Name] [nvarchar](max) NOT NULL, 119 [ParentUserGroup] [uniqueidentifier] NULL, 120 CONSTRAINT [PK_UserGroup] PRIMARY KEY CLUSTERED 121 ( 122 [Id] ASC 123 )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] 124 ) ON [PRIMARY] 125 126 GO 127 128 /****** Object: Table [dbo].[UserUserGroup] Script Date: 09/22/2011 12:54:52 ******/ 129 SET ANSI_NULLS ON 130 GO 131 132 SET QUOTED_IDENTIFIER ON 133 GO 134 135 CREATE TABLE [dbo].[UserUserGroup]( 136 [UserId] [uniqueidentifier] NOT NULL, 137 [UserGroupId] [uniqueidentifier] NOT NULL, 138 CONSTRAINT [PK_UserUserGroup] PRIMARY KEY CLUSTERED 139 ( 140 [UserId] ASC, 141 [UserGroupId] ASC 142 )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] 143 ) ON [PRIMARY] 144 145 GO 146 147 ALTER TABLE [dbo].[UserUserGroup] WITH CHECK ADD CONSTRAINT [FK_UserUserGroup_User] FOREIGN KEY([UserId]) 148 REFERENCES [dbo].[User] ([Id]) 149 GO 150 151 ALTER TABLE [dbo].[UserUserGroup] CHECK CONSTRAINT [FK_UserUserGroup_User] 152 GO 153 154 ALTER TABLE [dbo].[UserUserGroup] WITH CHECK ADD CONSTRAINT [FK_UserUserGroup_UserGroup] FOREIGN KEY([UserGroupId]) 155 REFERENCES [dbo].[UserGroup] ([Id]) 156 GO 157 158 ALTER TABLE [dbo].[UserUserGroup] CHECK CONSTRAINT [FK_UserUserGroup_UserGroup] 159 GO
Note: See TracChangeset
for help on using the changeset viewer.