package com.gxwebsoft.shop.entity;

import com.baomidou.mybatisplus.annotation.*;

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

import com.gxwebsoft.common.system.entity.User;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 商城会员
 *
 * @author 科技小王子
 * @since 2022-11-25 14:02:24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "Member对象", description = "商城会员")
@TableName("shop_member")
public class Member implements Serializable {
    private static final long serialVersionUID = 1L;

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

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

    @ApiModelProperty("登录账号")
    @TableField(exist = false)
    private String username;

    @ApiModelProperty("用户昵称")
    @TableField(exist = false)
    private String nickname;

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

    @ApiModelProperty("用户信息")
    @TableField(exist = false)
    private User user;

}
