package com.caliverse.admin.mongodb.domain;

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

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

    private DynamoDBDocBase data;
    private String key;

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

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