package com.kxs.product.api.model;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

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.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 客小爽机具轨迹记录表(KxsMachineTrack)表实体类
 *
 * @author 系统
 * @since 2023-12-20 10:09:35
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class KxsMachineTrack extends Model<KxsMachineTrack> implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    
    
    /**
     * 主键ID
     */
    @Schema(description = "主键ID")
    @TableId(type = IdType.AUTO)
    private Integer id;


    /**
     * 新增时间
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "新增时间")
    private LocalDateTime createTime;


    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;


    /**
     * 删除标记，0未删除，1已删除
     */
    @Schema(description = "删除标记，0未删除，1已删除")
    private String delFlag;


    /**
     * 版本
     */
    @Schema(description = "版本")
    private Integer version;


    /**
     * 变动前所属用户ID
     */
    @Schema(description = "变动前所属用户ID")
    private Integer beforeUserId;


    /**
     * 变动后用户ID
     */
    @Schema(description = "变动后用户ID")
    private Integer afterUserId;


    /**
     * 机具ID
     */
    @Schema(description = "机具ID")
    private Integer machineId;

    /**
     * 机具
     */
    @Schema(description = "机具")
    private String posSn;


    /**
     * 品牌ID
     */
    @Schema(description = "品牌ID")
    private Integer brandId;


    /**
     * 轨迹类型 0 采购 1 调拨 2 出货 3 退货 4 驳回 5 回仓退款 6 换机出库 7 换机入库
     */
    @Schema(description = "轨迹类型 0 采购 1 调拨 2 出货 3 退货 4 驳回 5 回仓退款 6 换机出库 7 换机入库")
    private Integer trackType;


    /**
     * 变动方向 0入库 1出库
     */
    @Schema(description = "变动方向 0入库 1出库")
    private Integer changeType;


    /**
     * 合伙人ID'
     */
    @Schema(description = "合伙人ID'")
    private Integer partnerId;




}

