using FreeSql.DataAnnotations; using Store.Modules.CloudProduct.Dtos; namespace Store.Modules.CloudProduct.Entities; /// 不可变的违规事件历史,解除商品违规时保留。 [Table(Name = "goods_violation_log")] public class GoodsViolationLogEntity { [Column(Name = "id", IsPrimary = true, IsIdentity = true)] public long Id { get; set; } [Column(Name = "shop_id", StringLength = 64)] public string? ShopId { get; set; } [Column(Name = "goods_id")] public long GoodsId { get; set; } /// 对应 violation_reason.id。 [Column(Name = "reason_id")] public int ReasonId { get; set; } [Column(Name = "action", MapType = typeof(int))] public ViolationLogAction Action { get; set; } [Column(Name = "created_time")] public DateTime CreatedTime { get; set; } }