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_table")
public class CallTable implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

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

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

    /**
     * 名称
     */
    private String name;

    /**
     * 描述
     */
    private String note;

    /**
     * 等待时间分钟
     */
    private Integer waitTime;

    /**
     * 前缀
     */
    private String prefix;

    /**
     * 起始号码
     */
    private Integer start;

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

    /**
     * 0禁用 1使用
     */
    private Integer state;

    /**
     * 二维码地址
     */
    private String qrcode;

    /**
     * 顺延号码数量
     */
    private Integer postponeNum;

    /**
     * 顺延号码数量
     */
    private Integer isPostpone;

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

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

}
