package cn.iselab.mooctest.user.model;

import lombok.Data;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * @Author: xuexb
 * @Date: 2018.12.28 0:57
 */
@Data
@Entity
@Table(name = "verify_code")
public class VerifyCode {

    @Id
    @GeneratedValue
    private Long id;

    @Column(name = "code")
    private String code;

    /**
     * type=email or mobile
     */
    @Column(name = "type")
    private String type;

    @Column(name = "receiver")
    private String receiver;

    @Column(name = "create_time")
    private Timestamp createTime;

    @Column(name = "expired_time")
    private Timestamp expiredTime;
}
