21 lines
503 B
C#
21 lines
503 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using PSTW_CentralSystem.Models;
|
|
|
|
namespace PSTW_CentralSystem.Areas.OTcalculate.Models
|
|
{
|
|
public class StateModel
|
|
{
|
|
[Key]
|
|
public int StateId { get; set; }
|
|
|
|
[Required]
|
|
public required string StateName { get; set; }
|
|
|
|
public int? WeekendId { get; set; }
|
|
|
|
[ForeignKey("WeekendId")]
|
|
public virtual WeekendModel? Weekends { get; set; }
|
|
}
|
|
|
|
} |