package com.izouma.nineth.domain;

import com.izouma.nineth.annotations.Searchable;
import com.izouma.nineth.enums.AuthStatus;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;

@Data
@Entity
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel("身份认证")
public class IdentityAuth extends BaseEntity {

    @Searchable
    private Long userId;

    @Searchable
    private String realName;

    private String phone;

    private String email;

    private String idNo;

    private String idFront;

    private String idBack;

    private boolean org;

    private String orgName;

    private String orgNo;

    private String orgLicense;

    private String orgLicenseExpire;

    @Enumerated(EnumType.STRING)
    private AuthStatus status;

}
