PSTW_CentralizeSystem/Models/UserModel.cs
2025-03-30 02:27:27 +08:00

22 lines
727 B
C#

using Microsoft.AspNetCore.Identity;
using PSTW_CentralSystem.Areas.Inventory.Models;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace PSTW_CentralSystem.Models
{
public class UserModel : IdentityUser<int> // Specify the type for the primary key
{
// Add custom properties
//[Key]
//public int UserId { get; set; }
public string? FullName { get; set; }
public int? UserInfoStatus { get; set; }
public int? departmentId { get; set; }
[ForeignKey("departmentId")]
public virtual DepartmentModel? Department { get; set; }
public virtual InventoryMasterModel? Store { get; set; }
}
}