code: public IndexModel index() {
  		checkReadOnly();
  		IndexModel index = new IndexModel();
  		index.setTableModel(this);
  		getIndexConsts().add(index);
  		return index;
  	}
docs: Start add a Index in DDL, detail usage see demo