26 lines
759 B
C#
26 lines
759 B
C#
using System;
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Webshop.Domain.Entities
|
|
{
|
|
public class Customer
|
|
{
|
|
[Key]
|
|
public Guid Id { get; set; }
|
|
[Required]
|
|
public string AspNetUserId { get; set; }
|
|
[Required]
|
|
[MaxLength(100)]
|
|
public string FirstName { get; set; }
|
|
[Required]
|
|
[MaxLength(100)]
|
|
public string LastName { get; set; }
|
|
|
|
public virtual ApplicationUser User { get; set; }
|
|
public virtual ICollection<Address> Addresses { get; set; } = new List<Address>();
|
|
public virtual ICollection<Order> Orders { get; set; } = new List<Order>();
|
|
public virtual ICollection<Review> Reviews { get; set; } = new List<Review>();
|
|
}
|
|
}
|