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
@TableName("bath_facility_service")
@ApiModel(value = "BathFacilityService对象", description = "洗浴设施及服务表")
public class BathFacilityService implements Serializable {

    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "门店ID")
    @TableField("store_id")
    private Integer storeId;

    @ApiModelProperty(value = "设施分类(1:洗浴区, 2:汗蒸区, 3:休闲区, 4:餐饮区)")
    @TableField("facility_category")
    private Integer facilityCategory;

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

    @ApiModelProperty(value = "收费标准")
    @TableField("charging_standard")
    private String chargingStandard;

    @ApiModelProperty(value = "使用时间类型(0:全天, 1:选择时间)")
    @TableField("usage_time_type")
    private Integer usageTimeType;

    @ApiModelProperty(value = "使用开始时间(HH:mm格式)")
    @TableField("usage_start_time")
    private String usageStartTime;

    @ApiModelProperty(value = "使用结束时间(HH:mm格式)")
    @TableField("usage_end_time")
    private String usageEndTime;

    @ApiModelProperty(value = "是否显示在店铺详情(0:隐藏, 1:显示)")
    @TableField("display_in_store_detail")
    private Integer displayInStoreDetail;

    @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(value = "created_user_id", fill = FieldFill.INSERT)
    private Integer createdUserId;

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

    @ApiModelProperty(value = "修改人ID")
    @TableField(value = "updated_user_id", fill = FieldFill.INSERT_UPDATE)
    private Integer updatedUserId;
}

