package com.pj.tb_goods_cart;

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

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.EqualsAndHashCode;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * Model: tb_goods_cart -- 购物车
 * @author qzy 
 */
@Data
@Accessors(chain = true)
@TableName(TbGoodsCart.TABLE_NAME)
@EqualsAndHashCode(callSuper = false)
public class TbGoodsCart extends Model<TbGoodsCart> implements Serializable {

	// ---------- 模块常量 ----------
	/**
	 * 序列化版本id 
	 */
	private static final long serialVersionUID = 1L;	
	/**
	 * 此模块对应的表名 
	 */
	public static final String TABLE_NAME = "tb_goods_cart";	
	/**
	 * 此模块对应的权限码 
	 */
	public static final String PERMISSION_CODE = "tb-goods-cart";
	public static final String PERMISSION_CODE_ADD = "tb-goods-cart-add";
	public static final String PERMISSION_CODE_EDIT = "tb-goods-cart-edit";
	public static final String PERMISSION_CODE_DEL = "tb-goods-cart-del";




	// ---------- 表中字段 ----------
	/**
	 * 主键 
	 */
	@TableId(type = IdType.AUTO)
	private String id;	

	/**
	 * 商家ID 
	 */
	private Long enterpriseId;	

	/**
	 *  
	 */
	private Long shopId;	

	/**
	 *  
	 */
	private Long tradeAreaId;

	private String goodsImg;

	private String goodsName;

	private Integer buyNum;
	private Integer goodsIsorderStatus;

	/**
	 *  
	 */
	private Long buyUserId;	

	/**
	 * 购买金额 
	 */
	private Double totalPrice;	

	/**
	 * tb_goods表主键
	 */
	private Long saleGoodsInfoId;	

	/**
	 * 商品重量
	 */
	private Double buyWeight;	

	/**
	 *  
	 */
	private String buyUserType;	

	/**
	 * 购买方式(2=互助组,3=个人购买) 
	 */
	private Integer buyType;

	/**
	 * 分配方式 
	 */
	private Integer distribution;	

	/**
	 *  tb_goods_transit主键
	 */
	private Long publishGoodsId;

	/**
	 * 商品重量单位
	 */
	private String goodsUnit;

	/**
	 * 创建时间 
	 */
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date createTime;

	/**
	 * 创建人编号 
	 */
	private String createBy;	

	/**
	 * 创建人名称 
	 */
	private String createName;	

	/**
	 * 更新时间 
	 */
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date updateTime;

	/**
	 * 更新人编号 
	 */
	private String updateBy;	

	/**
	 * 更新人名称 
	 */
	private String updateName;	

	/**
	 * 删除状态(0=禁用,1=启用) 
	 */
	private Integer deleteStatus;	





	


}
