update TWA Management v0.0.1
This commit is contained in:
26
TWASys-App/DBModels/MicrosoftAccount.cs
Normal file
26
TWASys-App/DBModels/MicrosoftAccount.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user