/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.ldt.member.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springblade.core.mp.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 实体类
 *
 * @author BladeX
 * @since 2021-07-28
 */
@Data
@TableName("ldt_member")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Member对象", description = "Member对象")
public class Member extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 会员用户id
	*/
		@ApiModelProperty(value = "会员用户id")
		private Long userId;
	/**
	* 商场id
	*/
		@ApiModelProperty(value = "商场id")
		private Long mallId;
	/**
	* 商店id
	*/
		@ApiModelProperty(value = "商店id")
		private Long shopId;

	/**
	 * 该会员在该店/商场的总消费
	 */
	@ApiModelProperty(value = "该会员在该店/商场的总消费")
	private BigDecimal payTotal;
	/**
	* 该会员在该店所获积分总和
	*/
		@ApiModelProperty(value = "该会员在该店所获积分总和")
		private BigDecimal pointTotal;
	/**
	* 该会员在该店所获得积分总价值
	*/
		@ApiModelProperty(value = "该会员在该店所获得积分总价值")
		private BigDecimal pointValue;


	/**
	 * 会员类型：1-商场会员 2-商店会员
	 */
	@ApiModelProperty(value = "会员类型：1-商场会员 2-商店会员")
	private Integer type;


}
