diff --git a/sql/20210517-zhangsai.sql b/sql/20210517-zhangsai.sql new file mode 100644 index 000000000..7c674d5a4 --- /dev/null +++ b/sql/20210517-zhangsai.sql @@ -0,0 +1,20 @@ +CREATE TABLE `file` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT, + `file_name` varchar(255) NOT NULL, + `file_path` varchar(255) NOT NULL, + `file_type` varchar(255) NOT NULL, + `create_time` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP, + `creator` bigint(20) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; + +CREATE TABLE `file_binding` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT, + `file_id` bigint(20) NOT NULL, + `map_id` bigint(20) NOT NULL, + `device_types` varchar(255) DEFAULT NULL, + `device_ids` varchar(10000) DEFAULT NULL, + `creator` bigint(20) NOT NULL, + `create_time` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; diff --git a/src/main/java/club/joylink/rtss/vo/client/file/FileBindingVO.java b/src/main/java/club/joylink/rtss/vo/client/file/FileBindingVO.java index bd569506c..780421400 100644 --- a/src/main/java/club/joylink/rtss/vo/client/file/FileBindingVO.java +++ b/src/main/java/club/joylink/rtss/vo/client/file/FileBindingVO.java @@ -21,7 +21,6 @@ import java.util.List; @NoArgsConstructor public class FileBindingVO { @JsonSerialize(using = ToStringSerializer.class) - @NotNull(message = "id不能为空") private Long id; @NotNull(message = "文件id不能为null")