1
0
mirror of https://github.com/bitwarden/server synced 2026-01-08 11:33:26 +00:00

Grant table for identity persisted grants

This commit is contained in:
Kyle Spearrin
2017-01-11 22:43:03 -05:00
parent 2b7f6e5a6c
commit 9749d1e3a8
9 changed files with 168 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
CREATE TABLE [dbo].[Grant] (
[Key] NVARCHAR (200) NOT NULL,
[Type] NVARCHAR (50) NULL,
[SubjectId] NVARCHAR (50) NULL,
[ClientId] NVARCHAR (50) NOT NULL,
[CreationDate] DATETIME2 (7) NOT NULL,
[ExpirationDate] DATETIME2 (7) NULL,
[Data] NVARCHAR (MAX) NOT NULL,
CONSTRAINT [PK_Grant] PRIMARY KEY CLUSTERED ([Key] ASC)
);
GO
CREATE NONCLUSTERED INDEX [IX_Grant_SubjectId_ClientId_Type]
ON [dbo].[Grant]([SubjectId] ASC, [ClientId] ASC, [Type] ASC);