云端数据 增加违规检测日志

This commit is contained in:
chfei committed 2026-11-02 17:19:49 +08:00
1 parent 1fa91a9cfb
commit 207696d417
7 files changed
+173 -10

No files matched your search

@@ -0,0 +1,23 @@
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; }
}