package com.ssm.manage.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.math.BigDecimal;
import java.util.Date;

@Table(name = "store_member_list_update")
@Data
public class StoreMemberListUpdate {

    /**
     * 主键ID
     */
    @Id
    private Long id;

    @Column(name = "member_id")
    private Long memberId;

    /**
     * 会员编码
     */
    @Column(name = "member_num")
    @ExcelProperty("会员编码*")
    private String memberNum;

    /**
     * 会员名称
     */
    @Column(name = "member_name")
    @ExcelProperty("会员名称*")
    private String memberName;

    /**
     * 性别：1：男；0：女
     */
    @ExcelProperty("性别*")
    private Integer sex;

    /**
     * 手机
     */
    @Column(name = "mobile_phone")
    @ExcelProperty("手机号*")
    private String mobilePhone;



    /**
     * 门店编码
     */
    @Column(name = "store_id")
    private Long storeId;

    /**
     * 门店名称
     */
    @Column(name = "store_name")
    private String storeName;



    /**
     * 状态 1:启用/0:停用2/启用中
     */
    @ExcelProperty("状态*")
    private Integer state;


    /**
     * 会员登录密码
     */
    @ExcelProperty("登录密码")
    private String password;

    /**
     * 会员消费密码
     */
    @Column(name = "cash_password")
    @ExcelProperty("支付密码")
    private String cashPassword;

    /**
     * 录入人ID
     */
    @Column(name = "update_id")
    private Long updateId;

    /**
     * 录入人名称
     */
    @Column(name = "update_by")
    private String updateBy;

    /**
     * 录入时间
     */
    @Column(name = "update_date")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateDate;

}