package shop.alien.entity.store;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 节假日年份对照表
 * </p>
 *
 * @author ssk
 * @since 2025-02-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="EssentialHolidayComparison对象", description="节假日年份对照表")
public class EssentialHolidayComparison extends Model<EssentialHolidayComparison> {

    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "节日名称")
    @TableField("festival_name")
    private String festivalName;

    @ApiModelProperty(value = "节日日期")
    @TableField("festival_date")
    private LocalDate festivalDate;

    @ApiModelProperty(value = "年份")
    @TableField("particular_year")
    private String particularYear;

    @ApiModelProperty(value = "开始时间")
    @TableField("start_time")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date startTime;

    @ApiModelProperty(value = "结束时间")
    @TableField("end_time")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date endTime;

    @ApiModelProperty(value = "删除标记, 0:未删除, 1:已删除")
    @TableField(value = "del_flag")
    private int delFlag;

    @ApiModelProperty(value = "是否启用(0:未启用,1:已启用)")
    @TableField(value = "open_flag")
    private int openFlag;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
