mirror of
https://github.com/bitwarden/server.git
synced 2025-04-05 05:00:19 -05:00

* feat : matching request email to session email * feat : implement AuthRequestHeaderValidator * fix : matching table definitions between migrator and sql project. * fix : fixing tests
19 lines
726 B
Transact-SQL
19 lines
726 B
Transact-SQL
CREATE TABLE [dbo].[OpaqueKeyExchangeCredential]
|
|
(
|
|
[Id] UNIQUEIDENTIFIER NOT NULL,
|
|
[UserId] UNIQUEIDENTIFIER NOT NULL,
|
|
[CipherConfiguration] VARCHAR(MAX) NOT NULL,
|
|
[CredentialBlob] VARCHAR(MAX) NOT NULL,
|
|
[EncryptedPublicKey] VARCHAR(MAX) NOT NULL,
|
|
[EncryptedPrivateKey] VARCHAR(MAX) NOT NULL,
|
|
[EncryptedUserKey] VARCHAR(MAX) NULL,
|
|
[CreationDate] DATETIME2 (7) NOT NULL,
|
|
CONSTRAINT [PK_OpaqueKeyExchangeCredential] PRIMARY KEY CLUSTERED ([UserId]),
|
|
CONSTRAINT [FK_OpaqueKeyExchangeCredential_User] FOREIGN KEY ([UserId]) REFERENCES [dbo].[User] ([Id])
|
|
);
|
|
|
|
GO
|
|
|
|
CREATE NONCLUSTERED INDEX [IX_OpaqueKeyExchangeCredential_UserId]
|
|
ON [dbo].[OpaqueKeyExchangeCredential]([UserId] ASC);
|