package com.fdkankan.platform.goods.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 购物车
 * </p>
 *
 * @author 
 * @since 2021-12-24
 */
@Getter
@Setter
@TableName("t_cart")
public class Cart implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * t_user的id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * t_goods的id
     */
    @TableField("goods_id")
    private Long goodsId;

    /**
     * sku编号,唯一
     */
    @TableField("sku_sn")
    private String skuSn;

    /**
     * 商品数量
     */
    @TableField("goods_count")
    private Integer goodsCount;

    /**
     * 价格
     */
    @TableField("price")
    private BigDecimal price;

    /**
     * 合计
     */
    @TableField("amount")
    private BigDecimal amount;

    /**
     * 0表示未付，1表示已付
     */
    @TableField("pay_status")
    private Integer payStatus;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;

    /**
     * 0正常，1删除
     */
   @TableField("tb_status")
@TableLogic(value="0",delval = "1")
    private Integer tbStatus;


}
