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 java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 红娘实体类
 */
@Data
@TableName("matchmakers")
public class Matchmaker implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    @TableId(value = "matchmaker_id", type = IdType.AUTO)
    private Integer matchmakerId;
    
    private String username;
    private String password;
    private String phone;
    private String email;
    private String realName;
    private Integer gender;
    
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate birthDate;
    
    private String avatarUrl;
    private Integer matchmakerType;
    private Integer level;
    private Integer successCouples;
    private Integer provinceId;
    private Integer cityId;
    private Integer areaId;
    private String addressDetail;
    private String profile;
    private Integer status;
    
    @TableField("created_at")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    
    @TableField("updated_at")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}

