package com.izouma.awesomeAdmin.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import java.time.LocalDateTime;

@Data
@Entity
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel(value = "短信验证码记录", description = "短信验证码记录")
public class SmsRecord extends BaseEntity {
    @ApiModelProperty(value = "会话ID", name = "sessionId")
    private String        sessionId;
    @ApiModelProperty(value = "手机号", name = "phone;")
    private String        phone;
    @ApiModelProperty(value = "验证码", name = "code")
    private String        code;
    @ApiModelProperty(value = "过期时间", name = "expiresAt")
    private LocalDateTime expiresAt;
    @ApiModelProperty(value = "是否过期", name = "expired")
    private Boolean       expired;
    @ApiModelProperty(value = "验证码用途", name = "scope")
    private String        scope;
}
