2024-05-15 20:43:24 +04:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
|
|
|
namespace SushiBarDatabaseImplement.Models
|
|
|
|
|
{
|
|
|
|
|
public class Customer
|
|
|
|
|
{
|
|
|
|
|
[Key]
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required]
|
|
|
|
|
public string Fio { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
[Required]
|
|
|
|
|
public DateTime BirthdayDate { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required]
|
|
|
|
|
public double SumOfAllOrders { get; set; }
|
|
|
|
|
|
|
|
|
|
[ForeignKey("CustomerId")]
|
2024-05-15 21:14:04 +04:00
|
|
|
|
public virtual List<Cheque> Cheques { get; set; } = new();
|
2024-05-15 20:43:24 +04:00
|
|
|
|
}
|
|
|
|
|
}
|