23 lines
554 B
C#
23 lines
554 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using PSTW_CentralSystem.Models;
|
|
|
|
namespace PSTW_CentralSystem.Areas.OTcalculate.Models
|
|
{
|
|
public class RateModel
|
|
{
|
|
[Key]
|
|
public required string Id { get; set; }
|
|
|
|
public required string FullName { get; set; }
|
|
|
|
public int? departmentId { get; set; }
|
|
|
|
[ForeignKey("departmentId")]
|
|
public virtual DepartmentModel? Department { get; set; }
|
|
|
|
public string? DepartmentName { get; set; }
|
|
|
|
}
|
|
}
|