package com.gxwebsoft.apps.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 购物车商品
 *
 * @author 科技小王子
 * @since 2023-01-14 14:46:44
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "HualalaCartFood对象", description = "购物车商品")
@TableName("apps_hualala_cart_food")
public class HualalaCartFood implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    @ApiModelProperty(value = "总数量")
    private Integer foodId;

    @ApiModelProperty(value = "菜品名称")
    private String foodName;

    @ApiModelProperty(value = "skuId")
    private String skuId;

    @ApiModelProperty(value = "店铺id")
    private Integer shopId;

    @ApiModelProperty(value = "店铺名称")
    private String shopName;

    @ApiModelProperty(value = "店铺标志")
    private String shopLogo;

    @ApiModelProperty(value = "商品图")
    private String coverUrl;

    @ApiModelProperty(value = "已放入购物车数量")
    @TableField(exist = false)
    private Long num;

    @ApiModelProperty(value = "售价")
    private BigDecimal sellPrice;

    @ApiModelProperty(value = "库存")
    private Integer stock;

    @ApiModelProperty(value = "租户id")
    private Integer tenantId;

    @ApiModelProperty(value = "注册时间")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

}
