org.sagacity.sqltoy.model.TableMeta Maven / Gradle / Ivy
package org.sagacity.sqltoy.model;
import java.io.Serializable;
import java.util.List;
import org.sagacity.sqltoy.config.model.ForeignModel;
import org.sagacity.sqltoy.config.model.IndexModel;
/**
* @project sagacity-sqltoy
* @description 数据库表元信息
* @author zhongxuchen
* @version v1.0,Date:2021-09-25
*/
public class TableMeta implements Serializable {
/**
*
*/
private static final long serialVersionUID = 4301565874545099339L;
/**
* 名称
*/
private String tableName;
/**
* 表所属schema
*/
private String schema;
/**
* table or view
*/
private String type;
/**
* 备注
*/
private String remarks;
/**
* 表字段信息
*/
private List columns;
/**
* 索引信息
*/
private List indexes;
/**
* 外键信息
*/
private List foreigns;
/**
* 主键约束名称
*/
private String pkConstraint;
public String getTableName() {
return tableName;
}
public void setTableName(String tableName) {
this.tableName = tableName;
}
public String getSchema() {
return schema;
}
public void setSchema(String schema) {
this.schema = schema;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getRemarks() {
return remarks;
}
public void setRemarks(String remarks) {
this.remarks = remarks;
}
public List getColumns() {
return columns;
}
public void setColumns(List columns) {
this.columns = columns;
}
/**
* @return the indexes
*/
public List getIndexes() {
return indexes;
}
/**
* @param indexes the indexes to set
*/
public void setIndexes(List indexes) {
this.indexes = indexes;
}
public List getForeigns() {
return foreigns;
}
public void setForeigns(List foreigns) {
this.foreigns = foreigns;
}
public String getPkConstraint() {
return pkConstraint;
}
public void setPkConstraint(String pkConstraint) {
this.pkConstraint = pkConstraint;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy