package com.gxwebsoft.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
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 18:07:31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "ShopGift对象", description = "礼品卡")
public class ShopGift implements Serializable {
    private static final long serialVersionUID = 1L;

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

    private String name;

    @Schema(description = "秘钥")
    private String code;

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

    @Schema(description = "领取时间")
    private LocalDateTime takeTime;

    @Schema(description = "操作人")
    private Integer operatorUserId;

    @Schema(description = "是否展示")
    private Boolean isShow;

    @Schema(description = "状态, 0上架 1待上架 2待审核 3审核不通过")
    private Integer status;

    @Schema(description = "备注")
    private String comments;

    @Schema(description = "排序号")
    private Integer sortNumber;

    @Schema(description = "用户ID")
    private Integer userId;

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

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

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "修改时间")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private Integer num;

    @TableField(exist = false)
    private ShopGoods goods;
}
