Files
TWA-App/TWASys-App/DBModels/ServerAuthorization.cs
2025-11-18 11:48:01 +07:00

25 lines
806 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace TWASys_App.DBModels
{
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<ServerAuthorization_has_Token> Tokens { get; set; } = new List<ServerAuthorization_has_Token>();
[NotMapped()]
public ICollection<RefreshToken> RefreshTokens { get; set; } = new List<RefreshToken>();
}
}