123456789101112131415161718192021222324252627282930313233 |
- package yb_comment
- import "time"
- type YbComment struct {
- CommentId uint64 `gorm:"primaryKey;column:comment_id;type:bigint(20) unsigned;not null" `
- UserId uint64 `gorm:"column:user_id"`
- AdminId uint64 `gorm:"column:admin_id"`
- ReportId int `gorm:"column:report_id"`
- ReportChapterId int `gorm:"column:report_chapter_id"`
- Content string `gorm:"column:content"`
- SysIsRead int8 `gorm:"column:sys_is_read"`
- SysReadTime time.Time `gorm:"column:sys_read_time"`
- SysReadAdminId int64 `gorm:"column:sys_read_admin_id"`
- ReplyCommentId uint64 `gorm:"column:reply_comment_id"`
- IsTop int8 `gorm:"column:is_top"`
- IsHot int8 `gorm:"column:is_hot"`
- HotTopTime time.Time `gorm:"column:hot_top_time"`
- Type int8 `gorm:"column:type"`
- Enabled int8 `gorm:"column:enabled"`
- IsShowName int8 `gorm:"column:is_show_name"`
- SourceAgent int `gorm:"column:source_agent"`
- CreateTime time.Time `gorm:"column:create_time"`
- ModifyTime time.Time `gorm:"column:modify_time"`
- OldReportId int `gorm:"column:old_report_id" json:"old_report_id" `
- OldReportChapterId int `gorm:"column:old_report_chapter_id" json:"old_report_chapter_id" `
- RealName string `gorm:"column:real_name"`
- }
- func (yc *YbComment) TableName() string {
- return "yb_comment"
- }
|