code: public UniqueModel unique() {
  		checkReadOnly();
  		UniqueModel unique = new UniqueModel();
  		unique.setTableModel(this);
  		getUniqueConsts().add(unique);
  		return unique;
  	}
docs: Start add a unique constraint in DDL, detail usage see demo