package shop.alien.entity.store;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@JsonInclude
@TableName("life_user_credit_score_info")
@ApiModel(value = "LifeUserCreditScoreInfo对象", description = "用户信用分信息")
public class LifeUserCreditScoreInfo {

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户ID")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "职业类型")
    @TableField("occupation_type")
    private String occupationType;

    @ApiModelProperty(value = "工作单位")
    @TableField("work_unit")
    private String workUnit;

    @ApiModelProperty(value = "职业")
    @TableField("occupation")
    private String occupation;

    @ApiModelProperty(value = "月收入")
    @TableField("monthly_income")
    private Integer monthlyIncome;

    @ApiModelProperty(value = "最高学历")
    @TableField("highest_degree")
    private String highestDegree;

    @ApiModelProperty(value = "毕业院校")
    @TableField("graduated_institution")
    private String graduatedInstitution;

    @ApiModelProperty(value = "毕业时间")
    @TableField("graduation_date")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date graduationDate;

    @ApiModelProperty(value = "所学专业")
    @TableField("major")
    private String major;

    @ApiModelProperty(value = "房产地址")
    @TableField("estate_address")
    private String estateAddress;

    @ApiModelProperty(value = "是否有房产 1-有 0-无")
    @TableField("has_estate")
    private Integer hasEstate;

    @ApiModelProperty(value = "房屋类型")
    @TableField("estate_type")
    private String estateType;

    @ApiModelProperty(value = "是否有车辆 1-有 0-无")
    @TableField("has_car")
    private Integer hasCar;

    @ApiModelProperty(value = "房产证明")
    @TableField("estate_imgs")
    private String estateImgs;

    @ApiModelProperty(value = "行驶证明")
    @TableField("car_imgs")
    private String carImgs;

    @ApiModelProperty(value = "删除标记, 0:未删除, 1:已删除")
    @TableField("delete_flag")

    @TableLogic
    private Integer deleteFlag;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "created_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;

    @ApiModelProperty(value = "创建人ID")
    @TableField("created_user_id")
    private Integer createdUserId;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "updated_time", fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;

    @ApiModelProperty(value = "修改人ID")
    @TableField("updated_user_id")
    private Integer updatedUserId;

}
