22 lines
643 B
C#
22 lines
643 B
C#
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;
|
|
}
|
|
}
|