private static Schema getIndexTableSchema(Table primaryTable, int colIndex) {
		Schema primarySchema = primaryTable.getSchema();
		Field indexedField = primarySchema.getField(colIndex);
		Field primaryKeyType = primarySchema.getKeyFieldType();
		IndexField indexKeyField = new IndexField(indexedField, primaryKeyType);
		return new Schema(0, indexKeyField, "IndexKey", fields, fieldNames);
	}
Generate index table schema for specified primaryTable and index column
@param primaryTable primary table
@param colIndex index column
@return index table schema
Ghidra/Framework/DB/src/main/java/db/FieldIndexTable.java