package com.gxwebsoft.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 优惠券可用分类
 *
 * @author 科技小王子
 * @since 2025-08-11 12:47:49
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "ShopCouponApplyItem对象", description = "优惠券可用分类")
public class ShopCouponApplyItem implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "优惠券ID")
    private Integer couponId;

    @Schema(description = "商品ID")
    private Integer goodsId;

    @Schema(description = "分类ID")
    private Integer categoryId;

    @Schema(description = "类型(1商品 2分类)")
    private Integer type;

    @Schema(description = "0服务1需求2闲置")
    private Integer pk;

    @Schema(description = "状态, 0正常, 1冻结")
    private Integer status;

    @Schema(description = "是否删除, 0否, 1是")
    @TableLogic
    private Integer deleted;

    @Schema(description = "租户id")
    private Integer tenantId;

    @Schema(description = "注册时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

}
