package com.starry.admin.modules.shop.module.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.starry.common.domain.BaseEntity;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 优惠券详情对象 play_coupon_details
 *
 * @author admin
 * @since 2024-07-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("play_coupon_details")
public class PlayCouponDetailsEntity extends BaseEntity<PlayCouponDetailsEntity> {

    /**
     * UUID
     */
    private String id;

    /**
     * 租户ID
     */
    private String tenantId;

    /**
     * 顾客ID
     */
    private String customId;

    /**
     * 顾客昵称
     */
    private String customNickname;

    /**
     * 顾客等级ID
     */
    private String customLevelId;

    /**
     * 优惠券ID
     */
    private String couponId;

    /**
     * 获得渠道（1:自主领取;2:后台发放;3:退款返还;4:分享领取;5:抽奖获得）
     */
    private String obtainingChannels;

    /**
     * 优惠券使用状态(1:未使用;2:已使用;3:已回收)
     */
    private String useState;

    /**
     *
     * /** 获得时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime obtainingTime;

    /**
     * 使用时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime useTime;

}
