ZrAdminNetCore/ZR.LiveForum.Model/Liveforum/T_Likes.cs
2025-11-16 20:30:30 +08:00

38 lines
886 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace ZR.LiveForum.Model.Liveforum
{
/// <summary>
/// 点赞表,存储用户对帖子和评论的点赞记录
/// </summary>
[SugarTable("T_Likes")]
[Tenant("liveforum")]
public class T_Likes
{
/// <summary>
/// id
/// </summary>
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public long Id { get; set; }
/// <summary>
/// 点赞用户ID
/// </summary>
public long UserId { get; set; }
/// <summary>
/// 点赞类型 1-帖子2-评论
/// </summary>
public int TargetType { get; set; }
/// <summary>
/// 点赞目标ID
/// </summary>
public long TargetId { get; set; }
/// <summary>
/// 点赞时间
/// </summary>
public DateTime? CreatedAt { get; set; }
}
}