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

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;

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

    /**
     * 停车场ID
     */
    @NotNull
    @ApiModelProperty(name = "parkingId", value = "停车场ID")
    private Long parkingId;

    /**
     * 出入口ID
     */
    @ApiModelProperty(name = "entranceId", value = "出入口ID")
    private Long entranceId;

    /**
     * 车道ID
     */
    @ApiModelProperty(name = "roadwayId", value = "车道ID")
    private Long roadwayId;

    /**
     * 临停是否放行(1:放行，0：不放行)
     */
    @ApiModelProperty(name = "temporaryPass", value = "临停是否放行(1:放行，0：不放行)")
    private Integer temporaryPass;

    /**
     * 临时车位满是否放行(1:放行，0：不放行)
     */
    @ApiModelProperty(name = "temporaryVehiclePass", value = "临时车位满是否放行(1:放行，0：不放行)")
    private Integer temporaryVehiclePass;
    /**
     * 固定车位满是否放行(1:放行，0：不放行)
     */
    @ApiModelProperty(name = "fixedCarPass", value = "固定车位满是否放行(1:放行，0：不放行)")
    private Integer fixedCarPass;
    /**
     * 收费为0是否放行(1:放行，0：不放行)
     */
    @ApiModelProperty(name = "chargeIsZeroPass", value = "收费为0是否放行(1:放行，0：不放行)")
    private Integer chargeIsZeroPass;
    /**
     * 没有入场时间是否放行(1:放行，0：不放行)
     */
    @ApiModelProperty(name = "noEnterTimePass", value = "没有入场时间是否放行(1:放行，0：不放行)")
    private Integer noEnterTimePass;
}
