PSTW_CentralizeSystem/Models/UserModel.cs
2024-12-18 14:37:58 +08:00

18 lines
563 B
C#

using Microsoft.AspNetCore.Identity;
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
public string? FullName { get; set; }
public int? UserInfoStatus { get; set; }
public int? departmentId { get; set; }
[ForeignKey("departmentId")]
public virtual DepartmentModel? Department { get; set; }
}
}