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,21 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace TWASys_App.DBModels.SotrageModel
{
public class StorageArea
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long IdStorage { get; set; } // PK (AUTO_INCREMENT nếu DB đang để vậy)
public ulong? IdEmp { get; set; } = null; // FK -> Emp (nếu có)
public DateTime CreateDate { get; set; } = DateTime.UtcNow;
public double TotalSize { get; set; } = 0; // map FLOAT MySQL -> double
public int Status { get; set; } = 0;
}
}