package com.github.wxiaoqi.security.admin.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;

/**
 * @author libin
 * @version 1.0
 * @description
 * @data 2019/12/24 16:41
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "user_profile_display")
public class UserProfileDisplay {
    @Id
    @GeneratedValue(generator = "JDBC")
    @JsonIgnore
    private Integer id;
    /**
     * 省份code
     */
    @Column(name = "province_code")
    private Integer provinceCode;
    /**
     * 省份名
     */
    @Column(name = "province_name")
    private String provinceName;
    /**
     * 用户数
     */
    @Column(name = "users_num")
    private Integer usersNum;

    @Transient
    @JsonIgnore
    private long memberNums;
}
