package com.railway.business.baseinfo.domain;

import com.railway.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

/**
 * primary key (station_id) using btree,
 * index dept_id(dept_id) using btree,
 * index line_id(line_id) using
 *
 * @author railway 2021-11-20
 */
@Data
@ApiModel("车间-区间站场关联关系")
@EqualsAndHashCode(callSuper = true)
public class BaseDeptStation extends BaseEntity {

  @ApiModelProperty(value = "主键", hidden = true)
  private Long id;

  @ApiModelProperty(value = "区间ID")
  private Long stationId;

  @ApiModelProperty(value = "车间id")
  private Long deptId;

  @ApiModelProperty(value = "所属部门")
  private String deptName;

  @ApiModelProperty(value = "区间里程")
  private BigDecimal qjlc;

  @ApiModelProperty(value = "上行起始公里标")
  private BigDecimal upStartMarker;

  @ApiModelProperty(value = "上行结束公里标")
  private BigDecimal upEndMarker;

  @ApiModelProperty(value = "下行起始公里标")
  private BigDecimal downStartMarker;

  @ApiModelProperty(value = "下行结束公里标")
  private BigDecimal downEndMarker;

  @ApiModelProperty(value = "电化股道数")
  private Integer dhgds;

  @ApiModelProperty(value = "删除标志（0代表存在 1代表删除）")
  @Length(min = 1, max = 1, message = "【删除标志（0代表存在 1代表删除）】长度必须介于 {min} 和 {max} 之间")
  private String delFlag;

}