refactor: update primarky logic

This commit is contained in:
vran
2022-02-01 14:07:15 +08:00
parent 5a9a42eaf7
commit 1e6846c9b0
17 changed files with 141 additions and 131 deletions

View File

@@ -51,7 +51,6 @@ public interface DocumentPojoConverter extends BaseConverter {
.collect(Collectors.toList());
}
@Mapping(target = "isPrimary", source = "meta.isPrimaryKey")
@Mapping(target = "isUnique", source = "meta.isUniqueKey")
@Mapping(target = "columnNameArray", source = "meta.columnNames")
TableIndexDocumentPojo toIndexPojo(Integer databaseDocumentId,

View File

@@ -72,6 +72,8 @@ public class DatabaseDocumentResponse {
private String comment;
private Boolean isPrimaryKey;
private String nullable;
private String autoIncrement;
@@ -91,8 +93,6 @@ public class DatabaseDocumentResponse {
private String name;
private Boolean isPrimary;
private Boolean isUnique;
@Builder.Default