package com.caliverse.admin.history.domain;

import com.caliverse.admin.domain.adminlog.FieldChange;
import com.caliverse.admin.domain.entity.HISTORYTYPE;
import com.caliverse.admin.history.entity.DBType;
import com.caliverse.admin.history.entity.EDBOperationType;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
public class HistoryLogInfoBase implements historyLog {
 
    private DBType dbType;
    private String timestamp;
    private EDBOperationType operationType;
    private HISTORYTYPE historyType;
    private String tableName;
    private String message;
    private String TranId;
    private List<FieldChange> changed;
    private String userId;
    private String userIP;

    public HistoryLogInfoBase(DBType dbType,
                              String timestamp,
                              EDBOperationType operationType,
                              HISTORYTYPE historyType,
                              String tableName,
                              String message,
                              String TranId,
                              List<FieldChange> changed,
                              String userId,
                              String userIP
    ) {
        this.dbType = dbType;
        this.timestamp = timestamp;
        this.operationType = operationType;
        this.historyType = historyType;
        this.tableName = tableName;
        this.message = message;
        this.TranId = TranId;
        this.changed = changed;
        this.userId = userId;
        this.userIP = userIP;
    }
}
