package com.sckw.message.model;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 验证码
 *
 * @author xucaiqin
 * @date 2026-05-07 08:55:10
 */
@Schema(description = "验证码")
@Data
@TableName(value = "kwm_sms_verify_code")
public class KwmSmsVerifyCode {
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "")
    private Long id;

    @TableField(value = "mobile")
    @Schema(description = "")
    private String mobile;

    /**
     * login/register/reset_pwd
     */
    @TableField(value = "biz_type")
    @Schema(description = "login/register/reset_pwd")
    private String bizType;

    @TableField(value = "verify_code")
    @Schema(description = "")
    private String verifyCode;

    @TableField(value = "expire_time")
    @Schema(description = "")
    private LocalDateTime expireTime;

    /**
     * 0未使用 1已使用
     */
    @TableField(value = "verify_status")
    @Schema(description = "0未使用 1已使用")
    private Integer verifyStatus;

    @TableField(value = "send_record_id")
    @Schema(description = "")
    private Long sendRecordId;

    /**
     * 创建人
     */
    private Long createBy;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 更新人
     */
    private Long updateBy;


    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    /**
     * 删除标识(0正常/-1删除)
     */
    @TableLogic
    private Integer delFlag;
}
