package com.yeqifu.bus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

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

/**
 * <p>
 * InnoDB free: 9216 kB; (`providerid`) REFER `warehouse/bus_provider`(`id`); (`goo
 * </p>
 *实体：进货
 * @author luoyi-
 * @since 2019-12-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("bus_inport")
public class Inport implements Serializable {

    private static final long serialVersionUID=1L;

    // 进货记录的唯一标识符，使用数据库自增作为主键
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    // 付款类型
    private String paytype;

    // 进货时间
    private Date inporttime;

    // 操作人
    private String operateperson;

    // 进货数量
    private Integer number;

    // 备注信息
    private String remark;

    // 进货价格
    private Double inportprice;

    // 供应商的 ID
    private Integer providerid;

    // 商品的 ID
    private Integer goodsid;

    /**
     * 供应商姓名
     */
    @TableField(exist = false)
    private String providername;

    /**
     * 商品名称
     */
    @TableField(exist = false)
    private String goodsname;

    /**
     * 商品规格
     */
    @TableField(exist = false)
    private String size;

}
