|
@@ -25,37 +25,36 @@ public class Message implements Serializable {
|
|
|
@Id
|
|
|
@TableId(type = IdType.AUTO)
|
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
|
- @Column(name = "id", columnDefinition = "int comment '主键'")
|
|
|
private Integer id;
|
|
|
|
|
|
- @Column(name = "message_number", columnDefinition = "bigint(20) comment '消息序号'")
|
|
|
+ @Column(columnDefinition = "int(11) comment '消息序号'")
|
|
|
private Integer messageNumber;
|
|
|
|
|
|
- @Column(name = "name", columnDefinition = "varchar(255) comment '标题'")
|
|
|
+ @Column(columnDefinition = "varchar(255) comment '标题'")
|
|
|
private String name;
|
|
|
|
|
|
- @Column(name = "content", columnDefinition = "varchar(255) comment '内容'")
|
|
|
+ @Column(columnDefinition = "varchar(255) comment '内容'")
|
|
|
private String content;
|
|
|
|
|
|
- @Column(name = "send_user_id", columnDefinition = "bigint(20) comment '发送人id'")
|
|
|
+ @Column(columnDefinition = "int(11) comment '发送人id'")
|
|
|
private Integer sendUserId;
|
|
|
|
|
|
- @Column(name = "accept_user_id", columnDefinition = "bigint(20) comment '接收人id'")
|
|
|
+ @Column(columnDefinition = "int(11) comment '接收人id'")
|
|
|
private Integer acceptUserId;
|
|
|
|
|
|
- @Column(name = "design_project", columnDefinition = "varchar(255) comment '设计项目'")
|
|
|
+ @Column(columnDefinition = "varchar(255) comment '设计项目'")
|
|
|
private String designProject;
|
|
|
|
|
|
- @Column(name = "message_type_id", columnDefinition = "bigint(20) comment '通知类型id'")
|
|
|
+ @Column(columnDefinition = "int(11) comment '通知类型id'")
|
|
|
private Integer messageTypeId;
|
|
|
|
|
|
- @Column(name = "read", columnDefinition = "tinyint(4) comment '读取状态 0未读 1已读'")
|
|
|
- private Integer read;
|
|
|
+ @Column(columnDefinition = "tinyint(1) comment '读取状态 0未读 1已读'")
|
|
|
+ private Integer status;
|
|
|
|
|
|
- @Column(name = "create_time", columnDefinition = "timestamp DEFAULT CURRENT_TIMESTAMP comment '创建时间'")
|
|
|
+ @Column(columnDefinition = "timestamp DEFAULT CURRENT_TIMESTAMP comment '创建时间'")
|
|
|
private LocalDateTime createTime;
|
|
|
|
|
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
|
|
- @Column(name = "deleted", columnDefinition = "tinyint(4) comment '逻辑删除 0未删除 1已删除'")
|
|
|
+ @Column(columnDefinition = "tinyint(1) comment '逻辑删除 0未删除 1已删除'")
|
|
|
private Integer deleted;
|
|
|
}
|