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;
import java.util.Date;

/**
 * 团队车信息表
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "团队车信息表", description = "团队车信息表")
@TableName("parking_team_info")
public class ParkingTeamInfo extends TenantEntity {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(name = "teamName", value = "团队车名称")
    private String teamName;

    @ApiModelProperty(name = "teamCode", value = "团队车编码, 新增或修改时, 无需传此参数")
    private String teamCode;

    @ApiModelProperty(name = "countType", value = "统计车位方式, 1 动态统计月卡数量 2 固定车位数量")
    private Integer countType;

    @ApiModelProperty(name = "fixedCount", value = "限制数量")
    private Integer fixedCount;

    @ApiModelProperty(name = "remark", value = "描述")
    private String remark;

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

    @ApiModelProperty(name = "companyId", value = "所属企业id")
    private Long companyId;

    @ApiModelProperty(name = "shareCount", value = "共享车位数")
    private Integer shareCount;

    @ApiModelProperty(name = "activeState", value = "生效状态（0 未生效 1 正常使用 2 已失效(已过期)）")
    private Integer activeState;

    @ApiModelProperty(name = "beginTime", value = "生效开始时间")
    private Date beginTime;

    @ApiModelProperty(name = "endTime", value = "生效结束时间")
    private Date endTime;
}
