update TWA Management v0.0.1

This commit is contained in:
2025-11-05 10:08:06 +07:00
parent d4e91c7960
commit b4b191f829
73 changed files with 2249 additions and 418 deletions

View File

@ -0,0 +1,26 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace TWASys_App.DBModels
{
public class MicrosoftAccount
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long IdCloudAccount { get; set; }
public string AccName { get; set; } = null!;
public string ClientID { get; set; } = null!; // GUID string
public string TenantID { get; set; } = null!;
public string? ClientSecret { get; set; } // encrypted at rest
public string? SiteID { get; set; }
public string? DriveID { get; set; }
public string? PathSharePoint { get; set; }
public string? RefreshToken { get; set; } // encrypted
public string? AccessToken { get; set; } // optional cache
public DateTime? ExpiresAt { get; set; }
public string? Scopes { get; set; }
public DateTime CreateDate { get; set; }
public DateTime? LastModified { get; set; }
public int Status { get; set; }
}
}