package cn.reghao.autodop.dmaster.notification.model.po;

import cn.reghao.autodop.dmaster.util.db.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.MappedSuperclass;
import javax.validation.constraints.NotBlank;

/**
 * @author reghao
 * @date 2021-06-23 10:31:11
 */
@MappedSuperclass
@EqualsAndHashCode(callSuper = false)
@Data
public class NotifyAccount extends BaseEntity<Integer> {
    @NotBlank(message = "通知账户标识不能为空白字符串")
    private String notifyAccountId;
    @NotBlank(message = "用户名不能为空白字符串")
    private String username;
    @NotBlank(message = "用户密码不能为空白字符串")
    private String password;
    @Deprecated
    private Boolean isDefault;

    public NotifyAccount() {
        this.isDefault = false;
    }
}
