package com.caliverse.admin.history.domain;

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

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

    private Object data;

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

        this.data = data;
    }
}
