SysUserWarehouse.java 1.32 KB
package com.huaheng.system.domain;

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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@ApiModel(value = "用户与仓库关系")
@Data
@TableName(value = "sys_user_warehouse")
public class SysUserWarehouse implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;

    /**
     * 用户id
     */
    @TableField(value = "userId")
    @ApiModelProperty(value = "用户id")
    private Long userId;

    /**
     * 仓库id
     */
    @TableField(value = "warehouseId")
    @ApiModelProperty(value = "仓库id")
    private Integer warehouseId;

    /**
     * 仓库编码
     */
    @TableField(value = "warehouseCode")
    @ApiModelProperty(value = "仓库编码")
    private String warehouseCode;

    private static final long serialVersionUID = 1L;

    public static final String COL_USERID = "userId";

    public static final String COL_WAREHOUSEID = "warehouseId";

    public static final String COL_WAREHOUSECODE = "warehouseCode";
}