update TWA Management v0.0.1
This commit is contained in:
27
TWASys-App/DBModels/Folder.cs
Normal file
27
TWASys-App/DBModels/Folder.cs
Normal file
@ -0,0 +1,27 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace TWASys_App.DBModels
|
||||
{
|
||||
public class Folder
|
||||
{
|
||||
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
|
||||
public ulong IdFolders { get; set; } // BIGINT PK
|
||||
public ulong? IdParent { get; set; } // BIGINT FK, null = root
|
||||
|
||||
public string Name { get; set; } = ""; // VARCHAR(45)
|
||||
public string Code { get; set; } = ""; // VARCHAR(100)
|
||||
public string Path { get; set; } = ""; // TEXT
|
||||
public string Options { get; set; } = ""; // LONGTEXT
|
||||
|
||||
public DateTime CreateDate { get; set; } = DateTime.UtcNow; // DATETIME
|
||||
public DateTime? LastModified { get; set; } = null; // DATETIME NULL
|
||||
public int Status { get; set; } // INT(11)
|
||||
|
||||
public Folder? Parent { get; set; } = null;
|
||||
public ICollection<Folder> Children { get; set; } = new List<Folder>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user