v0.0.3 twa sys
This commit is contained in:
26
TWASys-App/DBModels/SotrageModel/Files.cs
Normal file
26
TWASys-App/DBModels/SotrageModel/Files.cs
Normal file
@ -0,0 +1,26 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace TWASys_App.DBModels.SotrageModel
|
||||
{
|
||||
public class Files
|
||||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public ulong IdFiles { get; set; }
|
||||
|
||||
[ForeignKey("IdFolders")]
|
||||
public ulong IdFolders { get; set; } // BIGINT FK → Folders.idFolders
|
||||
|
||||
public string Code { get; set; } = ""; // VARCHAR(100)
|
||||
public string Name { get; set; } = ""; // VARCHAR(100)
|
||||
public string Path { get; set; } = ""; // TEXT
|
||||
public string Options { get; set; } = ""; // LONGTEXT (JSON, metadata)
|
||||
|
||||
public DateTime CreateDate { get; set; } = DateTime.UtcNow; // DATETIME (UTC khuyên dùng)
|
||||
public DateTime? LastModified { get; set; } = null; // DATETIME NULL
|
||||
public int Status { get; set; } // INT(11)
|
||||
|
||||
public Folder? Folder { get; set; } = null!; // nav
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user