package cn.ysk.cashier.mybatis.entity;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import javax.validation.constraints.Size;
import java.math.BigDecimal;

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

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

    @Column(name = "min_num")
    private Integer minNum;

    @Column(name = "max_num")
    private Integer maxNum;

    @Column(name = "handsel_num", precision = 10, scale = 2)
    private BigDecimal handselNum;

    @Size(max = 20)
    @Column(name = "handsel_type", length = 20)
    private String handselType;

    @Size(max = 20)
    @Column(name = "is_del", length = 20)
    private String isDel;

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

}
