1
0
mirror of https://github.com/bitwarden/server synced 2026-01-03 00:53:37 +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,12 @@
CREATE TABLE [dbo].[Organization] (
[Id] UNIQUEIDENTIFIER NOT NULL,
[UserId] UNIQUEIDENTIFIER NOT NULL,
[Name] NVARCHAR (50) NOT NULL,
[Plan] TINYINT NOT NULL,
[MaxUsers] SMALLINT NULL,
[CreationDate] DATETIME2 (7) NOT NULL,
[RevisionDate] DATETIME2 (7) NOT NULL,
CONSTRAINT [PK_Organization] PRIMARY KEY CLUSTERED ([Id] ASC),
CONSTRAINT [FK_Organization_User] FOREIGN KEY ([UserId]) REFERENCES [dbo].[User] ([Id])
);