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.util.Date;

/**
 * 健身设备信息实体类
 *
 * @author system
 * @since 2025-01-XX
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@TableName("fitness_equipment_info")
@ApiModel(value = "FitnessEquipmentInfo对象", description = "健身设备信息")
public class FitnessEquipmentInfo implements Serializable {

    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "设备名称", required = true)
    @TableField("equipment_name")
    private String equipmentName;

    @ApiModelProperty(value = "设备编码")
    @TableField("equipment_code")
    private String equipmentCode;

    @ApiModelProperty(value = "设备类型(1:心肺训练, 2:核心训练, 3:臀腿训练, 4:上肢训练, 5:全身训练, 6:其他)", required = true)
    @TableField("equipment_type")
    private Integer equipmentType;

    @ApiModelProperty(value = "设备图标URL")
    @TableField("equipment_icon")
    private String equipmentIcon;

    @ApiModelProperty(value = "设备图片URL")
    @TableField("equipment_image")
    private String equipmentImage;

    @ApiModelProperty(value = "数量")
    @TableField("equipment_nums")
    private Integer equipmentNums;

    @ApiModelProperty(value = "设备描述")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "使用方法")
    @TableField("usage_method")
    private String usageMethod;

    @ApiModelProperty(value = "注意事项")
    @TableField("precautions")
    private String precautions;

    @ApiModelProperty(value = "排序号")
    @TableField("sort_order")
    private Integer sortOrder;

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

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

    @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 = "创建人ID")
    @TableField("created_user_id")
    private Integer createdUserId;

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

    @ApiModelProperty(value = "修改人ID")
    @TableField("updated_user_id")
    private Integer updatedUserId;

    @ApiModelProperty(value = "是否显示在店铺详情（0:隐藏, 1:显示），来自sports_equipment_facility表")
    @TableField(exist = false)
    private Integer displayInStoreDetail;
}

