2017-11-25 20:29:58 -05:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
2018-04-08 02:44:42 -04:00
|
|
|
|
namespace SharedLibraryCore.Database.Models
|
2017-11-25 20:29:58 -05:00
|
|
|
|
{
|
2018-11-05 22:01:29 -05:00
|
|
|
|
public partial class EFClient : SharedEntity
|
2017-11-25 20:29:58 -05:00
|
|
|
|
{
|
|
|
|
|
[Key]
|
|
|
|
|
public int ClientId { get; set; }
|
2018-02-10 23:33:42 -05:00
|
|
|
|
public long NetworkId { get; set; }
|
2017-11-25 20:29:58 -05:00
|
|
|
|
[Required]
|
|
|
|
|
public int Connections { get; set; }
|
|
|
|
|
[Required]
|
2018-02-08 02:23:45 -05:00
|
|
|
|
// in seconds
|
2017-11-25 20:29:58 -05:00
|
|
|
|
public int TotalConnectionTime { get; set; }
|
|
|
|
|
[Required]
|
|
|
|
|
public DateTime FirstConnection { get; set; }
|
|
|
|
|
[Required]
|
|
|
|
|
public DateTime LastConnection { get; set; }
|
|
|
|
|
public bool Masked { get; set; }
|
|
|
|
|
[Required]
|
|
|
|
|
public int AliasLinkId { get; set; }
|
|
|
|
|
[ForeignKey("AliasLinkId")]
|
|
|
|
|
public virtual EFAliasLink AliasLink { get; set; }
|
2017-11-29 19:35:50 -05:00
|
|
|
|
[Required]
|
2018-11-05 22:01:29 -05:00
|
|
|
|
public Permission Level { get; set; }
|
2017-11-29 19:35:50 -05:00
|
|
|
|
|
|
|
|
|
[Required]
|
|
|
|
|
public int CurrentAliasId { get; set; }
|
|
|
|
|
[ForeignKey("CurrentAliasId")]
|
|
|
|
|
public virtual EFAlias CurrentAlias { get; set; }
|
|
|
|
|
|
2018-04-04 15:38:34 -04:00
|
|
|
|
public string Password { get; set; }
|
|
|
|
|
public string PasswordSalt { get; set; }
|
2018-06-02 00:48:10 -04:00
|
|
|
|
// list of meta for the client
|
2019-05-29 17:55:35 -04:00
|
|
|
|
public virtual ICollection<EFMeta> Meta { get; set; }
|
2017-11-25 20:29:58 -05:00
|
|
|
|
public virtual ICollection<EFPenalty> ReceivedPenalties { get; set; }
|
|
|
|
|
public virtual ICollection<EFPenalty> AdministeredPenalties { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|