package shop.alien.entity.store;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 运动健身商品表
 *
 * @author system
 * @since 2025-01-XX
 */
@Data
@JsonInclude
@TableName("store_product_gym")
@ApiModel(value = "StoreProductGym对象", description = "运动健身商品表")
public class StoreProductGym implements Serializable {

    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "商品表主键")
    @TableField("ext_id")
    private Integer extId;

    @ApiModelProperty(value = "名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "可用/剩余次数")
    @TableField("usage_count")
    private Integer usageCount;

    @ApiModelProperty(value = "上课形式，如一对一/小班课")
    @TableField("class_mode")
    private String classMode;

    @ApiModelProperty(value = "可用周期(天)")
    @TableField("available_days")
    private Integer availableDays;

    @ApiModelProperty(value = "总课时数(节)")
    @TableField("total_sessions")
    private Integer totalSessions;

    @ApiModelProperty(value = "价格(￥)")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty(value = "课程功效")
    @TableField("course_effect")
    private String courseEffect;

    @ApiModelProperty(value = "适用人群")
    @TableField("suitable_people")
    private String suitablePeople;

    @ApiModelProperty(value = "适用会员")
    @TableField("suitable_membership")
    private String suitableMembership;

    @ApiModelProperty(value = "淋浴设施")
    @TableField("shower_facility")
    private String showerFacility;

    @ApiModelProperty(value = "额外须知")
    @TableField("extra_notice")
    private String extraNotice;

    @ApiModelProperty(value = "状态：0禁用，1启用")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "删除标记, 0:未删除, 1:已删除")
    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    @ApiModelProperty(value = "创建人")
    @TableField("created_user_id")
    private Integer createdUserId;

    @ApiModelProperty(value = "更新人")
    @TableField("updated_user_id")
    private Integer updatedUserId;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "created_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "updated_time", fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;
}
