1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-03 17:12:49 -05:00

chore(db): add Installation.LastActivityDate column (#5060)

* chore(mssql): add `Installation.LastActivityDate` column

* chore(ef): add `Installation.LastActivityDate` column
This commit is contained in:
Addison Beck
2024-12-13 16:04:55 -05:00
committed by GitHub
parent 141a046a28
commit a8091bf585
14 changed files with 9014 additions and 14 deletions

View File

@ -4,12 +4,20 @@ namespace Bit.Infrastructure.EntityFramework.Models;
public class Installation : Core.Entities.Installation
{
// Shadow property - to be introduced by https://bitwarden.atlassian.net/browse/PM-11129
// This isn't a value or entity used by self hosted servers, but it's
// being added for synchronicity between database provider options.
public DateTime? LastActivityDate { get; set; }
}
public class InstallationMapperProfile : Profile
{
public InstallationMapperProfile()
{
CreateMap<Core.Entities.Installation, Installation>()
// Shadow property - to be introduced by https://bitwarden.atlassian.net/browse/PM-11129
.ForMember(i => i.LastActivityDate, opt => opt.Ignore())
.ReverseMap();
CreateMap<Core.Entities.Installation, Installation>().ReverseMap();
}
}