package net.lab1024.sa.admin.module.business.wms.base.stock.domain.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
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 java.io.Serializable;
import java.time.LocalDateTime;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 容器信息 实体类
 *
 * @author 霍锦
 * @since  2024-11-26 11:37:48
 * copyright 友仓
 */

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_stock")
public class StockEntity implements Serializable {

    /**
     * 容器id
     */
    @TableId(type = IdType.AUTO)
    private Long stockId;

    /**
     * 容器编码
     */
    private String stockCode;

    /**
     * 库位ID
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long locationId;

    /**
     * 状态
     */
    private String status;

    /**
     * 启用状态
     */
    private Boolean disabledFlag;

    /**
     * 容器类型
     */
    private String stockType;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建人ID
     */
    private Long createUserId;

    /**
     * 创建人
     */
    private String createUserName;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

}
