public CreateTableClause unique() {
        indexes.get(indexes.size() - 1).setUnique(true);
        return this;
    }
Set the last added index to unique

@return
querydsl-sql/src/test/java/com/querydsl/sql/ddl/CreateTableClause.java