mirror of
https://github.com/vran-dev/databasir.git
synced 2025-08-09 08:15:16 +08:00
refactor: update primarky logic
This commit is contained in:
@@ -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,
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user