Files
TrangleAgent/Backend/internal/model/do/forum_comments.go

27 lines
1.3 KiB
Go
Raw Normal View History

2026-01-18 18:20:40 +08:00
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// ForumComments is the golang structure of table forum_comments for DAO operations like Where/Data.
type ForumComments struct {
2026-01-18 20:35:21 +08:00
g.Meta `orm:"table:forum_comments, do:true"`
Id any // 评论ID主键
PostId any // 所属帖子ID关联 forum_posts.id无外键
UserId any // 评论发布者ID关联 users.id无外键
ParentId any // 父评论IDNULL=一级评论非NULL=二级评论指向一级评论ID无外键
ReplyToUserId any // 回复的用户ID可选用于展示“回复@xxx”无外键
Content any // 评论内容支持emoji
Status any // 状态normal=正常 deleted=软删 audit=审核中 reject=驳回
LikeCount any // 点赞数(冗余)
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 软删除时间
2026-01-18 18:20:40 +08:00
}