Files
StoreWeb/Plugins/CloudProduct/Entities/GoodsViolationLogEntity.cs
T

24 lines
855 B
C#

using FreeSql.DataAnnotations;
using Store.Modules.CloudProduct.Dtos;
namespace Store.Modules.CloudProduct.Entities;
/// <summary>不可变的违规事件历史,解除商品违规时保留。</summary>
[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; }
/// <summary>对应 violation_reason.id。</summary>
[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; }
}