package com.gxwebsoft.love.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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

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

/**
 * 会员套餐管理表
 *
 * @author 科技小王子
 * @since 2023-06-23 11:34:03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "UserPlanEquity对象", description = "会员套餐管理表")
@TableName("love_user_plan_equity")
public class UserPlanEquity implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "权益ID")
    @TableId(value = "plan_equity_id", type = IdType.AUTO)
    private Integer planEquityId;

    @ApiModelProperty(value = "套餐ID")
    private Integer planId;

    @ApiModelProperty(value = "类型 0单身 1婚介")
    private Integer type;

    @ApiModelProperty(value = "套餐名称")
    private String planName;

    @ApiModelProperty(value = "真实姓名")
    private String realName;

    @ApiModelProperty(value = "手机号码")
    @TableField(exist = false)
    private String phone;

    @ApiModelProperty(value = "所在省份")
    private String province;

    @ApiModelProperty(value = "所在城市")
    private String city;

    @ApiModelProperty(value = "所在区县")
    private String region;

    @ApiModelProperty(value = "完整地区")
    private String area;

    @ApiModelProperty(value = "门店地址")
    private String address;

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

    @ApiModelProperty(value = "到期时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date expirationTime;

    @ApiModelProperty(value = "排序(数字越小越靠前)")
    private Integer sortNumber;

    @ApiModelProperty(value = "备注")
    private String comments;

    @ApiModelProperty(value = "租户id")
    private Integer tenantId;

    @ApiModelProperty(value = "注册时间")
    private Date createTime;

    @ApiModelProperty(value = "会员昵称")
    @TableField(exist = false)
    private String nickname;

    @ApiModelProperty(value = "头像")
    @TableField(exist = false)
    private String userAvatar;

}
