1
0
mirror of https://github.com/bitwarden/server synced 2025-12-30 07:03:42 +00:00

add renewal reminder date prop to users

This commit is contained in:
Kyle Spearrin
2018-07-12 17:35:01 -04:00
parent 0524630c33
commit 476ee53931
5 changed files with 35 additions and 1 deletions

View File

@@ -17,6 +17,7 @@
[PrivateKey] VARCHAR (MAX) NULL,
[Premium] BIT NOT NULL,
[PremiumExpirationDate] DATETIME2 (7) NULL,
[RenewalReminderDate] DATETIME2 (7) NULL,
[Storage] BIGINT NULL,
[MaxStorageGb] SMALLINT NULL,
[Gateway] TINYINT NULL,
@@ -33,3 +34,7 @@ GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_User_Email]
ON [dbo].[User]([Email] ASC);
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_User_Premium_PremiumExpirationDate_RenewalReminderDate]
ON [dbo].[User]([Premium] ASC, [PremiumExpirationDate] ASC, [RenewalReminderDate] ASC);