package com.yifu.cloud.plus.v1.yifu.archives.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;


/**
 * 收入证明附件关系表
 *
 * @author pwang
 * @date 2019-11-08 11:23:53
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("m_salary_prova_atta")
@Schema(description = "收入证明附件关系表")
public class MSalaryProvaAtta extends Model<MSalaryProvaAtta> {
	private static final long serialVersionUID = 1L;
	/**
	 * 主键
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@Schema(description = "主键", name = "id")
	private String id;
	/**
	 * 收入证明申请id
	 */
	@NotBlank(message = "收入证明申请id不能为空")
	@Length(max = 32, message = "收入证明申请id不能超过32个字符")
	private String salaryProvaId;
	/**
	 * 附件id
	 */
	@NotBlank(message = "附件id不能为空")
	@Length(max = 32, message = "附件id不能超过32个字符")
	private String attaId;
}
