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

/**
 * 预订服务信息设置表
 *
 * @author system
 * @since 2025-01-XX
 */
@Data
@JsonInclude
@TableName("store_booking_settings")
@ApiModel(value = "StoreBookingSettings对象", description = "预订服务信息设置表")
public class StoreBookingSettings {

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

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

    @ApiModelProperty(value = "未按时到店是否保留位置（0:不保留位置, 1:保留位置）")
    @TableField("retain_position_flag")
    private Integer retainPositionFlag;

    @ApiModelProperty(value = "保留时长(分钟)")
    @TableField("retention_duration")
    private Integer retentionDuration;

    @ApiModelProperty(value = "预订日期显示(天)")
    @TableField("booking_date_display_days")
    private Integer bookingDateDisplayDays;

    @ApiModelProperty(value = "预订时间类型（0:非全天, 1:全天）")
    @TableField("booking_time_type")
    private Integer bookingTimeType;

    @ApiModelProperty(value = "预订开始时间（HH:mm格式，非全天时必填）")
    @TableField("booking_start_time")
    private String bookingStartTime;

    @ApiModelProperty(value = "预订结束时间（HH:mm格式，非全天时必填）")
    @TableField("booking_end_time")
    private String bookingEndTime;

    @ApiModelProperty(value = "单时段最大容纳人数")
    @TableField("max_capacity_per_slot")
    private Integer maxCapacityPerSlot;

    @ApiModelProperty(value = "预约（0:免费, 1:付费）")
    @TableField("reservation")
    private String reservation;

    @ApiModelProperty(value = "预订金额（元）")
    @TableField("reservation_money")
    private Double reservationMoney;

    @ApiModelProperty(value = "取消预订退费时长设置,需提前(小时)")
    @TableField("off_unsubscribe_hours")
    private Integer offUnsubscribeHours;

    @ApiModelProperty(value = "营业时间结束前多少分钟不可预订")
    @TableField("booking_not_available_time")
    private Integer bookingNotAvailableTime;

    @ApiModelProperty(value = "图片")
    @TableField("img_url")
    private String imgUrl;

    @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.INSERT_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;
}
