package cn.ysk.cashier.mybatis.entity;

import lombok.Getter;
import lombok.Setter;

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

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

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

    @Column(name = "is_online")
    private Byte isOnline;

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

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

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

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

    @NotNull
    @Column(name = "shop_id", nullable = false)
    private Integer shopId;

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

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

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

}
