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:
12
src/Sql/dbo/Tables/Organization.sql
Normal file
12
src/Sql/dbo/Tables/Organization.sql
Normal 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])
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user