package cn.ysk.cashier.mybatis.entity;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import javax.validation.constraints.Size;
import java.time.Instant;

@Getter
@Setter
@Entity
@Table(name = "tb_call_table")
public class TbCallTable {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id", nullable = false)
    private Integer id;

    @Size(max = 255)
    @Column(name = "name")
    private String name;

    @Size(max = 255)
    @Column(name = "note")
    private String note;

    @Column(name = "wait_time")
    private Integer waitTime;

    @Size(max = 255)
    @Column(name = "prefix")
    private String prefix;

    @Column(name = "start")
    private Integer start;

    @Column(name = "near_num")
    private Integer nearNum;

    @Column(name = "state")
    private Byte state;

    @Column(name = "shop_id")
    private Integer shopId;

    @Size(max = 255)
    @Column(name = "qrcode")
    private String qrcode;

    @Column(name = "create_time")
    private Instant createTime;

    @Column(name = "update_time")
    private Instant updateTime;

}
