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;

/**
 * 运动设施区域表实体类
 * 对应表: sports_facility_area
 *
 * @author assistant
 * @since 2025-12-19
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@TableName("sports_facility_area")
@ApiModel(value = "SportsFacilityArea对象", description = "运动设施区域表")
public class SportsFacilityArea implements Serializable {

    private static final long serialVersionUID = 1L;

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

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

    @ApiModelProperty(value = "区域名称（必填，限10字）", required = true)
    @TableField("area_name")
    private String areaName;

    @ApiModelProperty(value = "排序号（数字越小越靠前）")
    @TableField("sort_order")
    private Integer sortOrder;

    @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;

    @ApiModelProperty(value = "区域logo图地址")
    @TableField("area_logo_img")
    private String areaLogoImg;

    @ApiModelProperty(value = "区域头图URL")
    @TableField("area_head_url")
    private String areaHeadUrl;
}

