package com.czg.market.vo;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

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

/**
 * 兑换码明细 实体类。
 *
 * @author zs
 * @since 2025-10-21
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class MkRedemptionCodeVO implements Serializable {

    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 兑换配置id
     */
    private Long redemptionId;

    /**
     * 主店id
     */
    private Long mainShopId;

    /**
     * 兑换时间
     */
    private LocalDateTime redemptionTime;

    /**
     * 0未兑换 1已兑换
     */
    private Integer status;

    /**
     * 店铺用户id
     */
    private Long shopUserId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 创建时间
     */
    @Column(onInsertValue = "now()")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @Column(onInsertValue = "now()", onUpdateValue = "now()")
    private LocalDateTime updateTime;

    /**
     * 兑换码
     */
    private String code;

    /**
     * 用户昵称
     */
    private String nickName;
    /**
     * 用户手机号
     */
    private String phone;

}
