using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace CampusErrand.Models; /// /// 门店表 /// public class Shop { [Key] public int Id { get; set; } /// 门店名称 [MaxLength(64)] public string Name { get; set; } = string.Empty; /// 门店照片 [MaxLength(512)] public string Photo { get; set; } = string.Empty; /// 门店位置 [MaxLength(256)] public string Location { get; set; } = string.Empty; /// 注意事项 [MaxLength(1024)] public string? Notice { get; set; } /// 打包费类型 public PackingFeeType PackingFeeType { get; set; } /// 打包费金额 [Column(TypeName = "decimal(10,2)")] public decimal PackingFeeAmount { get; set; } /// 是否启用 public bool IsEnabled { get; set; } = true; // 导航属性 public ICollection ShopBanners { get; set; } = []; public ICollection Dishes { get; set; } = []; }