PIbd-22_Shabunov_O.A._SushiBar/SushiBarDatabaseImplement/Models/Cook.cs
2024-05-15 21:14:04 +04:00

21 lines
488 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace SushiBarDatabaseImplement.Models
{
public class Cook
{
[Key]
public int Id { get; set; }
[Required]
public string Fio { get; set; } = string.Empty;
[Required]
public DateTime EmploymentDate { get; set; }
[ForeignKey("CookId")]
public virtual List<ChequeItem> ChequeItems { get; set; } = new();
}
}