package com.xy.xyaicpzs.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import java.util.Date;
import lombok.Data;

/**
 * 会员兑换表
 * @TableName vip_exchange_record
 */
@TableName(value ="vip_exchange_record")
@Data
public class VipExchangeRecord {
    /**
     * 唯一标识符
     */
    @TableId(type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 用户ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;

    /**
     * 月度会员/年度会员
     */
    private String type;

    /**
     * 兑换方式
     */
    private Integer exchangeMode;

    /**
     * 订单编号
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long orderNo;

    /**
     * 订单金额
     */
    private Integer orderAmount;

    /**
     * 是否兑换（未兑换/已兑换）
     */
    private Integer isUse;

    /**
     * 兑换时间
     */
    private Date exchangeTime;

    /**
     * 更新时间
     */
    private Date updateTime;
}