1
0
mirror of https://github.com/bitwarden/server synced 2026-01-08 03:23:20 +00:00

share api

This commit is contained in:
Kyle Spearrin
2017-02-21 23:18:12 -05:00
parent 900e71d4dd
commit 0caea4ab8b
9 changed files with 160 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
CREATE TABLE [dbo].[Share] (
[Id] UNIQUEIDENTIFIER NOT NULL,
[UserId] UNIQUEIDENTIFIER NOT NULL,
[SharerUserId] UNIQUEIDENTIFIER NOT NULL,
[CipherId] UNIQUEIDENTIFIER NOT NULL,
[Key] VARCHAR (MAX) NULL,
[Permissions] VARCHAR (MAX) NULL,
@@ -9,7 +10,8 @@
[RevisionDate] DATETIME2 (7) NOT NULL,
CONSTRAINT [PK_Share] PRIMARY KEY CLUSTERED ([Id] ASC),
CONSTRAINT [FK_Share_Cipher] FOREIGN KEY ([CipherId]) REFERENCES [dbo].[Cipher] ([Id]),
CONSTRAINT [FK_Share_User] FOREIGN KEY ([UserId]) REFERENCES [dbo].[User] ([Id])
CONSTRAINT [FK_Share_User] FOREIGN KEY ([UserId]) REFERENCES [dbo].[User] ([Id]),
CONSTRAINT [FK_Share_SharerUser] FOREIGN KEY ([SharerUserId]) REFERENCES [dbo].[User] ([Id])
);