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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;


/**
 * @author: lwh
 * @date: 2025-08-27
 * @description: 设备信息实体类，对应MongoDB中的devices集合
 */
@Data
@Document(collection = "devices")
@Schema(description = "设备信息")
public class Device {
	@Id
	@Schema(description = "设备ID")
	private String id; // MongoDB自动生成的ObjectId

	@Schema(description = "客户端IP")
	private String clientIp;

	@Schema(description = "客户端ID")
	private String clientID; // 客户端唯一标识

	@Schema(description = "设备信息")
	private String deviceInfo; // 设备信息字符串

	@Schema(description = "头信息")
	private String headInfo;

	@Schema(description = "创建时间")
	private String createTime; // 创建时间

	@Schema(description = "更新时间")
	private String updateTime; // 更新时间
}