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;
import lombok.experimental.Accessors;

/**
 *  实体类。
 *
 * @author zs
 * @since 2025-02-19
 */
@Data

@NoArgsConstructor
@AllArgsConstructor
@Table("tb_shop_table_code")
@Accessors(chain = true)
public class ShopTableCode implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

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

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

    /**
     * 桌码
     */
    private String tableCode;

    /**
     * 状态 待绑定0 已绑定1
     */
    private Integer state;

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

    /**
     * 绑定时间
     */
    private LocalDateTime bindTime;

}
