mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-08-01 08:52:11 +08:00
support table edit
This commit is contained in:
@ -3,8 +3,8 @@ package ai.chat2db.server.web.api.controller.rdb.request;
|
||||
import java.util.List;
|
||||
|
||||
import ai.chat2db.spi.enums.IndexTypeEnum;
|
||||
import ai.chat2db.server.web.api.controller.rdb.vo.ColumnVO;
|
||||
|
||||
import ai.chat2db.spi.model.TableIndexColumn;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
@ -41,5 +41,9 @@ public class IndexRequest {
|
||||
/**
|
||||
* 索引包含的列
|
||||
*/
|
||||
private List<ColumnVO> columnList;
|
||||
private List<TableIndexColumn> columnList;
|
||||
|
||||
|
||||
private String editStatus;
|
||||
|
||||
}
|
||||
|
@ -3,6 +3,7 @@ package ai.chat2db.server.web.api.controller.rdb.request;
|
||||
import java.util.List;
|
||||
|
||||
import ai.chat2db.spi.model.TableColumn;
|
||||
import ai.chat2db.spi.model.TableIndex;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
@ -36,5 +37,19 @@ public class TableRequest {
|
||||
/**
|
||||
* 索引
|
||||
*/
|
||||
private List<IndexRequest> indexList;
|
||||
private List<TableIndex> indexList;
|
||||
|
||||
|
||||
private String engine;
|
||||
|
||||
|
||||
private String charset;
|
||||
|
||||
|
||||
private String collate;
|
||||
|
||||
private Long incrementValue;
|
||||
|
||||
private String partition;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user