package com.czg.market.entity;

import com.alibaba.fastjson2.annotation.JSONField;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.sql.Time;
import java.time.LocalDateTime;

import java.io.Serial;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 点单智能推荐 实体类。
 *
 * @author ww
 * @since 2025-10-21
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table("mk_product_smart_suggest")
public class MkProductSmartSuggest implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 自增主键
     */
    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 店铺ID
     */
    private Long shopId;

    /**
     * 模板名称
     */
    private String title;

    /**
     * 商品集合
     */
    private String foods;

    /**
     * 自定义引导语
     */
    private String guideDetail;

    /**
     * 可用周期，如：周一,周二,周三,周四,周五,周六,周日
     */
    private String useDays;

    /**
     * 时间段类型：all-全时段，custom-指定时段
     */
    private String useTimeType;

    /**
     * 开始时间
     */
    @JSONField(format = "HH:mm")
    private Time useStartTime;

    /**
     * 结束时间
     */
    @JSONField(format = "HH:mm")
    private Time useEndTime;

    /**
     * 状态：0禁用 1开启
     */
    private Integer status;

    /**
     * 创建时间
     */
    @Column(onInsertValue = "now()")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @Column(onInsertValue = "now()", onUpdateValue = "now()")
    private LocalDateTime updateTime;

    /**
     * 0否1是
     */
    private Boolean isDel;

}
