package cn.axzo.msg.center.domain.entity;

import cn.axzo.msg.center.domain.persistence.BaseOwnEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 消息渠道表
 * </p>
 *
 * @author zhaoyong
 * @since 2021-05-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("mns_message_channel")
public class MNSMessageChannel extends BaseOwnEntity<MNSMessageChannel> {

    private static final long serialVersionUID=1L;

    /**
     * 渠道码
     */
    @TableField("channel_code")
    private String channelCode;

    /**
     * 渠道名称
     */
    @TableField("channel_name")
    private String channelName;

    /**
     * 渠道名称
     */
    @TableField("priority")
    private Integer priority;

    /**
     * 渠道状态(0:不可用,1:可用
     */
    @TableField("status")
    private Integer status;

    /**
     * 渠道配置扩展
     */
    @TableField("config_json")
    private String configJson;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
