package com.cxs.bean; import com.cxs.annotation.Column; import com.cxs.annotation.Table; import com.cxs.util.TableUtils; @Table(tableName = "t_comment") public class Comment { @Column(type = "varchar(100)" ,field = "id" ,primaryKey = true ,defaultNull = false) private String id; //主键,采用UUID @Column(type = "VARCHAR(100)", field = "user_id") private String userId; //评论者的ID @Column(type = "VARCHAR(600)", field = "content") private String content; //评论内容 @Column(type = "VARCHAR(100)", field = "article_id") private String articleId; //文章ID @Column(type = "datetime", field = "create_time") private String createTime;//创建时间 @Column(type = "timestamp", field = "update_time") private String updateTime;//最后更新时间 @Column(type = "int(1)", field = "is_delete") private Integer isDelete; // 删除状态 0未删除 1删除 public String getId() { return id; } public void setId(String id) { this.id = id; } public String getUserId() { return userId; } public void setUserId(String userId) { this.userId = userId; } public String getContent() { return content; } public void setContent(String content) { this.content = content; } public String getCreateTime() { return createTime; } public void setCreateTime(String createTime) { this.createTime = createTime; } public String getUpdateTime() { return updateTime; } public void setUpdateTime(String updateTime) { this.updateTime = updateTime; } public Integer getIsDelete() { return isDelete; } public void setIsDelete(Integer isDelete) { this.isDelete = isDelete; } public String getArticleId() { return articleId; } public void setArticleId(String articleId) { this.articleId = articleId; } public static void main(String[] args) { System.out.println(TableUtils.getCreateTableSQl(Comment.class)); } }

泓鼎168 LV20
2023年8月22日
wanglongfei2 LV2
2023年6月15日
13133117021 LV5
2023年5月31日
996171721 LV7
2023年5月29日
980363152 LV8
2023年5月15日
想飞的大肥猪 LV9
2023年5月9日
最代码官方 LV168
2023年5月7日
小帅哥 LV2
2023年5月7日

PLVAE_514 LV2
3月10日
黑 LV7
2023年8月21日
zhumeng168 LV5
2023年7月27日
shaoqi
2023年7月26日
暂无贡献等级
guoyan LV12
2023年7月14日
你爹正在加载中 LV4
2023年7月12日
泓鼎168 LV20
2023年6月27日
qwee12_3 LV2
2023年6月22日
mengmeng12323423 LV4
2023年6月17日
tangyongheng08 LV6
2023年6月15日