package com.fdkanfang.domain.backend;

import com.alibaba.fastjson.annotation.JSONField;
import com.fdkanfang.common.model.BaseModel;
import lombok.Data;
import org.hibernate.annotations.Where;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 房源信息
 */
@Data
@Entity
@Table(name = "tb_user")
//@Where(clause = "rec_status='0'")
public class UserEntity extends BaseModel implements Serializable {

    private static final long serialVersionUID = -5191918184688236778L;


    @Column(length = 50, unique = true)
    private String userName;

    @JSONField(serialize = false)
    @Column(length = 100)
    private String password;

    @Column(length = 50)
    private String realName; // 真实姓名

    private String phone;

    @Column(length = 1)
    private int sex; // 0:男  1：女


    @Column(length = 1)
    private int status; // 0:启用  1：停用

    @Column
    private String email;

//    @Column
//    private String department; //部门


//    @Column(unique = true)
    private String identity; //身份证号


    private String nickname; //昵称

    //用户在四维看看的用户ID
    private Integer kankanUserId;
}
