package com.yuchen.saas.parking.api.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.nest.springwrap.core.tenant.mp.TenantEntity;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 车辆群组表
 *
 * @author 黄辉
 * @version 1.0
 * @date 2021-05-22 16:58:51
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "车辆群组表", description = "车辆群组表")
	@TableName("pmg_bat_vehicle_group")
public class PmgBatVehicleGroup extends TenantEntity {
	private static final long serialVersionUID = 1L;

	/**
	 * 车辆群组名称
	 */
	@ApiModelProperty(name = "vehicleGroupName", value = "车辆群组名称")
	private String vehicleGroupName;
	/**
	 * 描述
	 */
	@ApiModelProperty(name = "remark", value = "描述")
	private String remark;
	/**
	 * 固定群组（0:不是固定，1：是固定群组）
	 */
	@NotNull
	@ApiModelProperty(name = "fixedGroup", value = "固定群组（0:不是固定，1：是固定群组）")
	private Integer fixedGroup;
	/**
	 * 停车场id
	 */
	@NotNull
	@ApiModelProperty(name = "parkingId", value = "停车场id")
	private Long parkingId;

	@TableField(exist = false)
	@ApiModelProperty(name = "type", value = "1：右移动操作，2：左移动操作")
	private Integer type;

	@TableField(exist = false)
	private List<PmgBatCarVehicleGroup> list;
}
