v0.0.3 twa sys
This commit is contained in:
24
TWASys-App/DBModels/SotrageModel/ServerAuthorization.cs
Normal file
24
TWASys-App/DBModels/SotrageModel/ServerAuthorization.cs
Normal file
@ -0,0 +1,24 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace TWASys_App.DBModels.SotrageModel
|
||||
{
|
||||
public class ServerAuthorization
|
||||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public ulong IdServerAuthorization { get; set; }
|
||||
|
||||
[ForeignKey("IdStorageServer")]
|
||||
public long IdStorageServer { get; set; }
|
||||
public DateTime CreateDate { get; set; }
|
||||
public int Count { get; set; }
|
||||
public int Status { get; set; }
|
||||
|
||||
[NotMapped()]
|
||||
public ICollection<Token> Tokens { get; set; } = new List<Token>();
|
||||
|
||||
[NotMapped()]
|
||||
public ICollection<RefreshToken> RefreshTokens { get; set; } = new List<RefreshToken>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user