package cn.ysk.cashier.pojo;

import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author 12847
 */
@Entity
@Data
@Table(name = "tb_shop_user_duty_detail")
public class TbShopUserDutyDetail implements Serializable {
    @Id
    @Column(name = "`id`")
    @ApiModelProperty(value = "自增id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    @Column(name = "duty_id")
    @ApiModelProperty(value = "值班ID")
    private Integer dutyId;

    @Column(name = "product_id")
    @ApiModelProperty(value = "商品ID")
    private Integer productId;

    @Column(name = "product_name")
    @ApiModelProperty(value = "商品名称")
    private String productName;
    @Column(name = "sku_id")
    @ApiModelProperty(value = "规格ID")
    private Integer skuId;

    @Column(name = "sku_name")
    @ApiModelProperty(value = "规格名称")
    private Integer skuName;

    @Column(name = "num")
    @ApiModelProperty(value = "规格名称")
    private Integer num;
    @Column(name = "amount")
    @ApiModelProperty(value = "商品金额小计")
    private BigDecimal amount;
}
