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_app")
public class MNSMessageApp extends BaseOwnEntity<MNSMessageApp> {

  private static final long serialVersionUID = 1L;

  /**
   * 应用码
   */
  @TableField("app_code")
  private String appCode;

  /**
   * 应用名称
   */
  @TableField("app_name")
  private String appName;

  /**
   * 状态(0:无效;1有效)
   */
  @TableField("status")
  private Integer status;

  /**
   * 备注
   */
  @TableField("remark")
  private String remark;

  /**
   * 扩展信息(json)
   */
  @TableField("extension")
  private String extension;


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

}
