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_staff_fitness_course")
@ApiModel(value = "StoreStaffFitnessCourse对象", description = "运动健身员工课程信息表")
public class StoreStaffFitnessCourse implements Serializable {

    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "员工id")
    @TableField("staff_id")
    private Integer staffId;

    @ApiModelProperty(value = "课程类型")
    @TableField("course_type")
    private String courseType;

    @ApiModelProperty(value = "项目名称")
    @TableField("course_name")
    private String courseName;

    @ApiModelProperty(value = "价格类型（0-固定价 1-价格区间）")
    @TableField("course_price_type")
    private Integer coursePriceType;

    @ApiModelProperty(value = "课程价格")
    @TableField("course_price")
    private BigDecimal coursePrice;

    @ApiModelProperty(value = "课程最低价格")
    @TableField("course_min_price")
    private BigDecimal courseMinPrice;

    @ApiModelProperty(value = "课程最高价格")
    @TableField("course_max_price")
    private BigDecimal courseMaxPrice;

    @ApiModelProperty(value = "删除状态")
    @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 = "更新时间")
    @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("created_user_id")
    private Integer createdUserId;

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

