package com.czg.account.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.Data;
import lombok.NoArgsConstructor;

/**
 * 叫号配置表 实体类。
 *
 * @author zs
 * @since 2025-02-21
 */
@Data

@NoArgsConstructor
@AllArgsConstructor
@Table("tb_call_config")
public class CallConfig implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

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

    /**
     * 小程序页面地址
     */
    private String pageAddress;

    /**
     * 线上取号 1是 0否
     */
    private Integer isOnline;

    /**
     * 背景图片
     */
    private String bgCover;

    /**
     * 成功提示
     */
    private String successMsg;

    /**
     * 临近提示
     */
    private String nearMsg;

    /**
     * 过号提示
     */
    private String callingMsg;

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

    /**
     * 临近几桌提醒
     */
    private Integer nearNum;

    @Column(onInsertValue = "now()")
    private LocalDateTime createTime;

    @Column(onInsertValue = "now()", onUpdateValue = "now()")
    private LocalDateTime updateTime;

}
