update TWA Management v0.0.1
This commit is contained in:
21
TWASys-App/DBModels/StorageArea.cs
Normal file
21
TWASys-App/DBModels/StorageArea.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace TWASys_App.DBModels
|
||||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user