20 lines
669 B
C#
20 lines
669 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
|
|
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; }
|
|
}
|
|
}
|