package com.njcn.msgpush.module.push.dal.dataobject.retry;

import com.baomidou.mybatisplus.annotation.TableName;
import com.njcn.msgpush.framework.mybatis.core.dataobject.BaseDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@Data
@TableName("push_message_retry_queue")
@EqualsAndHashCode(callSuper = true)
public class MessageRetryQueueDO extends BaseDO {

    private Long id;

    private Long messageId;

    private String channel;

    private String receiver;

    private Integer retryCount;

    private Integer maxRetry;

    private LocalDateTime nextRetryTime;

    private Integer processStatus;

    private LocalDateTime lockUntil;

    private LocalDateTime firstFailTime;

    private LocalDateTime lastRetryTime;

    private String lastErrorMsg;
}
