package com.yice.webadmin.app.data;

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

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "dataset_data")
public class DatasetData {

    /**
     * 文档标识
     */
    @Id
    private String id;

    /**
     * 版本标识
     */
    @Field("version_id")
    private Long versionId;

    /**
     * json格式数据
     */
    @Field("data")
    private String data;

    /**
     * 创建时间
     */
    @Field("create_time")
    private Date createTime;

    /**
     * 标记状态
     */
    @Field("mark_status")
    private Integer markStatus;

}
