v0.0.3 twa sys

This commit is contained in:
2025-11-19 07:57:43 +07:00
parent a586da6edc
commit ccf08a3077
24 changed files with 75 additions and 35 deletions

View File

@ -0,0 +1,27 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace TWASys_App.DBModels.SotrageModel
{
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>();
}
}