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_queue")
public class TbCallQueue {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id", nullable = false)
    private Integer id;

    @Column(name = "call_table_id")
    private Integer callTableId;

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

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

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

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

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

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

    @Column(name = "call_time")
    private Instant callTime;

    @Column(name = "call_count")
    private Integer callCount;

    @Column(name = "pass_time")
    private Instant passTime;

    @Column(name = "cancel_time")
    private Instant cancelTime;

    @Column(name = "confirm_time")
    private Instant confirmTime;

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

    @Column(name = "user_id")
    private Integer userId;

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

    @Column(name = "sub_state")
    private Integer subState;

    @Column(name = "call_num")
    private String callNum;

}
