diff --git a/src/Sql/Sql.sqlproj b/src/Sql/Sql.sqlproj
index 90b8ab84a9..2abbe355cd 100644
--- a/src/Sql/Sql.sqlproj
+++ b/src/Sql/Sql.sqlproj
@@ -65,71 +65,77 @@
+
-
-
-
-
+
+
+
+
+
-
-
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
@@ -144,52 +150,47 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/Sql/dbo/Stored Procedures/CollectionUserDetails_ReadByCollectionId.sql b/src/Sql/dbo/Stored Procedures/CollectionUserDetails_ReadByCollectionId.sql
index e86aa884c0..6b07d92229 100644
--- a/src/Sql/dbo/Stored Procedures/CollectionUserDetails_ReadByCollectionId.sql
+++ b/src/Sql/dbo/Stored Procedures/CollectionUserDetails_ReadByCollectionId.sql
@@ -41,4 +41,4 @@ BEGIN
OR G.[AccessAll] = 1
)
)
-END
+END
\ No newline at end of file
diff --git a/src/Sql/dbo/Stored Procedures/GroupUserDetails_ReadByGroupId.sql b/src/Sql/dbo/Stored Procedures/GroupUserDetails_ReadByGroupId.sql
index ead1eb26c5..89d3cdfc5e 100644
--- a/src/Sql/dbo/Stored Procedures/GroupUserDetails_ReadByGroupId.sql
+++ b/src/Sql/dbo/Stored Procedures/GroupUserDetails_ReadByGroupId.sql
@@ -19,4 +19,4 @@ BEGIN
[dbo].[User] U ON U.[Id] = OU.[UserId]
WHERE
GU.[GroupId] = @GroupId
-END
+END
\ No newline at end of file
diff --git a/src/Sql/dbo/Tables/CollectionUser.sql b/src/Sql/dbo/Tables/CollectionUser.sql
index 2f9c89cea1..4bb60ab56c 100644
--- a/src/Sql/dbo/Tables/CollectionUser.sql
+++ b/src/Sql/dbo/Tables/CollectionUser.sql
@@ -1,7 +1,7 @@
CREATE TABLE [dbo].[CollectionUser] (
[CollectionId] UNIQUEIDENTIFIER NOT NULL,
[OrganizationUserId] UNIQUEIDENTIFIER NOT NULL,
- [ReadOnly] BIT NOT NULL
+ [ReadOnly] BIT NOT NULL,
CONSTRAINT [PK_CollectionUser] PRIMARY KEY CLUSTERED ([CollectionId] ASC, [OrganizationUserId] ASC),
CONSTRAINT [FK_CollectionUser_Collection] FOREIGN KEY ([CollectionId]) REFERENCES [dbo].[Collection] ([Id]) ON DELETE CASCADE,
CONSTRAINT [FK_CollectionUser_OrganizationUser] FOREIGN KEY ([OrganizationUserId]) REFERENCES [dbo].[OrganizationUser] ([Id])
diff --git a/src/Sql/dbo/Tables/GroupUser.sql b/src/Sql/dbo/Tables/GroupUser.sql
index 965cc9e606..801d5c32c1 100644
--- a/src/Sql/dbo/Tables/GroupUser.sql
+++ b/src/Sql/dbo/Tables/GroupUser.sql
@@ -1,6 +1,6 @@
CREATE TABLE [dbo].[GroupUser] (
- [GroupId] UNIQUEIDENTIFIER NOT NULL,
- [OrganizationUserId] UNIQUEIDENTIFIER NOT NULL,
+ [GroupId] UNIQUEIDENTIFIER NOT NULL,
+ [OrganizationUserId] UNIQUEIDENTIFIER NOT NULL,
CONSTRAINT [PK_GroupUser] PRIMARY KEY CLUSTERED ([GroupId] ASC, [OrganizationUserId] ASC),
CONSTRAINT [FK_GroupUser_Group] FOREIGN KEY ([GroupId]) REFERENCES [dbo].[Group] ([Id]) ON DELETE CASCADE,
CONSTRAINT [FK_GroupUser_OrganizationUser] FOREIGN KEY ([OrganizationUserId]) REFERENCES [dbo].[OrganizationUser] ([Id])
diff --git a/src/Sql/dbo/Tables/OrganizationUser.sql b/src/Sql/dbo/Tables/OrganizationUser.sql
index 2b2b1880d9..5f43fe3410 100644
--- a/src/Sql/dbo/Tables/OrganizationUser.sql
+++ b/src/Sql/dbo/Tables/OrganizationUser.sql
@@ -1,15 +1,15 @@
CREATE TABLE [dbo].[OrganizationUser] (
- [Id] UNIQUEIDENTIFIER NOT NULL,
- [OrganizationId] UNIQUEIDENTIFIER NOT NULL,
- [UserId] UNIQUEIDENTIFIER NULL,
- [Email] NVARCHAR (50) NULL,
- [Key] VARCHAR (MAX) NULL,
- [Status] TINYINT NOT NULL,
- [Type] TINYINT NOT NULL,
- [AccessAll] BIT NOT NULL,
- [ExternalId] NVARCHAR (300) NULL,
- [CreationDate] DATETIME2 (7) NOT NULL,
- [RevisionDate] DATETIME2 (7) NOT NULL,
+ [Id] UNIQUEIDENTIFIER NOT NULL,
+ [OrganizationId] UNIQUEIDENTIFIER NOT NULL,
+ [UserId] UNIQUEIDENTIFIER NULL,
+ [Email] NVARCHAR (50) NULL,
+ [Key] VARCHAR (MAX) NULL,
+ [Status] TINYINT NOT NULL,
+ [Type] TINYINT NOT NULL,
+ [AccessAll] BIT NOT NULL,
+ [ExternalId] NVARCHAR (300) NULL,
+ [CreationDate] DATETIME2 (7) NOT NULL,
+ [RevisionDate] DATETIME2 (7) NOT NULL,
CONSTRAINT [PK_OrganizationUser] PRIMARY KEY CLUSTERED ([Id] ASC),
CONSTRAINT [FK_OrganizationUser_Organization] FOREIGN KEY ([OrganizationId]) REFERENCES [dbo].[Organization] ([Id]) ON DELETE CASCADE,
CONSTRAINT [FK_OrganizationUser_User] FOREIGN KEY ([UserId]) REFERENCES [dbo].[User] ([Id])
diff --git a/src/Sql/dbo/User Defined Types/SelectionReadOnlyArray.sql b/src/Sql/dbo/User Defined Types/SelectionReadOnlyArray.sql
index 456d913e01..90f737b173 100644
--- a/src/Sql/dbo/User Defined Types/SelectionReadOnlyArray.sql
+++ b/src/Sql/dbo/User Defined Types/SelectionReadOnlyArray.sql
@@ -1,4 +1,4 @@
CREATE TYPE [dbo].[SelectionReadOnlyArray] AS TABLE (
- [Id] UNIQUEIDENTIFIER NOT NULL,
- [ReadOnly] BIT NOT NULL);
+ [Id] UNIQUEIDENTIFIER NOT NULL,
+ [ReadOnly] BIT NOT NULL);