package com.bohuikeji.delivery.backstage.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.bohuikeji.frame.module.admin.annotation.TableQueryField;
import com.bohuikeji.frame.module.admin.base.EntityBase;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;
import com.bohuikeji.frame.module.admin.annotation.TableShowField;
import com.bohuikeji.frame.module.admin.annotation.TableNewField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 货架信息表
 * </p>
 *
 * @author 10552
 * @since 2019-08-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="TShelves对象", description="货架信息表")
@TableName("t_shelves")
public class TShelves extends EntityBase<TShelves> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "货架id")
    @TableId(value = "shelves_id", type = IdType.AUTO)
    @TableShowField(value = "ID",id = true)
    @TableNewField(show = false)
    private Integer shelvesId;

    @ApiModelProperty(value = "货架编号")
    @TableField("shelves_num")
    @TableShowField("货架编号")
    @TableNewField
    @TableQueryField
    private String shelvesNum;

    @ApiModelProperty(value = "所属仓库")
    @TableField("warehouse_name")
    @TableQueryField
    @TableShowField(value = "所属仓库")
    @TableNewField
    private String warehouseName;


    @ApiModelProperty(value = "货架层数")
    @TableField("Layer_num")
    @TableShowField("货架层数")
    @TableNewField
    @TableQueryField
    private Integer layerNum;

    @ApiModelProperty(value = "创建时间")
    @TableField("creation_time")
    @TableShowField("创建时间")
    @TableNewField
    private LocalDateTime creationTime;

}
