package com.zhentao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 用户扩展信息实体类
 */
@Data
@TableName("user_profile")
public class UserProfile implements Serializable {
    
    @TableId(type = IdType.AUTO)
    private Long profileId;
    
    private Long userId;
    private Integer house;
    private Integer car;
    private Integer height;
    private Integer weight;
    private String star;
    private String animal;
    private String realName;
    private String idCard;
    private Integer educationLevel;
    private String hobby;
    /**
     * 自我简介
     */
    private String introduction;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthDate;
    private String schoolName;
    private String company;
    private Integer salaryRange;
    private String jobTitle;
    private Integer maritalStatus;
    private Integer isRealNameVerified;
    private Integer isEducationVerified;
    private Integer isWorkVerified;
    private Integer isMaritalVerified;
    private LocalDateTime verifiedAt;
    private Integer provinceId;
    private Integer cityId;
    private Integer areaId;
    private Integer privacySalary;
    private Integer privacyPhone;
    private Integer authenticityScore;
    private Integer gender;
    
    @TableField(exist = false)
    private LocalDateTime createTime;
    
    @TableField(exist = false)
    private LocalDateTime updateTime;
}
