package org.shop.crop.dao;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.Collections;
import java.util.Set;
import java.util.stream.Collectors;
@Builder
@Data
@TableName("crop_message_sensitive_records")
public class CropMessageSensitiveRecord {
    /**
     * 主键 ID（自增）
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     *
     */
    @TableField(value = "cropid")
    private String cropId;

    /**
     *
     */
    @TableField(value = "msgid")
    private String msgid;

    /**
     *
     */
    @TableField(value = "seq")
    private Long seq;


    @TableField("type")
    private Integer type;

    @TableField("roomid")
    private String roomid;

    @TableField("from_id")
    private String fromId;

    @TableField("keyword")
    private String keyword;

    @TableField("content")
    private String content;
    /**
     * 创建时间（备用字段，可选）
     */
    @TableField("created_at")
    private LocalDateTime createdAt;

    /**
     * 修改时间（自动填充）
     */
    @TableField("updated_at")
    private LocalDateTime updatedAt;


}
