mirror of
https://github.com/bitwarden/server.git
synced 2024-12-05 14:23:30 +01:00
16 lines
500 B
MySQL
16 lines
500 B
MySQL
|
IF OBJECT_ID('[dbo].[Cache]') IS NULL
|
||
|
BEGIN
|
||
|
CREATE TABLE [dbo].[Cache] (
|
||
|
[Id] [nvarchar](449) NOT NULL,
|
||
|
[Value] [varbinary](max) NOT NULL,
|
||
|
[ExpiresAtTime] [datetimeoffset](7) NOT NULL,
|
||
|
[SlidingExpirationInSeconds] [bigint] NULL,
|
||
|
[AbsoluteExpiration] [datetimeoffset](7) NULL,
|
||
|
CONSTRAINT [PK_Cache] PRIMARY KEY CLUSTERED ([Id] ASC)
|
||
|
);
|
||
|
|
||
|
CREATE NONCLUSTERED INDEX [IX_Cache_ExpiresAtTime]
|
||
|
ON [dbo].[Cache]([ExpiresAtTime] ASC);
|
||
|
END
|
||
|
GO
|