package com.pig4cloud.pig.marketing.api.entity.mongo;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.time.LocalDateTime;

/**
 * @author: lwh
 * @date: 2025-08-27
 * @description: 消息数据实体类
 */
@Data
@Document(collection = "messages") // 对应MongoDB的messages集合
public class Message {
	@Id
	private String id; // MongoDB自动生成的ObjectId

	private String clientID; // 客户端唯一标识
	private String msgData; // 消息内容字符串
	private String reportTime; // 上报时间
}