31 lines
712 B
C#
31 lines
712 B
C#
using BlueWest.WebApi.Context.Users;
|
|
using MapTo;
|
|
using Redis.OM.Modeling;
|
|
|
|
namespace BlueWest.Data.Application
|
|
{
|
|
[Document(StorageType = StorageType.Json, Prefixes = new []{"SessionToken"})]
|
|
[MapFrom(new []
|
|
{
|
|
typeof(SessionTokenUnique)
|
|
})]
|
|
public partial class SessionToken
|
|
{
|
|
[IgnoreMemberMapTo]
|
|
[Indexed] public string Id { get; set; }
|
|
|
|
[Indexed] public int ValidFor { get; set;}
|
|
|
|
[Indexed] public bool IsValid { get; set; }
|
|
|
|
[Indexed] public long CreatedDate { get; set; }
|
|
|
|
[Indexed] public string UserId { get; set; }
|
|
|
|
[Indexed] public string AccessToken { get; set; }
|
|
|
|
|
|
}
|
|
}
|
|
|