package com.caliverse.admin.history.domain;

import com.caliverse.admin.domain.entity.EInitDataType;
import com.caliverse.admin.dynamodb.domain.doc.DynamoDBDocBase;
import com.caliverse.admin.global.common.utils.DateUtils;
import com.caliverse.admin.history.entity.DBType;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

@Getter
@Setter
@Document(collection = "dataInitHistory")
public class DynamodbDataInitializeHistory extends DataInitializeHistoryBase {

    private DynamoDBDocBase data;
    private String key;

    public DynamodbDataInitializeHistory(EInitDataType initDataType,
                                         String tableName,
                                         String tranId,
                                         boolean isSuccess,
                                         String message,
                                         DynamoDBDocBase data,
                                         String key) {
        super(DBType.DYNAMODB, DateUtils.nowDateTime(), initDataType, tableName, tranId, isSuccess, message);

        this.data = data;
        this.key = key;
    }
}
