package com.czg.market.entity;

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.time.LocalDateTime;

import java.io.Serial;

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

/**
 * 私域引流表 实体类。
 *
 * @author zs
 * @since 2025-10-14
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table("mk_drainage_config")
public class MkDrainageConfig implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 订单页显示类型： 堂食 dine-in  外带 take-out 外卖 take-away
     */
    private String orderType;

    /**
     * 首页显示类型：only 仅显示 1 次，day 每天显示一次，every 每次进入小程序
     */
    private String homeType;

    /**
     * 群二维码
     */
    private String qrCode;

    /**
     * 标题
     */
    private String title;

    /**
     * 内容
     */
    private String content;

    /**
     * 提示语
     */
    private String note;

    /**
     * 订单页是否开启
     */
    private Integer orderEnable;

    /**
     * 首页是否开启
     */
    private Integer homeEnable;

    /**
     * 主店id
     */
    private Long mainShopId;

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

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

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

}
