2022-01-11 10:40:51 +01:00
|
|
|
|
using AutoMapper;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Bit.Infrastructure.EntityFramework.Models;
|
2022-08-29 16:06:55 -04:00
|
|
|
|
|
2022-01-11 10:40:51 +01:00
|
|
|
|
public class Installation : Core.Entities.Installation
|
|
|
|
|
|
{
|
2024-12-13 16:04:55 -05:00
|
|
|
|
// 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; }
|
2022-01-11 10:40:51 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public class InstallationMapperProfile : Profile
|
2022-08-29 16:06:55 -04:00
|
|
|
|
{
|
2022-01-11 10:40:51 +01:00
|
|
|
|
public InstallationMapperProfile()
|
|
|
|
|
|
{
|
2024-12-13 16:04:55 -05:00
|
|
|
|
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();
|
2022-01-11 10:40:51 +01:00
|
|
|
|
CreateMap<Core.Entities.Installation, Installation>().ReverseMap();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|