# LogbookComment.java

    package cloud.wconnect.frontoffice.entity.logbook;

    import com.baomidou.mybatisplus.annotation.IdType;
    import com.baomidou.mybatisplus.annotation.TableId;
    import com.baomidou.mybatisplus.annotation.TableName;
    import lombok.Data;
    import lombok.EqualsAndHashCode;
    import lombok.experimental.Accessors;

    import java.io.Serializable;

    /**
     * <p>
     * Logbook Comment
     * </p>
     *
     * @author yyt
     * @since 2023-03-18
     */
    @Data
    @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
    @TableName("logbook_comment_v2")
    public class LogbookComment implements Serializable {

        private static final long serialVersionUID = 1L;

        @TableId(value = "id", type = IdType.AUTO)
        private Integer id;

        /**
         * 资产id
         */
        private Integer propertyId;

        /**
         * logbookId
         */
        private Integer logbookId;

        /**
         * 评论人id
         */
        private Integer createId;

        /**
         * 评论时间
         */
        private Long createTime;

        /**
         * 评论内容
         */
        private String content;

        /**
         * 0:文字评论   1：图片评论，content为图片地址
         */
        private Integer commentType;

        /**
         * 评论类型0:文字评论   1：图片评论
         */
        public static final int COMMENT_TYPE_WORD = 0;
        public static final int COMMENT_TYPE_PICTURE = 1;

    }