1
0
mirror of https://github.com/bitwarden/server synced 2026-01-06 02:23:51 +00:00

group access all and readonly schema changes

This commit is contained in:
Kyle Spearrin
2017-05-10 12:17:10 -04:00
parent ba99b332e1
commit 08943ed305
10 changed files with 34 additions and 5 deletions

View File

@@ -1,6 +1,7 @@
CREATE TABLE [dbo].[CollectionGroup] (
[CollectionId] UNIQUEIDENTIFIER NOT NULL,
[GroupId] UNIQUEIDENTIFIER NOT NULL,
[ReadOnly] BIT NOT NULL,
CONSTRAINT [PK_CollectionGroup] PRIMARY KEY CLUSTERED ([CollectionId] ASC, [GroupId] ASC),
CONSTRAINT [FK_CollectionGroup_Collection] FOREIGN KEY ([CollectionId]) REFERENCES [dbo].[Collection] ([Id]),
CONSTRAINT [FK_CollectionGroup_Group] FOREIGN KEY ([GroupId]) REFERENCES [dbo].[Group] ([Id]) ON DELETE CASCADE