package cn.iocoder.yudao.module.system.controller.admin.biz.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @Author: jinyd
 * @CreateTime: 2024/10/17  14:11
 * @Description:
 * @Version: 4.0
 */

@Schema(description = "管理后台 - 设备模型字段映射新增/修改 Request VO")
@Data
public class ModelFieldSaveReqVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "5878")
    private Long id;

    @Schema(description = "设备模型id", requiredMode = Schema.RequiredMode.REQUIRED, example = "4722")
    @NotNull(message = "设备模型id不能为空")
    private Long deviceModelId;

    @Schema(description = "原字段名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotEmpty(message = "原字段名称不能为空")
    private String originalColumnName;

    @Schema(description = "原数据类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotEmpty(message = "原数据类型不能为空")
    private String originalDataType;

    @Schema(description = "原字段注释", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "原字段注释不能为空")
    private String originalColumnComment;

    @Schema(description = "现字段名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotEmpty(message = "现字段名称不能为空")
    private String columnName;

    @Schema(description = "现数据类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotEmpty(message = "现数据类型不能为空")
    private String dataType;

    @Schema(description = "现字段注释", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "现字段注释不能为空")
    private String columnComment;

    @Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "排序不能为空")
    private Integer sort;

    @Schema(description = "存储数据表", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotEmpty(message = "存储数据表不能为空")
    private String tableName;

    @Schema(description = "类型，0-健康，1-监控，2-睡眠，3-跌倒，4-安防，5-腕表，6-环境", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "类型，0-健康，1-监控，2-睡眠，3-跌倒，4-安防，5-腕表，6-环境不能为空")
    private Integer modelType;

}
