1
0
mirror of https://github.com/bitwarden/server synced 2026-01-04 01:23:25 +00:00

Stub out new org/subvault sharing tables

This commit is contained in:
Kyle Spearrin
2017-02-28 21:56:59 -05:00
parent 7e86c72386
commit e68ba4869d
24 changed files with 94 additions and 215 deletions

View File

@@ -0,0 +1,8 @@
CREATE TABLE [dbo].[Favorite] (
[UserId] UNIQUEIDENTIFIER NOT NULL,
[CipherId] UNIQUEIDENTIFIER NOT NULL,
CONSTRAINT [PK_Favorite] PRIMARY KEY CLUSTERED ([UserId] ASC, [CipherId] ASC),
CONSTRAINT [FK_Favorite_Cipher] FOREIGN KEY ([CipherId]) REFERENCES [dbo].[Cipher] ([Id]),
CONSTRAINT [FK_Favorite_User] FOREIGN KEY ([UserId]) REFERENCES [dbo].[User] ([Id])
);