ZrAdminNetCore/ZR.LiveForum.Model/Liveforum/T_Comments.cs
2025-11-16 18:50:32 +08:00

83 lines
1.9 KiB
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_Comments")]
[Tenant("liveforum")]
public class T_Comments
{
/// <summary>
/// 评论ID主键自增
/// </summary>
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public long Id { get; set; }
/// <summary>
/// 帖子ID
/// </summary>
public long PostId { get; set; }
/// <summary>
/// 用户Id
/// </summary>
public long UserId { get; set; }
/// <summary>
/// 父评论Id
/// </summary>
public long? ParentCommentId { get; set; }
/// <summary>
/// 回复用户Id
/// </summary>
public long ReplyToUserId { get; set; }
/// <summary>
/// 评论内容
/// </summary>
public string Content { get; set; }
/// <summary>
/// 评论点赞数
/// </summary>
public int? LikeCount { get; set; }
/// <summary>
/// 评论回复数量
/// </summary>
public int? ReplyCount { get; set; }
/// <summary>
/// 评论状态
/// </summary>
public int Status { get; set; }
/// <summary>
/// 评论者IP
/// </summary>
public string? IpAddress { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public DateTime? CreatedAt { get; set; }
/// <summary>
/// 更新时间
/// </summary>
public DateTime? UpdatedAt { get; set; }
/// <summary>
/// 是否已删除
/// </summary>
public bool IsDeleted { get; set; }
/// <summary>
/// 删除时间
/// </summary>
public DateTime? DeletedAt { get; set; }
}
}