2019-11-25 09:49:12 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
|
|
|
namespace ASC.Core.Common.EF
|
|
|
|
|
{
|
|
|
|
|
[Table("core_usersecurity")]
|
2019-12-17 13:01:59 +00:00
|
|
|
|
public class UserSecurity : BaseEntity
|
2019-11-25 09:49:12 +00:00
|
|
|
|
{
|
|
|
|
|
public int Tenant { get; set; }
|
|
|
|
|
|
|
|
|
|
[Key]
|
|
|
|
|
public Guid UserId { get; set; }
|
|
|
|
|
|
|
|
|
|
public string PwdHash { get; set; }
|
|
|
|
|
|
|
|
|
|
public string PwdHashSha512 { get; set; }
|
2019-12-17 13:01:59 +00:00
|
|
|
|
|
2020-02-21 12:38:04 +00:00
|
|
|
|
public override object[] GetKeys()
|
2019-12-17 13:01:59 +00:00
|
|
|
|
{
|
|
|
|
|
return new object[] { UserId };
|
|
|
|
|
}
|
2019-11-25 09:49:12 +00:00
|
|
|
|
}
|
|
|
|
|
}
|