mirror of
https://github.com/bitwarden/server.git
synced 2025-07-03 00:52:49 -05:00
[SM-460] Isolate SecretsManager files (#2616)
Move SecretsManager files to directories called SecretsManager and add CodeOwners
This commit is contained in:
19
src/Sql/SecretsManager/dbo/Tables/Secret.sql
Normal file
19
src/Sql/SecretsManager/dbo/Tables/Secret.sql
Normal file
@ -0,0 +1,19 @@
|
||||
CREATE TABLE [dbo].[Secret]
|
||||
(
|
||||
[Id] UNIQUEIDENTIFIER NOT NULL,
|
||||
[OrganizationId] UNIQUEIDENTIFIER NOT NULL,
|
||||
[Key] NVARCHAR(MAX) NULL,
|
||||
[Value] NVARCHAR(MAX) NULL,
|
||||
[Note] NVARCHAR(MAX) NULL,
|
||||
[CreationDate] DATETIME2(7) NOT NULL,
|
||||
[RevisionDate] DATETIME2(7) NOT NULL,
|
||||
[DeletedDate] DATETIME2(7) NULL,
|
||||
CONSTRAINT [PK_Secret] PRIMARY KEY CLUSTERED ([Id] ASC),
|
||||
CONSTRAINT [FK_Secret_OrganizationId] FOREIGN KEY ([OrganizationId]) REFERENCES [dbo].[Organization]([Id])
|
||||
);
|
||||
|
||||
GO
|
||||
CREATE NONCLUSTERED INDEX [IX_Secret_OrganizationId] ON [dbo].[Secret] ([OrganizationId] ASC);
|
||||
|
||||
GO
|
||||
CREATE NONCLUSTERED INDEX [IX_Secret_DeletedDate] ON [dbo].[Secret] ([DeletedDate] ASC);
|
Reference in New Issue
Block a user