package com.caliverse.admin.mongodb.domain;

import com.caliverse.admin.domain.entity.EInitDataType;
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 MysqlDataInitializeHistory extends DataInitializeHistoryBase {

    private Object data;

    public MysqlDataInitializeHistory(EInitDataType initDataType,
                                      String tableName,
                                      boolean isSuccess,
                                      String message,
                                      Object data) {
        super(DBType.MYSQL, initDataType, tableName, isSuccess, message);

        this.data = data;
    }
}
