package com.yice.webadmin.app.data;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

@Data
@ApiModel
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "DATASET-DATA")
public class DatasetData {

    @Id
    @ApiModelProperty(name = "_id",value = "文档标识")
    private String _id;

    @ApiModelProperty(name = "versionId",value = "版本标识")
    private Long versionId;

    @ApiModelProperty(name = "data",value = "json格式数据")
    private String data;

    @ApiModelProperty(name = "createTime",value="创建时间")
    private Date createTime;
}
